isatty: Fix test failure of ptsname_r on native Windows.
[gnulib.git] / ChangeLog
1 2012-02-04  Bruno Haible  <bruno@clisp.org>
2
3         isatty: Fix test failure of ptsname_r on native Windows.
4         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5         and don't set errno.
6         (isatty): Test first whether fd is valid. Set errno when returning 0.
7
8 2012-02-04  Bruno Haible  <bruno@clisp.org>
9
10         spawn-pipe tests: Fix a NULL program name in a diagnostic.
11         * tests/test-spawn-pipe-main.c: Include progname.h.
12         (main): Invoke set_program_name.
13         * modules/spawn-pipe-tests (Depends-on): Add progname.
14
15         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
16         * tests/test-nonblocking-socket-main.c: Include progname.h.
17         (main): Invoke set_program_name.
18         * modules/nonblocking-socket-tests (Depends-on): Add progname.
19
20         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
21         * tests/test-nonblocking-pipe-main.c: Include progname.h.
22         (main): Invoke set_program_name.
23         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
24
25 2012-02-04  Eric Blake  <eblake@redhat.com>
26
27         canonicalize-lgpl: fix // handling
28         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
29
30         canonicalize: fix // handling
31         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
32         /// to //, since only // is special.
33
34 2012-02-04  Bruno Haible  <bruno@clisp.org>
35
36         ioctl: Fix test failure on native Windows.
37         * lib/ioctl.c: Include msvc-nothrow.h.
38         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
39
40 2012-02-04  Bruno Haible  <bruno@clisp.org>
41
42         fsync: Avoid test failure on native Windows.
43         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
44         read-only.
45
46 2012-02-04  Bruno Haible  <bruno@clisp.org>
47
48         sys_select: Avoid syntax error on OpenBSD 5.0.
49         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
50         currently being included, just include the system's <sys/select.h>.
51
52 2012-02-04  Bruno Haible  <bruno@clisp.org>
53
54         sys_select: Avoid syntax error on OpenBSD 5.0.
55         * lib/sys_select.in.h: Include <signal.h> only after the include_next
56         <sys/select.h>, not before.
57         Reported by Jiri B <jirib@devio.us>.
58
59 2012-02-04  Bruno Haible  <bruno@clisp.org>
60
61         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
62         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
63         global variables.
64         * tests/test-get-rusage-data.c (main): Likewise.
65         Reported by Jim Meyering.
66
67 2012-02-04  Bruno Haible  <bruno@clisp.org>
68
69         stdioext: Fix last commit.
70         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
71
72 2012-02-03  Bruno Haible  <bruno@clisp.org>
73
74         stdioext: Add tentative support for Plan9.
75         * lib/stdio-impl.h: Include <errno.h>.
76         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
77         * lib/freadable.c (freadable): Likewise.
78         * lib/fwritable.c (fwritable): Likewise.
79         * lib/fbufmode.c (fbufmode): Likewise.
80         * lib/freading.c (freading): Likewise.
81         * lib/fwriting.c (fwriting): Likewise.
82         * lib/freadptr.c (freadptr): Likewise.
83         * lib/freadseek.c (freadptrinc): Likewise.
84         * lib/freadahead.c (freadahead): Likewise.
85         * lib/fpurge.c (fpurge): Likewise.
86         * lib/fseeko.c (rpl_fseeko): Likewise.
87         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
88         Reported by Jens Staal <staal1978@gmail.com>.
89
90 2012-02-02  Jim Meyering  <meyering@redhat.com>
91
92         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
93         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
94         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
95         not even to try to add the attribute.  Instead, add a pragma to suppress
96         the suggestion/warning.
97
98 2012-01-31  Karl Berry  <karl@gnu.org>
99
100         setstate doc: typo.
101         * doc/posix-functions/setstate.texi (setstate): { not (.
102
103 2012-01-31  Bruno Haible  <bruno@clisp.org>
104
105         popen: Make more robust on Windows.
106         * lib/popen.c: On native Windows, use the _popen based code even if
107         HAVE_POPEN is set.
108         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
109         environment variable on native Windows.
110
111 2012-01-30  Bruno Haible  <bruno@clisp.org>
112
113         pclose: Fix typo.
114         * lib/stdio.in.h (pclose): Fix typo in warning message.
115
116 2012-01-30  Bruno Haible  <bruno@clisp.org>
117
118         doc about getlogin_r, setstate.
119         * doc/posix-functions/getlogin_r.texi: List the incompatible
120         declaration problem under "not fixed by gnulib".
121         * doc/posix-functions/setstate.texi: Mention incompatible declaration
122         problem on Solaris 11 and other platforms.
123
124 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
125             Bruno Haible  <bruno@clisp.org>
126
127         poll tests: Make test more robust.
128         * tests/test-poll.c: Include macros.h.
129         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
130         return value of various I/O operations.
131         * modules/poll-tests (Files): Add tests/macros.h.
132
133 2012-01-30  Bruno Haible  <bruno@clisp.org>
134
135         sys_stat: Fix support for mingw64 and MSVC.
136         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
137         header files already do it.
138         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
139         stat itself.
140         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
141
142 2012-01-30  Bruno Haible  <bruno@clisp.org>
143
144         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
146         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
147
148 2012-01-29  Bruno Haible  <bruno@clisp.org>
149
150         quotearg: Fix test failure on MacOS X 10.5.
151         * tests/test-quotearg-simple.c: Include localcharset.h.
152         (main): If the locale encoding is not ASCII, bypass the tests of
153         locale_quoting_style and clocale_quoting_style.
154         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
155
156 2012-01-29  Jim Meyering  <meyering@redhat.com>
157
158         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
159         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
160         detect uses of canonicalize_file_name.
161
162 2012-01-28  Bruno Haible  <bruno@clisp.org>
163
164         test-framework-sh: Fix test failure with AIX 7.1 diff.
165         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
166         in column 1, like 'diff -c' does.
167         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
168         whether 'diff -u' is used. Instead, test whether the output contains
169         some '@' character.
170
171 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
172
173         strtoimax: eliminate need for stdint.h, inttypes.h checks
174         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
175         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
176         the prerequisites for a recently-introduced strtoimax test.
177         I guess this might cause strtoimax to be replaced when not
178         strictly necessary on older hosts, but this shouldn't introduce
179         any bugs and it should make Emacs 'configure' faster on typical
180         modern hosts.  Problem discovered when importing the latest gnulib
181         to an Emacs test version.
182         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
183
184 2012-01-28  Bruno Haible  <bruno@clisp.org>
185
186         sys_time: Override 'struct timeval' on some native Windows platforms.
187         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
188         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
189         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
190         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
191         needs to be overridden.
192         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
193         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
194         * tests/test-sys_select.c: Check that the tv_sec member has the same
195         size as a 'time_t'.
196         * tests/test-sys_time.c: Likewise.
197         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
198         is set, set also REPLACE_GETTIMEOFDAY.
199         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
200         convert the resulting 'struct timeval' before returning.
201         * lib/select.c: Include <sys/time.h>.
202         (select, timeval): Undefine at the right place.
203         * modules/select (Depends-on): Add sys_time.
204         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
205         some Windows platforms.
206         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
207
208 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
209
210         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
211         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
212         an integer.
213         * lib/fcntl.c (dupfd): Likewise.
214         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
215
216 2012-01-28  Bruno Haible  <bruno@clisp.org>
217
218         fcntl: Avoid compilation error on native Windows.
219         * modules/fcntl (Depends-on): Add 'close'.
220
221 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
222
223         select, poll, isatty: Avoid warnings on x86_64 mingw64.
224         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
225         pointer to an integer.
226         * lib/poll.c (IsConsoleHandle): Likewise.
227         * lib/isatty.c (IsConsoleHandle): Likewise.
228
229 2012-01-28  Jim Meyering  <meyering@redhat.com>
230
231         doc: clarify README-release
232         * top/README-release: Clarify: you should make a point to have
233         the latest stable versions of build tools in your PATH, and the
234         reference to buildreq is solely for its list of tool names, not
235         for its minimal-functional version numbers.
236         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
237
238         maint.mk: use more readable (yet functionally equivalent) quoting
239         It is common to quote a single quote in a single quoted string like
240         this:  '...'\''...'.  Unless you know the idiom, that looks like
241         gibberish, so prefer to double-quote the string when possible.
242         Then you can use a more readable, lone single quote: "...'..."
243         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
244         "don't" is more readable than the equivalent 'don'\''t'.
245         (sc_cast_of_x_alloc_return_value): Likewise.
246         (sc_cast_of_alloca_return_value): Likewise.
247         (sc_makefile_path_separator_check): Similar: use ":" in '...',
248         rather than '\'':'\''.
249
250 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
251
252         stdalign: relax _Alignof and tighten _Alignas test
253         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
254         as it was too strict: alignof must divide offsetof, but it need
255         not equal offsetof.  Inspired by Joseph S. Myers's comment
256         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
257         Conversely, tighten the _Alignas test a bit, as the resulting
258         alignment must be exactly 8.
259
260 2012-01-27  Bruno Haible  <bruno@clisp.org>
261
262         stdalign: Document the last change.
263         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
264
265 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
266
267         stdalign: check that alignof and offsetof are consistent
268         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
269         Problem reported for gnulib by Richard W.M. Jones in
270         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
271
272 2012-01-27  Jim Meyering  <meyering@redhat.com>
273
274         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
275         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
276         convert a sequence with gaps to the minimal containing range.
277         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
278         * tests/test-update-copyright.sh: Test for this.
279         The FSF confirmed it is ok to do this, assuming there is at
280         least one significant change per year in the affected range:
281         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
282
283 2012-01-26  Bruno Haible  <bruno@clisp.org>
284
285         pipe2: refine doc about thread-safety
286         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
287         multithread-safety problem.
288         * doc/glibc-functions/accept4.texi: Likewise.
289
290 2012-01-26  Bruno Haible  <bruno@clisp.org>
291
292         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
293         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
294         In the test program, include <fcntl.h>, for O_RDONLY.
295
296 2012-01-26  Eric Blake  <eblake@redhat.com>
297
298         pipe2: document lack of thread-safety in replacement
299         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
300         issue in replacement.
301         * doc/glibc-functions/accept4.texi (accept4): Likewise.
302         Based on a report by Eric Wong.
303
304 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
305             Bruno Haible  <bruno@clisp.org>
306
307         malloca: Avoid warnings on x86_64 mingw64.
308         * lib/malloca.c: Include <stdint.h>.
309         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
310         * modules/malloca (Depends-on): Add stdint.
311         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
312
313 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
314
315         obstack: remove __STDC__ conditionals
316         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
317         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
318         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
319         m4/include_next.m4 as the only gnulib-maintained places that still
320         refer to __STDC__.
321
322 2012-01-24  Bruno Haible  <bruno@clisp.org>
323
324         havelib: Modern quoting.
325         * build-aux/config.rpath: Quote 'like this', not `like this', as per
326         the recent change to the GNU coding standards.
327
328 2012-01-24  Bruno Haible  <bruno@clisp.org>
329
330         stdint: Improve support for Android.
331         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
332         Reported by Simon Josefsson <simon@josefsson.org>.
333
334 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
335
336         doc: omit trailing empty lines from INSTALL etc.
337         * doc/Makefile (INSTALL): Omit trailing empty lines.
338         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
339         omit trailing empty lines.  This simplifies the build procedure.
340
341 2012-01-23  Jim Meyering  <meyering@redhat.com>
342
343         tests: avoid spurious warnings about gl_sockets_startup
344         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
345         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
346         reporting a "statement with no effect".
347         * tests/test-accept.c (main): Mark as "(void)".
348         * tests/test-accept4.c (main): Likewise.
349         * tests/test-bind.c (main): Likewise.
350         * tests/test-connect.c (main): Likewise.
351         * tests/test-getpeername.c (main): Likewise.
352         * tests/test-getsockname.c (main): Likewise.
353         * tests/test-getsockopt.c (main): Likewise.
354         * tests/test-listen.c (main): Likewise.
355         * tests/test-recv.c (main): Likewise.
356         * tests/test-recvfrom.c (main): Likewise.
357         * tests/test-send.c (main): Likewise.
358         * tests/test-sendto.c (main): Likewise.
359         * tests/test-setsockopt.c (main): Likewise.
360         * tests/test-shutdown.c (main): Likewise.
361
362 2012-01-21  Bruno Haible  <bruno@clisp.org>
363
364         locale-fr.m4: Fix for Android.
365         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
366         failure of the test program on Bionic libc.
367
368 2012-01-21  Jim Meyering  <meyering@redhat.com>
369
370         bootstrap: fail when bootstrap_post_import_hook fails
371         Otherwise, it's far too easy to miss diagnostics emitted
372         between gnulib-tool's output and that of running configure.
373         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
374
375 2012-01-17  Jim Meyering  <meyering@redhat.com>
376
377         maint: enable sc_trailing_blank
378         * build-aux/pmccabe.css: Remove trailing blanks.
379         * doc/acl-cygwin.txt: Likewise.
380         * doc/gnu-oids.texi: Likewise
381         * cfg.mk: Enable sc_trailing_blank.
382         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
383
384 2012-01-17  Jim Meyering  <meyering@redhat.com>
385
386         maint: enable sc_prohibit_openat_without_use
387         * cfg.mk: Enable sc_prohibit_openat_without_use.
388         Exempt lib/selinux-at.c.
389
390 2012-01-17  Jim Meyering  <meyering@redhat.com>
391
392         maint: enable sc_prohibit_cloexec_without_use
393         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
394         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
395
396 2012-01-17  Jim Meyering  <meyering@redhat.com>
397
398         maint: enable sc_prohibit_intprops_without_use
399         * cfg.mk: Enable sc_prohibit_intprops_without_use
400         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
401
402 2012-01-17  Jim Meyering  <meyering@redhat.com>
403
404         maint: enable sc_prohibit_hash_pjw_without_use
405         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
406         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
407         to match any use of \<hash_pjw\>, i.e., not necessarily with a
408         following " (".
409
410 2012-01-17  Jim Meyering  <meyering@redhat.com>
411
412         maint: enable double-word-prohibiting rule
413         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
414         Exempt three files.
415
416 2012-01-17  Jim Meyering  <meyering@redhat.com>
417
418         maint: remove empty lines at EOF, but excluding modules/*
419         Apply syntax rules at home as well as abroad.  Most changes
420         were induced by running this:
421           make srcdir=. _build-aux=build-aux -f top/maint.mk \
422             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
423             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
424         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
425         Exempt modules/* and two binary files.
426         Also exempt doc/INSTALL*, per request from Bruno Haible.
427         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
428         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
429         * doc/Copyright/request-assign.future: Likewise.
430         * doc/Copyright/request-disclaim.changes: Likewise.
431         * doc/INSTALL: Likewise.
432         * doc/INSTALL.ISO: Likewise.
433         * doc/INSTALL.UTF-8: Likewise.
434         * doc/acl-cygwin.txt: Likewise.
435         * doc/acl-resources.txt: Likewise.
436         * doc/fdl-1.2.texi: Likewise.
437         * doc/fdl-1.3.texi: Likewise.
438         * doc/fdl.texi: Likewise.
439         * lib/argp-pin.c: Likewise.
440         * lib/round.c: Likewise.
441         * lib/unicase/u16-totitle.c: Likewise.
442         * lib/unictype/block_test.c: Likewise.
443         * lib/uninorm/canonical-decomposition.c: Likewise.
444         * m4/README: Likewise.
445         * m4/relocatable-lib.m4: Likewise.
446         * tests/test-isnand-nolibm.c: Likewise.
447         * tests/test-isnand.c: Likewise.
448         * tests/uninorm/NormalizationTest.txt: Likewise.
449
450 2012-01-17  Jim Meyering  <meyering@redhat.com>
451
452         maint: add framework to run syntax-check rules against gnulib sources
453         * cfg.mk: New file, to disable all currently-failing tests.
454         We'll enable them one by one, as they are made to pass.
455         * Makefile (sc_maint): New rule.
456
457 2012-01-21  Bruno Haible  <bruno@clisp.org>
458
459         stdint: Add support for Android.
460         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
461         include the system's <stdint.h>.
462         Reported by Simon Josefsson <simon@josefsson.org>.
463
464 2012-01-19  Jim Meyering  <meyering@redhat.com>
465
466         bootstrap: add bootstrap_post_import_hook
467         Bison does still need something like the gnulib_mk_hook whose
468         invocation I had to remove along with slurp in commit 767ccd40.
469         Technically, we could get along without it, but doing so would
470         have required living with a warning and a mandatory post-bootstrap
471         automake rerun.
472         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
473         (bootstrap_post_import_hook): New function.
474         Invoke it after gnulib-tool --import and before autoreconf.
475
476 2012-01-18  Jim Meyering  <meyering@redhat.com>
477
478         gitlog-to-changelog: don't use "no_"-prefixed variable name
479         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
480         to enable both --cluster and --no-cluster.  Change variable name,
481         s/\$no_cluster/$cluster/, and reverse usage to match.
482
483         gitlog-to-changelog: use "||", not "or" in expressions
484         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
485         expressions.
486
487 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
488
489         gitlog-to-changelog: new option --no-cluster
490         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
491         clustering of adjacent commit messages.
492
493 2012-01-17  Jim Meyering  <meyering@redhat.com>
494
495         maint: spell file systems with two words, not one
496         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
497         two words, not one.
498
499 2012-01-16  Jim Meyering  <meyering@redhat.com>
500
501         bootstrap: add a FIXME comment to ensure we eventually remove the hack
502         * build-aux/bootstrap (gnulib_tool_options): Add comment.
503
504 2012-01-16  Eric Blake  <eblake@redhat.com>
505
506         bootstrap: cater to autoconf 2.59
507         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
508         is not available.
509
510         bootstrap: properly check for libtool
511         * build-aux/bootstrap (libtoolize): Also run libtool when older
512         usage is detected.
513
514 2012-01-15  Bruno Haible  <bruno@clisp.org>
515
516         Improve support for MSVC 9.
517         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
518         clashes on MSVC.
519         * lib/fcntl.in.h: Likewise.
520         * lib/stdlib.in.h: Likewise.
521         * lib/sys_stat.in.h: Likewise.
522
523 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
524
525         gnupload: we hold the master copy of this script now
526         For motivation and more information, see:
527         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
528         * build-aux/gnupload: Make it clear in the heading comments that the
529         master copy of this file is maintained by gnulib.  Since we are at
530         it, bump its copyright year and ...
531         ($scriptversion): ... the date in its version.
532         ($usage): Patches and bug reports should be sent to the gnulib list,
533         not the automake one.
534         * config/srclist.txt: Don't try to sync 'gnupload' from automake
535         anymore.
536
537 2012-01-15  Bruno Haible  <bruno@clisp.org>
538
539         Fix module 'random'.
540         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
541         initstate, setstate are declared.
542
543 2012-01-14  Bruno Haible  <bruno@clisp.org>
544
545         Tests for module 'random'.
546         * modules/random-tests: New file.
547         * tests/test-random.c: New file, based on tests/test-random_r.c.
548
549         New module 'random'.
550         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
551         declarations.
552         * lib/random.c: New file, based on glibc/stdlib/random.c.
553         * m4/random.m4: New file.
554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
555         HAVE_RANDOM.
556         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
557         * modules/random: New file.
558         * config/srclist.txt: Add an entry for random.c.
559         * doc/posix-functions/random.texi: Mention the 'random' module.
560         * doc/posix-functions/initstate.texi: Likewise.
561         * doc/posix-functions/setstate.texi: Likewise.
562         * doc/posix-functions/srandom.texi: Likewise.
563
564 2012-01-12  Bruno Haible  <bruno@clisp.org>
565
566         random_r: Use common idioms.
567         * lib/random_r.c: Include <stdlib.h> first.
568
569         random_r: Override incompatible API on AIX, OSF/1.
570         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
571         Override the system function if REPLACE_RANDOM_R is 1.
572         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
573         and OSF/1, set REPLACE_RANDOM_R.
574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
575         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
576         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
577         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
578         * doc/glibc-functions/random_r.texi: Likewise.
579         * doc/glibc-functions/setstate_r.texi: Likewise.
580
581         random_r: Support for MSVC 9.
582         * lib/random_r.c: Include stdint.h, not inttypes.h.
583
584 2012-01-12  Eric Blake  <eblake@redhat.com>
585
586         inet_ntop: guard extra work by IF_LINT
587         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
588         better code generation when not checking for warnings.
589         Suggested by Paul Eggert and Jim Meyering.
590
591         strptime: fix regression on mingw
592         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
593         Fix regression.  Reported by Bruno Haible.
594
595 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
596             Bruno Haible  <bruno@clisp.org>
597
598         copy-file: add error-code-returning variant.
599         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
600         (qcopy_file_preserving): New declaration.
601         * lib/copy-file.c (qcopy_file_preserving): Renamed from
602         copy_file_preserving. Change return type to 'int'. Don't emit an error
603         message here.
604         (copy_file_preserving): New function.
605         * tests/test-copy-file.c: Include <stdlib.h>.
606         (main): Test qcopy_file_preserving if the environment variable
607         NO_STDERR_OUTPUT is set.
608         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
609         with NO_STDERR_OUTPUT
610         * tests/test-copy-file-2.sh: Likewise.
611
612 2012-01-10  Bruno Haible  <bruno@clisp.org>
613
614         copy-file: Use 'quote' module consistently.
615         * lib/copy-file.c (copy_file_preserving): Use quote().
616
617         copy-file: Refactor.
618         * lib/copy-file.c: Include quote.h.
619         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
620         message here.
621         * modules/copy-file (Depends-on): Add quote.
622
623         acl: Export qcopy_acl.
624         * lib/acl.h (qcopy_acl): New declaration.
625         * lib/copy-acl.c (qcopy_acl): Make non-static.
626
627         acl: Rename a local variable.
628         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
629
630         acl: Align return values of copy_acl and qcopy_acl.
631         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
632         maybe < -1.
633
634 2012-01-11  Eric Blake  <eblake@redhat.com>
635
636         strptime: silence gcc warnings
637         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
638         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
639         Reported by Daniel P. Berrange.
640
641         inet_ntop: silence gcc warning
642         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
643         Reported by Daniel P. Berrange.
644
645 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
646
647         getloadavg test: skip the test on GNU/Linux without /proc mounted
648         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
649         file.  When /proc is not mounted, it always fails with ENOENT.
650         * tests/test-getloadavg.c (main): Treat ENOENT return code from
651         getloadavg(3) the same way as ENOSYS and ENOTSUP.
652
653 2012-01-10  Bruno Haible  <bruno@clisp.org>
654
655         regex: Avoid link error on MSVC 9.
656         * modules/regex (Depends-on): Add wctype.
657
658 2012-01-10  Bruno Haible  <bruno@clisp.org>
659
660         doc: Mention --with-tests option.
661         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
662         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
663         --with-tests.
664         Reported by Reuben Thomas.
665
666 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
667
668         users.txt: order package names lexicographically.
669         * users.txt: Order package names lexicographically.
670
671 2012-01-10  Jim Meyering  <meyering@redhat.com>
672
673         maint.mk: fix description in comment
674         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
675
676         ignore-value: remove deprecated ignore_ptr function
677         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
678         * NEWS: Note this.
679
680 2012-01-09  Jim Meyering  <meyering@redhat.com>
681
682         test-init.sh: avoid a subshell
683         * tests/test-init.sh: Remove protective subshell.
684         Suggested by Bernhard Voelker.  While a subshell is normally
685         required to protect against older shells (Solaris, FreeBSD) that
686         warn about a missing program before performing redirection, the
687         shell-selection tests performed by init.sh probably exclude any
688         offending shell.
689
690 2012-01-08  Bruno Haible  <bruno@clisp.org>
691
692         setlocale tests: Avoid test failure on Solaris 11 2011-11.
693         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
694         variable.
695
696 2012-01-08  Bruno Haible  <bruno@clisp.org>
697
698         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
699         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
700         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
701         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
702         macro.
703         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
704         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
705         * lib/spawn_faction_addopen.c: Add workaround implementation if
706         HAVE_WORKING_POSIX_SPAWN.
707         * modules/spawn (Makefile): Substitute
708         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
709         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
710         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
711         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
712         (Depends-on): Update conditions.
713         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
714         the Solaris 11 bug.
715
716 2012-01-08  Bruno Haible  <bruno@clisp.org>
717
718         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
719         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
720         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
721         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
722         macro.
723         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
724         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
725         * lib/spawn_faction_adddup2.c: Add workaround implementation if
726         HAVE_WORKING_POSIX_SPAWN.
727         * modules/spawn (Makefile): Substitute
728         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
729         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
730         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
731         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
732         (Depends-on): Update conditions.
733         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
734         the Solaris 11 bug.
735
736 2012-01-08  Bruno Haible  <bruno@clisp.org>
737
738         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
739         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
740         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
741         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
742         HAVE_WORKING_POSIX_SPAWN.
743         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
744         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
745         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
746         * lib/spawn_faction_addclose.c: Add workaround implementation if
747         HAVE_WORKING_POSIX_SPAWN.
748         * modules/spawn (Makefile): Substitute
749         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
750         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
751         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
752         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
753         (Depends-on): Update conditions.
754         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
755         the Solaris 11 bug.
756
757 2012-01-08  Bruno Haible  <bruno@clisp.org>
758
759         doc: Update for Solaris 11 2011-11.
760         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
761         * m4/printf.m4: Update comments.
762
763 2012-01-08  Bruno Haible  <bruno@clisp.org>
764
765         mktime: Avoid compilation error on Solaris 11.
766         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
767
768 2012-01-08  Bruno Haible  <bruno@clisp.org>
769
770         doc: Small fix.
771         * doc/posix-headers/nl_types.texi: Correct platforms list.
772
773 2012-01-08  Simon Josefsson  <simon@josefsson.org>
774
775         Add lgpl-3.0 module.
776         * MODULES.html.sh (Support for building documentation): Add
777         lgpl-3.0.
778         * modules/lgpl-3.0: New file.
779
780 2012-01-08  Jim Meyering  <meyering@redhat.com>
781
782         select.c: indent with spaces, not TABs
783         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
784
785 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
786
787         quotearg: do not use grave accent for left quote
788         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
789         locale_quoting_style.
790         (quotearg_buffer_restyled): Fix example.
791         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
792
793 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
794
795         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
796         Most programs do not have translation catalogs for English and much
797         less separate catalogs for British and American English.  Drop the
798         suggestion to translators about these two, and provide it
799         automatically for Unicode locales.  Like most programs, even those
800         using American English, we use single quotation marks.  This conflicts
801         with the American typographic convention, but works better when you
802         cite the entire error message within double quotes.  It also tries not
803         to clash with established practice and with what non-gnulib programs
804         will usually do.
805         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
806         using an UTF-8 or GB-18030 locale.  The list of other locales with
807         quotes was provided by Bruno Haible.
808         (quotearg_buffer_restyled): Adjust instructions to translators.
809         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
810         text, since this would be wrong when using Unicode.
811         * modules/quotearg: Depend on c-strcaseeq.
812
813 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
814
815         quotearg: fix Wikipedia link
816         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
817
818 2012-01-07  Simon Josefsson  <simon@josefsson.org>
819
820         Fix for mingw with MSVC9.
821         * m4/ld-version-script.m4: Check that compiler rejects version
822         scripts with syntax errors.  Reported by Bruno Haible
823         <bruno@clisp.org>.
824
825 2012-01-06  Bruno Haible  <bruno@clisp.org>
826
827         Talk about "native Windows API", not "Woe32".
828         * lib/accept4.c: Update comments to mention native Windows.
829         * lib/execute.c: Likewise.
830         * lib/fatal-signal.c: Likewise.
831         * lib/localcharset.c: Likewise.
832         * lib/nanosleep.c: Likewise.
833         * lib/nl_langinfo.c: Likewise.
834         * lib/pclose.c: Likewise.
835         * lib/pipe-filter-gi.c: Likewise.
836         * lib/pipe-filter-ii.c: Likewise.
837         * lib/pipe.c: Likewise.
838         * lib/pipe2.c: Likewise.
839         * lib/popen.c: Likewise.
840         * lib/progreloc.c: Likewise.
841         * lib/relocatable.c: Likewise.
842         * lib/sigaction.c: Likewise.
843         * lib/sigprocmask.c: Likewise.
844         * lib/spawn-pipe.h: Likewise.
845         * lib/spawn-pipe.c: Likewise.
846         * lib/spawni.c: Likewise.
847         * lib/stat-time.h: Likewise.
848         * lib/w32spawn.h: Likewise.
849         * tests/test-isatty.c: Likewise.
850         * lib/config.charset: More comments.
851         * doc/gnulib-intro.texi: Mention native Windows.
852         * doc/posix-functions/_Exit_C99.texi: Likewise.
853         * doc/posix-headers/fcntl.texi: Likewise.
854
855 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
856
857         argp: Avoid crash if translator uses % characters in a translation.
858         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
859         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
860
861 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
862
863         doc: C11 and C++11 are now official
864         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
865         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
866         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
867         * modules/stdalign:
868         Replace references to draft C1X to C11, and to draft C++0X to C++11.
869
870 2012-01-06  Bruno Haible  <bruno@clisp.org>
871
872         uc-is-grapheme-break tests: Tweak.
873         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
874         message.
875
876 2012-01-06  Bruno Haible  <bruno@clisp.org>
877
878         test-init.sh: correct the test for diff -u
879         * tests/test-init.sh: Also redirect stdout to /dev/null.
880
881 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
882
883         Use ', not `, for quoting output.
884         * build-aux/announce-gen (usage, sizes, print_news_deltas)
885         (print_changelog_deltas, get_tool_versions, main program):
886         * build-aux/git-version-gen:
887         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
888         * build-aux/move-if-change (help):
889         * build-aux/useless-if-before-free (usage, main program):
890         * check-module (parse_module_file, usage)
891         (find_included_lib_files, check_module):
892         * lib/argmatch.c (main) [TEST]:
893         * lib/argp-help.c (_help):
894         * lib/getopt1.c (main) [TEST]:
895         * lib/git-merge-changelog.c (usage):
896         * lib/xstrtol-error.c (xstrtol_error):
897         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
898         * m4/argz.m4 (gl_FUNC_ARGZ):
899         * m4/bison.m4 (gl_BISON):
900         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
901         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
902         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
903         * m4/fpending.m4 (gl_PREREQ_FPENDING):
904         * m4/gc-random.m4 (gl_GC_RANDOM):
905         * m4/intl.m4 (gt_CHECK_DECL):
906         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
907         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
908         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
909         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
910         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
911         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
912         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
913         * tests/test-dirname.c (main):
914         * tests/test-getpass.c (main):
915         * tests/test-iconvme.c (main):
916         * tests/test-parse-datetime.c (LOG):
917         * tests/test-xstrtoimax.sh:
918         * tests/test-xstrtol.sh:
919         * tests/test-xstrtoll.sh:
920         * tests/test-xstrtoumax.sh:
921         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
922         * top/GNUmakefile (abort-due-to-no-makefile):
923         Quote 'like this', not `like this', as per the recent change to
924         the GNU coding standards.
925
926 2012-01-05  Bruno Haible  <bruno@clisp.org>
927
928         strtoimax: Don't force a replacement on systems where intmax_t is int.
929         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
930         'intmax_t' is not larger than 'int'.
931         Reported by Pádraig Brady <P@draigBrady.com>.
932
933 2012-01-05  Bruno Haible  <bruno@clisp.org>
934
935         doc: Mention NetBSD bugs.
936         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
937         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
938
939 2012-01-05  Bruno Haible  <bruno@clisp.org>
940
941         strtoumax tests: Enhance tests.
942         * tests/test-strtoumax.c (main): Add tests for large values.
943
944 2012-01-05  Bruno Haible  <bruno@clisp.org>
945
946         strtoimax: Work around AIX 5.1 bug.
947         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
948         definition.
949         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
950         Set HAVE_STRTOIMAX.
951         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
952         REPLACE_STRTOIMAX.
953         * modules/inttypes-incomplete (Makefile.am): Substitute
954         REPLACE_STRTOIMAX.
955         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
956         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
957         (Depends-on): Update conditions.
958         * tests/test-strtoimax.c (main): Add tests for large values.
959         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
960
961 2012-01-05  Bruno Haible  <bruno@clisp.org>
962
963         inttypes: Modernize.
964         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
965         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
966         (Makefile.am): Update inttypes.h rule.
967
968 2012-01-05  Jim Meyering  <meyering@redhat.com>
969
970         init.sh: don't waste a subshell just to redirect stderr
971         * tests/init.sh: In testing for diff -u and diff -c, use a
972         stderr-redirecting exec inside `...` rather than a subshell.
973
974         test-init.sh: avoid failure on HP-UX 11.00
975         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
976         resolves to diff -c or cmp.  Reported by Bruno Haible.
977
978 2012-01-05  Bruno Haible  <bruno@clisp.org>
979
980         Tests for module 'strtoull'.
981         * modules/strtoull-tests: New file.
982         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
983
984 2012-01-05  Bruno Haible  <bruno@clisp.org>
985
986         Tests for module 'strtoll'.
987         * modules/strtoll-tests: New file.
988         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
989
990 2012-01-05  Bruno Haible  <bruno@clisp.org>
991
992         Tests for module 'strtoul'.
993         * modules/strtoul-tests: New file.
994         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
995
996 2012-01-05  Bruno Haible  <bruno@clisp.org>
997
998         Tests for module 'strtol'.
999         * modules/strtol-tests: New file.
1000         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1001
1002 2012-01-04  Jim Meyering  <meyering@redhat.com>
1003
1004         test-init.sh: accommodate Solaris 5.10's different diff -u output
1005         * tests/test-init.sh: Also exempt @@ lines from the comparison
1006         of diff output, since Solaris 5.10 and GNU diff formats differ.
1007         Reported by Stefano Lattarini.
1008
1009 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1010
1011         test-posixtm: don't assume signed integer wraparound
1012         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1013         after signed integer overflow.  Inspired by (though it may not
1014         fix) Bruno Haible's bug report in
1015         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1016
1017         Spell out "Windows 9x" and "Windows XP".
1018         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1019         "Windows 9x" and "WinXP" with "Windows XP".
1020
1021 2012-01-04  Jim Meyering  <meyering@redhat.com>
1022
1023         test-vc-list-files-cvs.sh: remove obsolete comment
1024         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1025         double exit.  Now that's all encapsulated via skip_ and Exit.
1026
1027 2012-01-04  Bruno Haible  <bruno@clisp.org>
1028
1029         Talk about "native Windows API", not "Win32".
1030         * lib/classpath.c: Update comments to mention native Windows.
1031         * lib/csharpexec.c: Likewise.
1032         * lib/dup2.c: Likewise.
1033         * lib/error.c: Likewise.
1034         * lib/fcntl.c: Likewise.
1035         * lib/filename.h: Likewise.
1036         * lib/findprog.c: Likewise.
1037         * lib/get-rusage-as.c: Likewise.
1038         * lib/get-rusage-data.c: Likewise.
1039         * lib/getpagesize.c: Likewise.
1040         * lib/javaexec.c: Likewise.
1041         * lib/msvc-inval.c: Likewise.
1042         * lib/msvc-nothrow.c: Likewise.
1043         * lib/nanosleep.c: Likewise.
1044         * lib/nonblocking.c: Likewise.
1045         * lib/printf-parse.c: Likewise.
1046         * lib/setlocale.c: Likewise.
1047         * lib/sigaction.c: Likewise.
1048         * lib/strerror_r.c: Likewise.
1049         * lib/tmpdir.c: Likewise.
1050         * lib/vasnprintf.c: Likewise.
1051         * lib/w32spawn.h: Likewise.
1052         * lib/waitpid.c: Likewise.
1053         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1054         * m4/locale-ar.m4: Likewise.
1055         * m4/locale-fr.m4: Likewise.
1056         * m4/locale-ja.m4: Likewise.
1057         * m4/locale-tr.m4: Likewise.
1058         * m4/locale-zh.m4: Likewise.
1059         * m4/printf.m4: Likewise.
1060         * tests/test-cloexec.c: Likewise.
1061         * tests/test-copy-acl.sh: Likewise.
1062         * tests/test-copy-file.sh: Likewise.
1063         * tests/test-file-has-acl.sh: Likewise.
1064         * tests/test-set-mode-acl.sh: Likewise.
1065         * tests/test-dup-safer.c: Likewise.
1066         * tests/test-dup2.c: Likewise.
1067         * tests/test-dup3.c: Likewise.
1068         * tests/test-fcntl.c: Likewise.
1069         * tests/test-nonblocking-pipe.h: Likewise.
1070         * tests/test-nonblocking-socket.h: Likewise.
1071         * tests/test-pipe.c: Likewise.
1072         * tests/test-pipe2.c: Likewise.
1073         * tests/test-spawn-pipe-child.c: Likewise.
1074         * doc/acl-resources.txt: Likewise.
1075         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1076         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1077         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1078         * lib/localcharset.c: Update comments to mention native Windows.
1079         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1080         * lib/localename.c: Likewise.
1081         * lib/progreloc.c: Likewise.
1082         * lib/relocatable.c: Likewise.
1083         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1084         (windows_compute_revents): Renamed from win32_compute_revents.
1085         (windows_compute_revents_socket): Renamed from
1086         win32_compute_revents_socket.
1087         * lib/select.c: Update comments to mention native Windows.
1088         (windows_poll_handle): Renamed from win32_poll_handle.
1089         * m4/threadlib.m4: Update comments to mention native Windows.
1090         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1091         --enable-threads=windows instead of --enable-threads=win32. Set
1092         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1093         * lib/glthread/lock.h: Update comments to mention native Windows.
1094         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1095         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1096         USE_WIN32_THREADS.
1097         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1098         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1099         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1100         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1101         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1102         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1103         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1104         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1105         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1106         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1107         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1108         * tests/test-tls.c: Likewise.
1109         Rationale:
1110         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1111         on both 32-bit and 64-bit Windows systems.
1112         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1113         line of distinction is between "native Windows" on one side and Unix/
1114         POSIX systems on the other side. More details in
1115         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1116         Suggested by Paul Eggert.
1117
1118 2012-01-03  Bruno Haible  <bruno@clisp.org>
1119
1120         isatty: Support for MSVC 9.
1121         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1122         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1123         (_isatty_nothrow): New function.
1124         (isatty): Use it instead of _isatty.
1125         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1126         * lib/poll.c (IsConsoleHandle): Likewise.
1127         * lib/select.c (IsConsoleHandle): Likewise.
1128         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1129         (gl_PREREQ_ISATTY): New macro.
1130         * modules/isatty (Depends-on): Add msvc-inval.
1131         (configure.ac): Invoke gl_PREREQ_ISATTY.
1132
1133 2012-01-03  Jim Meyering  <meyering@redhat.com>
1134
1135         maint.mk: remove temporary transition aid from over 1.5 years ago
1136         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1137         purpose was to aid in the transition (avoiding silent malfunction)
1138         from that old name to the new _sc_search_regexp.  This shim was
1139         added by commit 219c504b.
1140
1141         init.sh: do not try to accommodate compare arguments starting with "-"
1142         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1143         compare arguments that start with "-".  Besides, we do not worry
1144         about this when invoking diff or cmp; why start now with sed?
1145         Using "--" to separate options from argument would trigger sed
1146         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1147         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1148
1149 2012-01-02  Bruno Haible  <bruno@clisp.org>
1150
1151         Enhance tests for module 'isatty'.
1152         * modules/isatty-tests (Depends-on): Add pipe-posix.
1153         * tests/test-isatty.c: Include <fcntl.h>.
1154         (DEV_NULL): New macro.
1155         (main): Test the resut of isatty() also on regular files, pipes, and
1156         /dev/null.
1157
1158         New module 'isatty'.
1159         * lib/unistd.in.h (isatty): New declaration.
1160         * lib/isatty.c: New file, based on an idea of
1161         Bastien Roucariès <roucaries.bastien@gmail.com>.
1162         * m4/isatty.m4: New file.
1163         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1164         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1165         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1166         REPLACE_ISATTY.
1167         * modules/isatty: New file.
1168         * doc/posix-functions/isatty.texi: Mention the new module.
1169         Suggested by Paolo Bonzini.
1170
1171 2012-01-02  Bruno Haible  <bruno@clisp.org>
1172
1173         canonicalize: Tweak 2011-12-29 commit.
1174         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1175         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1176
1177 2012-01-02  Jim Meyering  <meyering@redhat.com>
1178
1179         gitlog-to-changelog: describe input syntax in --help output
1180         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1181
1182         gitlog-to-changelog: fix typo in --help: show backslash before email @
1183         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1184         in sources, but not in actual output.
1185
1186 2011-12-30  Jim Meyering  <meyering@redhat.com>
1187
1188         gitlog-to-changelog: don't malfunction when name contains %-directive
1189         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1190         in a name string cause trouble.  E.g., with a user name of "%s",
1191         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1192
1193 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1194
1195         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1196         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1197         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1198         the "  (tiny change)" notation that is appended to the standard
1199         ChangeLog "date  name  email" header line.
1200
1201 2012-01-01  Jim Meyering  <meyering@redhat.com>
1202
1203         test-framework-sh: init.sh: fix "make dist" failure
1204         When using gnulib-tool's --with-tests option and any module that
1205         depends on test-framework-sh, "make dist" would fail due to the
1206         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1207         in the gltests directory, and not in the gllib/ directory.
1208         One way to work around that is to move the EXTRA_DIST += init.sh
1209         from the primary module to the -tests one:
1210         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1211         * modules/test-framework-sh (Makefile.am): ...not here.
1212         Reported by Tom G. Christensen in
1213         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1214
1215         version-etc: update copyright year reported by --version
1216         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1217
1218 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1219
1220         canonicalize: only stat() if required
1221         * lib/canonicalize.c (canonicalize_filename_mode):
1222         Avoid calling l?stat() when both CAN_MISSING,
1223         and CAN_NOLINKS are set, as we neither need
1224         to resolve symlinks or test component existence.
1225
1226 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1227
1228         doc: cover st_ino issues once; add OpenVMS etc.
1229         * doc/posix-functions/stat.texi (stat):
1230         * doc/posix-functions/lstat.texi (lstat):
1231         * doc/posix-functions/fstatat.texi (fstatat):
1232         * doc/posix-functions/fstat.texi (fstat):
1233         Move general 'struct stat' stuff to sys_stat.texi,
1234         leaving behind a pointer.
1235         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1236         Merge duplicate info about 'struct stat' problems into here.
1237         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
1238         and suggest partial workarounds.
1239
1240         same-inode: port to OpenVMS
1241         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
1242         three st_ino values.
1243
1244 2011-12-30  Pádraig Brady  <P@draigBrady.com>
1245
1246         canonicalize: fix references to stat() and lstat()
1247         * lib/canonicalize.c (canonicalize_filename_mode):
1248         Ensure references always resolve to a replacement
1249         function if required (even via a macro).
1250
1251 2011-12-30  Jim Meyering  <meyering@redhat.com>
1252
1253         gitlog-to-changelog: remove a little duplication
1254         * build-aux/gitlog-to-changelog (main): Grep @lines once,
1255         rather than twice.
1256
1257 2011-12-29  Pádraig Brady  <P@draigBrady.com>
1258
1259         canonicalize: add support for not resolving symlinks
1260         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
1261         indicate we don't want to follow symlinks.  Also
1262         provide CAN_MODE_MASK to aid setting these existing
1263         mutually exclusive values.
1264         * lib/canonicalize.c (canonicalize_filename_mode):
1265         Extract the flags from can_mode parameter, which
1266         are currently just used to select between stat()
1267         and lstat().  Also ensure that mutually exclusive
1268         values are flagged immediately as invalid.
1269         * tests/test-canonicalize.c: Verify symlinks are
1270         not followed, and that invalid flag combinations
1271         are diagnosed.
1272
1273 2011-12-25  Jim Meyering  <meyering@redhat.com>
1274
1275         gitlog-to-changelog: do not clump multi-paragraph entries
1276         Identical header lines (date,name,email+coauthors) are suppressed,
1277         thus putting all entries with those same characteristics under
1278         a single header.  However, when a log entry consists of two or
1279         more paragraphs, it may not be clear where it starts and ends.
1280         This change makes it so that such an entry is always separated
1281         from others by a header line, even when that header would
1282         otherwise be suppressed.
1283         * build-aux/gitlog-to-changelog: Implement the above.
1284         Inspired by a related request from Stefano Lattarini in
1285         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
1286
1287 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1288
1289         announce-gen: fix `cmd' typo in diagnostic
1290         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
1291         diagnostic: a missing '$' meant that the command was not output.
1292
1293 2011-12-23  Jim Meyering  <meyering@redhat.com>
1294
1295         test-framework-sh: distribute init.sh
1296         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
1297         Otherwise, "make -C gnulib-tests check" (at least in grep) would
1298         fail due to the lack of init.sh.
1299
1300         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
1301         * modules/atexit-tests: Rather than listing tests/init.sh,
1302         now that there's a module for it, simply depend on that new module.
1303         * modules/closein-tests: Likewise.
1304         * modules/exclude-tests: Likewise.
1305         * modules/getcwd-tests: Likewise.
1306         * modules/perror-tests: Likewise.
1307         * modules/pread-tests: Likewise.
1308         * modules/pwrite-tests: Likewise.
1309         * modules/vc-list-files-tests: Likewise.
1310         * modules/verify-tests: Likewise.
1311         * modules/xalloc-die-tests: Likewise.
1312         * modules/xstrtoimax-tests: Likewise.
1313         * modules/xstrtol-tests: Likewise.
1314         * modules/xstrtoll-tests: Likewise.
1315         * modules/xstrtoumax-tests: Likewise.
1316         * modules/yesno-tests: Likewise.
1317
1318 2011-12-22  Jim Meyering  <meyering@redhat.com>
1319
1320         test-framework-sh: add minimal tests of init.sh's compare function
1321         * modules/test-framework-sh-tests: New file.
1322         * tests/test-init.sh: New file.
1323
1324         test-framework-sh: new module
1325         * modules/test-framework-sh: New file.
1326         * MODULES.html.sh (Support for maintaining and releasing projects):
1327         List it.
1328
1329         init.sh: do not emit simulated diff output to stderr
1330         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
1331
1332 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1333
1334         .gitignore: ignore gnulib.dvi and regex.info
1335         * doc/.gitignore:add gnulib.dvi and regex.info
1336
1337 2011-12-22  Jim Meyering  <meyering@redhat.com>
1338
1339         init.sh: correct previous change
1340         * tests/init.sh (compare): My previous change was wrong.
1341         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
1342
1343         init.sh: avoid unwarranted test failure when using "set -e"
1344         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
1345         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
1346         a use like "compare exp out" would get evoke an unconditional failure.
1347
1348 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
1349
1350         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
1351         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
1352         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
1353         autoreconf that did not.
1354         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
1355         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1356
1357 2011-12-17  Jim Meyering  <meyering@redhat.com>
1358
1359         bootstrap: remove some now-unneeded code
1360         This script arose back when gnulib-tool was young.
1361         Since then, it has seen improvements that render much of this
1362         script unnecessary.  In particular, it can now make symlinks
1363         to the files it uses.  Also, I no longer see as much value in
1364         marking files as read-only via comments.
1365         If you relied on the symlink-creation feature of the preceding
1366         version of this script, you can get most of that functionality
1367         by adding the --symlink option to the definition of
1368         gnulib_tool_option_extras in your bootstrap.conf file.
1369         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1370         Run autopoint and libtoolize *before* gnulib-tool.
1371         After it, run an abbreviated autoreconf, rather than a loop around
1372         all tools.
1373         (slirp, bt_mark_as_generated): Remove functions.
1374
1375 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1376
1377         ftoastr: fix typo
1378         * lib/ftoastr.h: Fix misspelling in comment.
1379
1380 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1381
1382         * top/README-release: fix punctuation.
1383
1384 2011-12-17  Jim Meyering  <meyering@redhat.com>
1385
1386         bootstrap: correct the recent buildreq change
1387         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
1388         had no effect.
1389         * build-aux/bootstrap (buildreq): Bracket each search term with
1390         "*...*", so that the shell "case" statement works as intended.
1391         Add comments.
1392
1393 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1394
1395         build: let bootstrap resort to wget when downloading .po files
1396         * build-aux/bootstrap (download_po_files): Fallback to wget when
1397         downloading the .po files via rsync fails.  This is necessary to
1398         bootstrap from behind a strict firewall.
1399
1400 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1401
1402         stdint: don't assume C++11 when compiling with g++
1403         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1405         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1406         work also in C++ before C++11, as that improperly inhibits
1407         generating a substitute stdint.h for that case.
1408
1409 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1410
1411         alloca: protect comment from gnulib-tool
1412         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1413         that gnulib-tool doesn't think it's a license, and munge it to
1414         say "GCC version 3".
1415
1416 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1417
1418         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1419         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1420         $(abs_top_builddir) instead of $(top_builddir).
1421
1422 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1423
1424         strftime-tests: also test nanoseconds
1425         * tests/test-strftime.c (T): Add a test of %N.
1426
1427 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1428
1429         inttypes, stdint: add C++11 support
1430         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1431         when including inttypes.h and stdint.h.  Support this change to
1432         the standard.
1433         * doc/posix-headers/inttypes.texi (inttypes.h):
1434         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1435         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1436         Define if not defined already, for the benefit of pre-C++11 hosts.
1437         Define the standard format macros (e.g., PRId8) always.
1438         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1439         Likewise, if __cpluspus.  Define the standard constant and limit
1440         macros (e.g., INT8_C, INT8_MAX) always.
1441         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1442         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1443         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1444         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1445         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1446         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1447         Likewise.
1448
1449 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1450
1451         nonblocking tests: Fix test failure on Linux/PPC.
1452         Suggested by Prerna Saxena in
1453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1454         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1455         Set to 1100000.
1456
1457 2011-12-12  Jim Meyering  <meyering@redhat.com>
1458
1459         argmatch: don't hard-code `' when listing valid option arguments
1460         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1461         use the quote function to add quotes.  Use fputs rather than
1462         fprintf for the format string with no format directive.
1463
1464 2011-12-07  Eric Blake  <eblake@redhat.com>
1465
1466         bootstrap: detect tools required by gnulib-tool
1467         * build-aux/bootstrap (buildreq): Provide minimum implicit
1468         dependencies.
1469         * DEPENDENCIES: Mention patch as a prereq.
1470
1471 2011-12-04  Bruno Haible  <bruno@clisp.org>
1472
1473         sethostname: Port to Windows platforms.
1474         * lib/sethostname.c: Provide an alternate implementation for Windows
1475         platforms.
1476         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1477         (main): Skip the test if sethostname() fails with EPERM. On Windows
1478         platforms, don't check the result of gethostname().
1479
1480 2011-12-04  Bruno Haible  <bruno@clisp.org>
1481             Jim Meyering  <meyering@redhat.com>
1482
1483         tests: Avoid spurious error message on platforms without mktemp program.
1484         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1485
1486 2011-12-04  Bruno Haible  <bruno@clisp.org>
1487
1488         sethostname: Fix documentation.
1489         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1490         "not fixed" section.
1491
1492 2011-12-03  Bruno Haible  <bruno@clisp.org>
1493
1494         gnulib-tool: Verify that the License field is present and non-empty.
1495         * gnulib-tool (func_get_license_raw): New function, extracted from
1496         func_get_license.
1497         (func_get_license): Use it. Warn if the module is not a test module and
1498         has no license.
1499         Suggested by Jim Meyering.
1500
1501 2011-12-03  Bruno Haible  <bruno@clisp.org>
1502
1503         sethostname tests: Fix link error on mingw.
1504         * tests/test-sethostname1.c: New file, extracted from
1505         tests/test-sethostname.c.
1506         * tests/test-sethostname2.c: New file, extracted from
1507         tests/test-sethostname.c.
1508         * tests/test-sethostname.c: Remove file.
1509         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1510         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1511         (Depends-on): Add gethostname.
1512         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1513         Link the latter with $(GETHOSTNAME_LIB).
1514
1515         sethostname tests: Fix compilation error on mingw.
1516         * tests/test-sethostname.c: Don't include <sys/types.h>.
1517         (geteuid): Use a dummy value without uid_t.
1518         * modules/sethostname-tests (Depends-on): Remove sys_types.
1519
1520         sethostname tests: Avoid a gcc warning.
1521         * tests/test-sethostname.c (main): Remove an unused variable.
1522
1523         Tweak last commit.
1524         * modules/sethostname-tests (Files): Sort by decreasing importance.
1525         (configure.ac): Check for geteuid.
1526         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1527         the test when there's nothing to test. Drop an unnecessary cast.
1528         Improve an error message. Verify that the final sethostname() call
1529         succeeds.
1530
1531 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1532
1533         Add a test suite for the sethostname module.
1534         * modules/sethostname-tests: New file.  A test program
1535         for the sethostname module.
1536         * tests/test-sethostname.c: Likewise.
1537
1538 2011-12-03  Bruno Haible  <bruno@clisp.org>
1539
1540         Tweak last commit.
1541         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1542         Fix preprocessor directives indentation. Fix typos.
1543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1544         * modules/unistd (Makefile): Likewise.
1545
1546 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1547
1548         Integrate the sethostname module into unistd.
1549         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1550         into the unistd.h header.
1551         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1552         preprocessor directives.
1553         * modules/unistd: Setup the Makefile substitutions of the
1554         SETHOSTNAME preprocessor directives.
1555
1556 2011-12-03  Bruno Haible  <bruno@clisp.org>
1557
1558         Tweak last commit.
1559         * lib/sethostname.c: Don't include <string.h>.
1560         (sethostname): No need to copy the argument string to the stack. Don't
1561         call clearerr. Preserve errno when fprintf failed.
1562         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1563         Don't invoke AC_REPLACE_FUNCS.
1564         * modules/sethostname (Link): Remove empty section.
1565         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1566         failure problem.
1567
1568 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1569
1570         New module 'sethostname'.
1571         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1572         for systems that lack it.
1573         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1574         sethostname declaration and function.
1575         * modules/sethostname: New file.  Define the sethostname module.
1576
1577 2011-12-03  Bruno Haible  <bruno@clisp.org>
1578
1579         Tweak last commit.
1580         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1581
1582 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1583
1584         Split the HOST_NAME_MAX detection into a separate m4 macro.
1585         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1586         macro so it can be used by the pending sethostname module.
1587
1588 2011-12-03  Bruno Haible  <bruno@clisp.org>
1589
1590         Fix module descriptions syntax.
1591         * modules/argv-iter (License): Fix syntax.
1592         * modules/di-set (License): Likewise.
1593         * modules/ino-map (License): Likewise.
1594         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1595
1596 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1597
1598         stdalign: port to Clang 3.0
1599         Problem reported by Simon Josefsson in
1600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1601         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1602         which has <stdalign.h> but which does not define alignof.
1603         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1604
1605 2011-12-01  Eric Blake  <eblake@redhat.com>
1606
1607         mktempd: silence dd usage
1608         * build-aux/mktempd (rand_bytes): Silence dd.
1609
1610 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1611
1612         manywarnings: Don't mention gcc version in docstring.
1613         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1614         Jim Meyering <meyering@redhat.com>.
1615
1616 2011-11-30  Jim Meyering  <meyering@redhat.com>
1617
1618         hash: mark a few floating point constants with "f" suffix
1619         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1620         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1621         floating point constants with "f", since they're destined to be
1622         saved/used as "float"s.
1623
1624 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1625
1626         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1627         * tests/test-float.c (test_long_double): Correct and re-enable the
1628         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1629
1630 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1631
1632         Avoid subtracting two pointers that don't point into the same block.
1633         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1634         only pointers into the same memory block are subtracted. We cannot
1635         assume that sizeof (ptrdiff_t) == sizeof (void *).
1636
1637 2011-11-29  Eric Blake  <eblake@redhat.com>
1638
1639         maint.mk: add syntax check for use of compare from init.sh
1640         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1641         moved here from coreutils.
1642
1643         manywarnings: drop -Wunsuffixed-float-constants
1644         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1645         '1.0D', which is the only way to silence this warning for 'double'.
1646
1647 2011-11-29  Jim Meyering  <meyering@redhat.com>
1648
1649         hash: mark compute_bucket_size with the pure attribute
1650         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1651
1652         quotearg, propername: correct pragma guard expression
1653         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1654         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1655
1656 2011-11-28  Jim Meyering  <meyering@redhat.com>
1657
1658         propername: do not mark proper_name with the const attribute
1659         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1660         since it examines data pointed to by its parameter.
1661         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1662         the suggestion from -Wsuggest-attribute=const.
1663
1664         propername: mark one more function as const
1665         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1666
1667 2011-11-27  Jim Meyering  <meyering@redhat.com>
1668
1669         mark functions with const and pure attributes
1670
1671         Mark functions per suggestions from gcc-4.6 when using these options:
1672         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1673         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1674         Follow these guidelines: when possible, apply the attribute to
1675         an extern declaration, not to its definition.  Apply it to the
1676         definition only when the definition is static.
1677         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1678         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1679         * lib/base64.h (isbase64): Likewise.
1680         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1681         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1682         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1683         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1684         (c_tolower, c_toupper): Likewise.
1685         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1686         * lib/chdir-long.c (find_non_slash): Likewise.
1687         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1688         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1689         * lib/file-type.h (file_type): Likewise.
1690         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1691         * lib/filevercmp.c (verrevcmp): Likewise.
1692         * lib/freadahead.h (freadahead): Likewise.
1693         * lib/fts.c (fts_maxarglen): Likewise.
1694         * lib/hash-pjw.h (hash_pjw): Likewise.
1695         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1696         * lib/hash.c (is_prime, next_prime): Likewise.
1697         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1698         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1699         (hash_table_ok, hash_get_first, hash_string): Likewise.
1700         (compute_bucket_size): Likewise.
1701         * lib/i-ring.h (i_ring_empty): Likewise.
1702         * lib/isnan.c (isnanl): Likewise.
1703         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1704         * lib/memcasecmp.h (memcasecmp): Likewise.
1705         * lib/memchr2.h (memchr2): Likewise.
1706         * lib/memcmp2.h (memcmp2): Likewise.
1707         * lib/parse-datetime.y (lookup_zone): Likewise.
1708         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1709         [!WINDOWS_SOCKETS]: Likewise.
1710         * lib/strnlen1.h (strnlen1): Likewise.
1711         * lib/uniwidth.in.h (uc_width): Likewise.
1712         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1713         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1714         (quoting_options_from_style): Add a comment.
1715         * lib/propername.h (proper_name): Add a comment.
1716
1717 2011-11-27  Bruno Haible  <bruno@clisp.org>
1718
1719         Remove unused macros from !_LIBC code in glibc-borrowed files.
1720         * lib/fnmatch.c (STRCOLL): Remove macro.
1721         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1722         * lib/glob.c (__stat, __readdir64): Remove macros.
1723         * lib/tempname.c (__open64, __xstat64): Remove macros.
1724         Suggested by Paul Eggert.
1725
1726 2011-11-27  Bruno Haible  <bruno@clisp.org>
1727
1728         getcwd: Fix link error on MSVC 9.
1729         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1730
1731 2011-11-27  Bruno Haible  <bruno@clisp.org>
1732
1733         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1734         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1735         HAVE_OPENDIR is 0.
1736         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1737         HAVE_CLOSEDIR is 0.
1738         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1739         is 0.
1740         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1741
1742 2011-11-27  Bruno Haible  <bruno@clisp.org>
1743
1744         getcwd: Fix bug from 2011-08-17.
1745         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1746         platforms that need it.
1747         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1748         code of 4 to be a failure, not a success. This ensures that
1749         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1750
1751 2011-11-27  Bruno Haible  <bruno@clisp.org>
1752
1753         binary-io tests: Avoid test failure on mingw when libtool is used.
1754         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1755         Don't verify the size of t-bin-out1.tmp here.
1756         * tests/test-binary-io.sh: Verify it here.
1757         Reported by Simon Josefsson.
1758
1759 2011-11-26  Bruno Haible  <bruno@clisp.org>
1760
1761         Fix conflict between two instantiations of module 'unistd'.
1762         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1763         ${include_guard_prefix} also in the autoconf snippet.
1764         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1766         GNULIB_UNISTD_H_GETOPT.
1767         * modules/getopt-posix (configure.ac): Set the
1768         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1769         * modules/getopt-gnu (configure.ac): Likewise.
1770         * modules/unistd (Makefile.am): Change the substitution value of
1771         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1772         Reported by Simon Josefsson.
1773
1774 2011-11-25  Bruno Haible  <bruno@clisp.org>
1775
1776         pagealign_alloc: Doc and comments.
1777         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1778         module.
1779         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1780
1781 2011-11-25  Jim Meyering  <meyering@redhat.com>
1782
1783         test-update-copyright.sh: avoid false-positive failure
1784         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1785         around false positive failure on Cygwin/Windows.  The latter was
1786         matching erroneously-created files with names like
1787         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1788
1789 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1790
1791         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1792         * m4/valgrind-tests.m4: Check that the parameters that will be
1793         used works, not just a subset of them.  Reported by Bruno Haible
1794         <bruno@clisp.org>.
1795
1796 2011-11-24  Jim Meyering  <meyering@redhat.com>
1797
1798         test-stdalign.c: comment out long double tests
1799         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1800         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1801         error: '_Alignas' specifiers cannot reduce alignment of \
1802         'static_longdouble_alignas'.
1803
1804 2011-11-22  Jim Meyering  <meyering@redhat.com>
1805
1806         init.sh: make "compare /dev/null FILE" output more readable
1807         * tests/init.sh (compare_): Document the preferred order of arguments.
1808         (emit_diff_u_header_): New function.
1809         (compare_dev_null_): Emit a simulated diff, rather than just the
1810         contents of the unexpected file.  Suggestion from Bruno Haible.
1811
1812 2011-11-21  Jim Meyering  <meyering@redhat.com>
1813             Eric Blake  <eblake@redhat.com>
1814
1815         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1816         * tests/init.sh: Make our compare function slightly more portable.
1817         Reported by Bruno Haible in
1818         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1819
1820 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1821
1822         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1823         before using it, in code that ends up in config.h.
1824
1825 2011-11-20  Bruno Haible  <bruno@clisp.org>
1826
1827         getcwd: Work around getcwd bug on AIX 5..7.
1828         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1829         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1830         Use a different value for gl_cv_func_getcwd_path_max. Move the
1831         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1832         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1833         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1834         Define HAVE_MINIMALLY_WORKING_GETCWD.
1835         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1836         where it is not even minimally working, that is, on AIX.
1837         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1838         m4/getcwd-path-max.m4.
1839         (main): Update exit code computation.
1840         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1841         getcwd does not handle long file names.
1842
1843 2011-11-20  Bruno Haible  <bruno@clisp.org>
1844
1845         getcwd: Fix bug from 2009-09-10.
1846         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1847         like "no".
1848
1849 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1850
1851         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1852
1853 2011-11-20  Bruno Haible  <bruno@clisp.org>
1854
1855         fma tests: Avoid shadowing local variables.
1856         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1857         expected.
1858
1859 2011-11-20  Bruno Haible  <bruno@clisp.org>
1860
1861         copysignf tests: Fix.
1862         * tests/test-copysignf.c: Fix signature check.
1863
1864 2011-11-20  Bruno Haible  <bruno@clisp.org>
1865
1866         fma: Remove unused code.
1867         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1868         unused macros.
1869
1870 2011-11-20  Bruno Haible  <bruno@clisp.org>
1871
1872         sethostname: Fix doc about AIX.
1873         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1874         sethostname; it has it.
1875
1876         sethostname: Mention more portability problems.
1877         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1878         problem.
1879         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1880
1881 2011-11-19  Bruno Haible  <bruno@clisp.org>
1882
1883         Depend on module fcntl-h when AT_FDCWD is used.
1884         * modules/utimens (Depends-on): Add fcntl-h.
1885         * modules/areadlinkat (Depends-on): Likewise.
1886         * modules/areadlinkat-with-size (Depends-on): Likewise.
1887         * modules/faccessat (Depends-on): Likewise.
1888         * modules/fchmodat (Depends-on): Likewise.
1889         * modules/fchownat (Depends-on): Likewise.
1890         * modules/getcwd (Depends-on): Likewise.
1891         * modules/mkdirat (Depends-on): Likewise.
1892         * modules/mkfifoat (Depends-on): Likewise.
1893         * modules/readlinkat (Depends-on): Likewise.
1894         * modules/symlinkat (Depends-on): Likewise.
1895         * modules/dup2-tests (Depends-on): Likewise.
1896         * modules/fdutimensat-tests (Depends-on): Likewise.
1897         * modules/futimens-tests (Depends-on): Likewise.
1898
1899 2011-11-19  Bruno Haible  <bruno@clisp.org>
1900
1901         euidaccess: Update a comment.
1902         * lib/euidaccess.c: Update comment about platforms with faccessat.
1903
1904 2011-11-19  Bruno Haible  <bruno@clisp.org>
1905
1906         openat: Fix file list.
1907         * modules/openat (Files): Remove lib/at-func.c.
1908
1909 2011-11-19  Bruno Haible  <bruno@clisp.org>
1910
1911         fstatat: Simplify.
1912         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1913         gnulib should define rpl_fstatat, there is a
1914         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1915
1916 2011-11-19  Bruno Haible  <bruno@clisp.org>
1917
1918         Ensure 'inline' can be used in tests/test-utimens-common.h.
1919         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1920         * modules/futimens-tests (configure.ac): Likewise.
1921         * modules/utimens-tests (configure.ac): Likewise.
1922         * modules/utimensat-tests (configure.ac): Likewise.
1923
1924 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1925
1926         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1927         not hash_insert0.
1928         (hash_insert_if_absent): Doc fix.
1929
1930 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1931
1932         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1933
1934 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1935
1936         test-getcwd: disambiguate exit status
1937         * tests/test-getcwd.c (test_long_name): Return 0..7.
1938         (main): Exit with an unambiguous exit status.  The old
1939         code yielded a mysterious mixture of two failure codes.
1940
1941         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1942         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1943         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1944         rpl_fstatat or fstatat.  This should fix the other problem
1945         reported by Kai Habel in
1946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1947         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1949         and I reproduced it on a Solaris 8 host we still have in production.
1950
1951 2011-11-18  Jim Meyering  <meyering@redhat.com>
1952
1953         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1954         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1955         Add a sentence to the comment.
1956         (hash_insert0): New function that simply calls hash_insert_if_absent.
1957         * lib/hash.h (hash_insert_if_absent): Declare it.
1958         (hash_insert0): Add deprecation attribute.
1959         (_GL_ATTRIBUTE_DEPRECATED): Define.
1960         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1961         not hash_insert0.
1962         * NEWS: Mention it, even though it's not really an incompatible change.
1963
1964 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1965
1966         openat: avoid compilation failure due to lack of <errno.h> inclusion
1967         * lib/openat.c: Include <errno.h>.
1968
1969 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1970
1971         * modules/getcwd (Depends-on): Add fdopendir.
1972         This fixes one of the two problems reported by Kai Habel in
1973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1974
1975         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1976         stdalign problem reported by Ian Beckwith in
1977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1978         * modules/crypto/gc-arcfour (Depends-on):
1979         Depend conditionally on crypto/arcfour.
1980         * modules/crypto/gc-arctwo (Depends-on):
1981         Depend conditionally on crypto/arctwo.
1982         * modules/crypto/gc-des (Depends-on):
1983         Depend conditionally on crypto/des.
1984         * modules/crypto/gc-hmac-md5 (Depends-on):
1985         Depend conditionally on crypto/hmac-md5.
1986         * modules/crypto/gc-hmac-sha1 (Depends-on):
1987         Depend conditionally on crypto/hmac-sha1.
1988         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1989         * modules/crypto/gc-md4 (Depends-on):
1990         Depend conditionally on crypto/md4.
1991         * modules/crypto/gc-md5 (Depends-on):
1992         Depend conditionally on crypto/md5.
1993         * modules/crypto/gc-rijndael (Depends-on):
1994         Depend conditionally on crypto/rijndael.
1995         * modules/crypto/gc-sha1 (Depends-on):
1996         Depend conditionally on crypto/sha1.
1997         * modules/crypto/gc-arcfour:
1998         * modules/crypto/gc-arctwo:
1999         * modules/crypto/gc-des:
2000         * modules/crypto/gc-hmac-md5:
2001         * modules/crypto/gc-hmac-sha1:
2002         * modules/crypto/gc-md2:
2003         * modules/crypto/gc-md4:
2004         * modules/crypto/gc-md5:
2005         * modules/crypto/gc-rijndael:
2006         * modules/crypto/gc-sha1:
2007         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2008         now that the conditional dependencies do the work for us.
2009
2010 2011-11-17  Jim Meyering  <meyering@redhat.com>
2011
2012         tests: factor st_ctime-comparison out of two headers
2013         * tests/test-utimens-common.h (ctime_compare): Define.
2014         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2015         * tests/test-lutimens.h (test_lutimens): Likewise.
2016         * tests/test-utimens.h (test_utimens): Likewise.
2017
2018         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2019         Invoke the test program via an init.sh-using wrapper.
2020         * tests/test-getcwd.sh: New file.
2021         * modules/getcwd-tests (Files): Add it.
2022         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2023
2024 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2025
2026         gitlog-to-changelog: support multi-author commits.
2027         The FSF cares about keeping track of all authors of patches to its
2028         projects, but Git doesn't provide obvious support for multi-author
2029         changesets. Consensus seems to be forming around the use of extra
2030         Signed-off-by inspired lines in the log message formatted as
2031         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2032         multi-author commits between version control systems.
2033         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2034         log message and output in standard ChangeLog multi-author format.
2035         Reported by Peter Rosin <peda@lysator.liu.se>
2036
2037 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2038             Bruno Haible  <bruno@clisp.org>
2039
2040         Fix some modules' file list.
2041         * modules/fstatat (Files): Add m4/lstat.m4.
2042         * modules/openat (Files): Likewise.
2043         * modules/unlinkat (Files): Likewise.
2044
2045 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2046
2047         maint.mk: fix tight-scope.mk generation in VPATH builds.
2048         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2049         reference with $(srcdir) so that the file is found correctly even
2050         when running `make syntax-check' in a VPATH build.
2051
2052 2011-11-13  Bruno Haible  <bruno@clisp.org>
2053             Jim Meyering  <meyering@redhat.com>
2054
2055         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2056         * tests/init.sh (compare): Remove "No differences encountered" or
2057         synonymous output from the 'diff' program.
2058
2059 2011-11-13  Bruno Haible  <bruno@clisp.org>
2060
2061         Makefile: Tweak indentation.
2062         * Makefile: Use tab as first character in every line that contains rule
2063         commands.
2064
2065 2011-11-13  Bruno Haible  <bruno@clisp.org>
2066
2067         Syntax check for copyright statements.
2068         * check-copyright: New file.
2069         * Makefile (sc_check_copyright): New rule.
2070
2071 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2072
2073         * build-aux/git-version-gen: Add --prefix to configure the tag
2074         match string.
2075
2076 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2077
2078         * build-aux/git-version-gen: Add --help and --version.
2079
2080 2011-11-12  Jim Meyering  <meyering@redhat.com>
2081
2082         revamp the other test-exclude?.sh scripts to use init.sh, too
2083         * tests/test-exclude1.sh: Use init.sh.
2084         * tests/test-exclude2.sh: Likewise.
2085         * tests/test-exclude3.sh: Likewise.
2086         * tests/test-exclude4.sh: Likewise.
2087         * tests/test-exclude5.sh: Likewise.
2088         * tests/test-exclude6.sh: Likewise.
2089         * tests/test-exclude7.sh: Likewise.
2090         * tests/test-exclude8.sh: Likewise.
2091         * modules/exclude-tests (Files): List init.sh.
2092
2093         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2094         These shell scripts ignored failure of the binary test-exclude,
2095         so making the latter return 77 didn't cause them to be skipped.
2096         * tests/test-exclude5.sh: Exit with test-exclude's error status
2097         when that program fails.  Revamp to use init.sh.
2098         * tests/test-exclude2.sh: Likewise.
2099
2100         test-exclude: fix a typo
2101         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2102
2103 2011-11-11  Bruno Haible  <bruno@clisp.org>
2104
2105         obstack: Fix compilation error on MSVC 9.
2106         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2107
2108 2011-11-11  Jim Meyering  <meyering@redhat.com>
2109
2110         test-exclude: skip tests rather than failing on deficient systems
2111         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2112         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2113         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2114         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2115
2116 2011-11-10  Bruno Haible  <bruno@clisp.org>
2117
2118         ptsname_r test: Avoid gcc warning on glibc systems.
2119         * tests/test-ptsname_r.c (null_ptr): New function.
2120         (test_errors): Use it.
2121
2122 2011-11-10  Bruno Haible  <bruno@clisp.org>
2123
2124         ptsname_r: Avoid compilation error on OSF/1 5.1.
2125         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2127         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2128         function is not declared or incompatibly declared.
2129         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2130         * modules/ptsname_r (Depends-on, configure.ac): Update.
2131         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2132
2133 2011-11-10  Bruno Haible  <bruno@clisp.org>
2134
2135         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2136         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2137         When cross-compiling, guess yes on all platforms except AIX.
2138         Reported by Ludovic Courtès <ludo@gnu.org>.
2139
2140 2011-11-09  Bruno Haible  <bruno@clisp.org>
2141
2142         ptsname_r tests: Fix bugs.
2143         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2144         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2145
2146 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2147
2148         fstatat: work with cross-compilation
2149         Problem reported by Ludovic Courtès in
2150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2151         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2152         "cross-compiling" and assume the bug is present.  Replace
2153         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2154         an inverted sense, to be more conservative about our assumptions.
2155         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2156
2157 2011-11-09  Bruno Haible  <bruno@clisp.org>
2158
2159         Improve MODULES.html output.
2160         * modules/mkfifoat (Description): Use the word "function".
2161         * modules/readlinkat (Description): Likewise.
2162         * modules/symlinkat (Description): Likewise.
2163
2164 2011-11-09  Eric Blake  <eblake@redhat.com>
2165
2166         ptsname_r-tests: new test module
2167         * modules/ptsname_r-tests: New module.
2168         * tests/test-ptsname_r.c: New file.
2169
2170         ptsname_r: new module
2171         * modules/ptsname_r: New module.
2172         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2173         * lib/ptsname.c (__ptsname_r): Split...
2174         * lib/ptsname_r.c: ...into new file.
2175         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2176         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2177         * modules/stdlib (Makefile.am): Substitute witnesses.
2178         * lib/stdlib.in.h (ptsname_r): Declare it.
2179         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2180         * MODULES.html.sh (Misc): Likewise.
2181         * modules/ptsname (Depends-on): Alter dependency.
2182         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2183
2184 2011-11-09  Jim Meyering  <meyering@redhat.com>
2185
2186         announce-gen: be more concise when there's only one URL+tarball
2187         * build-aux/announce-gen (get_tool_versions): When you distribute
2188         only one type of tarball, combine the first two "Here are..."
2189         sections and make the key-checking grammar independent of
2190         how many tarballs there are.
2191
2192 2011-11-09  Eric Blake  <eblake@redhat.com>
2193
2194         openpty: provide a stub on mingw
2195         * lib/pty.in.h (includes): Provide forward declarations.
2196         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2197
2198         raise: fix mingw handling of SIGPIPE
2199         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2200
2201 2011-11-08  Bruno Haible  <bruno@clisp.org>
2202
2203         More conditional dependencies.
2204         * modules/faccessat (Depends-on): Add conditions.
2205         * modules/fchmodat (Depends-on): Likewise.
2206         * modules/fchownat (Depends-on): Likewise.
2207         * modules/fstatat (Depends-on): Likewise.
2208         * modules/mkfifoat (Depends-on): Likewise.
2209         * modules/readlinkat (Depends-on): Likewise.
2210         * modules/symlinkat (Depends-on): Likewise.
2211         * modules/unlinkat (Depends-on): Likewise.
2212         * modules/utimensat (Depends-on): Likewise.
2213         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2214         * modules/linkat (Depends-on): Refine the conditions.
2215         * modules/renameat (Depends-on): Likewise.
2216
2217 2011-11-08  Bruno Haible  <bruno@clisp.org>
2218
2219         faccessat: Move AC_LIBOBJ invocation to module description.
2220         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2221         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2222         invocation from here...
2223         * modules/faccessat (configure.ac): ... to here. Invoke
2224         gl_PREREQ_FACCESSAT.
2225
2226 2011-11-08  Bruno Haible  <bruno@clisp.org>
2227
2228         faccessat: Simplify autoconf macro.
2229         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2230         gl_FUNC_EUIDACCESS.
2231
2232 2011-11-08  Bruno Haible  <bruno@clisp.org>
2233
2234         renameat: Fix dependencies.
2235         * modules/renameat (Depends-on): Add stdbool.
2236
2237 2011-11-08  Bruno Haible  <bruno@clisp.org>
2238
2239         mkfifoat: Fix module description.
2240         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
2241         not gl_UNISTD_MODULE_INDICATOR.
2242
2243 2011-11-08  Bruno Haible  <bruno@clisp.org>
2244
2245         fstatat: Remove unused dependency.
2246         * modules/fstatat (Depends-on): Remove fstat.
2247
2248 2011-11-08  Simon Josefsson  <simon@josefsson.org>
2249
2250         GNUmakefile: behave when Makefile is missing.
2251         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
2252
2253 2011-11-08  Bruno Haible  <bruno@clisp.org>
2254
2255         openat: Conditionalize dependencies.
2256         * lib/openat.c: Reduce the scope of some #includes.
2257         * modules/openat (Depends-on): Add conditions.
2258
2259 2011-11-07  Jim Meyering  <meyering@redhat.com>
2260
2261         maint.mk: extract GPG key ID without using a temporary file
2262         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
2263         without using a temporary file.  Based on a suggestion from Werner Koch
2264         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
2265
2266 2011-11-07  Eric Blake  <eblake@redhat.com>
2267
2268         grantpt: fix typo
2269         * lib/stdlib.in.h (grantpt): Check correct function.
2270
2271         maint.mk: silence new syntax check
2272         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
2273
2274 2011-11-06  Bruno Haible  <bruno@clisp.org>
2275
2276         Doc about floating-point and math API.
2277         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
2278         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
2279
2280 2011-11-06  Bruno Haible  <bruno@clisp.org>
2281
2282         stdalign tests: Skip the test when compiled by Sun C.
2283         * tests/test-stdalign.c (main): Skip the test on Sun C.
2284
2285 2011-11-06  Bruno Haible  <bruno@clisp.org>
2286
2287         ansi-c++-opt: Complete the 2011-06-05 change.
2288         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
2289         does not support namespaces, set the variable to "no", not to ":".
2290
2291 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2292
2293         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
2294
2295 2011-11-06  Bruno Haible  <bruno@clisp.org>
2296
2297         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
2298         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
2299         (minus_zerol) [HP-UX]: New macro.
2300         (unary_minus) [HP-UX]: New function.
2301         (copysignl) [HP-UX]: Use unary_minus function.
2302
2303 2011-11-06  Bruno Haible  <bruno@clisp.org>
2304
2305         ldexp, ldexpf, ldexpl: Enhance tests.
2306         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
2307         and tests/test-ldexpl.c.
2308         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
2309         LDEXP, MIN_EXP, MAX_EXP): New macros.
2310         Include test-ldexp.h.
2311         (main): Just call test_function.
2312         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
2313         infinity.h, nan.h.
2314         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2315         MAX_EXP): New macros.
2316         Include test-ldexp.h.
2317         (x, y): Remove variables.
2318         (main): Just call test_function.
2319         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
2320         infinity.h, nan.h.
2321         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2322         MAX_EXP): New macros.
2323         Include test-ldexp.h.
2324         (x, y): Remove variables.
2325         (main): Just call test_function.
2326         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
2327         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
2328         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2329         (Depends-on): Add isnand-nolibm, signbit, float.
2330         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
2331         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2332         (Depends-on): Add isnanf-nolibm, signbit, float.
2333
2334 2011-11-06  Bruno Haible  <bruno@clisp.org>
2335
2336         math tests: Cosmetics.
2337         * tests/test-math-c++.cc: Reorder declarations.
2338
2339 2011-11-05  Bruno Haible  <bruno@clisp.org>
2340
2341         fma*: Simplify test.
2342         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
2343         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
2344
2345         Tests for module 'fmal'.
2346         * modules/fmal-tests: New file.
2347         * tests/test-fmal1.c: New file.
2348         * tests/test-fmal2.c: New file.
2349
2350         New module 'fmal'.
2351         * lib/math.in.h (fmal): New declaration.
2352         * lib/fmal.c: New file.
2353         * m4/fmal.m4: New file.
2354         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
2355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
2356         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
2357         REPLACE_FMAL.
2358         * modules/fmal: New file.
2359         * doc/posix-functions/fmal.texi: Mention the new module and the various
2360         bugs.
2361
2362         Tests for module 'fmaf'.
2363         * modules/fmaf-tests: New file.
2364         * tests/test-fmaf1.c: New file.
2365         * tests/test-fmaf2.c: New file.
2366
2367         New module 'fmaf'.
2368         * lib/math.in.h (fmaf): New declaration.
2369         * lib/fmaf.c: New file.
2370         * m4/fmaf.m4: New file.
2371         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2372         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2373         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2374         REPLACE_FMAF.
2375         * modules/fmaf: New file.
2376         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2377         bugs.
2378
2379         Tests for module 'fma'.
2380         * modules/fma-tests: New file.
2381         * tests/test-fma1.c: New file.
2382         * tests/test-fma1.h: New file.
2383         * tests/test-fma2.c: New file.
2384         * tests/test-fma2.h: New file.
2385
2386         New module 'fma'.
2387         * lib/math.in.h (fma): New declaration.
2388         * lib/fma.c: New file.
2389         * m4/fma.m4: New file.
2390         * m4/fegetround.m4: New file.
2391         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2393         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2394         REPLACE_FMA.
2395         * modules/fma: New file.
2396         * doc/posix-functions/fma.texi: Mention the new module and the various
2397         bugs.
2398
2399         Extend gl_MATHFUNC.
2400         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2401         Support 'void' as argument type.
2402         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2403
2404 2011-11-05  Jim Meyering  <meyering@redhat.com>
2405
2406         maint.mk: also prohibit inclusion of dirent.h without use
2407         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2408
2409 2011-11-05  Bruno Haible  <bruno@clisp.org>
2410
2411         ldexpl tests: Avoid test failure on MSVC 9.
2412         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2413         value. Needed in order to enforce the conversion from a value greater
2414         than LDBL_MAX to Infinity.
2415
2416 2011-11-05  Bruno Haible  <bruno@clisp.org>
2417
2418         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2419         * modules/at-internal: New file, extracted from modules/openat.
2420         * modules/openat-h: New file.
2421         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2422         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2423         * modules/openat (Description): Add reference to POSIX function.
2424         (Files): Remove lib/openat.h, lib/openat-proc.c.
2425         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2426         intprops, unistd.
2427         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2428         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2429         gl_FCNTL_MODULE_INDICATOR.
2430         (Include): Remove unistd.h, openat.h.
2431         * modules/areadlinkat (Files): Add lib/at-func.c.
2432         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2433         openat-die, openat-h, save-cwd.
2434         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2435         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2436         openat-die, openat-h, save-cwd, unistd.
2437         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2438         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2439         openat-h, save-cwd. Remove fcntl-h, openat.
2440         * modules/fchmodat (Files): Remove lib/openat.h.
2441         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2442         openat, stdbool, unistd.
2443         * modules/fchownat (Files): Remove lib/openat.h.
2444         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2445         openat, stdbool, sys_stat.
2446         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2447         lib/openat-proc.c.
2448         (Depends-on): Add at-internal.
2449         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2450         * modules/fstatat (Files): Remove lib/openat.h.
2451         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2452         stdbool, unistd.
2453         * modules/fts (Depends-on): Add openat-h.
2454         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2455         openat.
2456         * modules/mkdirat (Files): Remove lib/openat.h.
2457         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2458         openat, stdbool, sys_stat.
2459         * modules/mkfifoat (Files): Add lib/at-func.c.
2460         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2461         openat-h, save-cwd. Remove fcntl-h, openat.
2462         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2463         * modules/readlinkat (Files): Add lib/at-func.c.
2464         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2465         openat-h, save-cwd. Remove fcntl-h, openat.
2466         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2467         openat.
2468         * modules/selinux-at (Files): Add lib/at-func.c.
2469         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2470         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2471         * modules/symlinkat (Files): Add lib/at-func.c.
2472         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2473         openat-h, save-cwd. Remove fcntl-h, openat.
2474         * modules/unlinkat (Files): Remove lib/openat.h.
2475         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2476         stdbool.
2477         * modules/utimensat (Files): Add lib/at-func.c.
2478         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2479         openat-die, openat-h, save-cwd.
2480         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2481         * modules/fdutimensat-tests (Depends-on): Add openat.
2482         * modules/fstatat-tests (Depends-on): Add openat-h.
2483         * modules/readlinkat-tests (Depends-on): Add openat.
2484         * modules/symlinkat-tests (Depends-on): Add openat.
2485
2486 2011-11-05  Bruno Haible  <bruno@clisp.org>
2487
2488         openat: Include <stdbool.h>.
2489         * lib/openat.c: Include <stdbool.h>.
2490
2491 2011-11-04  Bruno Haible  <bruno@clisp.org>
2492
2493         fchownat, renameat, unlinkat: Fix dependencies.
2494         * modules/fchownat (Depends-on): Add fstatat.
2495         * modules/renameat (Depends-on): Likewise.
2496         * modules/unlinkat (Depends-on): Likewise.
2497
2498 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2499
2500         openat: remove direct dependency on dirent
2501         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2502         and hasn't been needed ever since fdopendir was split into its own
2503         module on 2009-08-31.
2504         * modules/openat (Depends-on): Remove dirent.
2505
2506 2011-11-04  Bruno Haible  <bruno@clisp.org>
2507
2508         renameat: Optimize code size.
2509         * modules/renameat (configure.ac): Don't compile at-func2.c if
2510         REPLACE_RENAMEAT is 1.
2511
2512 2011-11-04  Bruno Haible  <bruno@clisp.org>
2513
2514         openat tests: Fix file list.
2515         * modules/openat-tests (Files): Add tests/test-open.h.
2516
2517 2011-11-04  Bruno Haible  <bruno@clisp.org>
2518
2519         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2520         * modules/fchmodat (Depends-on): Add openat-die.
2521         * modules/fchownat (Depends-on): Likewise.
2522         * modules/linkat (Depends-on): Likewise.
2523         * modules/renameat (Depends-on): Likewise.
2524         * modules/openat (Depends-on): Add dirent.
2525
2526 2011-11-04  Jim Meyering  <meyering@redhat.com>
2527
2528         at-func*.c: fix comments
2529         * lib/at-func2.c: Correct/improve first-line comment.
2530         * lib/at-func.c: Correct grammar in first-line comment.
2531
2532 2011-11-04  Bruno Haible  <bruno@clisp.org>
2533
2534         New module 'mkdirat', split off from module 'openat'.
2535         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2536         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2537         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2538         * modules/mkdirat: New file, extracted from modules/openat.
2539         * modules/openat (Files): Remove lib/mkdirat.c.
2540         (Depends-on): Remove mkdir.
2541         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2542         (Include): Remove <sys/stat.h>.
2543         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2544         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2545         tests/test-mkdir.h.
2546         (Depends-on): Remove ignore-value.
2547         (Makefile.am): Remove rules for test-mkdirat.
2548         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2549         of module 'openat'.
2550         * NEWS: Mention the change.
2551
2552 2011-11-04  Bruno Haible  <bruno@clisp.org>
2553
2554         closedir: Avoid warning on mingw.
2555         * lib/closedir.c: Include <unistd.h>.
2556
2557 2011-11-04  Bruno Haible  <bruno@clisp.org>
2558
2559         New module 'fstatat', split off from module 'openat'.
2560         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2561         defined.
2562         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2563         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2564         gl_FUNC_FSTATAT.
2565         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2566         * modules/fstatat: New file, extracted from modules/openat.
2567         * modules/openat (Files): Remove lib/fstatat.c.
2568         (Depends-on): Remove lstat.
2569         (configure.ac): Remove AC_LIBOBJ of fstatat.
2570         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2571         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2572         tests/test-lstat.h, tests/test-stat.h.
2573         (Depends-on): Remove getcwd-lgpl.
2574         (Makefile.am): Remove rules for test-fstatat.
2575         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2576         of module 'openat'.
2577         * NEWS: Mention the change.
2578         * modules/getcwd (Depends-on): Add fstatat.
2579         * modules/linkat (Depends-on): Likewise.
2580         * modules/mkfifoat-tests (Depends-on): Likewise.
2581         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2582
2583 2011-11-03  Bruno Haible  <bruno@clisp.org>
2584
2585         New module 'unlinkat', split off from module 'openat'.
2586         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2587         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2588         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2589         * modules/unlinkat: New file, extracted from modules/openat. Correct
2590         the dependency conditions.
2591         * modules/openat (Files): Remove lib/unlinkat.c.
2592         (Depends-on): Remove rmdir, unlink.
2593         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2594         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2595         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2596         tests/test-rmdir.h, tests/test-unlink.h.
2597         (Depends-on): Remove unlinkdir.
2598         (Makefile.am): Remove rules for test-unlinkat.
2599         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2600         of module 'openat'.
2601         * NEWS: Mention the change.
2602         * modules/linkat-tests (Depends-on): Add unlinkat.
2603         * modules/mkfifoat-tests (Depends-on): Likewise.
2604         * modules/readlinkat-tests (Depends-on): Likewise.
2605
2606 2011-11-02  Bruno Haible  <bruno@clisp.org>
2607
2608         New module 'fchmodat', split off from module 'openat'.
2609         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2610         defined.
2611         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2612         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2613         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2614         * modules/fchmodat: New file, extracted from modules/openat.
2615         * modules/openat (Files): Remove lib/fchmodat.c.
2616         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2617         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2618         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2619         (Makefile.am): Remove rules for test-fchmodat.
2620         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2621         of module 'openat'.
2622         * NEWS: Mention the change.
2623
2624 2011-11-02  Jim Meyering  <meyering@redhat.com>
2625
2626         putenv: indent #definition of "environ" to placate cppi
2627         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2628
2629         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2630         Git logs are often treated as immutable, because editing them
2631         changes the SHA1 checksums of all descendants.  Thus, errors in
2632         git logs tend to stay there forever.  However, when we generate
2633         a ChangeLog file -- typically for distribution -- from that git log,
2634         we can actually make corrections in the generated file.  The key
2635         lies in recording in machine-readable/applicable form the desired
2636         corrections.  See --help for description and an example.
2637         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2638         (usage): Describe it; alphabetize option descriptions.
2639         (main): Honor the new option, carefully.
2640
2641 2011-11-01  Jim Meyering  <meyering@redhat.com>
2642
2643         gitlog-to-changelog: avoid an infloop
2644         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2645         that ends up being empty.
2646
2647 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2648
2649         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2650         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2651         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2652         contains (possibly-quoted) backslashes.  This should avoid
2653         all-too-common shell bugs if COMPLICATED contains backslashes in
2654         the "wrong" places.  Reported by David Evans in
2655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2656         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2657         because we want ASCII ranges.  Is there some reason we don't use
2658         the C locale everywhere in this script?
2659         (func_module, top level): Avoid unwanted pathname expansion when
2660         $repo_url_prefix or $repo_url_suffix_repl contain shell
2661         metacharacters like '?' and '*'.
2662
2663 2011-11-01  Bruno Haible  <bruno@clisp.org>
2664
2665         fchownat: Improve description.
2666         * modules/fchownat (Description): Add link to function.
2667
2668 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2669
2670         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2671         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2673         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2674
2675 2011-11-01  Bruno Haible  <bruno@clisp.org>
2676
2677         alignof: Avoid collision with stdalign module.
2678         * lib/alignof.h (alignof): Remove macro.
2679         * NEWS: Mention the change.
2680         Reported by Paul Eggert.
2681
2682 2011-11-01  Bruno Haible  <bruno@clisp.org>
2683
2684         New module 'fchownat', split off from module 'openat'.
2685         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2686         defined.
2687         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2688         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2689         invoke gl_FUNC_FCHOWNAT.
2690         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2691         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2692         * modules/fchownat: New file, extracted from modules/openat.
2693         * modules/openat (Files): Remove lib/fchownat.c.
2694         (Depends-on): Remove lchown.
2695         (configure.ac): Remove AC_LIBOBJ of fchownat.
2696         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2697         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2698         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2699         (Depends-on): Remove mgetgroups, usleep, stat-time.
2700         (configure.ac): Remove test for getegid.
2701         (Makefile.am): Remove rules for test-fchownat.
2702         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2703         of module 'openat'.
2704         * NEWS: Mention the change.
2705
2706 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2707
2708         stdalign: port better to MSVC and to Sun C 5.11
2709         This fixes some of the problems reported by Bruno Haible in
2710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2711         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2712         shortcomings of MSVC and of Sun C 5.11.
2713         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2714         around __declspec arg.
2715         * modules/stdalign-tests (Files): Add tests/macros.h.
2716         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2717         Include macros.h, for ASSERT.
2718         (DECLARE_ALIGNED): Remove.
2719         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2720         to catch bug), and to 1 if not (simplifies the rest of the code).
2721         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2722         (CHECK_AUTO): Remove.
2723         (CHECK_ALIGNED): Check only the alignment of the static vars,
2724         since auto var alignment isn't supported by Sun C 5.11.
2725         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2726         ASSERT failures are easier to diagnose.
2727
2728 2011-10-31  Bruno Haible  <bruno@clisp.org>
2729
2730         doc about some IRIX 5.3 problems.
2731         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2732         on IRIX 5.3.
2733         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2734         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2735         5.3.
2736         * doc/posix-functions/grantpt.texi: Likewise.
2737         * doc/posix-functions/unlockpt.texi: Likewise.
2738         * doc/posix-functions/lgamma.texi: Likewise.
2739         * doc/posix-functions/nextafter.texi: Likewise.
2740         * doc/posix-functions/remainder.texi: Likewise.
2741         * doc/posix-functions/select.texi: Mention misplaced declaration on
2742         IRIX 5.3.
2743         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2744
2745 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2746
2747         gitlog-to-changelog: fix git-log invocation.
2748         git-log mishandles date strings before 1970-01-01 UTC, and there is
2749         no use to specify --since=1970-01-01 by default anyway.
2750         * build-aux/gitlog-to-changelog: By default, when no --since option
2751         was given, do not specify explicit --since option to git-log.
2752
2753 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2754
2755         gitlog-to-changelog: new option --append-dot.
2756         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2757         first non-blank line of each commit message terminated with a dot.
2758
2759 2011-10-30  Bruno Haible  <bruno@clisp.org>
2760
2761         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2762         * lib/ffsl.h: Include <config.h>.
2763         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2764
2765 2011-10-30  Jim Meyering  <meyering@redhat.com>
2766
2767         GNUmakefile: reenable "make syntax-check" for most projects
2768         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2769         build-aux variable", "syntax-check" would do nothing but succeed with
2770         the "No version control files detected..." diagnostic (unless you
2771         happened to override _build-aux via cfg.mk).
2772         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2773         to precede inclusion of maint.mk.  Otherwise, these variables would
2774         be used undefined in any project that does not override the default.
2775
2776 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2777
2778         gitlog-to-changelog: treat a message with only blank lines as empty.
2779         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2780         trailing blank lines before the code that issues a warning about an
2781         empty commit message.
2782
2783 2011-10-30  Jim Meyering  <meyering@redhat.com>
2784
2785         test-parse-datetime.c: avoid new DST-related false positive test failure
2786         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2787         based on the time/date we'll convert, not the current time.
2788         Otherwise, the moment we cross a DST boundary like today's in
2789         Europe, (CEST to CET), that offset ends up being one hour off.
2790
2791 2011-10-27  Bruno Haible  <bruno@clisp.org>
2792
2793         fstat: Tweak documentation.
2794         * modules/fstat (Description): More precise description.
2795
2796 2011-10-27  Bruno Haible  <bruno@clisp.org>
2797
2798         Update documentation regarding 'largefile' module.
2799         * doc/posix-functions/fstat.texi: Tweak wording.
2800         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2801         problems with huge directories and/or small ino_t types.
2802         * doc/posix-functions/readdir.texi: Likewise.
2803         * doc/posix-functions/rewinddir.texi: Likewise.
2804
2805 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2806
2807         maint.mk: don't maintain a second build-aux variable.
2808         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2809         depends on GNUmakefile, which already maintains a cfg.mk
2810         overridable $(_build-aux) for projects with a non-standard
2811         build-aux directory location, although without the $(srcdir)
2812         prefix.  Use that variable consistently instead of introducing a
2813         second one.  Adjust all call sites.
2814
2815 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2816
2817         Add stdalign module and use it in other modules.
2818         This is based on a previous proposal by Bruno Haible
2819         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2820
2821         stdalign: new module
2822         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2823         * modules/stdalign: New files.
2824         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2825         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2826
2827         stdalign-tests: new module
2828         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2829
2830         argp: use stdalign
2831         * lib/argp-parse.c: Include <stdalign.h>.
2832         (alignof): Remove.
2833         * modules/argp (Depends-on): Add stdalign.
2834
2835         crypto libraries: use stdalign
2836         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2837         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2838         Do not include <stdlib.h> twice, in md4.c.
2839         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2840         because we are accessing a pointer's bit-pattern, not a size.
2841         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2842         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2843         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2844         * modules/crypto/sha512: Likewise.
2845
2846         sys_socket: use stdalign, not alignof
2847         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2848         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2849
2850 2011-10-27  Bruno Haible  <bruno@clisp.org>
2851
2852         raise test: Avoid a test failure on Linux/MIPS.
2853         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2854         because 99 is a valid signal on Linux/MIPS.
2855
2856 2011-10-27  Bruno Haible  <bruno@clisp.org>
2857
2858         nonblocking tests: Fix test failure on Linux/MIPS.
2859         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2860         Set to 270000.
2861
2862 2011-10-27  Bruno Haible  <bruno@clisp.org>
2863
2864         utimensat: Work around problem on Linux/hppa.
2865         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2866         values.
2867         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2868
2869 2011-10-25  Jim Meyering  <meyering@redhat.com>
2870
2871         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2872         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2873         after symbols like NULL, size_t, etc.
2874         Reported by Alfred M. Szmidt.
2875
2876         maint.mk: exempt ENODATA from a syntax-check rule
2877         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2878         from the sc_prohibit_always-defined_macros syntax-check rule.
2879         Add a comment.  See this for more details:
2880         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2881
2882 2011-10-23  Jim Meyering  <meyering@redhat.com>
2883
2884         fts: close parent dir FD before returning from post-traversal fts_read
2885         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2886         unlink A, even though an FD open on A remained.  This is suboptimal
2887         (holding a file descriptor open longer than needed), but otherwise not
2888         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2889         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2890         that represents a real problem: it causes the removal of A to fail
2891         with e.g., "rm: cannot remove `A': Device or resource busy"
2892
2893         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2894         directory file descriptors.  After completing the final, FTS_DP,
2895         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2896         cache, but then proceeded to add a new FD to it via the subsequent
2897         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2898         final file descriptor would be closed only via fts_close's call to
2899         fd_ring_clear.  Now, it is usually closed earlier, via the final
2900         FTS_DP-returning fts_read call.
2901         * lib/fts.c (restore_initial_cwd): New function, converted from
2902         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2903         Update callers.
2904         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2905         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2906
2907 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2908             Bruno Haible  <bruno@clisp.org>
2909             Jim Meyering  <jim@meyering.net>
2910
2911         readme-release: improve safety of release prep instructions.
2912         * README-release: Don't git pull all branches when only master
2913         is needed for the release process.
2914         Run make maintainer-clean before changing trees and merging.
2915         Don't try to run ./configure right after git pull in case files
2916         that influence the bootstrap process have changed, move the
2917         ./configure step to after running ./bootstrap.
2918         Don't bootstrap "one last time"... it's the first time!
2919
2920 2011-10-22  Bruno Haible  <bruno@clisp.org>
2921
2922         errno, strerror-override: Support for MSVC 10.
2923         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2924         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2925         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2926         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2927         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2928         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2929         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2930         Assign values compatible with MSVC 10.
2931         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2932         New macros.
2933         (GNULIB_defined_EWINSOCK): New macro.
2934         * lib/strerror-override.c (strerror_override): Update accordingly.
2935         * lib/strerror-override.h: Likewise.
2936         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2937         longer equal to the corresponding errno value.
2938         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2939
2940 2011-10-22  Bruno Haible  <bruno@clisp.org>
2941
2942         perror: Recognize when test program crashes.
2943         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2944         strerror, set gl_cv_func_perror_works to no.
2945         Reported by Daniel Richard G. <skunk@iskunk.org>.
2946
2947         perror: Fix indentation.
2948         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2949
2950 2011-10-22  Bruno Haible  <bruno@clisp.org>
2951
2952         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2953         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2954         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2955         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2956         functions, not as a macro.
2957         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2958         macros.
2959         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2960         absence of macro.
2961         Suggested by Eric Blake.
2962         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2963
2964 2011-10-21  Bruno Haible  <bruno@clisp.org>
2965
2966         relocatable-prog-wrapper: Don't leave object files behind.
2967         * build-aux/install-reloc: Re-synchronize list of .o files to be
2968         removed with list of compilation units.
2969
2970 2011-10-20  Bruno Haible  <bruno@clisp.org>
2971
2972         openpty, posix_openpt: Remove code duplication.
2973         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2974         * lib/openpty.c: Include <stdlib.h>.
2975         (openpty): Use posix_openpt on all platforms except IRIX.
2976         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2977
2978 2011-10-20  Bruno Haible  <bruno@clisp.org>
2979
2980         unlockpt: Detect invalid argument.
2981         * lib/unlockpt.c: Include <fcntl.h>.
2982         (unlockpt): Check whether fd is valid, using fcntl().
2983         * modules/unlockpt (Depends-on): Add fcntl-h.
2984
2985 2011-10-20  Bruno Haible  <bruno@clisp.org>
2986
2987         openpty: Avoid compilation error on AIX 6.1.
2988         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2989
2990 2011-10-20  Bruno Haible  <bruno@clisp.org>
2991
2992         posix_openpt: Support for OpenBSD.
2993         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2994         (posix_openpt) [OpenBSD]: New code.
2995         * lib/grantpt.c: Include <fcntl.h>.
2996         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2997         * modules/grantpt (Depends-on): Add fcntl-h.
2998
2999 2011-10-20  Bruno Haible  <bruno@clisp.org>
3000
3001         posix_openpt test: Coding style.
3002         * tests/test-posix_openpt.c: Use GNU coding style.
3003
3004 2011-10-20  Bruno Haible  <bruno@clisp.org>
3005
3006         grantpt: Support --avoid=pt_chown.
3007         * modules/grantpt (Files): Add lib/pty-private.h.
3008
3009 2011-10-20  Bruno Haible  <bruno@clisp.org>
3010
3011         posix_openpt: Fix autoconf macro.
3012         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3013         unneeded check for _getpty.
3014
3015 2011-10-20  Bruno Haible  <bruno@clisp.org>
3016
3017         openpty: Update comments.
3018         * lib/openpty.c: Add comments about Minix.
3019
3020 2011-10-19  Eric Blake  <eblake@redhat.com>
3021
3022         openpty: relax license
3023         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3024
3025         pt_chown: use configmake to simplify build
3026         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3027
3028         ptsname and others: relax license
3029         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3030         * modules/unlockpt (License): Likewise.
3031         * modules/pt_chown (License): Likewise.
3032         * modules/ptsname (License): Likewise.
3033         * modules/ttyname_r (License): Likewise.
3034
3035 2011-10-19  Jim Meyering  <meyering@redhat.com>
3036
3037         posix_openpt: remove spurious #endif
3038         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3039
3040 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3041
3042         maint.mk: Respect $(build_aux) in web-manual rule.
3043         * top/maint.mk (web-manual): Find gen-announce script in user's
3044         $(build_aux) directory instead of hard-coding 'build-aux'.
3045
3046 2011-10-19  Bruno Haible  <bruno@clisp.org>
3047
3048         posix_openpt: Fix compilation error.
3049         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3050         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3051         Mention the openpty module as an alternative.
3052
3053 2011-10-19  Bruno Haible  <bruno@clisp.org>
3054
3055         Support for old NeXTstep 3.3 frexp().
3056         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3057         execution time of the test to 5 seconds.
3058         Reported by Daniel Richard G. <skunk@iskunk.org>.
3059
3060 2011-10-19  Bruno Haible  <bruno@clisp.org>
3061
3062         Support for old NeXTstep 3.3 sed.
3063         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3064         part, use /.../, not \|...|. Escape periods in the header file name.
3065         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3066         Reported by Daniel Richard G. <skunk@iskunk.org>.
3067
3068 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3069
3070         Support for old NeXTstep 3.3 gcc.
3071         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3072         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3073         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3074         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3075         * lib/regex.h (_Restrict_arr_): Likewise.
3076         * lib/regex_internal.h (re_token_t): Likewise.
3077         * lib/regexec.c (check_node_accept_bytes): Likewise.
3078         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3079
3080 2011-10-18  Eric Blake  <eblake@redhat.com>
3081
3082         posix_openpt: new module
3083         * modules/posix_openpt: New module.
3084         * m4/posix_openpt.m4: New file.
3085         * lib/posix_openpt.c: Likewise.
3086         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3087         (gl_STDLIB_H_DEFAULTS): Set defaults.
3088         * modules/stdlib (Makefile.am): Substitute macros.
3089         * lib/stdlib.in.h (posix_openpt): Declare.
3090         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3091         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3092         * modules/posix_openpt-tests: New test module.
3093         * tests/test-posix_openpt.c: New test.
3094
3095 2011-10-15  Bruno Haible  <bruno@clisp.org>
3096
3097         xstrtoll: Fix compilation failure.
3098         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3099         from lib/strtol.c.
3100         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3101         some platforms.
3102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3103
3104 2011-10-15  Bruno Haible  <bruno@clisp.org>
3105
3106         vasnprintf: Optimize bit search operation.
3107         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3109         gl_DOUBLE_EXPONENT_LOCATION.
3110         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3111         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3112         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3113         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3114         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3115         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3116         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3117         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3118         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3119
3120 2011-10-15  Bruno Haible  <bruno@clisp.org>
3121
3122         vasnprintf: Fix comments.
3123         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3124
3125 2011-10-14  Bruno Haible  <bruno@clisp.org>
3126
3127         Tests for module 'integer_length_ll'.
3128         * modules/integer_length_ll-tests: New file.
3129         * tests/test-integer_length_ll.c: New file.
3130
3131         New module 'integer_length_ll'.
3132         * lib/integer_length_ll.c: New file.
3133         * modules/integer_length_ll: New file.
3134
3135 2011-10-14  Bruno Haible  <bruno@clisp.org>
3136
3137         Tests for module 'integer_length_l'.
3138         * modules/integer_length_l-tests: New file.
3139         * tests/test-integer_length_l.c: New file.
3140
3141         New module 'integer_length_l'.
3142         * lib/integer_length_l.c: New file.
3143         * modules/integer_length_l: New file.
3144
3145 2011-10-14  Bruno Haible  <bruno@clisp.org>
3146
3147         Tests for module 'integer_length'.
3148         * modules/integer_length-tests: New file.
3149         * tests/test-integer_length.c: New file.
3150
3151         New module 'integer_length'.
3152         * lib/integer_length.h: New file.
3153         * lib/integer_length.c: New file.
3154         * modules/integer_length: New file.
3155
3156 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3157
3158         popen: Fix dependency conditions.
3159         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3160
3161 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3162
3163         perror: Fix autoconf test.
3164         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3165         <stdlib.h> and <string.h>.
3166
3167 2011-10-14  Bruno Haible  <bruno@clisp.org>
3168
3169         ffsl: Optimize on 64-bit platforms.
3170         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3171         unrolling.
3172
3173 2011-10-13  Bruno Haible  <bruno@clisp.org>
3174
3175         ffsl: Optimize on 32-bit platforms.
3176         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3177         use ffs() without a loop.
3178
3179         ffsl, ffsll: Optimize for GCC.
3180         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3181         * lib/ffsl.c (GCC_BUILTIN): New macro.
3182         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3183
3184 2011-10-13  Bruno Haible  <bruno@clisp.org>
3185
3186         ffs, bcopy, memset: Support symbol renaming via config.h.
3187         * lib/ffs.c: Include <config.h>.
3188         * lib/bcopy.c: Likewise.
3189         * lib/memset.c: Likewise.
3190
3191 2011-10-10  Bruno Haible  <bruno@clisp.org>
3192
3193         atanl: Simplify for platforms where 'long double' == 'double'.
3194         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3195         alternative implementation.
3196         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3197         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3198         * modules/atanl (Depends-on): Add atan. Update conditions.
3199
3200 2011-10-10  Bruno Haible  <bruno@clisp.org>
3201
3202         acosl: Simplify for platforms where 'long double' == 'double'.
3203         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3204         alternative implementation.
3205         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3206         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3207         * modules/acosl (Depends-on): Add acos. Update conditions.
3208
3209 2011-10-10  Bruno Haible  <bruno@clisp.org>
3210
3211         asinl: Simplify for platforms where 'long double' == 'double'.
3212         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3213         alternative implementation.
3214         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3215         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3216         * modules/asinl (Depends-on): Add asin. Update conditions.
3217
3218 2011-10-10  Bruno Haible  <bruno@clisp.org>
3219
3220         tanl: Simplify for platforms where 'long double' == 'double'.
3221         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3222         implementation.
3223         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3224         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3225         * modules/tanl (Depends-on): Add tan. Update conditions.
3226         (configure.ac): Don't compile trigl.c if
3227         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3228
3229 2011-10-10  Bruno Haible  <bruno@clisp.org>
3230
3231         cosl: Simplify for platforms where 'long double' == 'double'.
3232         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3233         implementation.
3234         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3235         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3236         * modules/cosl (Depends-on): Add cos. Update conditions.
3237         (configure.ac): Don't compile sincosl.c and trigl.c if
3238         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3239
3240 2011-10-10  Bruno Haible  <bruno@clisp.org>
3241
3242         sinl: Simplify for platforms where 'long double' == 'double'.
3243         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3244         implementation.
3245         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3246         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3247         * modules/sinl (Depends-on): Add sin. Update conditions.
3248         (configure.ac): Don't compile sincosl.c and trigl.c if
3249         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3250
3251 2011-10-10  Bruno Haible  <bruno@clisp.org>
3252
3253         logl: Simplify for platforms where 'long double' == 'double'.
3254         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3255         implementation.
3256         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3257         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3258         * modules/logl (Depends-on): Add log. Update conditions.
3259
3260 2011-10-10  Bruno Haible  <bruno@clisp.org>
3261
3262         expl: Simplify for platforms where 'long double' == 'double'.
3263         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3264         implementation.
3265         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3266         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3267         * modules/expl (Depends-on): Add exp. Update conditions.
3268
3269 2011-10-10  Bruno Haible  <bruno@clisp.org>
3270
3271         sqrtl: Simplify for platforms where 'long double' == 'double'.
3272         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3273         alternative implementation.
3274         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3275         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3276         * modules/sqrtl (Depends-on): Update conditions.
3277
3278 2011-10-10  Bruno Haible  <bruno@clisp.org>
3279
3280         ldexpl: Simplify for platforms where 'long double' == 'double'.
3281         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3282         alternative implementation.
3283         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3284         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3285         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
3286
3287 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
3288
3289         ffsll: set correct witness
3290         * modules/ffsll (configure.ac): Fix typo.
3291
3292 2011-10-10  Bruno Haible  <bruno@clisp.org>
3293
3294         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
3295         * lib/printf-frexpl.c: Include <config.h>.
3296         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3297         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
3298         second time.
3299         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
3300         gl_LONG_DOUBLE_VS_DOUBLE.
3301         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
3302         conditions.
3303
3304 2011-10-10  Bruno Haible  <bruno@clisp.org>
3305
3306         frexpl: Simplify for platforms where 'long double' == 'double'.
3307         * lib/frexpl.c: Include <config.h>.
3308         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3309         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3310         time.
3311         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3312         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3313         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
3314         * modules/frexpl (Depends-on): Add frexp. Update conditions.
3315         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
3316         conditions.
3317
3318 2011-10-10  Jim Meyering  <meyering@redhat.com>
3319
3320         test-renameat: don't leave behind a temporary file
3321         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
3322           ERROR: files left in build directory after distclean:
3323           ./gltests/test-renameat.too
3324           make[1]: *** [distcleancheck] Error 1
3325         Reported by Tom G. Christensen.
3326
3327 2011-10-09  Bruno Haible  <bruno@clisp.org>
3328
3329         rint: Determine RINT_LIBM correctly on AIX 7.
3330         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
3331         directly, not only through a function pointer. Also accept an optional
3332         4th argument with extra code.
3333         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
3334         rintf() call by gcc when optimizing.
3335
3336         mathfunc.m4: Refactor.
3337         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
3338         m4 variable.
3339
3340 2011-10-09  Bruno Haible  <bruno@clisp.org>
3341
3342         rintl: Simplify for platforms where 'long double' == 'double'.
3343         * lib/rintl.c: Include <config.h>.
3344         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3345         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3346         time.
3347         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3348         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3349         * modules/rintl (Depends-on): Add rint. Update conditions.
3350
3351 2011-10-09  Bruno Haible  <bruno@clisp.org>
3352
3353         roundl: Simplify for platforms where 'long double' == 'double'.
3354         * lib/roundl.c: Include <config.h>.
3355         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3356         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3357         time.
3358         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3359         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3360         * modules/roundl (Depends-on): Add round. Update conditions.
3361
3362 2011-10-09  Bruno Haible  <bruno@clisp.org>
3363
3364         truncl: Simplify for platforms where 'long double' == 'double'.
3365         * lib/truncl.c: Include <config.h>.
3366         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3367         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3368         time.
3369         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3370         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3371         * modules/truncl (Depends-on): Add trunc. Update conditions.
3372
3373 2011-10-09  Bruno Haible  <bruno@clisp.org>
3374
3375         ceill: Simplify for platforms where 'long double' == 'double'.
3376         * lib/ceill.c: Include <config.h>.
3377         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3378         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3379         time.
3380         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3381         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3382         * modules/ceill (Depends-on): Add ceil. Update conditions.
3383
3384 2011-10-09  Bruno Haible  <bruno@clisp.org>
3385
3386         floorl: Simplify for platforms where 'long double' == 'double'.
3387         * lib/floorl.c: Include <config.h>.
3388         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3389         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3390         time.
3391         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3392         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3393         * modules/floorl (Depends-on): Add floor. Update conditions.
3394
3395 2011-10-09  Bruno Haible  <bruno@clisp.org>
3396
3397         rint: Fix ordering constraints.
3398         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3399         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3400         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3401
3402 2011-10-09  Bruno Haible  <bruno@clisp.org>
3403
3404         copysignl: Simplify for platforms where 'long double' == 'double'.
3405         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3406         alternative.
3407         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3408         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3409         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3410
3411 2011-10-09  Bruno Haible  <bruno@clisp.org>
3412
3413         Tests for module 'rintl'.
3414         * modules/rintl-tests: New file.
3415         * tests/test-rintl.c: New file.
3416
3417         New module 'rintl'.
3418         * lib/math.in.h (rintl): New declaration.
3419         * lib/rintl.c: New file.
3420         * m4/rintl.m4: New file.
3421         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3423         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3424         * modules/rintl: New file.
3425         * tests/test-math-c++.cc: Check the declaration of rintl.
3426         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3427         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3428         * doc/posix-functions/rintl.texi: Mention the new module.
3429
3430 2011-10-09  Bruno Haible  <bruno@clisp.org>
3431
3432         Tests for module 'rintf'.
3433         * modules/rintf-tests: New file.
3434         * tests/test-rintf.c: New file.
3435
3436         New module 'rintf'.
3437         * lib/math.in.h (rintf): New declaration.
3438         * lib/rintf.c: New file.
3439         * m4/rintf.m4: New file.
3440         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3442         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3443         * modules/rintf: New file.
3444         * tests/test-math-c++.cc: Check the declaration of rintf.
3445         * doc/posix-functions/rintf.texi: Mention the new module.
3446
3447 2011-10-09  Bruno Haible  <bruno@clisp.org>
3448
3449         rint: Support for MSVC.
3450         * lib/math.in.h (rint): New declaration.
3451         * lib/rint.c: New file.
3452         * m4/rint.m4: New file.
3453         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3455         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3456         * modules/rint (Description): Fix.
3457         (Files): Add lib/rint.c, m4/rint.m4.
3458         (Depends-on): Add math.
3459         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3460         gl_MATH_MODULE_INDICATOR.
3461         * tests/test-math-c++.cc: Check the declaration of rint.
3462         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3463         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3464         * doc/posix-functions/rint.texi: Mention the replacement provided by
3465         the module.
3466
3467         rint tests: More tests.
3468         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3469         minus-zero.h, infinity.h, nan.h.
3470         (main): Skip the test if the current rounding mode is not standard. Add
3471         tests for negative numbers, minus zero, infinity, NaN.
3472         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3473         tests/nan.h.
3474         (Depends-on): Add isnand-nolibm.
3475
3476 2011-10-09  Bruno Haible  <bruno@clisp.org>
3477
3478         Tests for module 'copysignl'.
3479         * modules/copysignl-tests: New file.
3480         * tests/test-copysignl.c: New file.
3481
3482         New module 'copysignl'.
3483         * lib/math.in.h (copysignl): New declaration.
3484         * lib/copysignl.c: New file.
3485         * m4/copysignl.m4: New file.
3486         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3488         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3489         HAVE_COPYSIGNL.
3490         * modules/copysignl: New file.
3491         * tests/test-math-c++.cc: Check the declaration of copysignl.
3492         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3493         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3494         * doc/posix-functions/copysignl.texi: Mention the new module.
3495
3496 2011-10-09  Bruno Haible  <bruno@clisp.org>
3497
3498         Tests for module 'copysignf'.
3499         * modules/copysignf-tests: New file.
3500         * tests/test-copysignf.c: New file.
3501
3502         New module 'copysignf'.
3503         * lib/math.in.h (copysignf): New declaration.
3504         * lib/copysignf.c: New file.
3505         * m4/copysignf.m4: New file.
3506         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3508         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3509         HAVE_COPYSIGNF.
3510         * modules/copysignf: New file.
3511         * tests/test-math-c++.cc: Check the declaration of copysignf.
3512         * doc/posix-functions/copysignf.texi: Mention the new module.
3513
3514 2011-10-09  Bruno Haible  <bruno@clisp.org>
3515
3516         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3517         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3518         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3519         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3520         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3521         gl_SIGNAL_H_DEFAULTS.
3522
3523 2011-10-09  Bruno Haible  <bruno@clisp.org>
3524
3525         poll: Make macro safer.
3526         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3527         ac_cv_header_poll_h is not set.
3528
3529 2011-10-09  Bruno Haible  <bruno@clisp.org>
3530
3531         copysign: Provide replacement.
3532         * lib/math.in.h (copysign): New declaration.
3533         * lib/copysign.c: New file.
3534         * m4/copysign.m4: New file.
3535         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3537         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3538         HAVE_COPYSIGN.
3539         * modules/copysign (Description): Clarify.
3540         (Files): Add lib/copysign.c, m4/copysign.m4.
3541         (Depends-on): Add math, signbit.
3542         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3543         gl_MATH_MODULE_INDICATOR.
3544         * tests/test-math-c++.cc: Check the declaration of copysign.
3545         * doc/posix-functions/copysign.texi: Mention the effects of the module
3546         on Minix and MSVC.
3547
3548 2011-10-09  Bruno Haible  <bruno@clisp.org>
3549
3550         isinf: Ensure macro on AIX 5.1.
3551         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3552         macro.
3553         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3554
3555 2011-10-09  Bruno Haible  <bruno@clisp.org>
3556
3557         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3558         * modules/snprintf-posix-tests (configure.ac): Require
3559         gl_LONG_DOUBLE_VS_DOUBLE.
3560         * modules/sprintf-posix-tests (configure.ac): Likewise.
3561         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3562         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3563         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3564         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3565         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3566         tests on platforms where 'long double' is the same as 'double'.
3567         * tests/test-sprintf-posix.h (test_function): Likewise.
3568         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3569         * tests/test-vasprintf-posix.c (test_function): Likewise.
3570
3571         *printf: Fix for platforms where 'long double' == 'double'.
3572         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3573         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3574         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3575         * modules/fprintf-posix (Files): Likewise.
3576         * modules/obstack-printf-posix (Files): Likewise.
3577         * modules/snprintf-posix (Files): Likewise.
3578         * modules/sprintf-posix (Files): Likewise.
3579         * modules/vasnprintf (Files): Likewise.
3580         * modules/vasnprintf-posix (Files): Likewise.
3581         * modules/vasprintf-posix (Files): Likewise.
3582         * modules/vdprintf-posix (Files): Likewise.
3583         * modules/vfprintf-posix (Files): Likewise.
3584         * modules/vsnprintf-posix (Files): Likewise.
3585         * modules/vsprintf-posix (Files): Likewise.
3586         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3587         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3588         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3589         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3590         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3591         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3592         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3593
3594         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3595         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3596         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3597         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3598         'long double'.
3599         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3600
3601         isinf: Fix for platforms where 'long double' == 'double'.
3602         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3603         Don't blindly assume 80-bit 'long double'.
3604
3605         isfinite: Fix for platforms where 'long double' == 'double'.
3606         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3607         Don't blindly assume 80-bit 'long double'.
3608
3609         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3610         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3611         * modules/isfinite-tests (configure.ac): Require
3612         gl_LONG_DOUBLE_VS_DOUBLE.
3613         * modules/isinf-tests (configure.ac): Likewise.
3614         * modules/isnan-tests (configure.ac): Likewise.
3615         * modules/isnanl-tests (configure.ac): Likewise.
3616         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3617         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3618         tests on platforms where 'long double' is the same as 'double'.
3619         * tests/test-isinf.c (test_isinfl): Likewise.
3620         * tests/test-isnan.c (test_long_double): Likewise.
3621         * tests/test-isnanl.h (main): Likewise.
3622
3623 2011-10-08  Bruno Haible  <bruno@clisp.org>
3624
3625         Tests for module 'tanhf'.
3626         * modules/tanhf-tests: New file.
3627         * tests/test-tanhf.c: New file.
3628
3629         New module 'tanhf'.
3630         * lib/math.in.h (tanhf): New declaration.
3631         * lib/tanhf.c: New file.
3632         * m4/tanhf.m4: New file.
3633         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3635         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3636         * modules/tanhf: New file.
3637         * tests/test-math-c++.cc: Check the declaration of tanhf.
3638         * doc/posix-functions/tanhf.texi: Mention the new module.
3639
3640         tanh: Use a .m4 file.
3641         * m4/tanh.m4: New file.
3642         * modules/tanh (Files): Add it.
3643         (configure.ac): Just invoke gl_FUNC_TANH.
3644
3645 2011-10-08  Bruno Haible  <bruno@clisp.org>
3646
3647         Tests for module 'coshf'.
3648         * modules/coshf-tests: New file.
3649         * tests/test-coshf.c: New file.
3650
3651         New module 'coshf'.
3652         * lib/math.in.h (coshf): New declaration.
3653         * lib/coshf.c: New file.
3654         * m4/coshf.m4: New file.
3655         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3657         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3658         * modules/coshf: New file.
3659         * tests/test-math-c++.cc: Check the declaration of coshf.
3660         * doc/posix-functions/coshf.texi: Mention the new module.
3661
3662         cosh: Use a .m4 file.
3663         * m4/cosh.m4: New file.
3664         * modules/cosh (Files): Add it.
3665         (configure.ac): Just invoke gl_FUNC_COSH.
3666
3667 2011-10-08  Bruno Haible  <bruno@clisp.org>
3668
3669         Tests for module 'sinhf'.
3670         * modules/sinhf-tests: New file.
3671         * tests/test-sinhf.c: New file.
3672
3673         New module 'sinhf'.
3674         * lib/math.in.h (sinhf): New declaration.
3675         * lib/sinhf.c: New file.
3676         * m4/sinhf.m4: New file.
3677         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3679         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3680         * modules/sinhf: New file.
3681         * tests/test-math-c++.cc: Check the declaration of sinhf.
3682         * doc/posix-functions/sinhf.texi: Mention the new module.
3683
3684         sinh: Use a .m4 file.
3685         * m4/sinh.m4: New file.
3686         * modules/sinh (Files): Add it.
3687         (configure.ac): Just invoke gl_FUNC_SINH.
3688
3689 2011-10-08  Bruno Haible  <bruno@clisp.org>
3690
3691         Tests for module 'atan2f'.
3692         * modules/atan2f-tests: New file.
3693         * tests/test-atan2f.c: New file.
3694
3695         New module 'atan2f'.
3696         * lib/math.in.h (atan2f): New declaration.
3697         * lib/atan2f.c: New file.
3698         * m4/atan2f.m4: New file.
3699         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3701         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3702         * modules/atan2f: New file.
3703         * tests/test-math-c++.cc: Check the declaration of atan2f.
3704         * doc/posix-functions/atan2f.texi: Mention the new module.
3705
3706         atan2: Use a .m4 file.
3707         * m4/atan2.m4: New file.
3708         * modules/atan2 (Files): Add it.
3709         (configure.ac): Just invoke gl_FUNC_ATAN2.
3710
3711 2011-10-08  Bruno Haible  <bruno@clisp.org>
3712
3713         Tests for module 'atanf'.
3714         * modules/atanf-tests: New file.
3715         * tests/test-atanf.c: New file.
3716
3717         New module 'atanf'.
3718         * lib/math.in.h (atanf): New declaration.
3719         * lib/atanf.c: New file.
3720         * m4/atanf.m4: New file.
3721         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3723         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3724         * modules/atanf: New file.
3725         * tests/test-math-c++.cc: Check the declaration of atanf.
3726         * doc/posix-functions/atanf.texi: Mention the new module.
3727
3728         atan: Use a .m4 file.
3729         * m4/atan.m4: New file.
3730         * modules/atan (Files): Add it.
3731         (configure.ac): Just invoke gl_FUNC_ATAN.
3732
3733 2011-10-08  Bruno Haible  <bruno@clisp.org>
3734
3735         Tests for module 'acosf'.
3736         * modules/acosf-tests: New file.
3737         * tests/test-acosf.c: New file.
3738
3739         New module 'acosf'.
3740         * lib/math.in.h (acosf): New declaration.
3741         * lib/acosf.c: New file.
3742         * m4/acosf.m4: New file.
3743         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3745         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3746         * modules/acosf: New file.
3747         * tests/test-math-c++.cc: Check the declaration of acosf.
3748         * doc/posix-functions/acosf.texi: Mention the new module.
3749
3750         acos: Use a .m4 file.
3751         * m4/acos.m4: New file.
3752         * modules/acos (Files): Add it.
3753         (configure.ac): Just invoke gl_FUNC_ACOS.
3754
3755 2011-10-08  Bruno Haible  <bruno@clisp.org>
3756
3757         Tests for module 'asinf'.
3758         * modules/asinf-tests: New file.
3759         * tests/test-asinf.c: New file.
3760
3761         New module 'asinf'.
3762         * lib/math.in.h (asinf): New declaration.
3763         * lib/asinf.c: New file.
3764         * m4/asinf.m4: New file.
3765         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3767         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3768         * modules/asinf: New file.
3769         * tests/test-math-c++.cc: Check the declaration of asinf.
3770         * doc/posix-functions/asinf.texi: Mention the new module.
3771
3772         asin: Use a .m4 file.
3773         * m4/asin.m4: New file.
3774         * modules/asin (Files): Add it.
3775         (configure.ac): Just invoke gl_FUNC_ASIN.
3776
3777 2011-10-08  Bruno Haible  <bruno@clisp.org>
3778
3779         Tests for module 'tanf'.
3780         * modules/tanf-tests: New file.
3781         * tests/test-tanf.c: New file.
3782
3783         New module 'tanf'.
3784         * lib/math.in.h (tanf): New declaration.
3785         * lib/tanf.c: New file.
3786         * m4/tanf.m4: New file.
3787         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3789         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3790         * modules/tanf: New file.
3791         * tests/test-math-c++.cc: Check the declaration of tanf.
3792         * doc/posix-functions/tanf.texi: Mention the new module.
3793
3794         tan: Use a .m4 file.
3795         * m4/tan.m4: New file.
3796         * modules/tan (Files): Add it.
3797         (configure.ac): Just invoke gl_FUNC_TAN.
3798
3799 2011-10-08  Bruno Haible  <bruno@clisp.org>
3800
3801         Tests for module 'cosf'.
3802         * modules/cosf-tests: New file.
3803         * tests/test-cosf.c: New file.
3804
3805         New module 'cosf'.
3806         * lib/math.in.h (cosf): New declaration.
3807         * lib/cosf.c: New file.
3808         * m4/cosf.m4: New file.
3809         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3811         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3812         * modules/cosf: New file.
3813         * tests/test-math-c++.cc: Check the declaration of cosf.
3814         * doc/posix-functions/cosf.texi: Mention the new module.
3815
3816         cos: Use a .m4 file.
3817         * m4/cos.m4: New file.
3818         * modules/cos (Files): Add it.
3819         (configure.ac): Just invoke gl_FUNC_COS.
3820
3821 2011-10-08  Bruno Haible  <bruno@clisp.org>
3822
3823         Tests for module 'sinf'.
3824         * modules/sinf-tests: New file.
3825         * tests/test-sinf.c: New file.
3826
3827         New module 'sinf'.
3828         * lib/math.in.h (sinf): New declaration.
3829         * lib/sinf.c: New file.
3830         * m4/sinf.m4: New file.
3831         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3833         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3834         * modules/sinf: New file.
3835         * tests/test-math-c++.cc: Check the declaration of sinf.
3836         * doc/posix-functions/sinf.texi: Mention the new module.
3837
3838         sin: Use a .m4 file.
3839         * m4/sin.m4: New file.
3840         * modules/sin (Files): Add it.
3841         (configure.ac): Just invoke gl_FUNC_SIN.
3842
3843 2011-10-08  Bruno Haible  <bruno@clisp.org>
3844
3845         Tests for module 'powf'.
3846         * modules/powf-tests: New file.
3847         * tests/test-powf.c: New file.
3848
3849         New module 'powf'.
3850         * lib/math.in.h (powf): New declaration.
3851         * lib/powf.c: New file.
3852         * m4/powf.m4: New file.
3853         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3855         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3856         * modules/powf: New file.
3857         * tests/test-math-c++.cc: Check the declaration of powf.
3858         * doc/posix-functions/powf.texi: Mention the new module.
3859
3860         pow: Use a .m4 file.
3861         * m4/pow.m4: New file.
3862         * modules/pow (Files): Add it.
3863         (configure.ac): Just invoke gl_FUNC_POW.
3864
3865 2011-10-08  Bruno Haible  <bruno@clisp.org>
3866
3867         Tests for module 'log10f'.
3868         * modules/log10f-tests: New file.
3869         * tests/test-log10f.c: New file.
3870
3871         New module 'log10f'.
3872         * lib/math.in.h (log10f): New declaration.
3873         * lib/log10f.c: New file.
3874         * m4/log10f.m4: New file.
3875         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3877         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3878         * modules/log10f: New file.
3879         * tests/test-math-c++.cc: Check the declaration of log10f.
3880         * doc/posix-functions/log10f.texi: Mention the new module.
3881
3882         log10: Use a .m4 file.
3883         * m4/log10.m4: New file.
3884         * modules/log10 (Files): Add it.
3885         (configure.ac): Just invoke gl_FUNC_LOG10.
3886
3887 2011-10-08  Bruno Haible  <bruno@clisp.org>
3888
3889         Tests for module 'logf'.
3890         * modules/logf-tests: New file.
3891         * tests/test-logf.c: New file.
3892
3893         New module 'logf'.
3894         * lib/math.in.h (logf): New declaration.
3895         * lib/logf.c: New file.
3896         * m4/logf.m4: New file.
3897         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3899         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3900         * modules/logf: New file.
3901         * tests/test-math-c++.cc: Check the declaration of logf.
3902         * doc/posix-functions/logf.texi: Mention the new module.
3903
3904         log: Use a .m4 file.
3905         * m4/log.m4: New file.
3906         * modules/log (Files): Add it.
3907         (configure.ac): Just invoke gl_FUNC_LOG.
3908
3909 2011-10-08  Bruno Haible  <bruno@clisp.org>
3910
3911         Tests for module 'expf'.
3912         * modules/expf-tests: New file.
3913         * tests/test-expf.c: New file.
3914
3915         New module 'expf'.
3916         * lib/math.in.h (expf): New declaration.
3917         * lib/expf.c: New file.
3918         * m4/expf.m4: New file.
3919         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3921         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3922         * modules/expf: New file.
3923         * tests/test-math-c++.cc: Check the declaration of expf.
3924         * doc/posix-functions/expf.texi: Mention the new module.
3925
3926         exp: Use a .m4 file.
3927         * m4/exp.m4: New file.
3928         * modules/exp (Files): Add it.
3929         (configure.ac): Just invoke gl_FUNC_EXP.
3930
3931 2011-10-08  Bruno Haible  <bruno@clisp.org>
3932
3933         Tests for module 'sqrtf'.
3934         * modules/sqrtf-tests: New file.
3935         * tests/test-sqrtf.c: New file.
3936
3937         New module 'sqrtf'.
3938         * lib/math.in.h (sqrtf): New declaration.
3939         * lib/sqrtf.c: New file.
3940         * m4/sqrtf.m4: New file.
3941         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3943         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3944         * modules/sqrtf: New file.
3945         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3946         * doc/posix-functions/sqrtf.texi: Mention the new module.
3947
3948 2011-10-08  Bruno Haible  <bruno@clisp.org>
3949
3950         Tests: Avoid link failures w.r.t. libintl.
3951         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3952         $(LIBINTL).
3953         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3954         $(LIBINTL).
3955         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3956         against $(LIBINTL).
3957         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3958         $(LIBINTL).
3959         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3960         $(LIBINTL).
3961         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3962
3963 2011-10-08  Bruno Haible  <bruno@clisp.org>
3964
3965         pow tests: Defeat compiler optimizations.
3966         * tests/test-pow.c (main): Assign arguments to x and y before use.
3967
3968 2011-10-08  Bruno Haible  <bruno@clisp.org>
3969
3970         gnulib-tool: Improve last commit.
3971         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3972         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3973         ignore dependencies that are not among the modules list.
3974
3975 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3976
3977         gnulib-tool: don't follow dependencies to avoided modules
3978         This fixes a bug that is related to the previous one.
3979         * gnulib-tool (func_modules_transitive_closure)
3980         (func_emit_autoconf_snippets):
3981         Check whether a dependency is acceptable before using it.
3982         (--extract-dependencies): Report an error if --avoid is also used,
3983         since this combination of options is not yet supported.
3984
3985         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3986         Problem reported by Peter Dyballa in
3987         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3988         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3989         when echoing "$condition".
3990
3991 2011-10-07  Bruno Haible  <bruno@clisp.org>
3992
3993         Fix documentation about math functions on MacOS X.
3994         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3995         MacOS X 10.5.
3996         * doc/posix-functions/fdim.texi: Likewise.
3997         * doc/posix-functions/feclearexcept.texi: Likewise.
3998         * doc/posix-functions/fegetenv.texi: Likewise.
3999         * doc/posix-functions/fegetround.texi: Likewise.
4000         * doc/posix-functions/feholdexcept.texi: Likewise.
4001         * doc/posix-functions/feraiseexcept.texi: Likewise.
4002         * doc/posix-functions/fesetenv.texi: Likewise.
4003         * doc/posix-functions/fesetround.texi: Likewise.
4004         * doc/posix-functions/fetestexcept.texi: Likewise.
4005         * doc/posix-functions/feupdateenv.texi: Likewise.
4006         * doc/posix-functions/fmax.texi: Likewise.
4007         * doc/posix-functions/fmin.texi: Likewise.
4008         * doc/posix-functions/log2.texi: Likewise.
4009         * doc/posix-functions/modff.texi: Likewise.
4010         * doc/posix-functions/nan.texi: Likewise.
4011         * doc/posix-functions/nanf.texi: Likewise.
4012         * doc/posix-functions/nextafterf.texi: Likewise.
4013         * doc/posix-functions/remquo.texi: Likewise.
4014
4015 2011-10-07  Bruno Haible  <bruno@clisp.org>
4016
4017         modff: Drop assumption about library that defines modff.
4018         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4019         AC_CHECK_FUNCS.
4020         * modules/modff (Files): Add m4/mathfunc.m4.
4021
4022 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4023
4024         raise tests: Avoid a GCC warning.
4025         * tests/test-raise.c (handler): Use _Noreturn.
4026
4027 2011-10-07  Bruno Haible  <bruno@clisp.org>
4028
4029         Tests for module 'ldexpf'.
4030         * modules/ldexpf-tests: New file.
4031         * tests/test-ldexpf.c: New file.
4032
4033         New module 'ldexpf'.
4034         * lib/math.in.h (ldexpf): New declaration.
4035         * lib/ldexpf.c: New file.
4036         * m4/ldexpf.m4: New file.
4037         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4039         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4040         * modules/ldexpf: New file.
4041         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4042         * doc/posix-functions/ldexpf.texi: Mention the new module.
4043
4044 2011-10-06  Bruno Haible  <bruno@clisp.org>
4045
4046         frexpf: Work around problems on IRIX and mingw.
4047         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4049         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4050         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4051         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4052         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4053         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4054
4055 2011-10-06  Bruno Haible  <bruno@clisp.org>
4056
4057         fabsf: Drop assumption about library that defines fabsf.
4058         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4059         AC_CHECK_FUNCS.
4060         * modules/fabsf (Files): Add m4/mathfunc.m4.
4061
4062 2011-10-06  Bruno Haible  <bruno@clisp.org>
4063
4064         frexpf: Drop assumption about library that defines frexpf.
4065         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4066         'int *', 'float *', 'long double *', 'float', 'long double'.
4067         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4068         AC_CHECK_FUNCS.
4069         * modules/frexpf (Files): Add m4/mathfunc.m4.
4070
4071         Tests for module 'frexpf'.
4072         * modules/frexpf-tests: New file.
4073         * tests/test-frexpf.c: New file.
4074
4075         New module 'frexpf'.
4076         * lib/math.in.h (frexpf): New declaration.
4077         * lib/frexpf.c: New file.
4078         * m4/frexpf.m4: New file.
4079         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4081         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4082         * modules/frexpf: New file.
4083         * tests/test-math-c++.cc: Check the declaration of frexpf.
4084         * doc/posix-functions/frexpf.texi: Mention the new module.
4085
4086 2011-10-06  Bruno Haible  <bruno@clisp.org>
4087
4088         math: Sort function declarations of math.in.h.
4089         * lib/math.in.h (frexp, logb): Move declarations.
4090
4091 2011-10-05  Bruno Haible  <bruno@clisp.org>
4092
4093         Tests for module 'modff'.
4094         * modules/modff-tests: New file.
4095         * tests/test-modff.c: New file.
4096
4097         New module 'modff'.
4098         * lib/math.in.h (modff): New declaration.
4099         * lib/modff.c: New file.
4100         * m4/modff.m4: New file.
4101         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4103         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4104         * modules/modff: New file.
4105         * tests/test-math-c++.cc: Check the declaration of modff.
4106         * doc/posix-functions/modff.texi: Mention the new module.
4107
4108         modf tests: Make test sharper.
4109         * tests/test-modf.c (main): Strengthen upper bound.
4110
4111         modf: Use a .m4 file.
4112         * m4/modf.m4: New file.
4113         * modules/modf (Files): Add it.
4114         (configure.ac): Just invoke gl_FUNC_MODF.
4115
4116 2011-10-05  Bruno Haible  <bruno@clisp.org>
4117
4118         Tests for module 'fmodf'.
4119         * modules/fmodf-tests: New file.
4120         * tests/test-fmodf.c: New file.
4121
4122         New module 'fmodf'.
4123         * lib/math.in.h (fmodf): New declaration.
4124         * lib/fmodf.c: New file.
4125         * m4/fmodf.m4: New file.
4126         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4128         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4129         * modules/fmodf: New file.
4130         * tests/test-math-c++.cc: Check the declaration of fmodf.
4131         * doc/posix-functions/fmodf.texi: Mention the new module.
4132
4133         fmod: Use a .m4 file.
4134         * m4/fmod.m4: New file.
4135         * modules/fmod (Files): Add it.
4136         (configure.ac): Just invoke gl_FUNC_FMOD.
4137
4138 2011-10-05  Bruno Haible  <bruno@clisp.org>
4139
4140         Tests for module 'fabsf'.
4141         * modules/fabsf-tests: New file.
4142         * tests/test-fabsf.c: New file.
4143
4144         New module 'fabsf'.
4145         * lib/math.in.h (fabsf): New declaration.
4146         * lib/fabsf.c: New file.
4147         * m4/fabsf.m4: New file.
4148         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4150         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4151         * modules/fabsf: New file.
4152         * tests/test-math-c++.cc: Check the declaration of fabsf.
4153         * doc/posix-functions/fabsf.texi: Mention the new module.
4154
4155         fabs: Use a .m4 file.
4156         * m4/fabs.m4: New file.
4157         * modules/fabs (Files): Add it.
4158         (configure.ac): Just invoke gl_FUNC_FABS.
4159
4160 2011-10-05  Jim Meyering  <meyering@redhat.com>
4161
4162         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4163         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4164         ls -lL regression introduced in coreutils-8.12, it does so at the
4165         cost of an additional stat call in the common case.  Besides, now
4166         that the kernel change that prompted commit 95f7c57f has been reverted
4167         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4168         we have no use for commit 95f7c57f, "file-has-acl: use
4169         acl_extended_file_nofollow if available".
4170
4171 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4172
4173         file-has-acl: revert unintended change in behavior of ls -L
4174         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4175         derived from...
4176         (file_has_acl): ...code here.  Call it.
4177         This problem was introduced with 2011-07-22 commit 95f7c57f,
4178         "file-has-acl: use acl_extended_file_nofollow if available".
4179         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4180
4181 2011-10-03  Bruno Haible  <bruno@clisp.org>
4182
4183         poll: Avoid link errors on MSVC.
4184         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4185         * modules/poll (Depends-on): Add sockets.
4186         (Link): New section.
4187         * NEWS: Mention the change.
4188         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4189         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4190         $(LIB_POLL) instead of $(LIBSOCKET).
4191
4192 2011-10-03  Bruno Haible  <bruno@clisp.org>
4193
4194         sys_select tests: Fix link error on MSVC 9.
4195         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4196         with $(LIB_SELECT) instead of $(LIBSOCKET).
4197
4198 2011-10-03  Bruno Haible  <bruno@clisp.org>
4199
4200         sys_select: Fix compilation error on mingw.
4201         * lib/sys_select.in.h: On native Windows, include <io.h>.
4202
4203 2011-10-03  Bruno Haible  <bruno@clisp.org>
4204
4205         wmemset: Support for MSVC.
4206         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4207         whether wmemset() exists.
4208
4209 2011-10-03  Bruno Haible  <bruno@clisp.org>
4210
4211         wmemmove: Support for MSVC.
4212         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4213         whether wmemmove() exists.
4214
4215 2011-10-03  Bruno Haible  <bruno@clisp.org>
4216
4217         wmemcpy: Support for MSVC.
4218         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4219         whether wmemcpy() exists.
4220
4221 2011-10-03  Bruno Haible  <bruno@clisp.org>
4222
4223         wmemcmp: Support for MSVC.
4224         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4225         whether wmemcmp() exists.
4226
4227 2011-10-03  Bruno Haible  <bruno@clisp.org>
4228
4229         wmemchr: Support for MSVC.
4230         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4231         whether wmemchr() exists.
4232
4233 2011-10-03  Bruno Haible  <bruno@clisp.org>
4234
4235         glthread/*, strsignal: Support for MSVC.
4236         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
4237         including <winsock.h> on MSVC 9.
4238         * lib/glthread/lock.h: Likewise.
4239         * lib/glthread/thread.h: Likewise.
4240         * lib/glthread/tls.h: Likewise.
4241         * lib/glthread/yield.h: Likewise.
4242         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
4243         if HAVE_UNISTD_H is false.
4244         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
4245
4246 2011-10-03  Bruno Haible  <bruno@clisp.org>
4247
4248         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
4249         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
4250         Set to 100000.
4251
4252 2011-10-03  Bruno Haible  <bruno@clisp.org>
4253
4254         acl: Fix specification.
4255         * lib/file-has-acl.c (file_has_acl): Fix specification.
4256
4257 2011-10-03  Bruno Haible  <bruno@clisp.org>
4258
4259         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
4260         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
4261         (compute_curr_prefix, shared_library_fullname,
4262         find_shared_library_fullname, get_shared_library_fullname, relocate):
4263         Use it together with PIC && INSTALLDIR.
4264         Reported by <jojelino@gmail.com>
4265         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
4266
4267 2011-10-01  Jim Meyering  <meyering@redhat.com>
4268
4269         maint.mk: adjust a release-related rule not to require use of gzip
4270         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
4271         Instead, check each file in $(DIST_ARCHIVES).  This is better for
4272         projects that build only .tar.xz files.  Also fix an erroneous test.
4273
4274         test-linkat: don't leave behind a temporary file
4275         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
4276         Otherwise, coreutils' "make distcheck" would fail with this:
4277           Only in /c/cu/tests/torture/coreutils/test/\
4278             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
4279           make[2]: *** [my-distcheck] Error 1
4280
4281         float, math: add omitted file
4282         * lib/itold.c: Add file, required for yesterday's float change.
4283
4284 2011-10-01  Bruno Haible  <bruno@clisp.org>
4285
4286         isinf: Fix for OpenBSD/x86.
4287         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
4288         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
4289         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
4290
4291 2011-10-01  Bruno Haible  <bruno@clisp.org>
4292
4293         isfinite: Fix syntax error in configure test.
4294         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
4295
4296         isfinite: Fix typo.
4297         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
4298         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
4299
4300 2011-10-01  Bruno Haible  <bruno@clisp.org>
4301
4302         nonblocking tests: Fix test failure on Linux/IA-64.
4303         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
4304         Set to 270000.
4305
4306 2011-10-01  Bruno Haible  <bruno@clisp.org>
4307
4308         mkfifoat tests: Fix a test failure on mingw.
4309         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
4310         with error ENOSYS.
4311
4312 2011-09-30  Bruno Haible  <bruno@clisp.org>
4313
4314         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
4315         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
4316         'long double'. Set REPLACE_ITOLD.
4317         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
4318         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
4319         * lib/itold.c: New file.
4320         * modules/float (Files): Add lib/itold.c.
4321         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
4322         (Makefile.am): Substitute REPLACE_ITOLD.
4323         * modules/math (Depends-on): Add float.
4324         (Makefile.am): Substitute REPLACE_ITOLD.
4325         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
4326         * doc/posix-headers/math.texi: Likewise.
4327         * doc/posix-functions/logl.texi: Likewise.
4328
4329 2011-09-30  Bruno Haible  <bruno@clisp.org>
4330
4331         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
4332         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
4333         Set to 140000.
4334
4335 2011-09-30  Bruno Haible  <bruno@clisp.org>
4336
4337         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
4338         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
4339         invocation, say "right after AC_PROG_CC_STDC", not "right after
4340         AC_PROG_CC".
4341         Reported by Gary V. Vaughan <gary@gnu.org>.
4342
4343 2011-09-30  Bruno Haible  <bruno@clisp.org>
4344
4345         Centralize C99 requirement.
4346         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
4347         * modules/stdarg (configure.ac-early): Invoke it instead of
4348         AC_PROG_CC_STDC.
4349         Reported by Gary V. Vaughan and Paul Eggert.
4350
4351 2011-09-29  Bruno Haible  <bruno@clisp.org>
4352
4353         float: Fix LDBL_MAX value on Linux/PowerPC.
4354         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
4355         on Linux/PowerPC.
4356         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
4357         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
4358         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
4359         platform.
4360         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
4361
4362 2011-09-29  Bruno Haible  <bruno@clisp.org>
4363
4364         doc: Improve doc about gl_EARLY.
4365         * doc/gnulib-tool.texi (Initial import): Mention where to place an
4366         AC_PROG_CC_STDC invocation.
4367         Reported by Gary V. Vaughan <gary@gnu.org>.
4368
4369 2011-09-28  Bruno Haible  <bruno@clisp.org>
4370
4371         fgetc, fputc, fread, fwrite tests: Fix link error.
4372         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4373         on non-MSVC platforms.
4374         * tests/test-fputc.c (main): Likewise.
4375         * tests/test-fread.c (main): Likewise.
4376         * tests/test-fwrite.c (main): Likewise.
4377         Reported by Jim Meyering.
4378
4379 2011-09-27  Bruno Haible  <bruno@clisp.org>
4380
4381         fputc, fwrite tests: Avoid test failure on MSVC.
4382         * tests/test-fgetc.c: Include msvc-inval.h.
4383         (main): Invoke gl_msvc_inval_ensure_handler.
4384         * tests/test-fputc.c: Include msvc-inval.h.
4385         (main): Invoke gl_msvc_inval_ensure_handler.
4386         * tests/test-fread.c: Include msvc-inval.h.
4387         (main): Invoke gl_msvc_inval_ensure_handler.
4388         * tests/test-fwrite.c: Include msvc-inval.h.
4389         (main): Invoke gl_msvc_inval_ensure_handler.
4390         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4391         * modules/fputc-tests (Depends-on): Likewise.
4392         * modules/fread-tests (Depends-on): Likewise.
4393         * modules/fwrite-tests (Depends-on): Likewise.
4394
4395 2011-09-27  Bruno Haible  <bruno@clisp.org>
4396
4397         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4398         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4399         (raise): Remove older, duplicated declaration.
4400         (_gl_raise_SIGPIPE): New declaration.
4401         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4402         (rpl_raise): Remove function.
4403         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4404         a gnulib-defined SIGPIPE here.
4405         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4406         'sigprocmask' has detected missing signal-blocking and the module
4407         'sigpipe' is enabled.
4408         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4409
4410 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4411
4412         base64-tests: avoid memory leak
4413         * tests/test-base64.c (main): Plug memory leak.
4414
4415         base32: new module
4416         * modules/base32: New module.
4417         * lib/base32.c: New file.
4418         * lib/base32.h: Likewise.
4419         * m4/base32.m4: Likewise.
4420         * modules/base32-tests: New test.
4421         * tests/test-base32.c: Likewise.
4422         * MODULES.html.sh (Misc): Mention it.
4423
4424 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4425
4426         gnulib: use more-standard license notice wording
4427         * gnulib-tool (func_emit_copyright_notice): When emitting a
4428         license notice into a file, use the standard wording as suggested
4429         by the current information for GNU maintainers, except say "file"
4430         rather than "program".  The new wording gives a license version
4431         number, which addresses an issue raised by Glenn Morris in
4432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4433         * m4/onceonly.m4: Use that same wording here, too.
4434
4435         dup2: minor simplification
4436         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4437         as lib/dup2.c no longer uses 'inline'.
4438
4439 2011-09-25  Bruno Haible  <bruno@clisp.org>
4440
4441         strings: Fix compilation error on MSVC.
4442         * lib/strings.in.h: Include <stddef.h> for size_t.
4443
4444 2011-09-25  Bruno Haible  <bruno@clisp.org>
4445
4446         fflush et al.: Document limitation on MSVC.
4447         * doc/posix-functions/fflush.texi: Document possible crash in handling
4448         mode other than DEFAULT_HANDLING.
4449         * doc/posix-functions/fgetc.texi: Likewise.
4450         * doc/posix-functions/fputc.texi: Likewise.
4451         * doc/posix-functions/fread.texi: Likewise.
4452         * doc/posix-functions/fwrite.texi: Likewise.
4453
4454 2011-09-25  Bruno Haible  <bruno@clisp.org>
4455
4456         msvc-inval: Allow three invalid parameter handling modes.
4457         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4458         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4459         macros.
4460         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4461         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4462         SANE_LIBRARY_HANDLING as a no-op.
4463         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4464         <stdlib.h>.
4465         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4466
4467 2011-09-25  Bruno Haible  <bruno@clisp.org>
4468
4469         msvc-inval: Make handler multithread-safe.
4470         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4471         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4472         declarations.
4473         (gl_msvc_inval_current): New declaration.
4474         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4475         Operate on the structure returned by gl_msvc_inval_current().
4476         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4477         Remove varaiables.
4478         (tls_index, tls_initialized): New variables.
4479         (not_per_thread): New variable.
4480         (gl_msvc_inval_current): New function.
4481         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4482         returned by gl_msvc_inval_current().
4483
4484 2011-09-25  Bruno Haible  <bruno@clisp.org>
4485
4486         msvc-inval: Install handler globally.
4487         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4488         !_MSC_VER.
4489         (gl_msvc_invalid_parameter_handler): Remove declaration.
4490         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4491         declarations.
4492         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4493         Install the handler globally, don't uninstall it.
4494         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4495         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4496         currently valid, call RaiseException instead.
4497         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4498         for !_MSC_VER.
4499
4500 2011-09-25  Bruno Haible  <bruno@clisp.org>
4501
4502         strerror_r-posix: Fix for MSVC 9.
4503         * lib/strerror_r.c (local_snprintf): New function.
4504         (snprintf): Define to local_snprintf, not to _snprintf.
4505
4506 2011-09-25  Bruno Haible  <bruno@clisp.org>
4507
4508         ftruncate: Support for MSVC 9.
4509         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4510         (chsize_nothrow): New function.
4511         (chsize): Redefine as a macro.
4512         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4513         * modules/ftruncate (Depends-on): Add msvc-inval.
4514
4515 2011-09-25  Bruno Haible  <bruno@clisp.org>
4516
4517         New module 'fstat'.
4518         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4519         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4520         * lib/fchdir.c (rpl_fstat): Remove function.
4521         * m4/fstat.m4: New file.
4522         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4523         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4524         declared.
4525         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4526         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4527         * modules/fstat: New file.
4528         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4529         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4530         is set.
4531         * doc/posix-functions/fstat.texi: Mention the new module and the
4532         problem on MSVC.
4533         * NEWS: Mention the change.
4534         * modules/acl (Depends-on): Add fstat.
4535         * modules/chdir-safer (Depends-on): Likewise.
4536         * modules/chown (Depends-on): Likewise.
4537         * modules/copy-file (Depends-on): Likewise.
4538         * modules/fchdir (Depends-on): Likewise.
4539         * modules/fdopendir (Depends-on): Likewise.
4540         * modules/fopen (Depends-on): Likewise.
4541         * modules/fts (Depends-on): Likewise.
4542         * modules/getcwd (Depends-on): Likewise.
4543         * modules/isapipe (Depends-on): Likewise.
4544         * modules/linkat (Depends-on): Likewise.
4545         * modules/lseek (Depends-on): Likewise.
4546         * modules/mkdir-p (Depends-on): Likewise.
4547         * modules/open (Depends-on): Likewise.
4548         * modules/openat (Depends-on): Likewise.
4549         * modules/read-file (Depends-on): Likewise.
4550         * modules/renameat (Depends-on): Likewise.
4551         * modules/utimens (Depends-on): Likewise.
4552
4553 2011-09-25  Bruno Haible  <bruno@clisp.org>
4554
4555         linkat: Fix compilation on MSVC 9.
4556         * lib/linkat.c: Don't include <stdint.h>.
4557
4558 2011-09-25  Bruno Haible  <bruno@clisp.org>
4559
4560         fclose: Support for MSVC 9.
4561         * lib/fclose.c: Include msvc-inval.h.
4562         (fclose_nothrow): New function.
4563         (rpl_fclose): Use it.
4564         * modules/fclose (Depends-on): Add msvc-inval.
4565         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4566
4567 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4568
4569         dup2: minor simplifications
4570         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4571         that it's a performance win.
4572         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4573         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4574
4575 2011-09-24  Jim Meyering  <meyering@redhat.com>
4576
4577         test-futimens: avoid a warning from gcc -Wshadow
4578         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4579         to avoid a shadowing warning.
4580
4581 2011-09-24  Bruno Haible  <bruno@clisp.org>
4582
4583         fdopen: Support for MSVC 9.
4584         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4585         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4586         * lib/fdopen.c: Include msvc-inval.h.
4587         (fdopen_nothrow): New function.
4588         (rpl_fdopen): Use it.
4589         * modules/fdopen (Depends-on): Add msvc-inval.
4590         * modules/fclose-tests (Depends-on): Add fdopen.
4591         * modules/fflush-tests (Depends-on): Likewise.
4592         * modules/fgetc-tests (Depends-on): Likewise.
4593         * modules/fputc-tests (Depends-on): Likewise.
4594         * modules/fread-tests (Depends-on): Likewise.
4595         * modules/freopen-tests (Depends-on): Likewise.
4596         * modules/fseeko-tests (Depends-on): Likewise.
4597         * modules/ftello-tests (Depends-on): Likewise.
4598         * modules/fwrite-tests  (Depends-on): Likewise.
4599         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4600
4601 2011-09-24  Bruno Haible  <bruno@clisp.org>
4602
4603         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4604         * modules/fgetc-tests (Depends-on): Add unistd.
4605         * modules/fputc-tests (Depends-on): Likewise.
4606         * modules/fread-tests (Depends-on): Likewise.
4607         * modules/fwrite-tests (Depends-on): Likewise.
4608
4609 2011-09-24  Bruno Haible  <bruno@clisp.org>
4610
4611         dup: Simplify autoconf test.
4612         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4613         on gl_MSVC_INVAL's result.
4614
4615 2011-09-24  Bruno Haible  <bruno@clisp.org>
4616
4617         Tests for function fwrite().
4618         * modules/fwrite-tests: New file.
4619         * tests/test-fwrite.c: New file.
4620         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4621
4622         Tests for function fread().
4623         * modules/fread-tests: New file.
4624         * tests/test-fread.c: New file.
4625         * modules/stdio-tests (Depends-on): Add fread-tests.
4626
4627         Activate fputc tests.
4628         * modules/stdio-tests (Depends-on): Add fputc-tests.
4629
4630         Enhance fgetc, fputc tests.
4631         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4632         * tests/test-fputc.c (main): Likewise.
4633
4634 2011-09-24  Bruno Haible  <bruno@clisp.org>
4635
4636         write: Support for MSVC 9.
4637         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4638         is not 1.
4639         * lib/write.c (write_nothrow): New function.
4640         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4641         not 1. Use write_nothrow.
4642         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4643         invalid parameter handler.
4644         (gl_PREREQ_WRITE): New macro.
4645         * modules/write (Depends-on): Add msvc-inval.
4646         (configure.ac): Invoke gl_PREREQ_WRITE.
4647         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4648
4649 2011-09-24  Bruno Haible  <bruno@clisp.org>
4650
4651         read: Fix last commit.
4652         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4653
4654 2011-09-24  Bruno Haible  <bruno@clisp.org>
4655
4656         dup2: Fix last commit.
4657         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4658         (rpl_dup2): Disable fcntl workaround on native Windows.
4659
4660         sigprocmask: Make code safer.
4661         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4662         section that changes macro definitions for this compilation unit.
4663
4664 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4665
4666         dup2: clarify by coalescing Windows-specific material
4667         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4668         "msvc-nothrow.h"' to the Windows-specific section, so that the
4669         Emacs source need not contain these include files.
4670         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4671         Windows-specific fixes into this function rather than just the
4672         nothrow fix, as this shortens and clarifies the code.  Always
4673         define as a function, as that's a bit cleaner than having it be
4674         sometimes a function and sometimes a macro.
4675         (rpl_dup2): Move the Windows-specific stuff out of here and into
4676         ms_windows_dup2.  Don't protect the Haiku-related fix with
4677         "#if !defined __linux__", as the same code also works around
4678         a Linux kernel bug, and it doesn't add any system calls on any
4679         platform.  Add comment about FreeBSD 6.1.
4680
4681         sigprocmask: move #include directive
4682         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4683         Windows-specific section, so that the Emacs source need not
4684         contain msvc-inval.h.
4685
4686 2011-09-23  Bruno Haible  <bruno@clisp.org>
4687
4688         read: Support for MSVC 9.
4689         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4690         is not 1.
4691         * lib/read.c (read_nothrow): New function.
4692         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4693         read_nothrow.
4694         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4695         invalid parameter handler.
4696         (gl_PREREQ_READ): New macro.
4697         * modules/read (Depends-on): Add msvc-inval.
4698         (configure.ac): Invoke gl_PREREQ_READ.
4699         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4700
4701 2011-09-23  Bruno Haible  <bruno@clisp.org>
4702
4703         close: Support for MSVC 9.
4704         * lib/close.c: Include <errno.h>, msvc-inval.h.
4705         (close_nothrow): New function.
4706         (rpl_close): Use it.
4707         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4708         invalid parameter handler.
4709         * modules/close (Depends-on): Add msvc-inval.
4710         * modules/dup2-tests (Depends-on): Add close.
4711         * modules/dup3-tests (Depends-on): Likewise.
4712         * modules/fcntl-tests (Depends-on): Likewise.
4713         * modules/spawn-pipe-tests (Depends-on): Likewise.
4714         * modules/unistd-safer-tests (Depends-on): Likewise.
4715         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4716
4717 2011-09-23  Bruno Haible  <bruno@clisp.org>
4718
4719         New module 'dup'.
4720         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4721         Allow replacement.
4722         * lib/dup.c: New file.
4723         * lib/fchdir.c (rpl_dup): Remove function.
4724         * m4/dup.m4: New file.
4725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4726         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4727         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4728         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4729         * modules/dup: New file.
4730         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4731         'dup' module is in use.
4732         * modules/fdopendir (Depends-on): Add dup.
4733         * modules/fdutimensat-tests (Depends-on): Likewise.
4734         * modules/fts (Depends-on): Likewise.
4735         * modules/futimens-tests (Depends-on): Likewise.
4736         * modules/posix_spawnp-tests (Depends-on): Likewise.
4737         * modules/unistd-safer-tests (Depends-on): Likewise.
4738         * modules/utimens-tests (Depends-on): Likewise.
4739         * doc/posix-functions/dup.texi: Mention the new module and the problem
4740         on MSVC.
4741
4742 2011-09-23  Bruno Haible  <bruno@clisp.org>
4743
4744         getdtablesize: Support for MSVC 9.
4745         * lib/getdtablesize.c: Include msvc-inval.h.
4746         (_setmaxstdio_nothrow): New function.
4747         (_setmaxstdio): Redefine it.
4748         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4749         * modules/getdtablesize (Depends-on): Add msvc-inval.
4750         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4751
4752 2011-09-23  Bruno Haible  <bruno@clisp.org>
4753
4754         signal-h: Rename from signal.
4755         * modules/signal-h: Renamed from modules/signal.
4756         * modules/pthread_sigmask (Depends-on): Update.
4757         * modules/raise (Depends-on): Likewise.
4758         * modules/sigaction (Depends-on): Likewise.
4759         * modules/sigpipe (Depends-on): Likewise.
4760         * modules/sigprocmask (Depends-on): Likewise.
4761         * modules/sys_select (Depends-on): Likewise.
4762         * modules/signal-h-tests: Renamed from modules/signal-tests.
4763         (Files, Depends-on, Makefile.am): Update.
4764         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4765         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4766         (Files, Makefile.am): Update.
4767         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4768         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4769         * modules/signal: New placeholder file.
4770         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4771         * doc/posix-headers/signal.texi: Update.
4772         * NEWS: Mention the change.
4773
4774 2011-09-23  Bruno Haible  <bruno@clisp.org>
4775
4776         sigprocmask: Avoid crashes through signal() on MSVC 9.
4777         * lib/sigprocmask.c: Include msvc-inval.h.
4778         (signal_nothrow): New function.
4779         (signal): Redefine it.
4780         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4781         * modules/sigprocmask (Depends-on): Add msvc-inval.
4782         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4783
4784 2011-09-23  Bruno Haible  <bruno@clisp.org>
4785
4786         Tests for module 'raise'.
4787         * modules/raise-tests: New file.
4788         * tests/test-raise.c: New file.
4789
4790         raise: Support for MSVC.
4791         * lib/signal.in.h (raise): New declaration.
4792         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4793         for native Windows platforms.
4794         * m4/raise.m4: New file.
4795         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4796         HAVE_RAISE, REPLACE_RAISE.
4797         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4798         REPLACE_RAISE.
4799         * modules/raise (Status, Notice): Remove fields.
4800         (Files): Add m4/raise.m4.
4801         (Depends-on): Add signal, msvc-inval.
4802         (configure.ac): Use the common idioms.
4803         (Maintainer): Add me.
4804         * tests/test-signal-c++.cc: Check the signature of raise.
4805         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4806
4807 2011-09-23  Bruno Haible  <bruno@clisp.org>
4808
4809         pipe2: Fix compilation on pre-C99 compilers.
4810         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4811
4812 2011-09-23  Bruno Haible  <bruno@clisp.org>
4813
4814         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4815         * lib/msvc-nothrow.h: New file.
4816         * lib/msvc-nothrow.c: New file.
4817         * m4/msvc-nothrow.m4: New file.
4818         * modules/msvc-nothrow: New file.
4819         * lib/dup2.c: Include msvc-nothrow.h.
4820         (rpl_dup2): No need to protect _get_osfhandle call here.
4821         * lib/accept4.c: Include msvc-nothrow.h.
4822         * lib/error.c: Likewise.
4823         * lib/fcntl.c: Likewise.
4824         * lib/lseek.c: Likewise.
4825         * lib/nonblocking.c: Likewise.
4826         * lib/poll.c: Likewise.
4827         * lib/read.c: Likewise.
4828         * lib/select.c: Likewise.
4829         * lib/sockets.h: Likewise.
4830         * lib/sockets.c: Likewise.
4831         * lib/stdio-read.c: Likewise.
4832         * lib/stdio-write.c: Likewise.
4833         * lib/write.c: Likewise.
4834         * lib/w32sock.h: Likewise.
4835         * lib/w32spawn.h: Likewise.
4836         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4837         * lib/fsync.c: Likewise.
4838         * lib/isapipe.c: Likewise.
4839         * modules/dup2 (Depends-on): Add msvc-nothrow.
4840         * modules/accept4 (Depends-on): Likewise.
4841         * modules/error (Depends-on): Likewise.
4842         * modules/fcntl (Depends-on): Likewise.
4843         * modules/lseek (Depends-on): Likewise.
4844         * modules/nonblocking (Depends-on): Likewise.
4845         * modules/poll (Depends-on): Likewise.
4846         * modules/read (Depends-on): Likewise.
4847         * modules/select (Depends-on): Likewise.
4848         * modules/sockets (Depends-on): Likewise.
4849         * modules/sigpipe (Depends-on): Likewise.
4850         * modules/write (Depends-on): Likewise.
4851         * modules/accept (Depends-on): Likewise.
4852         * modules/bind (Depends-on): Likewise.
4853         * modules/connect (Depends-on): Likewise.
4854         * modules/gethostname (Depends-on): Likewise.
4855         * modules/getpeername (Depends-on): Likewise.
4856         * modules/getsockname (Depends-on): Likewise.
4857         * modules/getsockopt (Depends-on): Likewise.
4858         * modules/ioctl (Depends-on): Likewise.
4859         * modules/listen (Depends-on): Likewise.
4860         * modules/recv (Depends-on): Likewise.
4861         * modules/recvfrom (Depends-on): Likewise.
4862         * modules/send (Depends-on): Likewise.
4863         * modules/sendto (Depends-on): Likewise.
4864         * modules/setsockopt (Depends-on): Likewise.
4865         * modules/shutdown (Depends-on): Likewise.
4866         * modules/socket (Depends-on): Likewise.
4867         * modules/execute (Depends-on): Likewise.
4868         * modules/spawn-pipe (Depends-on): Likewise.
4869         * modules/flock (Depends-on): Likewise.
4870         * modules/fsync (Depends-on): Likewise.
4871         * modules/isapipe (Depends-on): Likewise.
4872         * tests/test-cloexec.c: Include msvc-nothrow.h.
4873         * tests/test-dup-safer.c: Likewise.
4874         * tests/test-dup2.c: Likewise.
4875         * tests/test-dup3.c: Likewise.
4876         * tests/test-fcntl.c: Likewise.
4877         * tests/test-pipe.c: Likewise.
4878         * tests/test-pipe2.c: Likewise.
4879         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4880         * modules/unistd-safer-tests (Depends-on): Likewise.
4881         * modules/dup2-tests (Depends-on): Likewise.
4882         * modules/dup3-tests (Depends-on): Likewise.
4883         * modules/fcntl-tests (Depends-on): Likewise.
4884         * modules/pipe-posix-tests (Depends-on): Likewise.
4885         * modules/pipe2-tests (Depends-on): Likewise.
4886
4887 2011-09-23  Bruno Haible  <bruno@clisp.org>
4888
4889         dup2: Make code more maintainable.
4890         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4891         (rpl_dup2): Use it.
4892         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4893         * modules/dup2 (configure.ac): Invoke it.
4894         Reported by Paul Eggert.
4895
4896 2011-09-23  Bruno Haible  <bruno@clisp.org>
4897
4898         msvc-inval: Fix compilation error.
4899         * lib/msvc-inval.h: Include <excpt.h>.
4900
4901 2011-09-23  Bruno Haible  <bruno@clisp.org>
4902
4903         mkdir: Tweak for MSVC 9.
4904         * lib/sys_stat.in.h: Update comments.
4905         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4906
4907         Tests for module 'chdir'.
4908         * modules/chdir-tests: New file.
4909         * tests/test-chdir.c: New file.
4910
4911         New module 'chdir'.
4912         * modules/chdir: New file.
4913         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4914         (chdir): New declaration.
4915         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4916         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4917         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4918         * tests/test-unistd-c++.cc: Check signature of chdir.
4919         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4920         * modules/chdir-long (Depends-on): Add chdir.
4921         * modules/fchdir (Depends-on): Likewise.
4922         * modules/rename (Depends-on): Likewise.
4923         * modules/savewd (Depends-on): Likewise.
4924
4925         rmdir: Support for mingw, MSVC 9.
4926         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4927         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4928
4929         getcwd: Tweak for MSVC 9.
4930         * lib/unistd.in.h: Update comments.
4931         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4932
4933 2011-09-22  Bruno Haible  <bruno@clisp.org>
4934
4935         strerror_r-posix: Avoid a link error on MSVC.
4936         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4937         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4938
4939 2011-09-22  Bruno Haible  <bruno@clisp.org>
4940
4941         select: Avoid link errors on MSVC.
4942         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4943         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4944         * modules/pselect (Link): Likewise.
4945         * NEWS: Mention the change.
4946         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4947         test-select-stdin against $(LIB_SELECT).
4948         * modules/pselect-tests (Makefile.am): Link test-pselect against
4949         $(LIB_SELECT).
4950
4951 2011-09-22  Bruno Haible  <bruno@clisp.org>
4952
4953         select: Avoid compilation error on MSVC.
4954         * lib/select.c: Don't include <stdbool.h>.
4955
4956 2011-09-21  Bruno Haible  <bruno@clisp.org>
4957
4958         Consolidate all uses of PATH_MAX in *.m4 files.
4959         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4960         macros.
4961         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4962         and gl_PATHMAX_SNIPPET.
4963         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4964         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4965         * modules/chdir-long (Files): Add m4/pathmax.m4.
4966         * modules/getcwd (Files): Likewise.
4967
4968 2011-09-21  Bruno Haible  <bruno@clisp.org>
4969
4970         ftruncate: Un-deprecate, concentrate on Win32 support.
4971         * modules/ftruncate (Status, Notice): Remove sections.
4972         (Depends-on): Add largefile.
4973         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4974         non-mingw platforms.
4975         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4976         include <io.h>.
4977         * modules/perror-tests (Depends-on): Add ftruncate.
4978         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4979         'ftruncate' module.
4980
4981 2011-09-21  Bruno Haible  <bruno@clisp.org>
4982
4983         Add dependencies to new dirent related modules.
4984         * modules/opendir (Depends-on): Add closedir.
4985         * modules/getcwd (Depends-on): Add opendir, closedir.
4986         * modules/dirent-safer-tests (Depends-on): Likewise.
4987         * modules/fdopendir-tests (Depends-on): Likewise.
4988         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4989         * modules/renameat-tests (Depends-on): Likewise.
4990
4991 2011-09-21  Bruno Haible  <bruno@clisp.org>
4992
4993         opendir: Avoid compilation error on mingw.
4994         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4995         * modules/opendir (Depends-on): Add unistd.
4996
4997 2011-09-21  Bruno Haible  <bruno@clisp.org>
4998
4999         ftruncate tests: Avoid a test failure on mingw.
5000         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5001
5002 2011-09-21  Bruno Haible  <bruno@clisp.org>
5003
5004         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5005         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5006         native Windows.
5007
5008 2011-09-21  Bruno Haible  <bruno@clisp.org>
5009
5010         New module 'fdopen'.
5011         * lib/stdio.in.h (fdopen): New declaration.
5012         * lib/fdopen.c: New file.
5013         * m4/fdopen.m4: New file.
5014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5015         REPLACE_FDOPEN.
5016         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5017         REPLACE_FDOPEN.
5018         * modules/fdopen: New file.
5019         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5020         * tests/test-stdio-c++.cc: Check signature of fdopen.
5021         * doc/posix-functions/fdopen.texi: Mention the new module.
5022
5023 2011-09-21  Bruno Haible  <bruno@clisp.org>
5024
5025         unlockpt tests: Avoid test failure on NetBSD 5.1.
5026         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5027         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5028
5029 2011-09-21  Bruno Haible  <bruno@clisp.org>
5030
5031         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5032         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5033         * tests/test-getlogin_r.c (main): Likewise.
5034
5035 2011-09-20  Bruno Haible  <bruno@clisp.org>
5036
5037         time tests: Don't require pid_t.
5038         * doc/posix-headers/time.texi: Revert last change.
5039         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5040         * tests/test-time.c: Comment out the check for pid_t.
5041
5042 2011-09-20  Bruno Haible  <bruno@clisp.org>
5043
5044         fsync tests: Avoid a test failure on mingw.
5045         * tests/test-fsync.c (main): Allow a failure with EIO.
5046
5047 2011-09-20  Bruno Haible  <bruno@clisp.org>
5048
5049         euidaccess: Update comments.
5050         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5051
5052 2011-09-20  Bruno Haible  <bruno@clisp.org>
5053
5054         Ensure EBADF returns for socket functions on mingw.
5055         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5056         descriptor is invalid.
5057         * lib/bind.c (rpl_bind): Likewise.
5058         * lib/connect.c (rpl_connect): Likewise.
5059         * lib/getpeername.c (rpl_getpeername): Likewise.
5060         * lib/getsockname.c (rpl_getsockname): Likewise.
5061         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5062         * lib/listen.c (rpl_listen): Likewise.
5063         * lib/recv.c (rpl_recv): Likewise.
5064         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5065         * lib/send.c (rpl_send): Likewise.
5066         * lib/sendto.c (rpl_sendto): Likewise.
5067         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5068         * lib/shutdown.c (rpl_shutdown): Likewise.
5069
5070 2011-09-20  Bruno Haible  <bruno@clisp.org>
5071
5072         select tests: EBADF tests.
5073         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5074         test_bad_fd): New functions.
5075         (test_function): Invoke also test_bad_fd.
5076
5077 2011-09-20  Bruno Haible  <bruno@clisp.org>
5078
5079         Tests for module 'posix_spawn_file_actions_addopen.
5080         * modules/posix_spawn_file_actions_addopen-tests: New file.
5081         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5082
5083         Tests for module 'posix_spawn_file_actions_adddup2'.
5084         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5085         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5086
5087         Tests for module 'posix_spawn_file_actions_addclose'.
5088         * modules/posix_spawn_file_actions_addclose-tests: New file.
5089         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5090
5091 2011-09-20  Bruno Haible  <bruno@clisp.org>
5092
5093         Tests for module 'unlockpt'.
5094         * modules/unlockpt-tests: New file.
5095         * tests/test-unlockpt.c: New file.
5096         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5097
5098         Tests for module 'grantpt'.
5099         * modules/grantpt-tests: New file.
5100         * tests/test-grantpt.c: New file.
5101         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5102
5103 2011-09-20  Bruno Haible  <bruno@clisp.org>
5104
5105         freopen tests: EBADF tests.
5106         * tests/test-freopen.c: Include errno.h, unistd.h.
5107         (main): Add tests for EBADF, commented out for the moment.
5108
5109         fclose tests: EBADF tests.
5110         * tests/test-fclose.c (main): Add tests for EBADF.
5111
5112         fflush tests: EBADF tests.
5113         * tests/test-fflush.c: Include errno.h, macros.h.
5114         (main): Add tests for EBADF.
5115
5116         ftello tests: EBADF tests.
5117         * tests/test-ftello4.sh: New file.
5118         * tests/test-ftello4.c: New file.
5119         * modules/ftello-tests (Files): Add them.
5120         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5121
5122         fseeko tests: EBADF tests.
5123         * tests/test-fseeko4.sh: New file.
5124         * tests/test-fseeko4.c: New file.
5125         * modules/fseeko-tests (Files): Add them.
5126         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5127
5128         Tests for function fputc().
5129         * modules/fputc-tests: New file.
5130         * tests/test-fputc.c: New file.
5131         * modules/stdio-tests (Depends-on): Add fputc-tests.
5132
5133         Tests for function fgetc().
5134         * modules/fgetc-tests: New file.
5135         * tests/test-fgetc.c: New file.
5136         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5137
5138         Tests for function fdopen().
5139         * modules/fdopen-tests: New file.
5140         * tests/test-fdopen.c: New file.
5141         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5142
5143         Tests for module 'vdprintf'.
5144         * modules/vdprintf-tests: New file.
5145         * tests/test-vdprintf.c: New file.
5146
5147         Tests for module 'dprintf'.
5148         * modules/dprintf-tests: New file.
5149         * tests/test-dprintf.c: New file.
5150
5151 2011-09-20  Bruno Haible  <bruno@clisp.org>
5152
5153         Tests for module 'ioctl'.
5154         * modules/ioctl-tests: New file.
5155         * tests/test-ioctl.c: New file.
5156
5157 2011-09-20  Bruno Haible  <bruno@clisp.org>
5158
5159         fcntl tests: EBADF tests.
5160         * tests/test-fcntl.c (main): Add more tests for EBADF.
5161
5162 2011-09-20  Bruno Haible  <bruno@clisp.org>
5163
5164         utimensat tests: EBADF tests.
5165         * tests/test-utimensat.c (main): Add tests for EBADF.
5166
5167         renameat tests: EBADF tests.
5168         * tests/test-renameat.c (main): Add tests for EBADF.
5169
5170         mkfifoat tests: EBADF tests.
5171         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5172
5173         readlinkat tests: EBADF tests.
5174         * tests/test-readlinkat.c (main): Add tests for EBADF.
5175
5176         symlinkat tests: EBADF tests.
5177         * tests/test-symlinkat.c (main): Add tests for EBADF.
5178
5179         linkat tests: EBADF tests.
5180         * tests/test-linkat.c (main): Add tests for EBADF.
5181
5182         Tests for module 'faccessat'.
5183         * modules/faccessat-tests: New file.
5184         * tests/test-faccessat.c: New file.
5185
5186         fdopendir tests: EBADF tests.
5187         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5188
5189         openat tests: EBADF tests.
5190         * tests/test-fchownat.c (main): Add tests for EBADF.
5191         * tests/test-fstatat.c (main): Likewise.
5192         * tests/test-mkdirat.c (main): Likewise.
5193         * tests/test-openat.c (main): Likewise.
5194         * tests/test-unlinkat.c (main): Likewise.
5195         * tests/test-fchmodat.c: New file.
5196         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5197         (Makefile.am): Also run 'test-fchmodat'.
5198
5199 2011-09-20  Bruno Haible  <bruno@clisp.org>
5200
5201         utimens, futimens, fdutimensat tests: EBADF tests.
5202         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5203
5204         Tests for function fstat().
5205         * modules/fstat-tests: New file.
5206         * tests/test-fstat.c: New file.
5207         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5208
5209 2011-09-20  Bruno Haible  <bruno@clisp.org>
5210
5211         test-ttyname_r tests: EBADF tests.
5212         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5213
5214         Tests for module 'isatty'.
5215         * modules/isatty-tests: New file.
5216         * tests/test-isatty.c: New file.
5217
5218         Tests for module 'write'.
5219         * modules/write-tests: New file.
5220         * tests/test-write.c: New file.
5221
5222         Tests for module 'read'.
5223         * modules/read-tests: New file.
5224         * tests/test-read.c: New file.
5225
5226         pwrite tests: EBADF tests.
5227         * tests/test-pwrite.c (main): Add tests for EBADF.
5228
5229         pread tests: EBADF tests.
5230         * tests/test-pread.c (main): Add tests for EBADF.
5231
5232         lseek tests: EBADF tests.
5233         * tests/test-lseek.c (main): Add more tests for EBADF.
5234
5235         Tests for module 'ftruncate'.
5236         * modules/ftruncate-tests: New file.
5237         * tests/test-ftruncate.sh: New file.
5238         * tests/test-ftruncate.c: New file.
5239
5240         fsync tests: EBADF tests.
5241         * tests/test-fsync.c (main): Add more tests for EBADF.
5242
5243         fdatasync tests: EBADF tests.
5244         * tests/test-fdatasync.c (main): Add more tests for EBADF.
5245
5246         Tests for module 'fchown'.
5247         * modules/fchown-tests: New file.
5248         * tests/test-fchown.c: New file.
5249
5250         Tests for module 'fchmod'.
5251         * modules/fchmod-tests: New file.
5252         * tests/test-fchmod.c: New file.
5253
5254         fchdir tests: EBADF tests.
5255         * tests/test-fchdir.c (main): Add more tests for EBADF.
5256
5257         dup2 tests: EBADF tests.
5258         * tests/test-dup2.c (main): Add more tests for EBADF.
5259
5260         Tests for module 'dup'.
5261         * modules/dup-tests: New file.
5262         * tests/test-dup.c: New file.
5263
5264         Tests for module 'close'.
5265         * modules/close-tests: New file.
5266         * tests/test-close.c: New file.
5267
5268 2011-09-20  Bruno Haible  <bruno@clisp.org>
5269
5270         Tests for module 'shutdown'.
5271         * modules/shutdown-tests: New file.
5272         * tests/test-shutdown.c: New file.
5273
5274         Tests for module 'setsockopt'.
5275         * modules/setsockopt-tests: New file.
5276         * tests/test-setsockopt.c: New file.
5277
5278         Tests for module 'sendto'.
5279         * modules/sendto-tests: New file.
5280         * tests/test-sendto.c: New file.
5281
5282         Tests for module 'send'.
5283         * modules/send-tests: New file.
5284         * tests/test-send.c: New file.
5285
5286         Tests for module 'recvfrom'.
5287         * modules/recvfrom-tests: New file.
5288         * tests/test-recvfrom.c: New file.
5289
5290         Tests for module 'recv'.
5291         * modules/recv-tests: New file.
5292         * tests/test-recv.c: New file.
5293
5294         Tests for module 'listen'.
5295         * modules/listen-tests: New file.
5296         * tests/test-listen.c: New file.
5297
5298         Tests for module 'getsockopt'.
5299         * modules/getsockopt-tests: New file.
5300         * tests/test-getsockopt.c: New file.
5301
5302         Tests for module 'getsockname'.
5303         * modules/getsockname-tests: New file.
5304         * tests/test-getsockname.c: New file.
5305
5306         Tests for module 'getpeername'.
5307         * modules/getpeername-tests: New file.
5308         * tests/test-getpeername.c: New file.
5309
5310         Tests for module 'connect'.
5311         * modules/connect-tests: New file.
5312         * tests/test-connect.c: New file.
5313
5314         Tests for module 'bind'.
5315         * modules/bind-tests: New file.
5316         * tests/test-bind.c: New file.
5317
5318         accept4 tests: Fix for native Windows.
5319         * tests/test-accept4.c: Include sockets.h.
5320         (main): Invoke gl_sockets_startup.
5321         * modules/accept4-tests (Depends-on): Add sockets.
5322
5323         accept tests: Fix for native Windows.
5324         * tests/test-accept.c: Include sockets.h.
5325         (main): Invoke gl_sockets_startup.
5326         * modules/accept-tests (Depends-on): Add sockets.
5327
5328 2011-09-19  Bruno Haible  <bruno@clisp.org>
5329
5330         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
5331         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
5332         do...while(0).
5333         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
5334         Suggested by Paul Eggert.
5335
5336 2011-09-19  Bruno Haible  <bruno@clisp.org>
5337
5338         sched: Ensure pid_t is defined.
5339         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
5340         not define pid_t.
5341         * lib/sched.in.h: Include <sys/types.h>.
5342         * doc/posix-headers/sched.texi: Mention the pid_t problem.
5343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5344
5345 2011-09-19  Bruno Haible  <bruno@clisp.org>
5346
5347         msvc-inval: Ensure the entire expansion is a single statement.
5348         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
5349         of braces.
5350
5351 2011-09-19  Jim Meyering  <meyering@redhat.com>
5352
5353         tests: use printf, not echo in init.sh's warn_ function
5354         * tests/init.sh (warn_): Use printf, not echo.  The latter would
5355         misbehave when given strings containing a backslash or starting
5356         with e.g., -n.  James Youngman suggested setting IFS.
5357
5358 2011-09-19  Eric Blake  <eblake@redhat.com>
5359
5360         futimens: enhance test
5361         * tests/test-futimens.h (test_futimens): Also check for EBADF on
5362         closed non-negative fd.
5363
5364         date: accept 'hence' as opposite of 'ago'
5365         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
5366         * tests/test-parse-datetime.c (main): Enhance test.
5367         Suggested by Jesse Wilson.
5368
5369 2011-09-19  Jim Meyering  <meyering@redhat.com>
5370
5371         getcwd: don't fail in a deep directory on a system without openat
5372         Before this change, getcwd would fail when called from a directory
5373         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5374         the non-openat implementation used "..", "../..", "../../..", etc.
5375         to access ancestor directories.  With too many, that string would
5376         be longer than PATH_MAX.
5377         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5378         using gnulib's openat replacement.
5379         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5380         we're using the replacement function.
5381
5382 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5383
5384         maint.mk: avoid warnings from perl about missing files
5385         * top/maint.mk (def_sym_regex): Ignore files listed in
5386         $(gl_other_headers_) that do not exist, say because a project
5387         does not use a corresponding module.
5388
5389 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5390
5391         stat: use pathmax.h only if needed
5392         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5393         This is better for Emacs, which does not have a mingw port and
5394         therefore can avoid the pathmax module.
5395
5396         utimens: remove dependency on dup2
5397         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5398         to work around the Linux kernel bug.
5399         * modules/utimens (Depends-on): Remove dup2.
5400
5401 2011-09-18  Bruno Haible  <bruno@clisp.org>
5402
5403         inet_ntop, inet_pton: Look for it also in libresolv.
5404         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5405         libnsl, search for it in libresolv.
5406         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5407         Needed on Solaris 7.
5408
5409 2011-09-18  Bruno Haible  <bruno@clisp.org>
5410
5411         accept, accept4 tests: Avoid link error on Solaris.
5412         * modules/accept-tests (Makefile.am): Link test-accept against
5413         $(LIBSOCKET).
5414         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5415         $(LIBSOCKET).
5416
5417         accept4: Avoid link error on Solaris.
5418         * modules/accept4 (Link): New section.
5419
5420         socket functions: Avoid link errors on Solaris.
5421         * modules/accept (Depends-on): Add socketlib.
5422         (Link): New section.
5423         * modules/bind (Depends-on): Add socketlib.
5424         (Link): New section.
5425         * modules/connect (Depends-on): Add socketlib.
5426         (Link): New section.
5427         * modules/getpeername (Depends-on): Add socketlib.
5428         (Link): New section.
5429         * modules/getsockname (Depends-on): Add socketlib.
5430         (Link): New section.
5431         * modules/getsockopt (Depends-on): Add socketlib.
5432         (Link): New section.
5433         * modules/listen (Depends-on): Add socketlib.
5434         (Link): New section.
5435         * modules/recv (Depends-on): Add socketlib.
5436         (Link): New section.
5437         * modules/recvfrom (Depends-on): Add socketlib.
5438         (Link): New section.
5439         * modules/send (Depends-on): Add socketlib.
5440         (Link): New section.
5441         * modules/sendto (Depends-on): Add socketlib.
5442         (Link): New section.
5443         * modules/setsockopt (Depends-on): Add socketlib.
5444         (Link): New section.
5445         * modules/shutdown (Depends-on): Add socketlib.
5446         (Link): New section.
5447         * modules/socket (Depends-on): Add socketlib.
5448         (Link): New section.
5449
5450 2011-09-18  Bruno Haible  <bruno@clisp.org>
5451
5452         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5453         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5454         than 5 seconds.
5455         * modules/ptsname-tests (configure.ac): Test for alarm.
5456
5457 2011-09-18  Bruno Haible  <bruno@clisp.org>
5458
5459         posix_spawn_file_actions_add*: Fix module dependencies.
5460         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5461         posix_spawn_file_actions_init.
5462         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5463         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5464
5465 2011-09-18  Bruno Haible  <bruno@clisp.org>
5466
5467         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5468         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5469         * tests/test-renameat.c (main): Likewise.
5470
5471 2011-09-18  Bruno Haible  <bruno@clisp.org>
5472
5473         Tests for module 'accept4'.
5474         * modules/accept4-tests: New file.
5475         * tests/test-accept4.c: New file.
5476
5477 2011-09-18  Bruno Haible  <bruno@clisp.org>
5478
5479         Tests for module 'accept'.
5480         * modules/accept-tests: New file.
5481         * tests/test-accept.c: New file.
5482
5483 2011-09-18  Bruno Haible  <bruno@clisp.org>
5484
5485         dup2: Support for MSVC.
5486         * lib/dup2.c: Include msvc-inval.h.
5487         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5488         _get_osfhandle calls.
5489         * modules/dup2 (Depends-on): Add msvc-inval.
5490         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5491
5492         New module 'msvc-inval'.
5493         * lib/msvc-inval.h: New file.
5494         * lib/msvc-inval.c: New file.
5495         * m4/msvc-inval.m4: New file.
5496         * modules/msvc-inval: New file.
5497
5498 2011-09-17  Bruno Haible  <bruno@clisp.org>
5499
5500         Tests for module 'pclose'.
5501         * modules/pclose-tests: New file.
5502
5503         New module 'pclose'.
5504         * lib/stdio.in.h (pclose): New declaration.
5505         * lib/pclose.c: New file.
5506         * m4/pclose.m4: New file.
5507         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5508         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5509         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5510         * modules/pclose: New file.
5511         * modules/popen-tests (Depends-on): Add pclose.
5512         * modules/popen-safer-tests (Depends-on): Likewise.
5513         * doc/posix-functions/pclose.texi: Mention the new module.
5514
5515 2011-09-17  Bruno Haible  <bruno@clisp.org>
5516
5517         popen: Support for MSVC.
5518         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5519         * lib/popen.c (popen): Provide alternate definition for native Windows.
5520         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5522         * modules/popen (Depends-on, configure.ac): Update condition.
5523         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5524         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5525         fixed.
5526
5527 2011-09-17  Bruno Haible  <bruno@clisp.org>
5528
5529         isnanl, isnand, isnanf: Work around MSVC bug.
5530         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5531
5532 2011-09-17  Bruno Haible  <bruno@clisp.org>
5533
5534         sys_socket tests: Fix recent mistake.
5535         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5536
5537 2011-09-17  Bruno Haible  <bruno@clisp.org>
5538
5539         putenv: Support for MSVC.
5540         * modules/putenv (Depends-on): Add environ.
5541         * lib/putenv.c (environ): Disable declaration.
5542         * lib/unistd.in.h: Update comment.
5543
5544 2011-09-17  Bruno Haible  <bruno@clisp.org>
5545
5546         math: Avoid macro redefinition warnings on MSVC.
5547         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5548         Undefine before redefining.
5549
5550 2011-09-17  Bruno Haible  <bruno@clisp.org>
5551
5552         doc: Mention functions which are declared as macros.
5553         * doc/posix-functions/*[fl].texi: Mention that some functions are
5554         defined as macros with arguments only.
5555
5556 2011-09-17  Bruno Haible  <bruno@clisp.org>
5557
5558         Add dependencies to new dirent related modules.
5559         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5560         * modules/fts (Depends-on): Likewise.
5561         * modules/glob (Depends-on): Likewise.
5562         * modules/savedir (Depends-on): Likewise.
5563         * modules/scandir (Depends-on): Likewise.
5564         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5565         * modules/fdopendir (Depends-on): Add opendir.
5566
5567 2011-09-17  Bruno Haible  <bruno@clisp.org>
5568
5569         inet_pton: Support for MSVC on Windows Vista or newer.
5570         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5571         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5572         HAVE_DECL_INET_PTON is defined.
5573         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5574         On platforms with <winsock2.h>, test whether inet_pton is declared in
5575         <ws2tcpip.h>. If so, arrange to replace it.
5576         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5577         REPLACE_INET_PTON.
5578         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5579         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5580         (Depends-on, configure.ac): Update condition.
5581         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5582
5583 2011-09-17  Bruno Haible  <bruno@clisp.org>
5584
5585         inet_ntop: Support for MSVC on Windows Vista or newer.
5586         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5587         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5588         HAVE_DECL_INET_NTOP is defined.
5589         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5590         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5591         <ws2tcpip.h>. If so, arrange to replace it.
5592         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5593         REPLACE_INET_NTOP.
5594         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5595         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5596         (Depends-on, configure.ac): Update condition.
5597         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5598
5599 2011-09-16  Eric Blake  <eblake@redhat.com>
5600
5601         test-fsync: yet another enhancement
5602         * tests/test-fsync.c (main): Also test behavior on read-only text
5603         file.
5604
5605 2011-09-16  Bruno Haible  <bruno@clisp.org>
5606
5607         Enhance fsync, fdatasync tests.
5608         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5609         * tests/test-fdatasync.c (main): Likewise.
5610
5611 2011-09-16  Bruno Haible  <bruno@clisp.org>
5612
5613         Support for MSVC compiler: Ensure mode_t gets defined.
5614         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5615         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5617         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5618         * tests/test-fcntl-h.c: Check that mode_t is defined.
5619         * tests/test-sys_stat.c: Likewise.
5620         * tests/test-sys_types.c: Likewise.
5621         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5622         * doc/posix-headers/sys_stat.texi: Likewise.
5623         * doc/posix-headers/sys_types.texi: Likewise.
5624
5625 2011-09-16  Bruno Haible  <bruno@clisp.org>
5626
5627         sys_stat: Support for MSVC.
5628         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5629         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5630         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5631         MSVC.
5632
5633 2011-09-16  Bruno Haible  <bruno@clisp.org>
5634
5635         Support for MSVC compiler: Ensure off_t gets defined.
5636         * lib/unistd.in.h: Include <sys/types.h>.
5637         * tests/test-fcntl-h.c: Check that off_t is defined.
5638         * tests/test-sys_stat.c: Likewise.
5639         * tests/test-sys_types.c: Likewise.
5640
5641 2011-09-16  Eric Blake  <eblake@redhat.com>
5642
5643         fdatasync: port to Solaris
5644         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5645         * modules/fdatasync (Link): Document it.
5646         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5647
5648         fdatasync: port to MacOS X 10.7
5649         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5650         declared.
5651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5652         * modules/unistd (Makefile.am): Substitute it.
5653         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5654         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5655
5656         fdatasync: minor improvements
5657         * modules/fdatasync (Depends-on): Add condition for fsync.
5658         * lib/fdatasync.c (fdatasync): Add comment.
5659         * tests/test-unistd-c++.cc: Test fdatasync.
5660
5661         unistd: update refs to newer POSIX
5662         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5663         Suggested by Bruno Haible.
5664
5665         fdatasync: new module
5666         * modules/fsync (Description): Document difference to fdatasync.
5667         * modules/fdatasync: New module.
5668         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5669         * lib/fdatasync.c (fdatasync): Likewise.
5670         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5671         defaults.
5672         * modules/unistd (Makefile.am): Set witnesses.
5673         * lib/unistd.in.h (fdatasync): Declare.
5674         * MODULES.html.sh: Document it.
5675         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5676         * modules/fdatasync-tests: New test.
5677         * tests/test-fdatasync.c: Likewise.
5678
5679 2011-09-16  Eric Blake  <eblake@redhat.com>
5680
5681         test-fsync: enhance tests
5682         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5683         * tests/test-fsync.c (main): Enhance test.
5684
5685 2011-09-15  Bruno Haible  <bruno@clisp.org>
5686
5687         Support for MSVC compiler: Ensure ssize_t gets defined.
5688         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5689         * doc/posix-headers/stdio.texi: Likewise.
5690         * modules/stdio (Depends-on): Add ssize_t.
5691         * modules/sys_socket (Depends-on): Likewise.
5692         * modules/sys_types (Depends-on): Likewise.
5693         * modules/sys_uio (Depends-on): Likewise.
5694         * modules/unistd (Depends-on): Likewise.
5695         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5696         * tests/test-sys_types.c: Check that ssize_t is defined.
5697
5698 2011-09-14  Bruno Haible  <bruno@clisp.org>
5699
5700         Avoid using #, the m4 comment starter character, near brackets.
5701         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5702         delimiter character in sed expressions.
5703         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5704         Suggested by Eric Blake.
5705
5706         Properly quote AC_CHECK_DECLS' 4th argument.
5707         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5708         argument.
5709         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5710         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5711         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5712         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5713         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5714         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5715         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5716         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5717         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5718         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5719         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5720         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5721         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5722         * m4/isinf.m4 (gl_ISINF): Likewise.
5723         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5724         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5725         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5726         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5727         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5728         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5729         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5730         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5731         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5732         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5733         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5734         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5736         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5738         Reported by Eric Blake.
5739
5740         Properly quote AC_CHECK_DECL's 4th argument.
5741         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5742         argument.
5743         * m4/argp.m4 (gl_ARGP): Likewise.
5744         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5745         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5746         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5747         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5748         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5749         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5750         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5751         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5752         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5753         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5754         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5755         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5756         Reported by Eric Blake.
5757
5758 2011-09-14  Eric Blake  <eblake@redhat.com>
5759
5760         opendir: avoid compile warning
5761         * lib/opendir.c (includes): Always include errno.h.
5762         Reported by Tatsuro MATSUOKA.
5763
5764 2011-09-14  Jim Meyering  <meyering@redhat.com>
5765
5766         maint.mk: sc_tight_scope: propagate failure from sub-make
5767         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5768         Reported by Martin von Gagern.
5769
5770 2011-09-13  Bruno Haible  <bruno@clisp.org>
5771
5772         tempname: Support for MSVC.
5773         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5774         MSVC.
5775         * modules/tempname (Depends-on): Add fcntl-h.
5776
5777 2011-09-13  Bruno Haible  <bruno@clisp.org>
5778
5779         sys_time: Support for MSVC.
5780         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5781         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5782         include <winsock2.h>.
5783         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5784         function declarations that collide with POSIX.
5785         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5786         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5787
5788 2011-09-13  Bruno Haible  <bruno@clisp.org>
5789
5790         stat: Support for MSVC.
5791         * lib/stat.c: Include pathmax.h.
5792         * modules/stat (Depends-on): Add pathmax.
5793
5794         pathmax: Support for native Windows.
5795         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5796
5797 2011-09-12  Bruno Haible  <bruno@clisp.org>
5798
5799         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5800         * lib/dirent.in.h (struct dirent): New type.
5801         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5802         DT_WHT): New macros.
5803         (DIR): New type.
5804         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5805         (readdir, rewinddir): New declarations.
5806         * lib/dirent-private.h: New file.
5807         * lib/opendir.c: New file.
5808         * lib/readdir.c: New file.
5809         * lib/rewinddir.c: New file.
5810         * lib/closedir.c: New file.
5811         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5812         * m4/opendir.m4: New file.
5813         * m4/readdir.m4: New file.
5814         * m4/rewinddir.m4: New file.
5815         * m4/closedir.m4: New file.
5816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5817         REPLACE_CLOSEDIR here.
5818         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5819         readdir, rewinddir are declared.
5820         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5821         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5822         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5823         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5824         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5825         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5826         * modules/opendir: New file.
5827         * modules/readdir: New file.
5828         * modules/rewinddir: New file.
5829         * modules/closedir: New file.
5830         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5831         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5832         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5833         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5834         * NEWS: Mention the 'fchdir' change.
5835
5836 2011-09-11  Bruno Haible  <bruno@clisp.org>
5837
5838         asm-underscore.m4: Support for MSVC.
5839         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5840         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5841
5842 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5843
5844         Doc about crypt functions.
5845         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5846         needing for _GNU_SOURCE to get crypt.
5847         * doc/posix-functions/encrypt.texi: Likewise.
5848         * doc/posix-functions/setkey.texi: Likewise.
5849
5850 2011-09-11  Bruno Haible  <bruno@clisp.org>
5851
5852         doc: Update regarding MSVC 9.
5853         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5854         tested".
5855         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5856         * doc/posix-headers/*.texi: Likewise.
5857         * doc/pastposix-functions/*.texi: Likewise.
5858         * doc/glibc-functions/*.texi: Likewise.
5859         * doc/glibc-headers/*.texi: Likewise.
5860
5861 2011-09-11  Bruno Haible  <bruno@clisp.org>
5862
5863         unistd et al.: Don't assume <unistd.h> exists.
5864         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5865         does not exist.
5866         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5867         exist. But include <stdlib.h>.
5868         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5869         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5870         symlink() does not exist.
5871         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5872         include <io.h> instead.
5873         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5874         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5875         include <direct.h> instead.
5876         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5877         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5878         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5879         <io.h> instead.
5880         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5881         correctly if the system does not have hard links.
5882         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5883         <direct.h> instead.
5884         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5885         it when looking for function declarations.
5886         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5887         <direct.h> and <io.h> instead.
5888         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5889
5890 2011-09-11  Bruno Haible  <bruno@clisp.org>
5891
5892         strcase: Support for MSVC.
5893         * modules/strcase (Status, Notice): Remove obsoletion mark.
5894         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5895         * doc/posix-functions/strncasecmp.texi: Likewise.
5896
5897         strings: Don't assume <strings.h> exists.
5898         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5899         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5900         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5901         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5902
5903 2011-09-11  Bruno Haible  <bruno@clisp.org>
5904
5905         dirent: Don't assume <dirent.h> exists.
5906         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5907         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5908         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5909         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5910
5911 2011-09-11  Bruno Haible  <bruno@clisp.org>
5912
5913         Fix wint_t on MSVC.
5914         * lib/wchar.in.h (wint_t): On MSVC, override it.
5915         * lib/wctype.in.h (wint_t): Likewise.
5916         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5917         MSVC.
5918         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5919         * doc/posix-headers/wctype.texi: Likewise.
5920
5921 2011-09-11  Bruno Haible  <bruno@clisp.org>
5922
5923         sys_types: Fix typo.
5924         * lib/sys_types.in.h: Fix typo in comment.
5925         Reported by Paul Eggert.
5926
5927         Support for MSVC compiler: Ensure size_t gets defined.
5928         * modules/strings (Depends-on): Add 'sys_types'.
5929         * modules/sys_uio (Depends-on): Likewise.
5930         * lib/sys_uio.in.h: Update comment.
5931
5932         C++ tests for module 'sys_types'.
5933         * modules/sys_types-c++-tests: New file.
5934         * tests/test-sys_types-c++.cc: New file.
5935
5936         Tests for module 'sys_types'.
5937         * modules/sys_types-tests: New file.
5938         * tests/test-sys_types.c: New file.
5939
5940         New module 'sys_types'.
5941         * lib/sys_types.in.h: New file.
5942         * m4/sys_types_h.m4: New file.
5943         * modules/sys_types: New file.
5944         * doc/posix-headers/sys_types.texi: Mention the new module and the
5945         size_t problem on MSVC 9.
5946
5947 2011-09-11  Bruno Haible  <bruno@clisp.org>
5948
5949         Support for MSVC compiler: Avoid division by a literal 0.
5950         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5951         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5952         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5953         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5954         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5955         * tests/infinity.h: New file.
5956         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5957         on MSVC.
5958         * tests/test-ceilf1.c: Include infinity.h.
5959         (main): Use Infinityf.
5960         * tests/test-ceil1.c: Include infinity.h.
5961         (main): Use Infinityd.
5962         * tests/test-ceill.c: Include infinity.h.
5963         (main): Use Infinityl.
5964         * tests/test-dprintf-posix.c: Include infinity.h.
5965         (test_function): Use Infinityd.
5966         * tests/test-floorf1.c: Include infinity.h.
5967         (main): Use Infinityf.
5968         * tests/test-floor1.c: Include infinity.h.
5969         (main): Use Infinityd.
5970         * tests/test-floorl.c: Include infinity.h.
5971         (main): Use Infinityl.
5972         * tests/test-fprintf-posix.c: Include infinity.h.
5973         (test_function): Use Infinityd.
5974         * tests/test-frexp.c: Include infinity.h.
5975         (main): Use Infinityd.
5976         * tests/test-frexpl.c: Include infinity.h.
5977         (main): Use Infinityl.
5978         * tests/test-isfinite.c: Include infinity.h.
5979         (test_isfinitef): Use Infinityf.
5980         (test_isfinited): Use Infinityd.
5981         (test_isfinitel): Use Infinityl.
5982         * tests/test-isinf.c: Include infinity.h.
5983         (test_isinff): Use Infinityf.
5984         (test_isinfd): Use Infinityd.
5985         (test_isinfl): Use Infinityl.
5986         * tests/test-isnan.c: Include infinity.h.
5987         (test_float): Use Infinityf.
5988         (test_double): Use Infinityd.
5989         (test_long_double): Use Infinityl.
5990         * tests/test-isnanf.h: Include infinity.h.
5991         (main): Use Infinityf.
5992         * tests/test-isnand.h: Include infinity.h.
5993         (main): Use Infinityd.
5994         * tests/test-isnanl.h: Include infinity.h.
5995         (main): Use Infinityl.
5996         * tests/test-ldexpl.c: Include infinity.h.
5997         (main): Use Infinityl.
5998         * tests/test-printf-posix.h: Include infinity.h.
5999         (test_function): Use Infinityd.
6000         * tests/test-roundf1.c: Include infinity.h.
6001         (main): Use Infinityf.
6002         * tests/test-round1.c: Include infinity.h.
6003         (main): Use Infinityd.
6004         * tests/test-roundl.c: Include infinity.h.
6005         (main): Use Infinityl.
6006         * tests/test-signbit.c: Include infinity.h.
6007         (test_signbitf): Use Infinityf.
6008         (test_signbitd): Use Infinityd.
6009         (test_signbitl): Use Infinityl.
6010         * tests/test-snprintf-posix.h: Include infinity.h.
6011         (test_function): Use Infinityd, Infinityl.
6012         * tests/test-sprintf-posix.h: Include infinity.h.
6013         (test_function): Use Infinityd, Infinityl.
6014         * tests/test-truncf1.c: Include infinity.h.
6015         (main): Use Infinityf.
6016         * tests/test-trunc1.c: Include infinity.h.
6017         (main): Use Infinityd.
6018         * tests/test-truncl.c: Include infinity.h.
6019         (main): Use Infinityl.
6020         * tests/test-vasnprintf-posix.c: Include infinity.h.
6021         (test_function): Use Infinityd, Infinityl.
6022         * tests/test-vasprintf-posix.c: Include infinity.h.
6023         (test_function): Use Infinityd, Infinityl.
6024         * modules/ceilf-tests (Files): Add tests/infinity.h.
6025         * modules/ceil-tests (Files): Likewise.
6026         * modules/ceill-tests (Files): Likewise.
6027         * modules/dprintf-posix-tests (Files): Likewise.
6028         * modules/floorf-tests (Files): Likewise.
6029         * modules/floor-tests (Files): Likewise.
6030         * modules/floorl-tests (Files): Likewise.
6031         * modules/fprintf-posix-tests (Files): Likewise.
6032         * modules/frexp-tests (Files): Likewise.
6033         * modules/frexp-nolibm-tests (Files): Likewise.
6034         * modules/frexpl-tests (Files): Likewise.
6035         * modules/frexpl-nolibm-tests (Files): Likewise.
6036         * modules/isfinite-tests (Files): Likewise.
6037         * modules/isinf-tests (Files): Likewise.
6038         * modules/isnan-tests (Files): Likewise.
6039         * modules/isnanf-tests (Files): Likewise.
6040         * modules/isnanf-nolibm-tests (Files): Likewise.
6041         * modules/isnand-tests (Files): Likewise.
6042         * modules/isnand-nolibm-tests (Files): Likewise.
6043         * modules/isnanl-tests (Files): Likewise.
6044         * modules/isnanl-nolibm-tests (Files): Likewise.
6045         * modules/ldexpl-tests (Files): Likewise.
6046         * modules/printf-posix-tests (Files): Likewise.
6047         * modules/roundf-tests (Files): Likewise.
6048         * modules/round-tests (Files): Likewise.
6049         * modules/roundl-tests (Files): Likewise.
6050         * modules/signbit-tests (Files): Likewise.
6051         * modules/snprintf-posix-tests (Files): Likewise.
6052         * modules/sprintf-posix-tests (Files): Likewise.
6053         * modules/truncf-tests (Files): Likewise.
6054         * modules/trunc-tests (Files): Likewise.
6055         * modules/truncl-tests (Files): Likewise.
6056         * modules/vasnprintf-posix-tests (Files): Likewise.
6057         * modules/vasprintf-posix-tests (Files): Likewise.
6058         * modules/vdprintf-posix-tests (Files): Likewise.
6059         * modules/vfprintf-posix-tests (Files): Likewise.
6060         * modules/vprintf-posix-tests (Files): Likewise.
6061         * modules/vsnprintf-posix-tests (Files): Likewise.
6062         * modules/vsprintf-posix-tests (Files): Likewise.
6063         * modules/xprintf-posix-tests (Files): Likewise.
6064
6065 2011-09-11  Bruno Haible  <bruno@clisp.org>
6066
6067         Ensure pid_t gets defined.
6068         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6069         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6070         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6071         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6072         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6073         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6074         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6075         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6076         * tests/test-fcntl-h.c: Check that pid_t is defined.
6077         * tests/test-sched.c: Likewise.
6078         * tests/test-termios.c: Likewise.
6079         * tests/test-time.c: Likewise.
6080         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6081         * doc/posix-headers/signal.texi: Likewise.
6082         * doc/posix-headers/sys_types.texi: Likewise.
6083         * doc/posix-headers/time.texi: Likewise.
6084
6085 2011-09-11  Bruno Haible  <bruno@clisp.org>
6086
6087         acl: Fix compilation on Solaris 10 (older version).
6088         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6089         of ACE_EVERYONE.
6090         * lib/set-mode-acl.c (qset_acl): Likewise.
6091         Reported by Christian Jullien <eligis@orange.fr>.
6092
6093 2011-09-10  Bruno Haible  <bruno@clisp.org>
6094
6095         iconv, unsetenv: Add support for MSVC compiler.
6096         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6097         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6098
6099 2011-09-10  Bruno Haible  <bruno@clisp.org>
6100
6101         *printf: Add support for MSVC compiler.
6102         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6103         handles the exception caused by the %n directive. When cross-compiling,
6104         guess no on native Windows.
6105         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6106         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6107         emulate it through vsnprintf.
6108         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6109         * doc/posix-functions/dprintf.texi: Update documentation regarding
6110         MSVC 9.
6111         * doc/posix-functions/fprintf.texi: Likewise.
6112         * doc/posix-functions/printf.texi: Likewise.
6113         * doc/posix-functions/snprintf.texi: Likewise.
6114         * doc/posix-functions/sprintf.texi: Likewise.
6115         * doc/posix-functions/swprintf.texi: Likewise.
6116         * doc/posix-functions/vdprintf.texi: Likewise.
6117         * doc/posix-functions/vfprintf.texi: Likewise.
6118         * doc/posix-functions/vprintf.texi: Likewise.
6119         * doc/posix-functions/vsnprintf.texi: Likewise.
6120         * doc/posix-functions/vsprintf.texi: Likewise.
6121         * doc/glibc-functions/asprintf.texi: Likewise.
6122         * doc/glibc-functions/obstack_printf.texi: Likewise.
6123         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6124         * doc/glibc-functions/vasprintf.texi: Likewise.
6125
6126 2011-09-10  Bruno Haible  <bruno@clisp.org>
6127
6128         nocrash: Add support for native Windows.
6129         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6130
6131 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6132             Bruno Haible  <bruno@clisp.org>
6133
6134         absolute-header, include-next: Add support for MSVC compiler.
6135         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6136         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6137         directory separator in #line directives.
6138         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6139         recognize also backslash as directory separator in #line directives.
6140
6141 2011-09-08  Jim Meyering  <meyering@redhat.com>
6142
6143         maint.mk: mark the post-release commit log with "maint: " prefix
6144         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6145         one-line commit-log summary.
6146
6147 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6148             Bruno Haible  <bruno@clisp.org>
6149
6150         Doc about crypt functions.
6151         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6152         systems.
6153         * doc/posix-functions/encrypt.texi: Likewise.
6154         * doc/posix-functions/setkey.texi: Likewise.
6155
6156 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6157
6158         * lib/gc.h: Fix copyright header.
6159
6160 2011-09-07  Bruno Haible  <bruno@clisp.org>
6161
6162         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6163         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6164         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6165
6166 2011-09-07  Bruno Haible  <bruno@clisp.org>
6167
6168         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6169         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6170         * lib/freopen.c: Likewise.
6171         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6172         * lib/lstat.c: Likewise.
6173         * lib/stat.c: Likewise.
6174         * lib/open.c: Use different syntax for include of <fcntl.h>.
6175         * lib/openat.c: Include fcntl.h again, explicitly.
6176
6177 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6178
6179         parse-datetime: document the newly accepted format
6180         * doc/parse-datetime.texi (Combined date and time of day items):
6181         New section.
6182
6183 2011-09-06  Bruno Haible  <bruno@clisp.org>
6184
6185         acl: Fix a test failure on newer Solaris 10 with ZFS.
6186         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6187         ENOSYS as no ACL.
6188         Reported by Jim Meyering.
6189
6190 2011-09-06  Bruno Haible  <bruno@clisp.org>
6191
6192         acl: Update for AIX >= 5.3 with NFS.
6193         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6194         ENOSYS as no ACL.
6195
6196         acl: Fix a test failure on AIX >= 5.3 with NFS.
6197         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6198         as no ACL.
6199
6200 2011-09-06  Bruno Haible  <bruno@clisp.org>
6201
6202         acl: Fix a test failure on IRIX 6.5 with NFS.
6203         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6204         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6205         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6206         * lib/copy-acl.c (qcopy_acl): Likewise.
6207
6208 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6209
6210         openat: port to AIX 7.1 with large files
6211         AIX 7.1 does a "#define openat open64at" if large files are in use,
6212         so we can't simply #undef openat.  Use the orig_openat trick (similar
6213         to orig_open in lib/open.c) to work around the problem.  Problem
6214         reported by Kevin Brott for GNU tar, in the thread containing
6215         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6216         * lib/openat.c (__need_system_fcntl_h): Define first.
6217         Include <fcntl.h> and <sys/types.h> before undefining.
6218         (orig_openat) [HAVE_OPENAT]: New inline function.
6219         (openat) [HAVE_OPENAT]: Do not undef.
6220         (rpl_openat): Use orig_openat, not openat.
6221
6222 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6223             Bruno Haible  <bruno@clisp.org>
6224
6225         acl: Avoid errors on NonStop Kernel.
6226         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6227         ENOTSUP errors.
6228
6229 2011-09-05  Bruno Haible  <bruno@clisp.org>
6230
6231         acl: Clean up Solaris code.
6232         * lib/acl-internal.h: Remove no-op #if.
6233         * lib/file-has-acl.c: Likewise.
6234         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6235         * lib/copy-acl.c (qcopy_acl): Likewise.
6236
6237 2011-09-05  Bruno Haible  <bruno@clisp.org>
6238
6239         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
6240         binaries built on the original Solaris 10.
6241         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
6242         trivial.
6243
6244 2011-09-05  Bruno Haible  <bruno@clisp.org>
6245
6246         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6247         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
6248         10.
6249         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
6250         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
6251         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
6252         instead of acl_get, facl_get, acl_set, facl_set.
6253
6254 2011-09-05  Bruno Haible  <bruno@clisp.org>
6255
6256         copy-file: Try unit tests on more file systems.
6257         * tests/test-copy-file-1.sh: New file.
6258         * tests/test-copy-file-2.sh: New file.
6259         * modules/copy-file-tests (Files): Add them.
6260         (Makefile.am): Add them to TESTS.
6261
6262         acl: Try unit tests on more file systems.
6263         * tests/test-file-has-acl-1.sh: New file.
6264         * tests/test-file-has-acl-2.sh: New file.
6265         * tests/test-set-mode-acl-1.sh: New file.
6266         * tests/test-set-mode-acl-2.sh: New file.
6267         * tests/test-copy-acl-1.sh: New file.
6268         * tests/test-copy-acl-2.sh: New file.
6269         * modules/acl-tests (Files): Add them.
6270         (Makefile.am): Add them to TESTS.
6271
6272 2011-09-04  Bruno Haible  <bruno@clisp.org>
6273
6274         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6275         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
6276         10.
6277         (OLD_ALLOW, OLD_DENY): New macros.
6278         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
6279         ACE_ACCESS_ALLOWED_ACE_TYPE.
6280         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
6281         ACE_ACCESS_DENIED_ACE_TYPE.
6282         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
6283         (NEW_ACE_EXECUTE): Fix value.
6284         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
6285         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
6286         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
6287         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
6288         NEW_ACE_SYNCHRONIZE): New macros.
6289         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
6290         instead of acl_fromtext, acl_set, facl_set.
6291         Fixes a coreutils/tests/cp/perm failure.
6292
6293 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6294
6295         openat: test for fstatat (..., 0) bug
6296         Further testing with tar suggests that fstatat (..., 0)
6297         does not work in general, on AIX 7.1; see
6298         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
6299         So, give up entirely on AIX 7.1's fstatat, and fall back on our
6300         replacement fstatat (which is what older AIX releases were using
6301         anyway).
6302         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
6303         use is now changed to orig_fstatat.  This was probably the right
6304         thing to do anyway.
6305         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
6306         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
6307         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
6308         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
6309         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
6310         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
6311         if the bug is found.
6312
6313         openat: test for fstatat (AT_FDCWD, ..., 0) bug
6314         This tests for another fstatat bug on AIX 7.1:
6315         fstatat (AT_FDCWD, ..., 0) does not work.  See
6316         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
6317         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
6318         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
6319         (rpl_fstatat): Adjust so that it works around either (or both)
6320         bugs if present.
6321         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
6322
6323 2011-09-03  Karl Berry  <karl@gnu.org>
6324
6325         * doc/regex.texi (Character Class Operators): Avoid literal ":"
6326         in index entries.
6327
6328 2011-09-02  Bruno Haible  <bruno@clisp.org>
6329
6330         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
6331         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
6332         values of AR, ARFLAGS, RANLIB.
6333         Reported by John W. Eaton <jwe@gnu.org> for Octave.
6334
6335 2011-09-02  Bruno Haible  <bruno@clisp.org>
6336
6337         Find 'ar' program that fits with --host argument.
6338         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
6339
6340 2011-09-02  Bruno Haible  <bruno@clisp.org>
6341
6342         tests: init.sh: Support any non-GNU diff.
6343         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
6344         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
6345         Solaris 8.
6346
6347 2011-09-02  Bruno Haible  <bruno@clisp.org>
6348
6349         tests: init.sh: work also with any non-GNU diff that supports -u
6350         * tests/init.sh: Relax check for diff -u support.
6351         Rather than checking for GNU diff via --version, simply check
6352         for support for -u itself.  Useful at least on OpenBSD 4.9,
6353         AIX 7.1, IRIX 6.5, and Solaris 10.
6354
6355 2011-09-01  Bruno Haible  <bruno@clisp.org>
6356
6357         strtoimax, strtoumax: Document problem on HP-UX 11.
6358         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
6359         * doc/posix-functions/strtoumax.texi: Likewise.
6360
6361 2011-09-01  Bruno Haible  <bruno@clisp.org>
6362
6363         strtoumax: Avoid link error on OSF/1 with DTK cc.
6364         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
6365         defined as a function.
6366         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6367         strtoumax is defined, not whether it is declared.
6368
6369 2011-09-01  Bruno Haible  <bruno@clisp.org>
6370
6371         strtoimax: Avoid link error on OSF/1 with DTK cc.
6372         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6373         defined as a function.
6374         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6375         strtoimax is defined, not whether it is declared.
6376
6377 2011-09-01  Bruno Haible  <bruno@clisp.org>
6378
6379         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6380         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6381         as a function.
6382         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6383         whether it is declared.
6384
6385 2011-09-01  Bruno Haible  <bruno@clisp.org>
6386
6387         imaxabs: Avoid link error on OSF/1 with DTK cc.
6388         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6389         as a function.
6390         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6391         whether it is declared.
6392
6393 2011-09-01  Bruno Haible  <bruno@clisp.org>
6394
6395         Tests for module 'strtoumax'.
6396         * modules/strtoumax-tests: New file.
6397         * tests/test-strtoumax.c: New file.
6398
6399         Tests for module 'strtoimax'.
6400         * modules/strtoimax-tests: New file.
6401         * tests/test-strtoimax.c: New file.
6402
6403         Tests for module 'imaxdiv'.
6404         * modules/imaxdiv-tests: New file.
6405         * tests/test-imaxdiv.c: New file.
6406
6407         Tests for module 'imaxabs'.
6408         * modules/imaxabs-tests: New file.
6409         * tests/test-imaxabs.c: New file.
6410
6411 2011-09-01  Bruno Haible  <bruno@clisp.org>
6412
6413         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6414         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6415         pthread_create.
6416
6417 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6418
6419         openat: work around AIX 7.1 fstatat issue
6420         This should fix the problem that was not properly fixed
6421         in the previous change, dated 2011-08-30.
6422         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6423         __need_system_stat_h defined.
6424         (orig_fstatat) [HAVE_FSTATAT]: New function.
6425         (rpl_fstatat): Go back to the old way of doing things,
6426         except call orig_fstatat instead of fstatat.
6427         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6428         Remove unnecessary check whether fstatat fills in st_size etc.
6429
6430 2011-09-01  Bruno Haible  <bruno@clisp.org>
6431
6432         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6433         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6434         just include the system's header.
6435
6436 2011-08-31  Jim Meyering  <meyering@redhat.com>
6437
6438         tests: avoid spurious assertion failure in test-float.c on ppc64
6439         * tests/test-float.c (test_long_double): Comment out an assertion,
6440         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6441         with gcc-4.4.4.
6442
6443         maint: indent with spaces, not TABs
6444         I need to get in the habit of running gnulib's "make check".
6445         Both of these would have been caught.
6446         * m4/largefile.m4: Indent with spaces, not TABs.
6447         * lib/parse-datetime.y (iso_8601_time): Likewise.
6448         Spotted by Pádraig Brady.
6449
6450         test-parse-datetime.c: accommodate a relatively strict gcc warning
6451         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6452         to avoid a warning from gcc's -Werror=missing-declarations.
6453         Insert a few spaces-before-funcall-parenthesis.
6454
6455 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6456
6457         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6458         The parser now accepts ISO 8601 date-time strings with "T" as the
6459         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6460         with a space between the date and time strings.  Now it also parses
6461         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6462         variants like "2004-02-29T16:21:42.333-07:00"
6463         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6464         of day representation using the 'T' separator character.
6465         * doc/parse-datetime.texi (General date syntax): replace use of
6466         deprecated --iso-8601 option with --rfc-3339 in example of date
6467         command output formats that can be parsed.
6468         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6469         lib/parse-datetime.y.
6470         (gmt_offset): New function.
6471         (main): Add additional test cases to validate ISO8601 extended
6472         date and time of day parsing.
6473
6474 2011-08-31  Bruno Haible  <bruno@clisp.org>
6475
6476         freopen: Documentation.
6477         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6478         name.
6479         Reported by Claudio Bley <claudio.bley@gmail.com>.
6480
6481 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6482
6483         freopen: Don't crash if the filename argument is NULL.
6484         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6485         NULL.
6486
6487 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6488
6489         openat: work around AIX 7.1 fstatat bug
6490         Problem reported by Kevin Brott for GNU tar, in the thread containing
6491         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6492         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6493         FSTATAT_ST_SIZE_ETC_BROKEN.
6494         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6495         rpl_fstatat.
6496         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6497         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6498         AC_CHECK_FUNCS_ONCE for fstatat.
6499         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6500         fchmodat, mkdirat, openat and unlinkat.
6501
6502 2011-08-30  Bruno Haible  <bruno@clisp.org>
6503
6504         Avoid endless recursions if config.h includes some header files.
6505         * lib/fopen.c (__need_FILE): Define already before including config.h.
6506         * lib/freopen.c (__need_FILE): Likewise.
6507         * lib/open.c (__need_system_fcntl_h): Likewise.
6508         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6509         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6510         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6511
6512 2011-08-25  Karl Berry  <karl@gnu.org>
6513
6514         * config/srclist.txt (ylwrap): new try.
6515         * build-aux/ylwrap: new file.
6516
6517 2011-08-23  Bruno Haible  <bruno@clisp.org>
6518
6519         tmpdir: Use a good default directory on native Windows.
6520         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6521         (P_tmpdir): Default to _P_tmpdir on native Windows.
6522         (path_search): On native Windows, try the value returned by GetTempPath
6523         before trying P_tmpdir.
6524         * modules/tmpdir (Depends-on): Add pathmax.
6525         Suggested by John Darrington <john@darrington.wattle.id.au>.
6526
6527 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6528
6529         doc: fix typo in README-release
6530         * top/README-release: Capitalize first word of a sentence.
6531
6532 2011-08-19  Jim Meyering  <meyering@redhat.com>
6533
6534         fts: do not exhaust memory when processing million-entry directories
6535         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6536         directory would require about 256*N bytes of memory.  Thus, it was
6537         easy to construct a directory too large to be processed by any of
6538         those tools.  With this change, fts' maximum memory utilization is
6539         now limited to around 30MB.
6540         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6541         (fts_read): When we've processed the final entry (i.e., when
6542         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6543         using the parent entry to read any remaining entries.  Dispatch
6544         depending on what fts_build returns:
6545         - NULL+stop, aka failure: stop
6546         - NULL otherwise: move up in the dir hierarchy
6547         - non-NULL: handle this new entry
6548         (fts_build): Declare and use new local, continue_readdir.
6549         Prepare to be called from fts_read, when the entries
6550         from a partially-read directory have just been exhausted.
6551         In that case, we'll skip the opendir and instead use the parent's
6552         fts_dirp and derive dir_fd from that.
6553         Finally, in the readdir loop, if we read max_entries entries,
6554         exit the loop ensuring *not* to call closedir.  This is required
6555         so that fts_dirp can be reused on a subsequent call.
6556         Prompted by Ben England's report of memory exhaustion in find
6557         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6558
6559         maint: fts: move decl of `dp' down into while loop; split a long line
6560         * lib/fts.c (fts_build): No semantic change.
6561
6562         fts: add/use new struct member, fts_dirp
6563         We are about to use this to manage any directory with
6564         too many entries to read all of them into memory at once.
6565         To do that, we'll need to save the DIR* pointer in each
6566         affected FTSENT struct.
6567         * lib/fts_.h: Include <dirent.h>.
6568         (struct FTSENT) [fts_dirp]: New member.
6569         * lib/fts.c (closedir_and_clear): Define.
6570         Use it in place of closedir so that we are sure to
6571         clear the new fts_dirp member when done with it.
6572         (fts_alloc): Initialize the new member.
6573         (fts_lfree): Free, if needed.
6574
6575         maint: fts: give __opendir2 a new parameter and rename
6576         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6577         than surreptitiously using sole caller's "dir_fd".
6578         (fts_opendir): Rename from __opendir2.
6579
6580         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6581         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6582
6583         maint: fts.c: correct off-by-one indentation
6584         * lib/fts.c (fts_build): Correct indentation, change style
6585         of a couple of block comments, and bracing style.
6586
6587         maint: fts.c: move __opendir2 #define "up" out of function body
6588         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6589
6590         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6591         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6592         out for a long time and besides was useful only on BSD systems.
6593
6594 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6595
6596         regex: port to Stratus OpenVOS
6597         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6598         define to empty, rather than attempting nonportable optimizations.
6599         Problem reported by Paul Green in:
6600         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6601         and fix suggested by Eric Blake in:
6602         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6603
6604 2011-08-17  Eric Blake  <eblake@redhat.com>
6605
6606         getcwd: fix test failures on mingw
6607         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6608         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6609         test if long directory cannot be created, and allow mingw errno.
6610
6611         getcwd-lgpl: fix m4 to match relaxed test for BSD
6612         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6613         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6614         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6615         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6616         signature problem.
6617
6618         getcwd: fix compilation on mingw64
6619         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6620         getcwd.
6621         Reported by Marc-André Lureau.
6622
6623         pipe2: silence compiler warning
6624         * lib/pipe2.c (pipe2): Hide label if it is not used.
6625
6626 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6627
6628         relocatable-prog: fix link error
6629         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6630         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6631         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6632         into modules/relocatable-lib without noticing that
6633         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6634         also needs to build relocatable.c.
6635
6636 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6637
6638         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6640         shell code: it contained a 'break' that was not in a loop.
6641         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6642         via a shell-language loop; this may have been true in old Autoconf
6643         versions, but it's not true in Autoconf 2.68.  I found this bug
6644         when testing coreutils git on Solaris 8, whose shell complains
6645         about the syntax error.
6646
6647 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6648
6649         * lib/base64.c: Fix comment to reference RFC 4648.
6650         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6651         <gvtulder@gmail.com>.
6652
6653 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6654
6655         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6656
6657         po/Makefile.in.in: fix make -q problem
6658         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6659         rule, since there's no file named 'check-macro-version' and its
6660         use as a file breaks make -q.
6661         (all): Don't depend on check-macro-version.
6662         (CHECK_MACRO_VERSION): New macro.
6663         (stamp-po): Use it.
6664
6665         configmake: fix make -q problem
6666         * modules/configmake (configmake.h): Update configmake.h's time stamp
6667         even if the file does not change.  Otherwise, 'make -q' fails.
6668         Problem reported by Simon Josefsson in
6669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6670
6671 2011-08-11  Jim Meyering  <meyering@redhat.com>
6672
6673         git-version-gen: correct the advice in a comment
6674         * build-aux/git-version-gen: Correct comment.
6675         Don't recommend to list .tarball-version in .gitignore.
6676
6677 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6678
6679         base64: fix off-by-one buffer size bug
6680         Problem and (trivial) fix reported by Gijs van Tulder in
6681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6682         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6683         * tests/test-base64.c (main): Catch the bug.
6684
6685 2011-08-10  Eric Blake  <eblake@redhat.com>
6686
6687         closein: correct comments
6688         * lib/closein.c (close_stdin): Improve comments.
6689
6690 2011-08-09  Bruno Haible  <bruno@clisp.org>
6691
6692         More tests for 'fseeko'.
6693         * tests/test-fseeko3.c: New file, from Eric Blake.
6694         * tests/test-fseeko3.sh: New file.
6695         * modules/fseeko-tests (Files): Add them.
6696         (TESTS): Add test-fseeko3.sh.
6697         (check_PROGRAMS): Add test-fseeko3.
6698
6699 2011-08-09  Eric Blake  <eblake@redhat.com>
6700
6701         fseeko: remove unneeded hack
6702         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6703
6704         fseeko: fix bug on glibc
6705         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6706         Reported by John W. Eaton.
6707
6708 2011-08-08  Bruno Haible  <bruno@clisp.org>
6709
6710         unictype/base: Fix interoperability with preinstalled libunistring.
6711         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6712         Reported by Simon Josefsson.
6713
6714 2011-08-08  Bruno Haible  <bruno@clisp.org>
6715
6716         iswblank: Detect declaration correctly.
6717         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6718         AC_CHECK_DECLS invocation.
6719
6720 2011-08-08  Bruno Haible  <bruno@clisp.org>
6721
6722         tcgetsid: Detect declaration correctly.
6723         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6724         AC_CHECK_DECLS invocation.
6725         Reported by Simon Josefsson.
6726
6727 2011-08-08  Eric Blake  <eblake@redhat.com>
6728
6729         largefile: fix typo that regressed large file support
6730         * modules/largefile (configure.ac-early): Fix section name.
6731
6732 2011-08-06  Karl Berry  <karl@gnu.org>
6733
6734         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6735         a separate module.
6736
6737 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6738
6739         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6740         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6741         get prototype for free.
6742
6743 2011-08-04  Bruno Haible  <bruno@clisp.org>
6744
6745         Tests for module 'pathmax'.
6746         * modules/pathmax-tests: New file.
6747         * tests/test-pathmax.c: New file.
6748
6749         canonicalize-lgpl: Support larger filenames on the Hurd.
6750         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6751         Reported by Paul Eggert.
6752
6753         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6754         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6755         * lib/chdir-long.h: Include pathmax.h.
6756         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6757         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6758         (PATH_MAX): Remove code that is done by pathmax.h.
6759         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6760         * lib/tmpfile.c: Add a comment.
6761         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6762         * modules/chdir-long (Depends-on): Add pathmax.
6763         * modules/getcwd (Depends-on): Add pathmax.
6764         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6765         is not defined.
6766         * doc/posix-headers/limits.texi: Mention the pathmax module.
6767         * NEWS: Mention the change.
6768
6769 2011-08-02  Bruno Haible  <bruno@clisp.org>
6770
6771         pthread_sigmask: Actually use results of gl_THREADLIB.
6772         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6773         gl_THREADLIB, not gl_[]THREADLIB.
6774         Reported by Eric Blake.
6775
6776 2011-08-02  Jim Meyering  <meyering@redhat.com>
6777
6778         maint.mk: relax the default _gl_TS_function_match regexp
6779         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6780         space between function name and "(" in an "extern" declaration.
6781         That would fail to match a decl with no space there: extern void foo();
6782
6783 2011-07-31  Iain Nicol  <iain@thenicols.net>
6784
6785         git-version-gen: document that EXTRA_DIST must include .version
6786         * build-aux/git-version-gen: In the how-to-use comment, document
6787         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6788         will fail when run from an unpacked distribution tarball.
6789
6790 2011-08-01  Bruno Haible  <bruno@clisp.org>
6791
6792         wctype-h: Fix last change.
6793         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6794         REPLACE_TOWLOWER to 0.
6795         Reported by Sam Steingold <sds@gnu.org>.
6796
6797 2011-07-31  Bruno Haible  <bruno@clisp.org>
6798
6799         frexpl: Update autoconf test.
6800         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6801         according to changes of 2011-06-20.
6802
6803 2011-07-31  Bruno Haible  <bruno@clisp.org>
6804
6805         sys_utsname: Add support for Minix.
6806         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6807         <sys/utsname.h>.
6808         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6809         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6810
6811 2011-07-31  Bruno Haible  <bruno@clisp.org>
6812
6813         strings: Add support for Minix.
6814         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6815         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6816         * doc/posix-headers/strings.texi: Document the Minix problem.
6817
6818 2011-07-31  Bruno Haible  <bruno@clisp.org>
6819
6820         wctype-h: Add support for Minix.
6821         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6822         REPLACE_TOWLOWER.
6823         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6824         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6825         REPLACE_ISWCNTRL.
6826
6827 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6828
6829         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6830         This is a performance improvement for 64-bit hosts: it causes the
6831         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6832
6833 2011-07-31  Bruno Haible  <bruno@clisp.org>
6834
6835         stdioext: Add support for Minix.
6836         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6837         * lib/fpurge.c (fpurge): Likewise.
6838         * lib/freadahead.c (freadahead): Likewise.
6839         * lib/freadable.c (freadable): Likewise.
6840         * lib/freading.c (freading): Likewise.
6841         * lib/freadptr.c (freadptr): Likewise.
6842         * lib/freadseek.c (freadptrinc): Likewise.
6843         * lib/fseeko.c (rpl_fseeko): Likewise.
6844         * lib/fseterr.c (fseterr): Likewise.
6845         * lib/fwritable.c (fwritable): Likewise.
6846         * lib/fwriting.c (fwriting): Likewise.
6847         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6848         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6849
6850 2011-07-31  Bruno Haible  <bruno@clisp.org>
6851
6852         errno: Port to Minix.
6853         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6854         ECONNABORTED are defined.
6855         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6856         GNULIB_defined_ECONNABORTED): New macros.
6857         * lib/strerror-override.h (strerror_override): Test also
6858         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6859         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6860         ECONNABORTED.
6861         * doc/posix-headers/errno.texi: Mention the Minix problem.
6862
6863 2011-07-31  Bruno Haible  <bruno@clisp.org>
6864
6865         Work around declaration collisions on Minix.
6866         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6867         defined, set REPLACE_MBSINIT.
6868         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6869         defined, set REPLACE_MBRTOWC.
6870         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6871         set REPLACE_MBRLEN.
6872         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6873         defined, set REPLACE_MBSRTOWCS.
6874         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6875         defined, set REPLACE_WCRTOMB.
6876         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6877         defined, set REPLACE_WCSRTOMBS.
6878
6879 2011-07-31  Bruno Haible  <bruno@clisp.org>
6880
6881         Add support for Minix with ACK compiler.
6882         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6883         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6884         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6885
6886 2011-07-31  Bruno Haible  <bruno@clisp.org>
6887
6888         Documentation about Minix.
6889         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6890         * doc/glibc-headers/*.texi: Likewise.
6891         * doc/posix-functions/*.texi: Likewise.
6892         * doc/glibc-functions/*.texi: Likewise.
6893
6894 2011-07-31  Bruno Haible  <bruno@clisp.org>
6895
6896         snippet/warn-on-use: Fix indentation.
6897         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6898
6899 2011-07-25  Jim Meyering  <meyering@redhat.com>
6900
6901         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6902         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6903         commands.
6904
6905 2011-07-27  Jim Meyering  <meyering@redhat.com>
6906
6907         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6908         * top/maint.mk (gl_extract_significant_defines_): Now that
6909         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6910         gnulib/lib/signal.in.h, and now that we recommend to
6911         define-if-undefined those two symbols in application code,
6912         we must filter them out of the "significant" list.
6913         This avoids a "make syntax-check" failure in coreutils.
6914
6915 2011-07-26  Eric Blake  <eblake@redhat.com>
6916
6917         warnings: add comments about previous patch
6918         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6919         * m4/include_next.m4: Likewise.
6920         * m4/warn-on-use.m4: Likewise.
6921         * m4/warnings.m4: Likewise, and simplify use.
6922         Suggested by Stefano Lattarini.
6923
6924         include-next, warnings: support older autoconf
6925         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6926         AS_VAR_PUSHDEF in a way that works with older autoconf.
6927         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6928         Reported by Daniel P. Berrange.
6929
6930 2011-07-25  Bruno Haible  <bruno@clisp.org>
6931
6932         fseek, ftell: Fix doc.
6933         * doc/posix-functions/fseek.texi: Reword statement about
6934         AC_SYS_LARGEFILE.
6935         * doc/posix-functions/ftell.texi: Likewise.
6936
6937 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6938             Bruno Haible  <bruno@clisp.org>
6939
6940         Add dependencies to the 'largefile' module.
6941         * modules/fopen (Depends-on): Add 'largefile'.
6942         * modules/freopen (Depends-on): Likewise.
6943         * modules/fseeko (Depends-on): Likewise.
6944         * modules/ftello (Depends-on): Likewise.
6945         * modules/glob (Depends-on): Likewise.
6946         * modules/lseek (Depends-on): Likewise.
6947         * modules/lstat (Depends-on): Likewise.
6948         * modules/mkostemp (Depends-on): Likewise.
6949         * modules/mkostemps (Depends-on): Likewise.
6950         * modules/mkstemp (Depends-on): Likewise.
6951         * modules/mkstemps (Depends-on): Likewise.
6952         * modules/open (Depends-on): Likewise.
6953         * modules/openat (Depends-on): Likewise.
6954         * modules/pread (Depends-on): Likewise.
6955         * modules/pwrite (Depends-on): Likewise.
6956         * modules/scandir (Depends-on): Likewise.
6957         * modules/stat (Depends-on): Likewise.
6958         * modules/tmpfile (Depends-on): Likewise.
6959         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6960         since the containing module now depends on the largefile module.
6961         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6962         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6963         off_t is fixed by gnulib.
6964         * doc/posix-functions/freopen.texi: Likewise.
6965         * doc/posix-functions/fseeko.texi: Likewise.
6966         * doc/posix-functions/fstatat.texi: Likewise.
6967         * doc/posix-functions/ftello.texi: Likewise.
6968         * doc/posix-functions/glob.texi: Likewise.
6969         * doc/posix-functions/lseek.texi: Likewise.
6970         * doc/posix-functions/lstat.texi: Likewise.
6971         * doc/posix-functions/mkstemp.texi: Likewise.
6972         * doc/posix-functions/open.texi: Likewise.
6973         * doc/posix-functions/openat.texi: Likewise.
6974         * doc/posix-functions/pread.texi: Likewise.
6975         * doc/posix-functions/pwrite.texi: Likewise.
6976         * doc/posix-functions/scandir.texi: Likewise.
6977         * doc/posix-functions/stat.texi: Likewise.
6978         * doc/posix-functions/tmpfile.texi: Likewise.
6979         * doc/glibc-functions/mkostemp.texi: Likewise.
6980         * doc/glibc-functions/mkostemps.texi: Likewise.
6981         * doc/glibc-functions/mkstemps.texi: Likewise.
6982
6983 2011-07-25  Bruno Haible  <bruno@clisp.org>
6984
6985         fcntl: Move AC_LIBOBJ invocation to module description.
6986         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6987         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6988
6989         fcntl: Remove call-in from fchdir.m4.
6990         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6992
6993         dup3: Remove potential call-in from fchdir.m4.
6994         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6996
6997         dup2: Move AC_LIBOBJ invocation to module description.
6998         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6999         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7000         Don't invoke AC_LIBOBJ.
7001         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7002
7003         dup2: Remove call-in from fchdir.m4.
7004         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7005         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7006
7007         fclose: Move AC_LIBOBJ invocation to module description.
7008         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7009         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7010         to 1.
7011         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7012
7013         fclose: Remove call-in from close.m4.
7014         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7015         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7016
7017         close: Move AC_LIBOBJ invocation to module description.
7018         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7019         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7020         1.
7021         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7022
7023         close: Remove call-in from fchdir.m4.
7024         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7026
7027         open: Move AC_LIBOBJ invocation to module description.
7028         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7029         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7030         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7031
7032         open: Remove call-in from fchdir.m4.
7033         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7035
7036         fchdir: Start to remove gl_REPLACE_* idiom.
7037         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7038         (gl_FUNC_FCHDIR): Invoke it.
7039
7040 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7041
7042         * lib/ftell.c (ftell): Comment out cast.
7043
7044         close: use gl_REPLACE_FCLOSE only if defined
7045         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7046         is defined.  The close module doesn't depend on the fclose module
7047         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7049         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7050
7051 2011-07-24  Jim Meyering  <meyering@redhat.com>
7052
7053         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7054         * tests/test-select.h (test_function): Declare as "static".
7055
7056 2011-07-24  Bruno Haible  <bruno@clisp.org>
7057
7058         doc: Mention the effects of AC_SYS_LARGEFILE.
7059         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7060         on this function.
7061         * doc/posix-functions/aio_error.texi: Likewise.
7062         * doc/posix-functions/aio_fsync.texi: Likewise.
7063         * doc/posix-functions/aio_read.texi: Likewise.
7064         * doc/posix-functions/aio_return.texi: Likewise.
7065         * doc/posix-functions/aio_suspend.texi: Likewise.
7066         * doc/posix-functions/aio_write.texi: Likewise.
7067         * doc/posix-functions/fgetpos.texi: Likewise.
7068         * doc/posix-functions/fopen.texi: Likewise.
7069         * doc/posix-functions/freopen.texi: Likewise.
7070         * doc/posix-functions/fsetpos.texi: Likewise.
7071         * doc/posix-functions/fstatvfs.texi: Likewise.
7072         * doc/posix-functions/ftruncate.texi: Likewise.
7073         * doc/posix-functions/ftw.texi: Likewise.
7074         * doc/posix-functions/getrlimit.texi: Likewise.
7075         * doc/posix-functions/glob.texi: Likewise.
7076         * doc/posix-functions/lio_listio.texi: Likewise.
7077         * doc/posix-functions/lockf.texi: Likewise.
7078         * doc/posix-functions/mkstemp.texi: Likewise.
7079         * doc/posix-functions/mmap.texi: Likewise.
7080         * doc/posix-functions/nftw.texi: Likewise.
7081         * doc/posix-functions/openat.texi: Likewise.
7082         * doc/posix-functions/opendir.texi: Likewise.
7083         * doc/posix-functions/posix_fadvise.texi: Likewise.
7084         * doc/posix-functions/posix_fallocate.texi: Likewise.
7085         * doc/posix-functions/pread.texi: Likewise.
7086         * doc/posix-functions/pwrite.texi: Likewise.
7087         * doc/posix-functions/readdir.texi: Likewise.
7088         * doc/posix-functions/readdir_r.texi: Likewise.
7089         * doc/posix-functions/rewinddir.texi: Likewise.
7090         * doc/posix-functions/scandir.texi: Likewise.
7091         * doc/posix-functions/seekdir.texi: Likewise.
7092         * doc/posix-functions/setrlimit.texi: Likewise.
7093         * doc/posix-functions/statvfs.texi: Likewise.
7094         * doc/posix-functions/telldir.texi: Likewise.
7095         * doc/posix-functions/tmpfile.texi: Likewise.
7096         * doc/posix-functions/truncate.texi: Likewise.
7097         * doc/glibc-functions/fallocate.texi: Likewise.
7098         * doc/glibc-functions/fstatfs.texi: Likewise.
7099         * doc/glibc-functions/fts_children.texi: Likewise.
7100         * doc/glibc-functions/fts_read.texi: Likewise.
7101         * doc/glibc-functions/getdirentries.texi: Likewise.
7102         * doc/glibc-functions/mkostemp.texi: Likewise.
7103         * doc/glibc-functions/mkostemps.texi: Likewise.
7104         * doc/glibc-functions/mkstemps.texi: Likewise.
7105         * doc/glibc-functions/preadv.texi: Likewise.
7106         * doc/glibc-functions/pwritev.texi: Likewise.
7107         * doc/glibc-functions/sendfile.texi: Likewise.
7108         * doc/glibc-functions/statfs.texi: Likewise.
7109
7110 2011-07-24  Bruno Haible  <bruno@clisp.org>
7111
7112         doc: Fix typo.
7113         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7114
7115 2011-07-24  Bruno Haible  <bruno@clisp.org>
7116
7117         doc: Mention fsusage.
7118         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7119
7120 2011-07-24  Bruno Haible  <bruno@clisp.org>
7121
7122         doc: Mention new glibc headers and functions.
7123         * doc/glibc-headers/gshadow.texi: New file.
7124         * doc/glibc-functions/endsgent.texi: New file.
7125         * doc/glibc-functions/fgetsgent.texi: New file.
7126         * doc/glibc-functions/fgetsgent_r.texi: New file.
7127         * doc/glibc-functions/getsgent.texi: New file.
7128         * doc/glibc-functions/getsgent_r.texi: New file.
7129         * doc/glibc-functions/getsgnam.texi: New file.
7130         * doc/glibc-functions/getsgnam_r.texi: New file.
7131         * doc/glibc-functions/putsgent.texi: New file.
7132         * doc/glibc-functions/setsgent.texi: New file.
7133         * doc/glibc-functions/sgetsgent.texi: New file.
7134         * doc/glibc-functions/sgetsgent_r.texi: New file.
7135         * doc/glibc-functions/malloc_info.texi: New file.
7136         * doc/glibc-functions/preadv.texi: New file.
7137         * doc/glibc-functions/pwritev.texi: New file.
7138         * doc/glibc-functions/register_printf_modifier.texi: New file.
7139         * doc/glibc-functions/register_printf_specifier.texi: New file.
7140         * doc/glibc-functions/register_printf_type.texi: New file.
7141         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7142         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7143         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7144         * doc/glibc-functions/pthread_getname_np.texi: New file.
7145         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7146         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7147         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7148         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7149         * doc/glibc-functions/pthread_setname_np.texi: New file.
7150         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7151         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7152         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7153         * doc/glibc-functions/qsort_r.texi: New file.
7154         * doc/glibc-functions/quick_exit.texi: New file.
7155         * doc/glibc-functions/syncfs.texi: New file.
7156         * doc/gnulib.texi: Include them.
7157         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7158         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7159         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7160         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7161         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7162         * doc/glibc-functions/execvpe.texi: Likewise.
7163
7164 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7165
7166         ftell: don't include <unistd.h>
7167         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7168         guaranteed to define off_t, and the ftell module depends on the
7169         stdio module.
7170
7171         ftell: do not assume wraparound signed arithmetic
7172         * lib/ftell.c: Include <limits.h>.
7173         (ftell): Don't assume wraparound signed arithmetic.
7174
7175 2011-07-24  Bruno Haible  <bruno@clisp.org>
7176
7177         close: No longer depend on module 'fclose'.
7178         * modules/close (Depends-on): Remove fclose.
7179         * NEWS: Mention the change.
7180         Suggested by Sam Steingold <sds@gnu.org>.
7181
7182 2011-07-24  Bruno Haible  <bruno@clisp.org>
7183
7184         fsusage: Enable large volume support on AIX >= 5.2.
7185         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7186         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7187         instead of STAT_STATVFS.
7188         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7189
7190         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7191         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7192         f_blocks field only on MacOS X.
7193
7194         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7196         * modules/fsusage (Depends-on): Add largefile.
7197
7198 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7199
7200         * README: Modernize discussion of signed integers.
7201         Assuming overflow wraparound is no longer safe.
7202         Mention ones' complement and signed magnitude.
7203
7204 2011-07-22  Bruno Haible  <bruno@clisp.org>
7205
7206         select tests, pselect tests: Refactor.
7207         * tests/test-select.h: New file, extracted from tests/test-select.c.
7208         (select_fn): New type.
7209         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7210         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7211         test_pipe): Add my_select argument.
7212         (test_function): Renamed from main. Add my_select argument.
7213         * tests/test-select.c: Move most code to tests/test-select.h. Include
7214         test-select.h.
7215         * modules/select-tests (Files): Add tests/test-select.h.
7216         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7217         (my_select, main): New functions.
7218         * modules/pselect-tests (Files): Add tests/test-select.h,
7219         tests/macros.h, tests/signature.h.
7220         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7221         (configure.ac): Check for <sys/wait.h>.
7222
7223 2011-07-22  Bruno Haible  <bruno@clisp.org>
7224
7225         sys_select tests: Check the signature of FD_*.
7226         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7227         signature tests from here...
7228         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7229         here.
7230         * modules/sys_select-tests (Files): Add tests/signature.h.
7231
7232 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7233
7234         largefile: new module, replacing large-inode
7235         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
7236         * MODULES.html.sh: Add largefile, remove large-inode.
7237         * modules/largefile, m4/largefile.m4: New files.
7238         * modules/large-inode, m4/large-inode.m4: Remove.
7239
7240         fsusage: port to MacOS X 10.7 with 4 TiB file systems
7241         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
7242         implementations that use only 32 bits to count blocks.
7243         On typical hosts with 1024-byte blocks, this fails with file
7244         systems as small as 4 TiB.  Problem reported by Herb Wartens
7245         <http://debbugs.gnu.org/9140> and this should also fix a similar
7246         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
7247
7248         large-inode: New module
7249         * MODULES.html.sh: Add it.
7250         * modules/large-inode, m4/large-inode.m4: New files.
7251
7252         extensions: Enable extensions on MacOS X 10.5 and later.
7253         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
7254
7255 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
7256
7257         file-has-acl: use acl_extended_file_nofollow if available
7258         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
7259         (acl_extended_file): New macro.
7260         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
7261         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
7262
7263 2011-07-21  Bruno Haible  <bruno@clisp.org>
7264
7265         Declare system functions in a way that works with C++.
7266         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
7267         declare fdopendir as extern "C".
7268         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
7269         declare frexpl as extern "C".
7270         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
7271         declare gai_strerror as extern "C".
7272         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
7273         programs, declare gai_strerror as extern "C".
7274         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
7275         declare getlogin_r as extern "C".
7276         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
7277         as extern "C".
7278         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
7279         declare ldexpl as extern "C".
7280         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
7281         as extern "C".
7282         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
7283         program, declare getmntinfo as extern "C".
7284         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
7285         stpncpy as extern "C".
7286         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
7287         program, declare __xpg_strerror_r as extern "C".
7288         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
7289         strndup as extern "C".
7290         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
7291         declare memset and bzero as extern "C".
7292         Reported by Sam Steingold <sds@gnu.org>.
7293
7294 2011-07-12  Jim Meyering  <meyering@redhat.com>
7295
7296         maint.mk: prohibit inclusion of "verify.h" without use
7297         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
7298
7299 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7300
7301         timer-time: A new module to check for timer_settime()
7302         * m4/timer_time.m4: Check for the posix function.
7303         * modules/timer-time: Add the new module.
7304         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
7305         Mention it.
7306
7307 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
7308             Bruno Haible  <bruno@clisp.org>
7309
7310         pthread_sigmask: assume POSIX threads if --avoid=threadlib
7311         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
7312         not defined, assume POSIX threads and look for pthread_sigmask in
7313         $LIBS, without changing $CPPFLAGS.
7314
7315 2011-07-19  Bruno Haible  <bruno@clisp.org>
7316
7317         strstr: Update cross-compilation guess.
7318         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
7319         CPUs, guess no, in view of glibc
7320         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
7321         Suggested by Eric Blake. Reported by Reuben Thomas.
7322
7323 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7324
7325         getopt-gnu: suppress core dumps from detection code
7326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
7327         to suppress core dumps that may well occur on glibc systems.
7328         * modules/getopt-gnu: Depend on nocrash.
7329
7330 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7331
7332         pthread_sigmask: ensure usleep is declared
7333         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
7334         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
7335
7336 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7337
7338         doc: Document NonStop portability issues.
7339         * doc/posix-functions/sigaction.texi (sigaction):
7340         * doc/posix-headers/signal.texi (signal.h):
7341         Document NonStop.  See Joachim Schmitz in
7342         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
7343
7344 2011-07-15  Bruno Haible  <bruno@clisp.org>
7345
7346         ffsl, ffsll: Avoid unportable behaviour.
7347         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
7348
7349 2011-07-15  Bruno Haible  <bruno@clisp.org>
7350
7351         ffs: More tests.
7352         * tests/test-ffs.c (NBITS): New macro.
7353         (main): Add more tests.
7354         * tests/test-ffsl.c (NBITS): New macro.
7355         (main): Add more tests.
7356         * tests/test-ffsll.c (NBITS): New macro.
7357         (main): Add more tests.
7358
7359 2011-07-15  Eric Blake  <eblake@redhat.com>
7360
7361         ffsl, ffsll: new modules
7362         * modules/ffsl: New file.
7363         * modules/ffsll: Likewise.
7364         * m4/ffsl.m4: Likewise.
7365         * m4/ffsll.m4: Likewise.
7366         * lib/ffsl.c: Likewise.
7367         * lib/ffsl.h: Likewise.
7368         * lib/ffsll.c: Likewise.
7369         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7370         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7371         * modules/string (Makefile.am): Substitute witnesses.
7372         * lib/strings.in.h (ffsl, ffsll): Declare.
7373         * modules/ffsl-tests: New test file.
7374         * modules/ffsll-tests: Likewise.
7375         * tests/test-ffsl.c: Likewise.
7376         * tests/test-ffsll.c: Likewise.
7377         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7378         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7379         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7380
7381         ffs: fix m4 prerequisite
7382         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7383
7384         ffs: avoid undefined behavior
7385         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
7386         * tests/test-ffs.c (naive, main): Avoid signed shifts.
7387         Reported by Bruno Haible.
7388
7389 2011-07-12  Bruno Haible  <bruno@clisp.org>
7390
7391         pthread_sigmask: Rely on module 'threadlib'.
7392         * modules/pthread_sigmask (Depends-on): Add threadlib.
7393         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7394         is defined.
7395
7396 2011-07-12  Bruno Haible  <bruno@clisp.org>
7397
7398         regex: Depend on module 'strcase'.
7399         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7400
7401 2011-07-12  Jim Meyering  <meyering@redhat.com>
7402
7403         warn-on-use: fix typo in file name
7404         * modules/snippet/warn-on-use (Files): Correct file name:
7405         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7406
7407 2011-07-12  Bruno Haible  <bruno@clisp.org>
7408
7409         strings: Document module.
7410         * doc/posix-headers/strings.texi: Mention module 'strings'.
7411
7412 2011-07-12  Bruno Haible  <bruno@clisp.org>
7413
7414         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7415         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7416         (Files, Makefile.am): Update.
7417         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7418         * modules/stdlib (Depends-on): Update.
7419
7420 2011-07-12  Bruno Haible  <bruno@clisp.org>
7421
7422         * NEWS: Mention the changes.
7423
7424         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7425         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7426         (Files, Makefile.am): Update.
7427         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7428         * modules/arpa_inet (Depends-on): Update.
7429         * modules/ctype (Depends-on): Update.
7430         * modules/dirent (Depends-on): Update.
7431         * modules/fcntl-h (Depends-on): Update.
7432         * modules/glob (Depends-on): Update.
7433         * modules/iconv-h (Depends-on): Update.
7434         * modules/inttypes-incomplete (Depends-on): Update.
7435         * modules/langinfo (Depends-on): Update.
7436         * modules/locale (Depends-on): Update.
7437         * modules/math (Depends-on): Update.
7438         * modules/netdb (Depends-on): Update.
7439         * modules/poll-h (Depends-on): Update.
7440         * modules/pty (Depends-on): Update.
7441         * modules/search (Depends-on): Update.
7442         * modules/signal (Depends-on): Update.
7443         * modules/spawn (Depends-on): Update.
7444         * modules/stdio (Depends-on): Update.
7445         * modules/stdlib (Depends-on): Update.
7446         * modules/string (Depends-on): Update.
7447         * modules/strings (Depends-on): Update.
7448         * modules/sys_file (Depends-on): Update.
7449         * modules/sys_ioctl (Depends-on): Update.
7450         * modules/sys_select (Depends-on): Update.
7451         * modules/sys_socket (Depends-on): Update.
7452         * modules/sys_stat (Depends-on): Update.
7453         * modules/sys_time (Depends-on): Update.
7454         * modules/sys_times (Depends-on): Update.
7455         * modules/sys_utsname (Depends-on): Update.
7456         * modules/sys_wait (Depends-on): Update.
7457         * modules/termios (Depends-on): Update.
7458         * modules/time (Depends-on): Update.
7459         * modules/unistd (Depends-on): Update.
7460         * modules/wchar (Depends-on): Update.
7461         * modules/wctype-h (Depends-on): Update.
7462         * MODULES.html.sh (Support for building libraries and executables):
7463         Update.
7464
7465         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7466         * modules/snippet/unused-parameter: Renamed from
7467         modules/unused-parameter.
7468         (Files, Makefile.am): Update.
7469         * build-aux/snippet/unused-parameter.h: Renamed from
7470         build-aux/unused-parameter.h.
7471         * modules/selinux-h (Depends-on): Update.
7472         * modules/unistr/base (Depends-on): Update.
7473         * MODULES.html.sh (Core language properties): Update.
7474
7475         Rename module 'link-warning' to 'snippet/link-warning'.
7476         * modules/snippet/link-warning: Renamed from modules/link-warning.
7477         (Files, Makefile.am): Update.
7478         * build-aux/snippet/link-warning.h: Renamed from
7479         build-aux/link-warning.h.
7480         * MODULES.html.sh (Support for building libraries and executables):
7481         Update.
7482
7483         Rename module 'c++defs' to 'snippet/c++defs'.
7484         * modules/snippet/c++defs: Renamed from modules/c++defs.
7485         (Files, Makefile.am): Update.
7486         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7487         * modules/arpa_inet (Depends-on): Update.
7488         * modules/ctype (Depends-on): Update.
7489         * modules/dirent (Depends-on): Update.
7490         * modules/fcntl-h (Depends-on): Update.
7491         * modules/glob (Depends-on): Update.
7492         * modules/iconv-h (Depends-on): Update.
7493         * modules/langinfo (Depends-on): Update.
7494         * modules/locale (Depends-on): Update.
7495         * modules/math (Depends-on): Update.
7496         * modules/netdb (Depends-on): Update.
7497         * modules/poll-h (Depends-on): Update.
7498         * modules/pty (Depends-on): Update.
7499         * modules/search (Depends-on): Update.
7500         * modules/signal (Depends-on): Update.
7501         * modules/spawn (Depends-on): Update.
7502         * modules/stdio (Depends-on): Update.
7503         * modules/stdlib (Depends-on): Update.
7504         * modules/string (Depends-on): Update.
7505         * modules/strings (Depends-on): Update.
7506         * modules/sys_ioctl (Depends-on): Update.
7507         * modules/sys_select (Depends-on): Update.
7508         * modules/sys_socket (Depends-on): Update.
7509         * modules/sys_stat (Depends-on): Update.
7510         * modules/sys_time (Depends-on): Update.
7511         * modules/sys_wait (Depends-on): Update.
7512         * modules/termios (Depends-on): Update.
7513         * modules/time (Depends-on): Update.
7514         * modules/unistd (Depends-on): Update.
7515         * modules/wchar (Depends-on): Update.
7516         * modules/wctype-h (Depends-on): Update.
7517
7518         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7519         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7520         (Files, Makefile.am): Update.
7521         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7522         * modules/argv-iter (Depends-on): Update.
7523         * modules/arpa_inet (Depends-on): Update.
7524         * modules/dirent (Depends-on): Update.
7525         * modules/fcntl-h (Depends-on): Update.
7526         * modules/fnmatch (Depends-on): Update.
7527         * modules/getopt-posix (Depends-on): Update.
7528         * modules/glob (Depends-on): Update.
7529         * modules/iconv-h (Depends-on): Update.
7530         * modules/inttypes-incomplete (Depends-on): Update.
7531         * modules/locale (Depends-on): Update.
7532         * modules/math (Depends-on): Update.
7533         * modules/netdb (Depends-on): Update.
7534         * modules/search (Depends-on): Update.
7535         * modules/signal (Depends-on): Update.
7536         * modules/spawn (Depends-on): Update.
7537         * modules/stdio (Depends-on): Update.
7538         * modules/stdlib (Depends-on): Update.
7539         * modules/string (Depends-on): Update.
7540         * modules/strings (Depends-on): Update.
7541         * modules/sys_socket (Depends-on): Update.
7542         * modules/sys_stat (Depends-on): Update.
7543         * modules/sys_time (Depends-on): Update.
7544         * modules/sys_times (Depends-on): Update.
7545         * modules/sys_utsname (Depends-on): Update.
7546         * modules/time (Depends-on): Update.
7547         * modules/unistd (Depends-on): Update.
7548         * modules/wchar (Depends-on): Update.
7549         * MODULES.html.sh (Support for building libraries and executables):
7550         Update.
7551
7552 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7553
7554         Improvements on _Noreturn and related modules.
7555
7556         modules/_Exit-tests: test _Noreturn too
7557         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7558         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7559         (main): Use them.
7560
7561         stdnoreturn, stdnoreturn-tests: remove modules
7562         They're not needed here and a bit premature for use elsewhere.  See
7563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7564         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7565         * tests/test-stdnoreturn.c: Remove files.
7566         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7567         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7568         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7569         and using noreturn.
7570         * modules/openat, modules/sigpipe-die, modules/xalloc:
7571         * modules/xmemdup0, modules/xstrtol:
7572         Remove dependency on stdnoreturn.
7573
7574         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7575         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7576         Reparenthesize to avoid GCC warning.
7577         Support Microsoft's syntax.
7578         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7579
7580         _Noreturn-tests: remove module
7581         * modules/_Noreturn-tests: Remove.
7582         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7583         * tests/test-_Noreturn.c: Remove.
7584         * tests/test-stdnoreturn.c: Merge from the old
7585         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7586
7587 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7588
7589         _Noreturn, stdnoreturn, and related modules.
7590
7591         * top/maint.mk: Adjust to new noreturn support.
7592         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7593         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7594
7595         xalloc: use stdnoreturn.h
7596         * lib/xalloc.h: Include <stdnoreturn.h>.
7597         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7598         * modules/xalloc (Depends-on): Add stdnoreturn.
7599
7600         xstrtol: use stdnoreturn.h
7601         * lib/xstrtol.h: Include <stdnoreturn.h>.
7602         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7603         * modules/xstrtol (Depends-on): Add stdnoreturn.
7604
7605         xmemdup0: use stdnoreturn.h
7606         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7607         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7608         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7609
7610         sigpipe-die: use stdnoreturn.h
7611         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7612         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7613         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7614
7615         openat: use stdnoreturn.h
7616         * lib/openat.h: Include <stdnoreturn.h>.
7617         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7618         * modules/openat (Depends-on): Add stdnoreturn.
7619
7620         * lib/openat-die.c (openat_save_fail): Modernize comment.
7621
7622         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7623
7624         * lib/glthread/thread.h: Modernize comment.
7625
7626         obstack: use _Noreturn
7627         * lib/obstack.c (__attribute__): Remove macro.
7628         (print_and_abort): Use _Noreturn.
7629
7630         c-stack: use _Noreturn
7631         * lib/c-stack.c (die, overflow_handler, segv_handler):
7632         Use _Noreturn rather than __attribute__((noreturn)).
7633
7634         argmatch-tests, exclude_tests: use _Noreturn
7635         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7636         Remove.
7637         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7638
7639         stdlib: use _Noreturn
7640         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7641         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7642         * modules/stdlib (Depends-on): Add _Noreturn.
7643         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7644
7645         stdnoreturn-tests: new module
7646         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7647
7648         stdnoreturn: new module
7649         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7650         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7651
7652         _Noreturn-tests: new module
7653         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7654
7655         _Noreturn: new module
7656         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7657         New section, mentioning it.
7658         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7659
7660         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7661
7662 2011-07-11  Eric Blake  <eblake@redhat.com>
7663
7664         ffs: new module
7665         * modules/ffs: New file.
7666         * m4/ffs.m4: Likewise.
7667         * lib/ffs.c: Likewise.
7668         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7669         * modules/strings (Makefile.am): Substitute witness.
7670         (Depends-on): Add c++defs.
7671         * lib/strings.in.h (ffs): Declare.
7672         * modules/ffs-tests: New test file.
7673         * tests/test-ffs.c: Test new module.
7674         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7675         * doc/posix-functions/ffs.texi (ffs): Likewise.
7676
7677         regex: avoid compiler warning
7678         * lib/regex.c (includes): Include <strings.h>, for use of
7679         strcasecmp in regcomp.c.
7680         Reported by Joachim Schmitz.
7681
7682 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7683
7684         stdint: respect system's intmax_t if INTMAX_MAX
7685         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7686         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7687         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7688         long but int64_t is long long, and where we will clash with the
7689         system intmax_t if we override it.  See
7690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7691         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7692         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7693         similarly for UINTMAX_C.
7694
7695 2011-07-08  Bruno Haible  <bruno@clisp.org>
7696
7697         pthread_sigmask tests: Avoid a compiler warning.
7698         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7699         non-zero.
7700
7701         sigprocmask tests: A better way to avoid a compiler warning.
7702         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7703         (main): Complain if system() returns non-zero.
7704         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7705
7706 2011-07-08  Bruno Haible  <bruno@clisp.org>
7707
7708         pthread_sigmask: Work around IRIX bug.
7709         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7710         bug.
7711         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7712         there may be unblocked pending signals.
7713         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7714
7715 2011-07-08  Bruno Haible  <bruno@clisp.org>
7716
7717         pthread_sigmask: Work around Cygwin bug.
7718         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7719         bug.
7720         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7721         the system's pthread_sigmask function.
7722         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7723
7724 2011-07-08  Bruno Haible  <bruno@clisp.org>
7725
7726         pthread_sigmask: Work around bug in single-threaded implementation.
7727         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7728         FreeBSD, HP-UX, Solaris bug.
7729         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7730         * lib/pthread_sigmask.c: Include <stddef.h>.
7731         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7732         the system's pthread_sigmask function.
7733         * modules/pthread_sigmask (configure.ac): Invoke
7734         gl_PREREQ_PTHREAD_SIGMASK.
7735         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7736         HP-UX, Solaris.
7737
7738 2011-07-08  Eric Blake  <eblake@redhat.com>
7739
7740         test-sigprocmask: avoid compiler warning
7741         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7742         * tests/test-sigprocmask.c (main): Use it to silence warning.
7743         Reported by Jim Meyering.
7744
7745         test-snprintf: avoid compiler warning
7746         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7747         * tests/test-vsnprintf.c (main): Likewise.
7748         Reported by Jim Meyering.
7749
7750 2011-07-08  Bruno Haible  <bruno@clisp.org>
7751
7752         Tests for module 'pthread_sigmask'.
7753         * modules/pthread_sigmask-tests: New file.
7754         * tests/test-pthread_sigmask1.c: New file, based on
7755         tests/test-sigprocmask.c.
7756         * tests/test-pthread_sigmask2.c: New file.
7757
7758 2011-07-08  Jim Meyering  <meyering@redhat.com>
7759
7760         test-getopt.h: avoid warning about an unused variable
7761         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7762
7763 2011-07-07  Jim Meyering  <meyering@redhat.com>
7764
7765         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7766         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7767         now that it no longer contains leading TABs.
7768         Remove unused "url=FIXME" statement.
7769
7770 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7771
7772         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7773         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7774         When gl_THREADLIB is not in use, assume that the POSIX sematics
7775         are desired.  This is better for Emacs, which uses POSIX semantics
7776         on GNUish and/or POSIXish platforms, and does not use threads at
7777         all otherwise.
7778
7779         pthread_sigmask: fix typo when testing for libraries
7780         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7781         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7782
7783 2011-07-08  Eric Blake  <eblake@redhat.com>
7784
7785         fts: introduce FTS_NOATIME
7786         * lib/fts_.h (FTS_NOATIME): New bit flag.
7787         (FTS_OPTIONMASK): Adjust.
7788         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7789         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7790
7791 2011-07-08  Bruno Haible  <bruno@clisp.org>
7792
7793         Tests for module 'thread'.
7794         * modules/thread-tests: New file.
7795         * tests/test-thread_self.c: New file.
7796         * tests/test-thread_create.cc: New file.
7797
7798 2011-07-08  Bruno Haible  <bruno@clisp.org>
7799
7800         thread: Avoid gcc warnings when using gl_thread_self().
7801         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7802         'void *'.
7803         (gl_thread_self_pointer): Update.
7804
7805 2011-07-07  Bruno Haible  <bruno@clisp.org>
7806
7807         signal-c++-tests: Check declaration of pthread_sigmask.
7808         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7809         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7810         $(LIB_PTHREAD_SIGMASK).
7811
7812 2011-07-07  Bruno Haible  <bruno@clisp.org>
7813
7814         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7815         * lib/signal.in.h (pthread_sigmask): Override if
7816         REPLACE_PTHREAD_SIGMASK is 1.
7817         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7818         REPLACE_PTHREAD_SIGMASK.
7819         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7820         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7821         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7822         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7823         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7824
7825 2011-07-07  Bruno Haible  <bruno@clisp.org>
7826
7827         pthread_sigmask: Ensure declaration in <signal.h>.
7828         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7829         include <pthread.h>.
7830         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7831         problem.
7832
7833 2011-07-07  Bruno Haible  <bruno@clisp.org>
7834
7835         pthread_sigmask: Document the module.
7836         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7837
7838 2011-07-07  Bruno Haible  <bruno@clisp.org>
7839
7840         pthread_sigmask: Follow gnulib conventions.
7841         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7842         gl_PTHREAD_SIGMASK.
7843         * modules/pthread_sigmask (configure.ac): Update.
7844
7845 2011-07-07  Bruno Haible  <bruno@clisp.org>
7846
7847         pthread_sigmask: Make declaration C++ safe.
7848         * lib/signal.in.h: In two special conditions, just do an #include_next.
7849         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7850         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7851         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7852         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7853         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7854         not REPLACE_PTHREAD_MASK.
7855         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7856         not REPLACE_PTHREAD_MASK.
7857         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7858
7859 2011-07-07  Bruno Haible  <bruno@clisp.org>
7860
7861         pthread_sigmask: Fix return value.
7862         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7863         * lib/pthread_sigmask.c: New file.
7864         * modules/pthread_sigmask (Files): Add it.
7865         (configure.ac): Invoke AC_LIBOBJ.
7866
7867 2011-07-07  Eric Blake  <eblake@redhat.com>
7868
7869         getopt: more portable argv creation
7870         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7871         const, use char arrays rather than strings.
7872         Suggested by Paul Eggert.
7873
7874 2011-07-07  Bruno Haible  <bruno@clisp.org>
7875
7876         Tests for module 'sigprocmask'.
7877         * modules/sigprocmask-tests: New file.
7878         * tests/test-sigprocmask.c: New file.
7879
7880 2011-07-07  Bruno Haible  <bruno@clisp.org>
7881
7882         float tests: Tweak.
7883         * tests/test-float.c (main): Tweak skip message.
7884
7885 2011-07-07  Eric Blake  <eblake@redhat.com>
7886
7887         getopt: avoid compiler warning during configure
7888         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7889         assigning string literals to non-const pointer.
7890
7891         getopt-gnu: avoid crash in glibc getopt
7892         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7893         * tests/test-getopt.h (test_getopt): Enhance test.
7894         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7895         * doc/posix-functions/getopt.texi (getopt): Document it.
7896         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7897         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7898         Likewise.
7899
7900 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7901
7902         getopt: handle W; without long options in getopt [BZ #12922]
7903         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7904         but no long options are defined, just return 'W'.
7905
7906 2011-07-07  Bruno Haible  <bruno@clisp.org>
7907
7908         Avoid literal tabs.
7909         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7910         variable containing a tab instead of a literal tab.
7911         Reported by Jim Meyering.
7912
7913 2011-07-07  Bruno Haible  <bruno@clisp.org>
7914
7915         Comments.
7916         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7917
7918 2011-07-06  Bruno Haible  <bruno@clisp.org>
7919
7920         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7921         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7922         <winsock2.h>.
7923         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7924         lib/sys_socket.in.h.
7925         (close, gethostname): Hide declarations from <winsock2.h>.
7926         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7927         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7928         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7929         (select): Don't override if gnulib's <sys/select.h> was already
7930         included.
7931         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7932         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7933         setsockopt, shutdown, select): Tweak indentation.
7934
7935 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7936
7937         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7938         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7939         in an application that does not use the sys_select module.
7940
7941 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7942
7943         poll: do not return 0 on timeout=-1
7944         * lib/poll.c: Loop with yield if no events occured
7945
7946 2011-07-06  Eric Blake  <eblake@redhat.com>
7947
7948         pthread_sigmask: always replace when not using pthread
7949         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7950         replacement when using some threading other than pthread.  Fix
7951         logic bug.
7952
7953 2011-07-06  Bruno Haible  <bruno@clisp.org>
7954
7955         Comments.
7956         * m4/printf.m4: Update comments about mingw.
7957
7958 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7959
7960         sys_select: define sigset_t more portably
7961         * lib/sys_select.in.h: Always include <sys/types.h>, since
7962         we now need sigset_t and mingw defines it there.
7963         Include <signal.h> before split inclusion guard, to avoid
7964         mishaps on Solaris, whose <signal.h> eventually includes us.
7965         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7966         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7967         which come from ...
7968         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7969         gl_CHECK_TYPE_SIGSET_T.
7970         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7971         does the real work.
7972         * modules/sys_select (Depends-on): Add 'signal'.
7973
7974         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7975         Suggested by Bruno Haible.
7976
7977         pselect: Use pthread_sigmask, not sigprocmask.
7978         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7979         multithreaded apps better than sigprocmask does.
7980         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7981         sigprocmask directly.
7982
7983 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7984
7985         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7986         Don't #undef,  since we don't need any underlying pselect.
7987         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7988         (Depends-on): Add select.
7989         (Link): Add $(LIBSOCKET).
7990         These changes suggested by Bruno Haible.
7991
7992         pselect: document better
7993         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7994         * doc/posix-functions/pselect.texi (pselect): Document new module.
7995
7996         pthread_sigmask: new module
7997         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7998         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7999         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8000         This is done only as a macro; I don't know how well that'll
8001         work for C++.  Move <sys/types.h> include before the include_next,
8002         to avoid mishap on Solaris.
8003         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8004         * modules/signal (Makefile.am): Substitute the check's results.
8005         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8006
8007         test-pselect: new module
8008         * modules/pselect-tests, tests/test-pselect.c: New files.
8009         * tests/test-select.c, tests/test-sys_select-c++.cc:
8010         If TEST_PSELECT is defined, test pselect instead of testing select.
8011
8012         * tests/test-sys_select.c (sigset_t): Test for it, too.
8013         Suggested by Bruno Haible.
8014
8015 2011-07-05  Eric Blake  <eblake@redhat.com>
8016
8017         snprintf: guarantee %1$d, for libintl
8018         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8019         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8020         * doc/posix-functions/snprintf.texi (snprintf): Update.
8021         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8022         * tests/test-snprintf.c (main): Enhance test.
8023         * tests/test-vsnprintf.c (main): Likewise.
8024
8025 2011-07-05  Jim Meyering  <meyering@redhat.com>
8026
8027         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8028         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8029         per Bruno's request, to accommodate this idiom (no space after "#")
8030         even when the function is inside an #if block:
8031         char *
8032         gets (char *s)
8033         #undef gets
8034         {
8035           ...
8036         }
8037
8038 2011-07-04  Jim Meyering  <meyering@redhat.com>
8039
8040         maint: indent with spaces, not TABs, and add a rule to check this
8041         * tests/test-userspec.c: Indent with spaces, not TABs.
8042         * tests/test-argp.c: Likewise.
8043         * tests/test-c-stack2.sh: Likewise.
8044         * tests/test-parse-duration.sh: Likewise
8045         * m4/strtod.m4: Likewise.
8046         * m4/alloca.m4: Likewise.
8047         * m4/pselect.m4: Likewise.
8048         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8049
8050 2011-07-03  Jim Meyering  <meyering@redhat.com>
8051
8052         maint.mk: correct omissions in prohibit_argmatch_without_use check
8053         This rule would mistakenly report that argmatch.h is included without
8054         use even when both the argmatch and invalid_arg macro were used.
8055         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8056         of argmatch and invalid_arg.
8057
8058 2011-07-03  Bruno Haible  <bruno@clisp.org>
8059
8060         Comments about EINTR.
8061         * lib/safe-read.h: Explain the purpose of this module.
8062         * lib/safe-write.h: Likewise.
8063         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8064         module.
8065         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8066         module.
8067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8068
8069 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8070
8071         xnanosleep: Rewrite to use new dtotimespec module.
8072         It has the conversion code that used to be in xnanosleep.
8073         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8074         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8075         (TIME_T_MAX): Remove.
8076         (xnanosleep): Rewrite in terms of dtotimespec.
8077         * modules/xnanosleep (Depends-on): Add dtotimespec.
8078         Remove intprops, stdbool.
8079
8080         timespec-add, timespec-sub: new modules
8081         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8082         * lib/timespec-add.c, lib/timespec-sub.c:
8083         * modules/timespec-add, modules/timespec-sub: New files.
8084
8085         dtotimespec: new module
8086         * lib/timespec.h (dtotimespec): New decl.
8087         * lib/dtotimespec.c, modules/dtotimespec: New files.
8088
8089         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8090
8091         pselect: new module
8092         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8093         (pselect): New decls.
8094         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8095         since the standard pselect decl uses 'restrict'.
8096         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8097         HAVE_PSELECT, REPLACE_PSELECT.
8098         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8099         HAVE_PSELECT, REPLACE_PSELECT.
8100         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8101
8102         sys_select: don't depend on sys_socket
8103         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8105         This fix works on GNU and GNU-like platforms, but has not been tested
8106         on native Windows.
8107         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8108         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8109         gl_HEADER_SYS_SOCKET.
8110         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8111         gl_PREREQ_SYS_H_WINSOCK2.
8112
8113 2011-06-29  Eric Blake  <eblake@redhat.com>
8114
8115         pipe2: fix C89 compile problem
8116         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8117         Reported by Bruno Haible.
8118
8119         pipe, pipe2: don't corrupt fd on error
8120         * lib/pipe.c (pipe): Leave fd unchanged on error.
8121         * lib/pipe2.c (pipe2): Likewise.
8122         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8123         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8124
8125 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8126
8127         mmap-anon: do not use regular expressions inadvertently
8128         * m4/mmap-anon.m4: Remove trailing period from strings sought
8129         in the output.
8130
8131 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8132
8133         nanosleep: fix integer overflow problem
8134         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8135         arithmetic wraps around on overflow.
8136
8137         nanosleep: simplify carrying
8138         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8139         first call to the underyling nanosleep, not for the last one.
8140         This doesn't fix any bugs, but it simplifies the computation of
8141         the remaining delay.  Found while auditing integer overflow issues.
8142
8143         dup2: remove test for existence of fcntl
8144         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8145         "#if HAVE_FCNTL", in the configure-time test program.
8146         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8147         and therefore speeds up "configure" a bit.  Found while
8148         adding the dup2 module to Emacs.
8149
8150 2011-06-24  Eric Blake  <eblake@redhat.com>
8151
8152         maint.mk: enhance useless header checks
8153         * top/maint.mk (_sc_header_without_use): Check both include
8154         styles.
8155         (sc_prohibit_assert_without_use)
8156         (sc_prohibit_close_stream_without_use)
8157         (sc_prohibit_getopt_without_use)
8158         (sc_prohibit_quotearg_without_use)
8159         (sc_prohibit_quote_without_use)
8160         (sc_prohibit_long_options_without_use)
8161         (sc_prohibit_inttostr_without_use)
8162         (sc_prohibit_ignore_value_without_use)
8163         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8164         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8165         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8166         (sc_prohibit_hash_pjw_without_use)
8167         (sc_prohibit_safe_read_without_use)
8168         (sc_prohibit_argmatch_without_use)
8169         (sc_prohibit_canonicalize_without_use)
8170         (sc_prohibit_root_dev_ino_without_use)
8171         (sc_prohibit_openat_without_use)
8172         (sc_prohibit_c_ctype_without_use)
8173         (sc_prohibit_signal_without_use)
8174         (sc_prohibit_stdio--_without_use)
8175         (sc_prohibit_stdio-safer_without_use)
8176         (sc_prohibit_strings_without_use)
8177         (sc_prohibit_intprops_without_use)
8178         (sc_prohibit_stddef_without_use)
8179         (sc_prohibit_xfreopen_without_use): Update clients.
8180
8181 2011-06-24  Jim Meyering  <meyering@redhat.com>
8182
8183         syntax-check: keep one maint.mk rule in sync with its header
8184         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8185         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8186         I prefer to avoid temporary files here, so use <(...), but that
8187         is not supported by /bin/sh, so...
8188         (SHELL): Define to /bin/bash.
8189
8190 2011-06-24  Eric Blake  <eblake@redhat.com>
8191
8192         maint.mk: update sc_prohibit_intprops_without_use
8193         * top/maint.mk (_intprops_names): Match recent changes.
8194
8195 2011-06-24  Bruno Haible  <bruno@clisp.org>
8196
8197         strerror-override: No-op tweak.
8198         * lib/strerror-override.h (strerror_override): Reorder conditions,
8199         for consistency with lib/strerror-override.c.
8200
8201 2011-06-23  Eric Blake  <eblake@redhat.com>
8202
8203         maint.mk: test further PATH_MAX issues
8204         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8205         (sc_prohibit_path_max_allocation): ...and also test alloca.
8206         Suggested by Jim Meyering.
8207
8208 2011-06-22  Eric Blake  <eblake@redhat.com>
8209
8210         maint.mk: add syntax-check to avoid char[PATH_MAX]
8211         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8212
8213         stat: be robust to PATH_MAX definition
8214         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8215         * modules/stat (Depends-on): Add verify.
8216
8217         link: work around IRIX bug
8218         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8219         * lib/link.c (rpl_link): Work around it.
8220         * tests/test-link.h (test_link): Enhance test.
8221         * doc/posix-functions/link.texi (link): Document the bug.
8222
8223         getopt: silence clang warning
8224         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8225         dereference.
8226         Reported by Gustavo Martin Domato.
8227
8228 2011-06-22  Jim Meyering  <meyering@redhat.com>
8229
8230         bootstrap: do not insert a blank line into each .gitignore file
8231         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8232
8233 2011-06-21  Eric Blake  <eblake@redhat.com>
8234
8235         perror: test for output mismatch
8236         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
8237         perror on IRIX.
8238
8239         strerror_r: fix OpenBSD behavior on out-of-range
8240         * lib/strerror_r.c (strerror_r): Always use maximal string.
8241         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8242
8243         strerror_r: fix OpenBSD behavior on 0
8244         * lib/strerror-override.c (strerror_override): Also override 0
8245         when needed.
8246         * lib/strerror-override.h (strerror_override): Likewise.
8247         * lib/strerror.c (strerror): Simplify, now that 0 override is done
8248         earlier.
8249         * lib/strerror_r.c (strerror_r): Likewise.
8250         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
8251         behavior...
8252         (gl_FUNC_STRERROR_0): ...into new macro.
8253         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
8254         is overridden.
8255         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
8256         * modules/strerror-override (Files): Add strerror.m4.
8257         (configure.ac): Also provide override for 0 when needed.
8258         * doc/posix-functions/strerror.texi (strerror): Document this.
8259         * doc/posix-functions/perror.texi (perror): Likewise.
8260
8261         perror: adjust array size
8262         * modules/perror (Depends-on): Add strerror-override.
8263         * lib/perror.c (perror): Use it to avoid magic number.
8264
8265         strerror-override: reduce size
8266         * lib/strerror-override.c (strerror_override): Use fewer lines.
8267
8268 2011-06-20  Bruno Haible  <bruno@clisp.org>
8269
8270         pathmax: Ensure correct value for PATH_MAX on HP-UX.
8271         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
8272
8273 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8274
8275         alloca: port to compilers that can optimize like GCC 4.6.0
8276         * lib/alloca.c (find_stack_direction): New signature, taken from
8277         Autoconf git.  This works with GCC 4.6.0.  This code should never
8278         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
8279         be used with other compilers that optimize as well as GCC 4.6.0 does.
8280         (alloca): Adjust to new signature.
8281         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
8282         New macro, which patches Autoconf in a similar way.
8283
8284         c-stack: stop worrying about stack direction
8285         * lib/c-stack.c (find_stack_direction): Remove.
8286         (segv_handler): Don't worry about stack direction growth, as it's
8287         too much of a pain to configure this correctly, given how compilers
8288         are optimizing-away our stack-growth detection code.  Instead, assume
8289         that any access to just before or just after the stack is OK.
8290         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8291         Don't require AC_FUNC_ALLOCA; no longer needed.
8292
8293 2011-06-20  Eric Blake  <eblake@redhat.com>
8294
8295         test-stat: don't allocate PATH_MAX bytes
8296         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
8297         PATH_MAX-sized buffer.
8298         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
8299         * modules/stat-tests (Depends-on): Likewise.
8300         * tests/test-fstatat.c (includes): Drop pathmax.h.
8301         * tests/test-stat.c (includes): Likewise.
8302         Reported by Bruno Haible.
8303
8304 2011-06-20  Bruno Haible  <bruno@clisp.org>
8305
8306         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
8307         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
8308         * lib/float.c: New file.
8309         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
8310         REPLACE_FLOAT_LDBL.
8311         * modules/float (Files): Add lib/float.c.
8312         (configure.ac): Invoke AC_LIBOBJ.
8313         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
8314
8315 2011-06-20  Bruno Haible  <bruno@clisp.org>
8316
8317         Tests for module 'float'.
8318         * modules/float-tests: New file.
8319         * tests/test-float.c: New file.
8320
8321 2011-06-19  Bruno Haible  <bruno@clisp.org>
8322
8323         isinf: Coding style.
8324         * lib/isinf.c: Use GNU coding style.
8325
8326 2011-06-19  Bruno Haible  <bruno@clisp.org>
8327
8328         linkat test: Avoid test failure on AIX 7.1.
8329         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
8330         * tests/test-link.h (test_link): Likewise.
8331
8332 2011-06-19  Bruno Haible  <bruno@clisp.org>
8333
8334         pread test: Avoid test failure on OpenBSD 4.9.
8335         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
8336
8337 2011-06-19  Bruno Haible  <bruno@clisp.org>
8338
8339         sprintf-posix: Fix test failure on AIX 7.1.
8340         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
8341         * doc/posix-functions/dprintf.texi: Mention limited precision problem
8342         on AIX.
8343         * doc/posix-functions/fprintf.texi: Likewise.
8344         * doc/posix-functions/printf.texi: Likewise.
8345         * doc/posix-functions/snprintf.texi: Likewise.
8346         * doc/posix-functions/sprintf.texi: Likewise.
8347         * doc/posix-functions/vdprintf.texi: Likewise.
8348         * doc/posix-functions/vfprintf.texi: Likewise.
8349         * doc/posix-functions/vprintf.texi: Likewise.
8350         * doc/posix-functions/vsnprintf.texi: Likewise.
8351         * doc/posix-functions/vsprintf.texi: Likewise.
8352
8353 2011-06-19  Bruno Haible  <bruno@clisp.org>
8354
8355         roundl-ieee: Fix test failure on AIX 7.1.
8356         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
8357         * doc/posix-functions/roundl.texi: Mention problem with negative
8358         arguments.
8359
8360 2011-06-19  Bruno Haible  <bruno@clisp.org>
8361
8362         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8363         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
8364         * doc/posix-functions/round.texi: Mention problem with negative
8365         arguments.
8366         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8367
8368 2011-06-19  Bruno Haible  <bruno@clisp.org>
8369
8370         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8371         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8372         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8373         * doc/posix-functions/roundf.texi: Mention problem with negative
8374         arguments.
8375         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8376
8377 2011-06-19  Bruno Haible  <bruno@clisp.org>
8378
8379         ceilf-ieee: Work around bug on MacOS X 10.5.
8380         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8381
8382         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8383         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8384         IEEE compliant, avoid compiler optimizations.
8385         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8386         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8387         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8388         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8389         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8390         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8391         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8392         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8393         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8394         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8395
8396 2011-06-19  Bruno Haible  <bruno@clisp.org>
8397
8398         ceilf-ieee: Work around bug on AIX 7.1.
8399         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8400         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8401
8402 2011-06-19  Bruno Haible  <bruno@clisp.org>
8403
8404         ceil-ieee: Work around bug on AIX 7.1.
8405         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8406         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8407
8408 2011-06-18  Bruno Haible  <bruno@clisp.org>
8409
8410         fsync test: Avoid test failure on MacOS X and AIX.
8411         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8412         EINVAL.
8413
8414 2011-06-18  Bruno Haible  <bruno@clisp.org>
8415
8416         openat, fdopendir tests: Fix link errors.
8417         * modules/openat-tests (Depends-on): Add progname.
8418         * modules/fdopendir-tests (Depends-on): Likewise.
8419         * tests/test-fchownat.c: Include progname.h.
8420         (main): Call set_program_name.
8421         * tests/test-fstatat.c: Include progname.h.
8422         (main): Call set_program_name.
8423         * tests/test-mkdirat.c: Include progname.h.
8424         (main): Call set_program_name.
8425         * tests/test-openat.c: Include progname.h.
8426         (main): Call set_program_name.
8427         * tests/test-unlinkat.c: Include progname.h.
8428         (main): Call set_program_name.
8429         * tests/test-fdopendir.c: Include progname.h.
8430         (main): Call set_program_name.
8431
8432 2011-06-18  Bruno Haible  <bruno@clisp.org>
8433
8434         Doc update.
8435         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8436         HP-UX.
8437         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8438
8439 2011-06-18  Bruno Haible  <bruno@clisp.org>
8440
8441         getcwd tests: Avoid compilation error on HP-UX 11.31.
8442         * modules/getcwd-tests (Depends-on): Add pathmax.
8443         * tests/test-getcwd.c: Include pathmax.h.
8444
8445 2011-06-18  Bruno Haible  <bruno@clisp.org>
8446
8447         isfinite, isinf: Fix link error on AIX 6 and 7.
8448         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8449         needed, also test the macro with a 'float' argument.
8450         * m4/isinf.m4 (gl_ISINF): Likewise.
8451
8452 2011-06-18  Bruno Haible  <bruno@clisp.org>
8453
8454         getloadavg: Don't clobber LIBS. Regression from previous commit.
8455         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8456         AC_CHECK_LIB from here...
8457         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8458         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8459         gl_func_getloadavg_done.
8460         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8461
8462 2011-06-18  Bruno Haible  <bruno@clisp.org>
8463
8464         clean-temp: Improve documentation.
8465         * lib/clean-temp.h: Explain better how to use this module.
8466         Reported by John Darrington <john@darrington.wattle.id.au>.
8467
8468 2011-06-17  Bruno Haible  <bruno@clisp.org>
8469
8470         pread, pwrite: Avoid cc warning on AIX.
8471         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8472         (pwrite): Likewise.
8473
8474 2011-06-17  Bruno Haible  <bruno@clisp.org>
8475
8476         spawn-pipe tests: Fix link error.
8477         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8478         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8479
8480 2011-06-17  Bruno Haible  <bruno@clisp.org>
8481
8482         Tests: Remove unnecessary dependency.
8483         * modules/canonicalize-tests (Depends-on): Remove progname.
8484         * modules/chown-tests (Depends-on): Likewise.
8485         * modules/dirname-tests (Depends-on): Likewise.
8486         * modules/fdopendir-tests (Depends-on): Likewise.
8487         * modules/fdutimensat-tests (Depends-on): Likewise.
8488         * modules/hash-tests (Depends-on): Likewise.
8489         * modules/lchown-tests (Depends-on): Likewise.
8490         * modules/linkat-tests (Depends-on): Likewise.
8491         * modules/renameat-tests (Depends-on): Likewise.
8492         * modules/spawn-pipe-tests (Depends-on): Likewise.
8493         * modules/utimensat-tests (Depends-on): Likewise.
8494
8495 2011-06-17  Bruno Haible  <bruno@clisp.org>
8496
8497         spawn-pipe tests: Fix link error.
8498         * tests/test-spawn-pipe-child.c: Undefine fflush.
8499
8500 2011-06-17  Bruno Haible  <bruno@clisp.org>
8501
8502         Fix tests link errors.
8503         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8504         * modules/chown-tests (Makefile.am): Don't link test-chown with
8505         LIBINTL.
8506         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8507         LIBINTL.
8508         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8509         LIBINTL.
8510         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8511         LIBINTL.
8512
8513 2011-06-16  Bruno Haible  <bruno@clisp.org>
8514
8515         crypto/gc-sha1: Fix recent regression.
8516         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8517         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8518
8519         crypto/gc-md5: Fix recent regression.
8520         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8521
8522         crypto/gc-md4: Fix recent regression.
8523         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8524         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8525
8526         crypto/gc-arctwo: Fix recent regression.
8527         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8528         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8529
8530         crypto/gc-rijndael: Fix recent regression.
8531         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8532         (configure.ac): Invoke AC_LIBOBJ here.
8533         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8534         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8535
8536         crypto/gc-hmac-sha1: Fix recent regression.
8537         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8538         (configure.ac): Invoke AC_LIBOBJ here.
8539         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8541
8542         crypto/gc-hmac-md5: Fix recent regression.
8543         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8544         (configure.ac): Invoke AC_LIBOBJ here.
8545         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8546         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8547
8548         crypto/gc-des: Fix recent regression.
8549         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8550         (configure.ac): Invoke AC_LIBOBJ here.
8551         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8553
8554         crypto/gc-arcfour: Fix recent regression.
8555         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8556         (configure.ac): Invoke AC_LIBOBJ here.
8557         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8559
8560 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8561
8562         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8563         After the 2011-05-21 change, this macro requires
8564         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8565         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8566
8567 2011-06-16  Bruno Haible  <bruno@clisp.org>
8568
8569         fprintftime: Move AC_LIBOBJ invocations to module description.
8570         * m4/fprintftime.m4: Remove file.
8571         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8572         (configure.ac): Remove gl_FPRINTFTIME call.
8573         (Makefile.am): Augment lib_SOURCES.
8574         Reported by Jim Meyering.
8575
8576 2011-06-16  Bruno Haible  <bruno@clisp.org>
8577
8578         tmpfile-safer: Finish 2011-05-23 commit.
8579         * m4/stdio-safer.m4: Really remove file.
8580         Reported by Jim Meyering.
8581
8582 2011-06-16  Bruno Haible  <bruno@clisp.org>
8583
8584         syntax-check: Fix typo.
8585         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8586         printf-posix.m4.
8587         Reported by Jim Meyering.
8588
8589 2011-06-13  Jim Meyering  <meyering@redhat.com>
8590
8591         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8592         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8593
8594 2011-05-23  Bruno Haible  <bruno@clisp.org>
8595
8596         yesno: Move AC_LIBOBJ invocations to module description.
8597         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8598         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8599
8600 2011-05-23  Bruno Haible  <bruno@clisp.org>
8601
8602         xstrtol: Move AC_LIBOBJ invocations to module description.
8603         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8604         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8605
8606 2011-05-23  Bruno Haible  <bruno@clisp.org>
8607
8608         xstrtold: Move AC_LIBOBJ invocations to module description.
8609         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8610         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8611
8612 2011-05-23  Bruno Haible  <bruno@clisp.org>
8613
8614         xstrtod: Move AC_LIBOBJ invocations to module description.
8615         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8616         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8617
8618 2011-05-23  Bruno Haible  <bruno@clisp.org>
8619
8620         xnanosleep: Move AC_LIBOBJ invocations to module description.
8621         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8622         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8623
8624 2011-05-23  Bruno Haible  <bruno@clisp.org>
8625
8626         xgetcwd: Move AC_LIBOBJ invocations to module description.
8627         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8628         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8629
8630 2011-05-23  Bruno Haible  <bruno@clisp.org>
8631
8632         xalloc: Move AC_LIBOBJ invocations to module description.
8633         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8634         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8635
8636 2011-05-23  Bruno Haible  <bruno@clisp.org>
8637
8638         write-any-file: Move AC_LIBOBJ invocations to module description.
8639         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8640         invocation.
8641         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8642
8643 2011-05-23  Bruno Haible  <bruno@clisp.org>
8644
8645         utimens: Move AC_LIBOBJ invocations to module description.
8646         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8647         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8648
8649 2011-05-23  Bruno Haible  <bruno@clisp.org>
8650
8651         utimecmp: Move AC_LIBOBJ invocations to module description.
8652         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8653         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8654
8655 2011-05-23  Bruno Haible  <bruno@clisp.org>
8656
8657         userspec: Move AC_LIBOBJ invocations to module description.
8658         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8659         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8660
8661 2011-05-23  Bruno Haible  <bruno@clisp.org>
8662
8663         unlinkdir: Move AC_LIBOBJ invocations to module description.
8664         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8665         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8666
8667 2011-05-23  Bruno Haible  <bruno@clisp.org>
8668
8669         unistd-safer: Move AC_LIBOBJ invocations to module description.
8670         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8671         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8672
8673 2011-05-23  Bruno Haible  <bruno@clisp.org>
8674
8675         tempname: Move AC_LIBOBJ invocations to module description.
8676         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8677         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8678
8679 2011-05-23  Bruno Haible  <bruno@clisp.org>
8680
8681         strftime: Move AC_LIBOBJ invocations to module description.
8682         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8683         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8684
8685 2011-05-23  Bruno Haible  <bruno@clisp.org>
8686
8687         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8688         * m4/stdlib-safer.m4: Remove file.
8689         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8690         (configure.ac): Remove gl_STDLIB_SAFER call.
8691         (Makefile.am): Augment lib_SOURCES.
8692
8693 2011-05-23  Bruno Haible  <bruno@clisp.org>
8694
8695         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8696         * m4/stdio-safer.m4: Remove file.
8697         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8698         (configure.ac): Remove gl_TMPFILE_SAFER call.
8699         (Makefile.am): Augment lib_SOURCES.
8700
8701 2011-05-23  Bruno Haible  <bruno@clisp.org>
8702
8703         popen-safer: Move AC_LIBOBJ invocations to module description.
8704         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8705         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8706         (configure.ac): Remove gl_POPEN_SAFER call.
8707         (Makefile.am): Augment lib_SOURCES.
8708
8709 2011-05-23  Bruno Haible  <bruno@clisp.org>
8710
8711         freopen-safer: Move AC_LIBOBJ invocations to module description.
8712         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8713         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8714         (configure.ac): Remove gl_FREOPEN_SAFER call.
8715         (Makefile.am): Augment lib_SOURCES.
8716
8717 2011-05-23  Bruno Haible  <bruno@clisp.org>
8718
8719         fopen-safer: Move AC_LIBOBJ invocations to module description.
8720         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8721         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8722         (configure.ac): Remove gl_FOPEN_SAFER call.
8723         (Makefile.am): Augment lib_SOURCES.
8724
8725 2011-05-23  Bruno Haible  <bruno@clisp.org>
8726
8727         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8728         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8729         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8730
8731 2011-05-23  Bruno Haible  <bruno@clisp.org>
8732
8733         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8734         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8735         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8736
8737 2011-05-23  Bruno Haible  <bruno@clisp.org>
8738
8739         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8740         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8741         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8742
8743 2011-05-23  Bruno Haible  <bruno@clisp.org>
8744
8745         settime: Move AC_LIBOBJ invocations to module description.
8746         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8747         * modules/settime (Makefile.am): Augment lib_SOURCES.
8748
8749 2011-05-23  Bruno Haible  <bruno@clisp.org>
8750
8751         savedir: Move AC_LIBOBJ invocations to module description.
8752         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8753         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8754
8755 2011-05-23  Bruno Haible  <bruno@clisp.org>
8756
8757         save-cwd: Move AC_LIBOBJ invocations to module description.
8758         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8759         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8760
8761 2011-05-23  Bruno Haible  <bruno@clisp.org>
8762
8763         same: Move AC_LIBOBJ invocations to module description.
8764         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8765         * modules/same (Makefile.am): Augment lib_SOURCES.
8766
8767 2011-05-23  Bruno Haible  <bruno@clisp.org>
8768
8769         safe-write: Move AC_LIBOBJ invocations to module description.
8770         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8771         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8772         instead of gl_SAFE_WRITE.
8773         (Makefile.am): Augment lib_SOURCES.
8774
8775 2011-05-23  Bruno Haible  <bruno@clisp.org>
8776
8777         safe-read: Move AC_LIBOBJ invocations to module description.
8778         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8779         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8780         of gl_SAFE_READ.
8781         (Makefile.am): Augment lib_SOURCES.
8782
8783 2011-05-23  Bruno Haible  <bruno@clisp.org>
8784
8785         safe-alloc: Move AC_LIBOBJ invocations to module description.
8786         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8787         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8788
8789 2011-05-23  Bruno Haible  <bruno@clisp.org>
8790
8791         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8792         * m4/rijndael.m4: Remove file.
8793         * modules/crypto/rijndael (Files): Remove it.
8794         (configure.ac): Remove gl_RIJNDAEL call.
8795         (Makefile.am): Augment lib_SOURCES.
8796
8797 2011-05-23  Bruno Haible  <bruno@clisp.org>
8798
8799         readtokens: Move AC_LIBOBJ invocations to module description.
8800         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8801         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8802
8803 2011-05-23  Bruno Haible  <bruno@clisp.org>
8804
8805         read-file: Move AC_LIBOBJ invocations to module description.
8806         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8807         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8808         of gl_FUNC_READ_FILE.
8809         (Makefile.am): Augment lib_SOURCES.
8810
8811 2011-05-23  Bruno Haible  <bruno@clisp.org>
8812
8813         quotearg: Move AC_LIBOBJ invocations to module description.
8814         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8815         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8816
8817 2011-05-23  Bruno Haible  <bruno@clisp.org>
8818
8819         quote: Move AC_LIBOBJ invocations to module description.
8820         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8821         * modules/quote (Makefile.am): Augment lib_SOURCES.
8822
8823 2011-05-23  Bruno Haible  <bruno@clisp.org>
8824
8825         posixver: Move AC_LIBOBJ invocations to module description.
8826         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8827         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8828
8829 2011-05-23  Bruno Haible  <bruno@clisp.org>
8830
8831         posixtm: Move AC_LIBOBJ invocations to module description.
8832         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8833         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8834
8835 2011-05-23  Bruno Haible  <bruno@clisp.org>
8836
8837         physmem: Move AC_LIBOBJ invocations to module description.
8838         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8839         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8840
8841 2011-05-23  Bruno Haible  <bruno@clisp.org>
8842
8843         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8844         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8845         invocation.
8846         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8847
8848 2011-05-23  Bruno Haible  <bruno@clisp.org>
8849
8850         mpsort: Move AC_LIBOBJ invocations to module description.
8851         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8852         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8853
8854 2011-05-23  Bruno Haible  <bruno@clisp.org>
8855
8856         modechange: Move AC_LIBOBJ invocations to module description.
8857         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8858         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8859
8860 2011-05-23  Bruno Haible  <bruno@clisp.org>
8861
8862         mkdir-p: Move AC_LIBOBJ invocations to module description.
8863         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8864         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8865
8866 2011-05-23  Bruno Haible  <bruno@clisp.org>
8867
8868         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8869         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8870         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8871
8872 2011-05-23  Bruno Haible  <bruno@clisp.org>
8873
8874         mgetgroups: Move AC_LIBOBJ invocations to module description.
8875         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8876         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8877
8878 2011-05-23  Bruno Haible  <bruno@clisp.org>
8879
8880         memxor: Move AC_LIBOBJ invocations to module description.
8881         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8882         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8883
8884 2011-05-23  Bruno Haible  <bruno@clisp.org>
8885
8886         memcoll: Move AC_LIBOBJ invocations to module description.
8887         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8888         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8889
8890 2011-05-23  Bruno Haible  <bruno@clisp.org>
8891
8892         memcasecmp: Move AC_LIBOBJ invocations to module description.
8893         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8894         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8895
8896 2011-05-23  Bruno Haible  <bruno@clisp.org>
8897
8898         crypto/md5: Move AC_LIBOBJ invocations to module description.
8899         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8900         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8901
8902 2011-05-23  Bruno Haible  <bruno@clisp.org>
8903
8904         crypto/md4: Move AC_LIBOBJ invocations to module description.
8905         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8906         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8907
8908 2011-05-23  Bruno Haible  <bruno@clisp.org>
8909
8910         crypto/md2: Move AC_LIBOBJ invocations to module description.
8911         * m4/md2.m4: Remove file.
8912         * modules/crypto/md2 (Files): Remove it.
8913         (configure.ac): Remove gl_MD2 call.
8914         (Makefile.am): Augment lib_SOURCES.
8915
8916 2011-05-23  Bruno Haible  <bruno@clisp.org>
8917
8918         long-options: Move AC_LIBOBJ invocations to module description.
8919         * m4/long-options.m4: Remove file.
8920         * modules/long-options (Files): Remove it.
8921         (configure.ac): Remove gl_LONG_OPTIONS call.
8922         (Makefile.am): Augment lib_SOURCES.
8923
8924 2011-05-23  Bruno Haible  <bruno@clisp.org>
8925
8926         i-ring: Move AC_LIBOBJ invocations to module description.
8927         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8928         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8929
8930 2011-05-23  Bruno Haible  <bruno@clisp.org>
8931
8932         idcache: Move AC_LIBOBJ invocations to module description.
8933         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8934         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8935
8936 2011-05-23  Bruno Haible  <bruno@clisp.org>
8937
8938         human: Move AC_LIBOBJ invocations to module description.
8939         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8940         * modules/human (Makefile.am): Augment lib_SOURCES.
8941
8942 2011-05-23  Bruno Haible  <bruno@clisp.org>
8943
8944         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8945         * m4/hmac-sha1.m4: Remove file.
8946         * modules/crypto/hmac-sha1 (Files): Remove it.
8947         (configure.ac): Remove gl_HMAC_SHA1 call.
8948         (Makefile.am): Augment lib_SOURCES.
8949
8950 2011-05-23  Bruno Haible  <bruno@clisp.org>
8951
8952         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8953         * m4/hmac-md5.m4: Remove file.
8954         * modules/crypto/hmac-md5 (Files): Remove it.
8955         (configure.ac): Remove gl_HMAC_MD5 call.
8956         (Makefile.am): Augment lib_SOURCES.
8957
8958 2011-05-23  Bruno Haible  <bruno@clisp.org>
8959
8960         hash: Move AC_LIBOBJ invocations to module description.
8961         * m4/hash.m4: Remove file.
8962         * modules/hash (Files): Remove it.
8963         (configure.ac): Remove gl_HASH call.
8964         (Makefile.am): Augment lib_SOURCES.
8965
8966 2011-05-23  Bruno Haible  <bruno@clisp.org>
8967
8968         hard-locale: Move AC_LIBOBJ invocations to module description.
8969         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8970         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8971
8972 2011-05-23  Bruno Haible  <bruno@clisp.org>
8973
8974         getugroups: Move AC_LIBOBJ invocations to module description.
8975         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8976         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8977
8978 2011-05-23  Bruno Haible  <bruno@clisp.org>
8979
8980         gettime: Move AC_LIBOBJ invocations to module description.
8981         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8982         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8983
8984 2011-05-23  Bruno Haible  <bruno@clisp.org>
8985
8986         getndelim2: Move AC_LIBOBJ invocations to module description.
8987         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8988         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8989
8990 2011-05-23  Bruno Haible  <bruno@clisp.org>
8991
8992         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8993         * m4/gc-pbkdf2-sha1.m4: Remove file.
8994         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8995         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8996         (Makefile.am): Augment lib_SOURCES.
8997
8998 2011-05-23  Bruno Haible  <bruno@clisp.org>
8999
9000         fts: Move AC_LIBOBJ invocations to module description.
9001         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9002         * modules/fts (configure.ac): ... to here.
9003
9004 2011-05-23  Bruno Haible  <bruno@clisp.org>
9005
9006         file-type: Move AC_LIBOBJ invocations to module description.
9007         * m4/file-type.m4: Remove file.
9008         * modules/file-type (Files): Remove it.
9009         (configure.ac): Remove gl_FILE_TYPE call.
9010         (Makefile.am): Augment lib_SOURCES.
9011
9012 2011-05-23  Bruno Haible  <bruno@clisp.org>
9013
9014         filenamecat*: Respect rules for use of AC_LIBOBJ.
9015         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9016         Remove AC_LIBOBJ invocation.
9017         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9018         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9019
9020 2011-05-23  Bruno Haible  <bruno@clisp.org>
9021
9022         filemode: Move AC_LIBOBJ invocations to module description.
9023         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9024         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9025
9026 2011-05-23  Bruno Haible  <bruno@clisp.org>
9027
9028         openat-safer: Move AC_LIBOBJ invocations to module description.
9029         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9030         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9031
9032 2011-05-23  Bruno Haible  <bruno@clisp.org>
9033
9034         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9035         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9036         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9037
9038 2011-05-23  Bruno Haible  <bruno@clisp.org>
9039
9040         exclude: Move AC_LIBOBJ invocations to module description.
9041         * m4/exclude.m4: Remove file.
9042         * modules/exclude (Files): Remove it.
9043         (configure.ac): Remove gl_EXCLUDE call.
9044         (Makefile.am): Augment lib_SOURCES.
9045
9046 2011-05-23  Bruno Haible  <bruno@clisp.org>
9047
9048         dirname*: Respect rules for use of AC_LIBOBJ.
9049         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9050         invocations.
9051         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9052         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9053
9054 2011-05-23  Bruno Haible  <bruno@clisp.org>
9055
9056         dirent-safer: Move AC_LIBOBJ invocations to module description.
9057         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9058         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9059
9060 2011-05-23  Bruno Haible  <bruno@clisp.org>
9061
9062         crypto/des: Move AC_LIBOBJ invocations to module description.
9063         * m4/des.m4: Remove file.
9064         * modules/crypto/des (Files): Remove it.
9065         (configure.ac): Remove gl_DES call.
9066         (Makefile.am): Augment lib_SOURCES.
9067
9068 2011-05-23  Bruno Haible  <bruno@clisp.org>
9069
9070         cycle-check: Move AC_LIBOBJ invocations to module description.
9071         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9072         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9073
9074 2011-05-23  Bruno Haible  <bruno@clisp.org>
9075
9076         c-strtold: Move AC_LIBOBJ invocations to module description.
9077         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9078         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9079
9080 2011-05-23  Bruno Haible  <bruno@clisp.org>
9081
9082         c-strtod: Move AC_LIBOBJ invocations to module description.
9083         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9084         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9085
9086 2011-05-23  Bruno Haible  <bruno@clisp.org>
9087
9088         crc: Move AC_LIBOBJ invocations to module description.
9089         * m4/crc.m4: Remove file.
9090         * modules/crc (Files): Remove it.
9091         (configure.ac): Remove gl_CRC call.
9092         (Makefile.am): Augment lib_SOURCES.
9093
9094 2011-05-23  Bruno Haible  <bruno@clisp.org>
9095
9096         close-stream: Move AC_LIBOBJ invocations to module description.
9097         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9098         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9099
9100 2011-05-23  Bruno Haible  <bruno@clisp.org>
9101
9102         closeout: Move AC_LIBOBJ invocations to module description.
9103         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9104         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9105
9106 2011-05-23  Bruno Haible  <bruno@clisp.org>
9107
9108         closein: Move AC_LIBOBJ invocations to module description.
9109         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9110         * modules/closein (Makefile.am): Augment lib_SOURCES.
9111
9112 2011-05-23  Bruno Haible  <bruno@clisp.org>
9113
9114         cloexec: Move AC_LIBOBJ invocations to module description.
9115         * m4/cloexec.m4: Remove file.
9116         * modules/cloexec (Files): Remove it.
9117         (configure.ac): Remove gl_CLOEXEC call.
9118         (Makefile.am): Augment lib_SOURCES.
9119
9120 2011-05-23  Bruno Haible  <bruno@clisp.org>
9121
9122         check-version: Move AC_LIBOBJ invocations to module description.
9123         * m4/check-version.m4: Remove file.
9124         * modules/check-version (Files): Remove it.
9125         (configure.ac): Remove gl_CHECK_VERSION call.
9126         (Makefile.am): Augment lib_SOURCES.
9127
9128 2011-05-23  Bruno Haible  <bruno@clisp.org>
9129
9130         chdir-safer: Move AC_LIBOBJ invocations to module description.
9131         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9132         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9133
9134 2011-05-23  Bruno Haible  <bruno@clisp.org>
9135
9136         canonicalize: Move AC_LIBOBJ invocations to module description.
9137         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9138         AC_LIBOBJ invocation.
9139         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9140
9141 2011-05-23  Bruno Haible  <bruno@clisp.org>
9142
9143         canon-host: Move AC_LIBOBJ invocations to module description.
9144         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9145         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9146         instead of gl_CANON_HOST.
9147         (Makefile.am): Augment lib_SOURCES.
9148
9149 2011-05-23  Bruno Haible  <bruno@clisp.org>
9150
9151         backupfile: Move AC_LIBOBJ invocations to module description.
9152         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9153         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9154
9155 2011-05-23  Bruno Haible  <bruno@clisp.org>
9156
9157         argmatch: Move AC_LIBOBJ invocations to module description.
9158         * m4/argmatch.m4: Remove file.
9159         * modules/argmatch (Files): Remove it.
9160         (configure.ac): Remove gl_ARGMATCH call.
9161         (Makefile.am): Augment lib_SOURCES.
9162
9163 2011-05-23  Bruno Haible  <bruno@clisp.org>
9164
9165         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9166         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9167         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9168
9169 2011-05-23  Bruno Haible  <bruno@clisp.org>
9170
9171         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9172         * m4/arcfour.m4: Remove file.
9173         * modules/crypto/arcfour (Files): Remove it.
9174         (configure.ac): Remove gl_ARCFOUR call.
9175         (Makefile.am): Augment lib_SOURCES.
9176
9177 2011-05-22  Bruno Haible  <bruno@clisp.org>
9178
9179         write: Move AC_LIBOBJ invocations to module description.
9180         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9181         * modules/write (configure.ac): ... to here.
9182
9183 2011-05-22  Bruno Haible  <bruno@clisp.org>
9184
9185         wmemset: Move AC_LIBOBJ invocations to module description.
9186         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9187         here...
9188         * modules/wmemset (configure.ac): ... to here.
9189
9190 2011-05-22  Bruno Haible  <bruno@clisp.org>
9191
9192         wmemmove: Move AC_LIBOBJ invocations to module description.
9193         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9194         here...
9195         * modules/wmemmove (configure.ac): ... to here.
9196
9197 2011-05-22  Bruno Haible  <bruno@clisp.org>
9198
9199         wmemcpy: Move AC_LIBOBJ invocations to module description.
9200         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9201         here...
9202         * modules/wmemcpy (configure.ac): ... to here.
9203
9204 2011-05-22  Bruno Haible  <bruno@clisp.org>
9205
9206         wmemcmp: Move AC_LIBOBJ invocations to module description.
9207         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9208         here...
9209         * modules/wmemcmp (configure.ac): ... to here.
9210
9211 2011-05-22  Bruno Haible  <bruno@clisp.org>
9212
9213         wmemchr: Move AC_LIBOBJ invocations to module description.
9214         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9215         here...
9216         * modules/wmemchr (configure.ac): ... to here.
9217
9218 2011-05-22  Bruno Haible  <bruno@clisp.org>
9219
9220         wcswidth: Move AC_LIBOBJ invocations to module description.
9221         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9222         here...
9223         * modules/wcswidth (configure.ac): ... to here.
9224
9225 2011-05-22  Bruno Haible  <bruno@clisp.org>
9226
9227         wcwidth: Respect rules for use of AC_LIBOBJ.
9228         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9229         invocation from here...
9230         * modules/wcwidth (configure.ac): ... to here.
9231         (Depends-on): Update conditions.
9232
9233 2011-05-22  Bruno Haible  <bruno@clisp.org>
9234
9235         wctype: Move AC_LIBOBJ invocations to module description.
9236         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
9237         invocation from here...
9238         * modules/wctype (configure.ac): ... to here.
9239         (Depends-on): Update conditions.
9240
9241 2011-05-22  Bruno Haible  <bruno@clisp.org>
9242
9243         wctrans: Move AC_LIBOBJ invocations to module description.
9244         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
9245         invocation from here...
9246         * modules/wctrans (configure.ac): ... to here.
9247
9248 2011-05-22  Bruno Haible  <bruno@clisp.org>
9249
9250         wctomb: Move AC_LIBOBJ invocations to module description.
9251         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
9252         invocations from here...
9253         * modules/wctomb (configure.ac): ... to here.
9254
9255 2011-05-22  Bruno Haible  <bruno@clisp.org>
9256
9257         wctob: Move AC_LIBOBJ invocations to module description.
9258         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
9259         gl_PREREQ_WCTOB invocations from here...
9260         * modules/wctob (configure.ac): ... to here.
9261         (Depends-on): Update conditions.
9262
9263 2011-05-22  Bruno Haible  <bruno@clisp.org>
9264
9265         wcsxfrm: Move AC_LIBOBJ invocations to module description.
9266         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
9267         here...
9268         * modules/wcsxfrm (configure.ac): ... to here.
9269
9270 2011-05-22  Bruno Haible  <bruno@clisp.org>
9271
9272         wcstok: Move AC_LIBOBJ invocations to module description.
9273         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
9274         * modules/wcstok (configure.ac): ... to here.
9275
9276 2011-05-22  Bruno Haible  <bruno@clisp.org>
9277
9278         wcsstr: Move AC_LIBOBJ invocations to module description.
9279         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
9280         * modules/wcsstr (configure.ac): ... to here.
9281
9282 2011-05-22  Bruno Haible  <bruno@clisp.org>
9283
9284         wcsspn: Move AC_LIBOBJ invocations to module description.
9285         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
9286         * modules/wcsspn (configure.ac): ... to here.
9287
9288 2011-05-22  Bruno Haible  <bruno@clisp.org>
9289
9290         wcsrtombs: Move AC_LIBOBJ invocations to module description.
9291         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
9292         gl_PREREQ_WCSRTOMBS invocations from here...
9293         * modules/wcsrtombs (configure.ac): ... to here.
9294
9295 2011-05-22  Bruno Haible  <bruno@clisp.org>
9296
9297         wcsrchr: Move AC_LIBOBJ invocations to module description.
9298         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
9299         here...
9300         * modules/wcsrchr (configure.ac): ... to here.
9301
9302 2011-05-22  Bruno Haible  <bruno@clisp.org>
9303
9304         wcspbrk: Move AC_LIBOBJ invocations to module description.
9305         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
9306         here...
9307         * modules/wcspbrk (configure.ac): ... to here.
9308
9309 2011-05-22  Bruno Haible  <bruno@clisp.org>
9310
9311         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
9312         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
9313         gl_PREREQ_WCSNRTOMBS invocations from here...
9314         * modules/wcsnrtombs (configure.ac): ... to here.
9315
9316 2011-05-22  Bruno Haible  <bruno@clisp.org>
9317
9318         wcsnlen: Move AC_LIBOBJ invocations to module description.
9319         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
9320         here...
9321         * modules/wcsnlen (configure.ac): ... to here.
9322
9323 2011-05-22  Bruno Haible  <bruno@clisp.org>
9324
9325         wcsncpy: Move AC_LIBOBJ invocations to module description.
9326         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
9327         here...
9328         * modules/wcsncpy (configure.ac): ... to here.
9329
9330 2011-05-22  Bruno Haible  <bruno@clisp.org>
9331
9332         wcsncmp: Move AC_LIBOBJ invocations to module description.
9333         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
9334         here...
9335         * modules/wcsncmp (configure.ac): ... to here.
9336
9337 2011-05-22  Bruno Haible  <bruno@clisp.org>
9338
9339         wcsncat: Move AC_LIBOBJ invocations to module description.
9340         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
9341         here...
9342         * modules/wcsncat (configure.ac): ... to here.
9343
9344 2011-05-22  Bruno Haible  <bruno@clisp.org>
9345
9346         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
9347         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
9348         from here...
9349         * modules/wcsncasecmp (configure.ac): ... to here.
9350
9351 2011-05-22  Bruno Haible  <bruno@clisp.org>
9352
9353         wcslen: Move AC_LIBOBJ invocations to module description.
9354         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
9355         * modules/wcslen (configure.ac): ... to here.
9356
9357 2011-05-22  Bruno Haible  <bruno@clisp.org>
9358
9359         wcsdup: Move AC_LIBOBJ invocations to module description.
9360         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
9361         * modules/wcsdup (configure.ac): ... to here.
9362
9363 2011-05-22  Bruno Haible  <bruno@clisp.org>
9364
9365         wcscspn: Move AC_LIBOBJ invocations to module description.
9366         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9367         here...
9368         * modules/wcscspn (configure.ac): ... to here.
9369
9370 2011-05-22  Bruno Haible  <bruno@clisp.org>
9371
9372         wcscpy: Move AC_LIBOBJ invocations to module description.
9373         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9374         * modules/wcscpy (configure.ac): ... to here.
9375
9376 2011-05-22  Bruno Haible  <bruno@clisp.org>
9377
9378         wcscoll: Move AC_LIBOBJ invocations to module description.
9379         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9380         here...
9381         * modules/wcscoll (configure.ac): ... to here.
9382
9383 2011-05-22  Bruno Haible  <bruno@clisp.org>
9384
9385         wcscmp: Move AC_LIBOBJ invocations to module description.
9386         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
9387         * modules/wcscmp (configure.ac): ... to here.
9388
9389 2011-05-22  Bruno Haible  <bruno@clisp.org>
9390
9391         wcschr: Move AC_LIBOBJ invocations to module description.
9392         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9393         * modules/wcschr (configure.ac): ... to here.
9394
9395 2011-05-22  Bruno Haible  <bruno@clisp.org>
9396
9397         wcscat: Move AC_LIBOBJ invocations to module description.
9398         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9399         * modules/wcscat (configure.ac): ... to here.
9400
9401 2011-05-22  Bruno Haible  <bruno@clisp.org>
9402
9403         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9404         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9405         here...
9406         * modules/wcscasecmp (configure.ac): ... to here.
9407
9408 2011-05-22  Bruno Haible  <bruno@clisp.org>
9409
9410         wcrtomb: Move AC_LIBOBJ invocations to module description.
9411         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9412         invocations from here...
9413         * modules/wcrtomb (configure.ac): ... to here.
9414
9415 2011-05-22  Bruno Haible  <bruno@clisp.org>
9416
9417         wcpncpy: Move AC_LIBOBJ invocations to module description.
9418         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9419         here...
9420         * modules/wcpncpy (configure.ac): ... to here.
9421
9422 2011-05-22  Bruno Haible  <bruno@clisp.org>
9423
9424         wcpcpy: Move AC_LIBOBJ invocations to module description.
9425         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9426         * modules/wcpcpy (configure.ac): ... to here.
9427
9428 2011-05-22  Bruno Haible  <bruno@clisp.org>
9429
9430         waitpid: Move AC_LIBOBJ invocations to module description.
9431         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9432         invocation from here...
9433         * modules/waitpid (configure.ac): ... to here.
9434
9435 2011-05-22  Bruno Haible  <bruno@clisp.org>
9436
9437         utimensat: Move AC_LIBOBJ invocations to module description.
9438         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9439         here...
9440         * modules/utimensat (configure.ac): ... to here.
9441
9442 2011-05-22  Bruno Haible  <bruno@clisp.org>
9443
9444         usleep: Move AC_LIBOBJ invocations to module description.
9445         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9446         here...
9447         * modules/usleep (configure.ac): ... to here.
9448
9449 2011-05-22  Bruno Haible  <bruno@clisp.org>
9450
9451         unlockpt: Move AC_LIBOBJ invocations to module description.
9452         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9453         gl_PREREQ_UNLOCKPT invocations from here...
9454         * modules/unlockpt (configure.ac): ... to here.
9455
9456 2011-05-22  Bruno Haible  <bruno@clisp.org>
9457
9458         unlink: Respect rules for use of AC_LIBOBJ.
9459         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9460         * modules/unlink (configure.ac): ... to here.
9461
9462 2011-05-22  Bruno Haible  <bruno@clisp.org>
9463
9464         uname: Move AC_LIBOBJ invocations to module description.
9465         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9466         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9467         here...
9468         * modules/uname (configure.ac): ... to here.
9469
9470 2011-05-22  Bruno Haible  <bruno@clisp.org>
9471
9472         ttyname_r: Move AC_LIBOBJ invocations to module description.
9473         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9474         gl_PREREQ_TTYNAME_R invocations from here...
9475         * modules/ttyname_r (configure.ac): ... to here.
9476
9477 2011-05-22  Bruno Haible  <bruno@clisp.org>
9478
9479         tsearch: Move AC_LIBOBJ invocations to module description.
9480         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9481         invocations from here...
9482         * modules/tsearch (configure.ac): ... to here.
9483
9484 2011-05-22  Bruno Haible  <bruno@clisp.org>
9485
9486         towctrans: Move AC_LIBOBJ invocations to module description.
9487         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9488         AC_LIBOBJ invocation from here...
9489         * modules/towctrans (configure.ac): ... to here.
9490
9491 2011-05-22  Bruno Haible  <bruno@clisp.org>
9492
9493         tmpfile: Move AC_LIBOBJ invocations to module description.
9494         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9495         invocations from here...
9496         * modules/tmpfile (configure.ac): ... to here.
9497
9498 2011-05-22  Bruno Haible  <bruno@clisp.org>
9499
9500         times: Move AC_LIBOBJ invocations to module description.
9501         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9502         * modules/times (configure.ac): ... to here.
9503
9504 2011-05-22  Bruno Haible  <bruno@clisp.org>
9505
9506         time_r: Move AC_LIBOBJ invocations to module description.
9507         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9508         invocations from here...
9509         * modules/time_r (configure.ac): ... to here.
9510
9511 2011-05-22  Bruno Haible  <bruno@clisp.org>
9512
9513         timegm: Move AC_LIBOBJ invocations to module description.
9514         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9515         invocations from here...
9516         * modules/timegm (configure.ac): ... to here.
9517
9518 2011-05-22  Bruno Haible  <bruno@clisp.org>
9519
9520         tcgetsid: Move AC_LIBOBJ invocations to module description.
9521         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9522         and gl_PREREQ_TCGETSID invocations from here...
9523         * modules/tcgetsid (configure.ac): ... to here.
9524         (Depends-on): Update conditions.
9525
9526 2011-05-22  Bruno Haible  <bruno@clisp.org>
9527
9528         symlinkat: Move AC_LIBOBJ invocations to module description.
9529         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9530         here...
9531         * modules/symlinkat (configure.ac): ... to here.
9532
9533 2011-05-22  Bruno Haible  <bruno@clisp.org>
9534
9535         symlink: Move AC_LIBOBJ invocations to module description.
9536         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9537         here...
9538         * modules/symlink (configure.ac): ... to here.
9539
9540 2011-05-22  Bruno Haible  <bruno@clisp.org>
9541
9542         strverscmp: Move AC_LIBOBJ invocations to module description.
9543         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9544         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9545         from here...
9546         * modules/strverscmp (configure.ac): ... to here.
9547
9548 2011-05-22  Bruno Haible  <bruno@clisp.org>
9549
9550         strtok_r: Move AC_LIBOBJ invocations to module description.
9551         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9552         and gl_PREREQ_STRTOK_R invocations from here...
9553         * modules/strtok_r (configure.ac): ... to here.
9554         (Depends-on): Update conditions.
9555
9556 2011-05-22  Bruno Haible  <bruno@clisp.org>
9557
9558         strtoumax: Move AC_LIBOBJ invocations to module description.
9559         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9560         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9561         from here...
9562         * modules/strtoumax (configure.ac): ... to here.
9563
9564 2011-05-22  Bruno Haible  <bruno@clisp.org>
9565
9566         strtoimax: Move AC_LIBOBJ invocations to module description.
9567         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9568         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9569         from here...
9570         * modules/strtoimax (configure.ac): ... to here.
9571
9572 2011-05-22  Bruno Haible  <bruno@clisp.org>
9573
9574         strtoull: Move AC_LIBOBJ invocations to module description.
9575         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9576         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9577         from here...
9578         * modules/strtoull (configure.ac): ... to here.
9579
9580 2011-05-22  Bruno Haible  <bruno@clisp.org>
9581
9582         strtoll: Move AC_LIBOBJ invocations to module description.
9583         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9584         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9585         here...
9586         * modules/strtoll (configure.ac): ... to here.
9587
9588 2011-05-22  Bruno Haible  <bruno@clisp.org>
9589
9590         strtoul: Move AC_LIBOBJ invocations to module description.
9591         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9592         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9593         * modules/strtoul (configure.ac): ... to here.
9594
9595 2011-05-22  Bruno Haible  <bruno@clisp.org>
9596
9597         strtol: Move AC_LIBOBJ invocations to module description.
9598         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9599         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9600         * modules/strtol (configure.ac): ... to here.
9601
9602 2011-05-22  Bruno Haible  <bruno@clisp.org>
9603
9604         strtod: Move AC_LIBOBJ invocations to module description.
9605         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9606         invocations from here...
9607         * modules/strtod (configure.ac): ... to here.
9608
9609 2011-05-22  Bruno Haible  <bruno@clisp.org>
9610
9611         strstr*: Move AC_LIBOBJ invocations to module description.
9612         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9613         invocations from here...
9614         * modules/strstr-simple (configure.ac): ... to here.
9615         * modules/strstr (configure.ac): ... and here.
9616
9617 2011-05-22  Bruno Haible  <bruno@clisp.org>
9618
9619         strsignal: Move AC_LIBOBJ invocations to module description.
9620         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9621         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9622         * modules/strsignal (configure.ac): ... to here.
9623         (Depends-on): Update conditions.
9624
9625 2011-05-22  Bruno Haible  <bruno@clisp.org>
9626
9627         strsep: Move AC_LIBOBJ invocations to module description.
9628         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9629         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9630         here...
9631         * modules/strsep (configure.ac): ... to here.
9632
9633 2011-05-22  Bruno Haible  <bruno@clisp.org>
9634
9635         strptime: Move AC_LIBOBJ invocations to module description.
9636         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9637         gl_PREREQ_STRPTIME invocations from here...
9638         * modules/strptime (configure.ac): ... to here.
9639
9640 2011-05-22  Bruno Haible  <bruno@clisp.org>
9641
9642         strpbrk: Move AC_LIBOBJ invocations to module description.
9643         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9644         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9645         here...
9646         * modules/strpbrk (configure.ac): ... to here.
9647
9648 2011-05-22  Bruno Haible  <bruno@clisp.org>
9649
9650         strnlen: Move AC_LIBOBJ invocations to module description.
9651         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9652         invocations from here...
9653         * modules/strnlen (configure.ac): ... to here.
9654
9655 2011-05-22  Bruno Haible  <bruno@clisp.org>
9656
9657         strndup: Move AC_LIBOBJ invocations to module description.
9658         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9659         invocations from here...
9660         * modules/strndup (configure.ac): ... to here.
9661         (Depends-on): Update conditions.
9662
9663 2011-05-22  Bruno Haible  <bruno@clisp.org>
9664
9665         strncat: Move AC_LIBOBJ invocations to module description.
9666         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9667         invocations from here...
9668         * modules/strncat (configure.ac): ... to here.
9669
9670 2011-05-22  Bruno Haible  <bruno@clisp.org>
9671
9672         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9673         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9674         invocations from here...
9675         * modules/strdup (configure.ac): ... to here.
9676         * modules/strdup-posix (configure.ac): ... and here.
9677
9678 2011-05-22  Bruno Haible  <bruno@clisp.org>
9679
9680         strcspn: Move AC_LIBOBJ invocations to module description.
9681         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9682         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9683         here...
9684         * modules/strcspn (configure.ac): ... to here.
9685
9686 2011-05-22  Bruno Haible  <bruno@clisp.org>
9687
9688         strchrnul: Move AC_LIBOBJ invocations to module description.
9689         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9690         gl_PREREQ_STRCHRNUL invocations from here...
9691         * modules/strchrnul (configure.ac): ... to here.
9692
9693 2011-05-22  Bruno Haible  <bruno@clisp.org>
9694
9695         strcasestr*: Move AC_LIBOBJ invocations to module description.
9696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9697         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9698         * modules/strcasestr-simple (configure.ac): ... to here.
9699         * modules/strcasestr (configure.ac): ... and here.
9700
9701 2011-05-22  Bruno Haible  <bruno@clisp.org>
9702
9703         strcase: Move AC_LIBOBJ invocations to module description.
9704         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9705         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9706         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9707         gl_PREREQ_STRNCASECMP invocations from here...
9708         * modules/strcase (configure.ac): ... to here.
9709
9710 2011-05-22  Bruno Haible  <bruno@clisp.org>
9711
9712         stpncpy: Move AC_LIBOBJ invocations to module description.
9713         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9714         here...
9715         * modules/stpncpy (configure.ac): ... to here.
9716
9717 2011-05-22  Bruno Haible  <bruno@clisp.org>
9718
9719         stpcpy: Move AC_LIBOBJ invocations to module description.
9720         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9721         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9722         here...
9723         * modules/stpcpy (configure.ac): ... to here.
9724
9725 2011-05-21  Bruno Haible  <bruno@clisp.org>
9726
9727         stat: Move AC_LIBOBJ invocations to module description.
9728         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9729         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9730         here...
9731         * modules/stat (configure.ac): ... to here.
9732
9733 2011-05-21  Bruno Haible  <bruno@clisp.org>
9734
9735         sleep: Move AC_LIBOBJ invocations to module description.
9736         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9737         * modules/sleep (configure.ac): ... to here.
9738
9739 2011-05-21  Bruno Haible  <bruno@clisp.org>
9740
9741         signbit: Move AC_LIBOBJ invocations to module description.
9742         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9743         * modules/signbit (configure.ac): ... to here.
9744
9745 2011-05-21  Bruno Haible  <bruno@clisp.org>
9746
9747         sigprocmask: Move AC_LIBOBJ invocations to module description.
9748         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9749         gl_PREREQ_SIGPROMASK invocations from here...
9750         * modules/sigprocmask (configure.ac): ... to here.
9751
9752 2011-05-21  Bruno Haible  <bruno@clisp.org>
9753
9754         sigaction: Move AC_LIBOBJ invocations to module description.
9755         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9756         gl_PREREQ_SIGACTION invocations from here...
9757         * modules/sigaction (configure.ac): ... to here.
9758
9759 2011-05-21  Bruno Haible  <bruno@clisp.org>
9760
9761         sig2str: Move AC_LIBOBJ invocations to module description.
9762         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9763         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9764         here...
9765         * modules/sig2str (configure.ac): ... to here.
9766
9767 2011-05-21  Bruno Haible  <bruno@clisp.org>
9768
9769         setlocale: Move AC_LIBOBJ invocations to module description.
9770         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9771         gl_PREREQ_SETLOCALE invocations from here...
9772         * modules/setlocale (configure.ac): ... to here.
9773
9774 2011-05-21  Bruno Haible  <bruno@clisp.org>
9775
9776         unsetenv: Move AC_LIBOBJ invocations to module description.
9777         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9778         and gl_PREREQ_UNSETENV invocations from here...
9779         * modules/unsetenv (configure.ac): ... to here.
9780         (Depends-on): Update.
9781
9782 2011-05-21  Bruno Haible  <bruno@clisp.org>
9783
9784         setenv: Move AC_LIBOBJ invocations to module description.
9785         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9786         here...
9787         * modules/setenv (configure.ac): ... to here.
9788
9789 2011-05-21  Bruno Haible  <bruno@clisp.org>
9790
9791         selinux-h: Move AC_LIBOBJ invocations to module description.
9792         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9793         AC_LIBOBJ invocation from here...
9794         * modules/selinux-h (configure.ac): ... to here.
9795
9796 2011-05-21  Bruno Haible  <bruno@clisp.org>
9797
9798         select: Respect rules for use of AC_LIBOBJ.
9799         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9800         here...
9801         * modules/select (configure.ac): ... to here.
9802
9803 2011-05-21  Bruno Haible  <bruno@clisp.org>
9804
9805         scandir: Move AC_LIBOBJ invocations to module description.
9806         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9807         invocations from here...
9808         * modules/scandir (configure.ac): ... to here.
9809
9810 2011-05-21  Bruno Haible  <bruno@clisp.org>
9811
9812         rpmatch: Move AC_LIBOBJ invocations to module description.
9813         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9815         here...
9816         * modules/rpmatch (configure.ac): ... to here.
9817
9818 2011-05-21  Bruno Haible  <bruno@clisp.org>
9819
9820         rmdir: Respect rules for use of AC_LIBOBJ.
9821         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9822         * modules/rmdir (configure.ac): ... to here.
9823
9824 2011-05-21  Bruno Haible  <bruno@clisp.org>
9825
9826         renameat: Move AC_LIBOBJ invocations to module description.
9827         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9828         here...
9829         * modules/renameat (configure.ac): ... to here.
9830
9831 2011-05-21  Bruno Haible  <bruno@clisp.org>
9832
9833         rename: Respect rules for use of AC_LIBOBJ.
9834         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9835         here...
9836         * modules/rename (configure.ac): ... to here.
9837
9838 2011-05-21  Bruno Haible  <bruno@clisp.org>
9839
9840         remove: Move AC_LIBOBJ invocations to module description.
9841         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9842         here...
9843         * modules/remove (configure.ac): ... to here.
9844
9845 2011-05-21  Bruno Haible  <bruno@clisp.org>
9846
9847         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9848         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9849         macro.
9850         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9851         * modules/relocatable-lib (configure.ac): ... to here.
9852         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9853         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9854
9855 2011-05-21  Bruno Haible  <bruno@clisp.org>
9856
9857         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9858         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9859         here...
9860         * modules/relocatable-prog (configure.ac): ... to here.
9861
9862 2011-05-21  Bruno Haible  <bruno@clisp.org>
9863
9864         regex: Move AC_LIBOBJ invocations to module description.
9865         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9866         invocations from here...
9867         * modules/regex (configure.ac): ... to here.
9868
9869 2011-05-21  Bruno Haible  <bruno@clisp.org>
9870
9871         realloc-*: Move AC_LIBOBJ invocations to module description.
9872         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9873         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9874         AC_LIBOBJ invocations from here...
9875         * modules/realloc-gnu (configure.ac): ... to here.
9876         * modules/realloc-posix (configure.ac): ... and here.
9877
9878 2011-05-21  Bruno Haible  <bruno@clisp.org>
9879
9880         readutmp: Move AC_LIBOBJ invocations to module description.
9881         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9882         * modules/readutmp (configure.ac): ... to here.
9883
9884 2011-05-21  Bruno Haible  <bruno@clisp.org>
9885
9886         readlinkat: Move AC_LIBOBJ invocations to module description.
9887         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9888         here...
9889         * modules/readlinkat (configure.ac): ... to here.
9890
9891 2011-05-21  Bruno Haible  <bruno@clisp.org>
9892
9893         readlink: Move AC_LIBOBJ invocations to module description.
9894         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9895         gl_PREREQ_READLINK invocations from here...
9896         * modules/readlink (configure.ac): ... to here.
9897
9898 2011-05-21  Bruno Haible  <bruno@clisp.org>
9899
9900         readline: Move AC_LIBOBJ invocations to module description.
9901         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9902         gl_PREREQ_READLINE invocations from here...
9903         * modules/readline (configure.ac): ... to here.
9904
9905 2011-05-21  Bruno Haible  <bruno@clisp.org>
9906
9907         read: Move AC_LIBOBJ invocations to module description.
9908         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9909         * modules/read (configure.ac): ... to here.
9910
9911 2011-05-21  Bruno Haible  <bruno@clisp.org>
9912
9913         rawmemchr: Move AC_LIBOBJ invocations to module description.
9914         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9915         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9916         from here...
9917         * modules/rawmemchr (configure.ac): ... to here.
9918
9919 2011-05-21  Bruno Haible  <bruno@clisp.org>
9920
9921         random_r: Move AC_LIBOBJ invocations to module description.
9922         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9923         gl_PREREQ_RANDOM_R invocations from here...
9924         * modules/random_r (configure.ac): ... to here.
9925
9926 2011-05-21  Bruno Haible  <bruno@clisp.org>
9927
9928         pwrite: Move AC_LIBOBJ invocations to module description.
9929         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9930         * modules/pwrite (configure.ac): ... to here.
9931
9932 2011-05-21  Bruno Haible  <bruno@clisp.org>
9933
9934         putenv: Move AC_LIBOBJ invocations to module description.
9935         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9936         * modules/putenv (configure.ac): ... to here.
9937
9938 2011-05-21  Bruno Haible  <bruno@clisp.org>
9939
9940         login_tty: Move AC_LIBOBJ invocations to module description.
9941         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9942         * modules/login_tty (configure.ac): ... to here.
9943
9944 2011-05-21  Bruno Haible  <bruno@clisp.org>
9945
9946         openpty: Move AC_LIBOBJ invocations to module description.
9947         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9948         * modules/openpty (configure.ac): ... to here.
9949
9950 2011-05-21  Bruno Haible  <bruno@clisp.org>
9951
9952         forkpty: Move AC_LIBOBJ invocations to module description.
9953         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9954         * modules/forkpty (configure.ac): ... to here.
9955
9956 2011-05-21  Bruno Haible  <bruno@clisp.org>
9957
9958         ptsname: Move AC_LIBOBJ invocations to module description.
9959         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9960         invocations from here...
9961         * modules/ptsname (configure.ac): ... to here.
9962
9963 2011-05-21  Bruno Haible  <bruno@clisp.org>
9964
9965         pread: Move AC_LIBOBJ invocations to module description.
9966         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9967         * modules/pread (configure.ac): ... to here.
9968
9969 2011-05-21  Bruno Haible  <bruno@clisp.org>
9970
9971         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9972         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9973         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9974         * modules/posix_spawn (configure.ac): ... to here.
9975         * modules/posix_spawnp (configure.ac): ... and here.
9976
9977 2011-05-21  Bruno Haible  <bruno@clisp.org>
9978
9979         popen: Move AC_LIBOBJ invocations to module description.
9980         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9981         invocations from here...
9982         * modules/popen (configure.ac): ... to here.
9983
9984 2011-05-21  Bruno Haible  <bruno@clisp.org>
9985
9986         poll: Move AC_LIBOBJ invocations to module description.
9987         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9988         invocations from here...
9989         * modules/poll (configure.ac): ... to here.
9990
9991 2011-05-21  Bruno Haible  <bruno@clisp.org>
9992
9993         pipe-posix: Move AC_LIBOBJ invocations to module description.
9994         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9995         * modules/pipe-posix (configure.ac): ... to here.
9996
9997 2011-05-21  Bruno Haible  <bruno@clisp.org>
9998
9999         openat: Respect rules for use of AC_LIBOBJ.
10000         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10001         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10002         * modules/openat (configure.ac): ... to here.
10003
10004 2011-05-21  Bruno Haible  <bruno@clisp.org>
10005
10006         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10007         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10008         invocation from here...
10009         * modules/obstack-printf (configure.ac): ... to here.
10010         * modules/obstack-printf-posix (configure.ac): ... and here.
10011
10012 2011-05-21  Bruno Haible  <bruno@clisp.org>
10013
10014         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10015         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10016         from here...
10017         * modules/nl_langinfo (configure.ac): ... to here.
10018
10019 2011-05-21  Bruno Haible  <bruno@clisp.org>
10020
10021         nanosleep: Move AC_LIBOBJ invocations to module description.
10022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10023         gl_PREREQ_NANOSLEEP invocations from here...
10024         * modules/nanosleep (configure.ac): ... to here.
10025
10026 2011-05-21  Bruno Haible  <bruno@clisp.org>
10027
10028         mountlist: Move AC_LIBOBJ invocations to module description.
10029         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10030         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10031         * modules/mountlist (configure.ac): ... to here.
10032
10033 2011-05-21  Bruno Haible  <bruno@clisp.org>
10034
10035         mktime: Respect rules for use of AC_LIBOBJ.
10036         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10037         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10038         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10039         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10040         * modules/mktime (configure.ac): ... to here.
10041         * modules/mktime-internal (configure.ac): ... and here.
10042         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10043
10044 2011-05-21  Bruno Haible  <bruno@clisp.org>
10045
10046         mkstemps: Move AC_LIBOBJ invocations to module description.
10047         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10048         here...
10049         * modules/mkstemps (configure.ac): ... to here.
10050
10051 2011-05-21  Bruno Haible  <bruno@clisp.org>
10052
10053         mkstemp: Move AC_LIBOBJ invocations to module description.
10054         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10055         gl_PREREQ_MKSTEMP invocations from here...
10056         * modules/mkstemp (configure.ac): ... to here.
10057
10058 2011-05-21  Bruno Haible  <bruno@clisp.org>
10059
10060         mkostemps: Move AC_LIBOBJ invocations to module description.
10061         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10062         here...
10063         * modules/mkostemps (configure.ac): ... to here.
10064
10065 2011-05-21  Bruno Haible  <bruno@clisp.org>
10066
10067         mkostemp: Move AC_LIBOBJ invocations to module description.
10068         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10069         gl_PREREQ_MKOSTEMP invocations from here...
10070         * modules/mkostemp (configure.ac): ... to here.
10071
10072 2011-05-21  Bruno Haible  <bruno@clisp.org>
10073
10074         mknod: Move AC_LIBOBJ invocations to module description.
10075         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10076         * modules/mknod (configure.ac): ... to here.
10077
10078 2011-05-21  Bruno Haible  <bruno@clisp.org>
10079
10080         mkfifoat: Move AC_LIBOBJ invocations to module description.
10081         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10082         here...
10083         * modules/mkfifoat (configure.ac): ... to here.
10084
10085 2011-05-21  Bruno Haible  <bruno@clisp.org>
10086
10087         mkfifo: Respect rules for use of AC_LIBOBJ.
10088         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10089         here...
10090         * modules/mkfifo (configure.ac): ... to here.
10091
10092 2011-05-21  Bruno Haible  <bruno@clisp.org>
10093
10094         mkdtemp: Move AC_LIBOBJ invocations to module description.
10095         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10096         invocations from here...
10097         * modules/mkdtemp (configure.ac): ... to here.
10098
10099 2011-05-21  Bruno Haible  <bruno@clisp.org>
10100
10101         mkdir: Move AC_LIBOBJ invocations to module description.
10102         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10103         * modules/mkdir (configure.ac): ... to here.
10104
10105 2011-05-21  Bruno Haible  <bruno@clisp.org>
10106
10107         memset: Move AC_LIBOBJ invocations to module description.
10108         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10109         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10110         here...
10111         * modules/memset (configure.ac): ... to here.
10112
10113 2011-05-21  Bruno Haible  <bruno@clisp.org>
10114
10115         memrchr: Move AC_LIBOBJ invocations to module description.
10116         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10117         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10118         here...
10119         * modules/memrchr (configure.ac): ... to here.
10120
10121 2011-05-21  Bruno Haible  <bruno@clisp.org>
10122
10123         mempcpy: Move AC_LIBOBJ invocations to module description.
10124         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10125         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10126         here...
10127         * modules/mempcpy (configure.ac): ... to here.
10128
10129 2011-05-21  Bruno Haible  <bruno@clisp.org>
10130
10131         memmove: Move AC_LIBOBJ invocations to module description.
10132         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10133         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10134         here...
10135         * modules/memmove (configure.ac): ... to here.
10136
10137 2011-05-21  Bruno Haible  <bruno@clisp.org>
10138
10139         memmem*: Move AC_LIBOBJ invocations to module description.
10140         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10141         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10142         here...
10143         (gl_FUNC_MEMMEM): ... and here...
10144         * modules/memmem-simple (configure.ac): ... to here.
10145         * modules/memmem (configure.ac): ... and here.
10146
10147 2011-05-21  Bruno Haible  <bruno@clisp.org>
10148
10149         memcpy: Move AC_LIBOBJ invocations to module description.
10150         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10152         here...
10153         * modules/memcpy (configure.ac): ... to here.
10154
10155 2011-05-21  Bruno Haible  <bruno@clisp.org>
10156
10157         memcmp: Simplify autoconf macro.
10158         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10159         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10160         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10161
10162 2011-05-21  Bruno Haible  <bruno@clisp.org>
10163
10164         memcmp: Move AC_LIBOBJ invocations to module description.
10165         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10166         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10167         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10168         * modules/memcmp (configure.ac): ... to here.
10169         (Depends-on): Update conditions.
10170
10171 2011-05-21  Bruno Haible  <bruno@clisp.org>
10172
10173         memchr: Respect rules for use of AC_LIBOBJ.
10174         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10175         invocations from here...
10176         * modules/memchr (configure.ac): ... to here.
10177
10178 2011-05-21  Bruno Haible  <bruno@clisp.org>
10179
10180         mbtowc: Move AC_LIBOBJ invocations to module description.
10181         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10182         invocations from here...
10183         * modules/mbtowc (configure.ac): ... to here.
10184
10185 2011-05-21  Bruno Haible  <bruno@clisp.org>
10186
10187         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10188         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10189         gl_PREREQ_MBSRTOWCS invocations from here...
10190         * modules/mbsrtowcs (configure.ac): ... to here.
10191
10192 2011-05-21  Bruno Haible  <bruno@clisp.org>
10193
10194         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10195         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10196         gl_PREREQ_MBSNRTOWCS invocations from here...
10197         * modules/mbsnrtowcs (configure.ac): ... to here.
10198
10199 2011-05-21  Bruno Haible  <bruno@clisp.org>
10200
10201         mbsinit: Move AC_LIBOBJ invocations to module description.
10202         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10203         invocations from here...
10204         * modules/mbsinit (configure.ac): ... to here.
10205
10206 2011-05-21  Bruno Haible  <bruno@clisp.org>
10207
10208         mbrlen: Move AC_LIBOBJ invocations to module description.
10209         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10210         invocations from here...
10211         * modules/mbrlen (configure.ac): ... to here.
10212
10213 2011-05-21  Bruno Haible  <bruno@clisp.org>
10214
10215         mbrtowc: Respect rules for use of AC_LIBOBJ.
10216         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10217         invocations from here...
10218         * modules/mbrtowc (configure.ac): ... to here.
10219
10220 2011-05-21  Bruno Haible  <bruno@clisp.org>
10221
10222         malloc-*: Move AC_LIBOBJ invocations to module description.
10223         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10224         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10225         AC_LIBOBJ invocations from here...
10226         * modules/malloc-gnu (configure.ac): ... to here.
10227         * modules/malloc-posix (configure.ac): ... and here.
10228
10229 2011-05-21  Bruno Haible  <bruno@clisp.org>
10230
10231         lstat, openat: Respect rules for use of AC_LIBOBJ.
10232         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10233         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10234         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10235         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
10236         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
10237         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
10238         here.
10239         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
10240
10241 2011-05-21  Bruno Haible  <bruno@clisp.org>
10242
10243         lseek: Move AC_LIBOBJ invocations to module description.
10244         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
10245         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10246         * modules/lseek (configure.ac): ... to here.
10247
10248 2011-05-21  Bruno Haible  <bruno@clisp.org>
10249
10250         linkat: Move AC_LIBOBJ invocations to module description.
10251         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
10252         here...
10253         * modules/linkat (configure.ac): ... to here.
10254
10255 2011-05-21  Bruno Haible  <bruno@clisp.org>
10256
10257         link: Respect rules for use of AC_LIBOBJ.
10258         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
10259         * modules/link (configure.ac): ... to here.
10260
10261 2011-05-21  Bruno Haible  <bruno@clisp.org>
10262
10263         lchown: Move AC_LIBOBJ invocations to module description.
10264         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10265         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10266         * modules/lchown (configure.ac): ... to here.
10267
10268 2011-05-21  Bruno Haible  <bruno@clisp.org>
10269
10270         iswctype: Move AC_LIBOBJ invocations to module description.
10271         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
10272         here...
10273         * modules/iswctype (configure.ac): ... to here.
10274
10275 2011-05-21  Bruno Haible  <bruno@clisp.org>
10276
10277         iswblank: Move AC_LIBOBJ invocations to module description.
10278         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
10279         here...
10280         * modules/iswblank (configure.ac): ... to here.
10281
10282 2011-05-21  Bruno Haible  <bruno@clisp.org>
10283
10284         atanl: Move AC_LIBOBJ invocations to module description.
10285         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
10286         * modules/atanl (configure.ac): ... to here.
10287
10288 2011-05-21  Bruno Haible  <bruno@clisp.org>
10289
10290         acosl: Move AC_LIBOBJ invocations to module description.
10291         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
10292         * modules/acosl (configure.ac): ... to here.
10293
10294 2011-05-21  Bruno Haible  <bruno@clisp.org>
10295
10296         asinl: Respect rules for use of AC_LIBOBJ.
10297         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
10298         * modules/asinl (configure.ac): ... to here.
10299
10300 2011-05-21  Bruno Haible  <bruno@clisp.org>
10301
10302         tanl: Move AC_LIBOBJ invocations to module description.
10303         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
10304         * modules/tanl (configure.ac): ... to here.
10305
10306 2011-05-21  Bruno Haible  <bruno@clisp.org>
10307
10308         cosl: Move AC_LIBOBJ invocations to module description.
10309         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
10310         * modules/cosl (configure.ac): ... to here.
10311
10312 2011-05-21  Bruno Haible  <bruno@clisp.org>
10313
10314         sinl: Move AC_LIBOBJ invocations to module description.
10315         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
10316         * modules/sinl (configure.ac): ... to here.
10317
10318 2011-05-21  Bruno Haible  <bruno@clisp.org>
10319
10320         logl: Move AC_LIBOBJ invocations to module description.
10321         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
10322         * modules/logl (configure.ac): ... to here.
10323
10324 2011-05-21  Bruno Haible  <bruno@clisp.org>
10325
10326         expl: Move AC_LIBOBJ invocations to module description.
10327         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
10328         * modules/expl (configure.ac): ... to here.
10329
10330 2011-05-21  Bruno Haible  <bruno@clisp.org>
10331
10332         roundl: Move AC_LIBOBJ invocations to module description.
10333         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
10334         * modules/roundl (configure.ac): ... to here.
10335
10336 2011-05-21  Bruno Haible  <bruno@clisp.org>
10337
10338         round: Move AC_LIBOBJ invocations to module description.
10339         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
10340         * modules/round (configure.ac): ... to here.
10341
10342 2011-05-21  Bruno Haible  <bruno@clisp.org>
10343
10344         roundf: Move AC_LIBOBJ invocations to module description.
10345         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
10346         * modules/roundf (configure.ac): ... to here.
10347
10348 2011-05-21  Bruno Haible  <bruno@clisp.org>
10349
10350         truncl: Move AC_LIBOBJ invocations to module description.
10351         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
10352         * modules/truncl (configure.ac): ... to here.
10353
10354 2011-05-21  Bruno Haible  <bruno@clisp.org>
10355
10356         trunc: Move AC_LIBOBJ invocations to module description.
10357         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
10358         * modules/trunc (configure.ac): ... to here.
10359
10360 2011-05-21  Bruno Haible  <bruno@clisp.org>
10361
10362         truncf: Move AC_LIBOBJ invocations to module description.
10363         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
10364         * modules/truncf (configure.ac): ... to here.
10365
10366 2011-05-21  Bruno Haible  <bruno@clisp.org>
10367
10368         ceill: Move AC_LIBOBJ invocations to module description.
10369         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10370         * modules/ceill (configure.ac): ... to here.
10371
10372 2011-05-21  Bruno Haible  <bruno@clisp.org>
10373
10374         ceil: Move AC_LIBOBJ invocations to module description.
10375         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10376         * modules/ceil (configure.ac): ... to here.
10377
10378 2011-05-21  Bruno Haible  <bruno@clisp.org>
10379
10380         ceilf: Move AC_LIBOBJ invocations to module description.
10381         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10382         * modules/ceilf (configure.ac): ... to here.
10383
10384 2011-05-21  Bruno Haible  <bruno@clisp.org>
10385
10386         floorl: Respect rules for use of AC_LIBOBJ.
10387         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
10388         * modules/floorl (configure.ac): ... to here.
10389
10390 2011-05-21  Bruno Haible  <bruno@clisp.org>
10391
10392         floor: Respect rules for use of AC_LIBOBJ.
10393         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10394         * modules/floor (configure.ac): ... to here.
10395
10396 2011-05-21  Bruno Haible  <bruno@clisp.org>
10397
10398         floorf: Move AC_LIBOBJ invocations to module description.
10399         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10400         * modules/floorf (configure.ac): ... to here.
10401
10402 2011-05-20  Bruno Haible  <bruno@clisp.org>
10403
10404         sqrtl: Respect rules for use of AC_LIBOBJ.
10405         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10406         * modules/sqrtl (configure.ac): ... to here.
10407
10408 2011-05-20  Bruno Haible  <bruno@clisp.org>
10409
10410         ldexpl: Respect rules for use of AC_LIBOBJ.
10411         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10412         * modules/ldexpl (configure.ac): ... to here.
10413
10414 2011-05-20  Bruno Haible  <bruno@clisp.org>
10415
10416         frexpl*: Respect rules for use of AC_LIBOBJ.
10417         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10418         invocation from here...
10419         * modules/frexpl (configure.ac): ... to here.
10420         * modules/frexpl-nolibm (configure.ac): ... and here.
10421
10422 2011-05-20  Bruno Haible  <bruno@clisp.org>
10423
10424         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10425         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10426         invocation from here...
10427         * modules/frexp (configure.ac): ... to here.
10428         * modules/frexp-nolibm (configure.ac): ... and here.
10429
10430 2011-05-20  Bruno Haible  <bruno@clisp.org>
10431
10432         isnan: Respect rules for use of AC_LIBOBJ.
10433         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10434         invocations here.
10435         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10436         REPLACE_ISNAN.
10437         * modules/isnand (configure.ac): Likewise.
10438         * modules/isnanl (configure.ac): Likewise.
10439
10440 2011-05-20  Bruno Haible  <bruno@clisp.org>
10441
10442         isnanl*: Respect rules for use of AC_LIBOBJ.
10443         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10444         invocation from here...
10445         * modules/isnanl (configure.ac): ... to here.
10446         * modules/isnanl-nolibm (configure.ac): ... and here.
10447
10448 2011-05-20  Bruno Haible  <bruno@clisp.org>
10449
10450         isnand*: Move AC_LIBOBJ invocations to module description.
10451         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10452         invocation from here...
10453         * modules/isnand (configure.ac): ... to here.
10454         * modules/isnand-nolibm (configure.ac): ... and here.
10455
10456 2011-05-20  Bruno Haible  <bruno@clisp.org>
10457
10458         isnanf*: Move AC_LIBOBJ invocations to module description.
10459         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10460         invocation from here...
10461         * modules/isnanf (configure.ac): ... to here.
10462         * modules/isnanf-nolibm (configure.ac): ... and here.
10463
10464 2011-05-20  Bruno Haible  <bruno@clisp.org>
10465
10466         isnan*: Separate the AC_LIBOBJ invocations.
10467         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10468         AC_LIBOBJ invocation.
10469         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10470         here.
10471         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10472         AC_LIBOBJ invocation.
10473         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10474         here.
10475         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10476         AC_LIBOBJ invocation.
10477         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10478         here.
10479         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10480
10481 2011-05-08  Bruno Haible  <bruno@clisp.org>
10482
10483         isinf: Move AC_LIBOBJ invocations to module description.
10484         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10485         * modules/isinf (configure.ac): ... to here.
10486
10487 2011-05-08  Bruno Haible  <bruno@clisp.org>
10488
10489         isfinite: Move AC_LIBOBJ invocations to module description.
10490         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10491         * modules/isfinite (configure.ac): ... to here.
10492
10493 2011-05-08  Bruno Haible  <bruno@clisp.org>
10494
10495         isblank: Move AC_LIBOBJ invocations to module description.
10496         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10497         here...
10498         * modules/isblank (configure.ac): ... to here.
10499
10500 2011-05-08  Bruno Haible  <bruno@clisp.org>
10501
10502         isapipe: Move AC_LIBOBJ invocations to module description.
10503         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10504         gl_PREREQ_ISAPIPE invocations from here...
10505         * modules/isapipe (configure.ac): ... to here.
10506         (Depends-on): Update condition.
10507
10508 2011-05-08  Bruno Haible  <bruno@clisp.org>
10509
10510         ioctl: Move AC_LIBOBJ invocations to module description.
10511         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10512         invocations from here...
10513         * modules/ioctl (configure.ac): ... to here.
10514         (Depends-on): Update condition.
10515
10516 2011-05-08  Bruno Haible  <bruno@clisp.org>
10517
10518         imaxdiv: Move AC_LIBOBJ invocations to module description.
10519         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10520         invocations from here...
10521         * modules/imaxdiv (configure.ac): ... to here.
10522
10523 2011-05-08  Bruno Haible  <bruno@clisp.org>
10524
10525         imaxabs: Move AC_LIBOBJ invocations to module description.
10526         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10527         invocations from here...
10528         * modules/imaxabs (configure.ac): ... to here.
10529
10530 2011-05-08  Bruno Haible  <bruno@clisp.org>
10531
10532         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10533         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10534         AC_LIBOBJ invocations from here...
10535         * modules/getaddrinfo (configure.ac): ... to here.
10536         (Depends-on): Add conditions.
10537
10538 2011-05-08  Bruno Haible  <bruno@clisp.org>
10539
10540         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10541         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10542         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10543         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10544         (gl_PREREQ_INET_PTON): ... from here.
10545         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10546         gl_PREREQ_INET_PTON here.
10547         (Depends-on): Update condition.
10548
10549 2011-05-08  Bruno Haible  <bruno@clisp.org>
10550
10551         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10552         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10553         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10554         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10555         (gl_PREREQ_INET_NTOP): ... from here.
10556         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10557         gl_PREREQ_INET_NTOP here.
10558         (Depends-on): Update condition.
10559
10560 2011-05-08  Bruno Haible  <bruno@clisp.org>
10561
10562         iconv_open: Move AC_LIBOBJ invocations to module description.
10563         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10564         AC_LIBOBJ invocations from here...
10565         * modules/iconv_open (configure.ac): ... to here.
10566
10567 2011-05-08  Bruno Haible  <bruno@clisp.org>
10568
10569         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10570         If module 'iconv_open' is among the main modules and module
10571         'iconv_open-utf' is among the tests dependencies, then
10572         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10573         return the special iconv_t values. Therefore iconv() and iconv_close()
10574         must support these special iconv_t values, already in lib, not only in
10575         tests.
10576         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10577         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10578         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10579         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10580         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10581         (Depends-on): Add the dependencies of iconv_open-utf.
10582         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10583         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10584         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10585
10586 2011-05-08  Bruno Haible  <bruno@clisp.org>
10587
10588         group-member: Move AC_LIBOBJ invocations to module description.
10589         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10590         gl_PREREQ_GROUP_MEMBER invocations from here...
10591         * modules/group-member (configure.ac): ... to here.
10592
10593 2011-05-08  Bruno Haible  <bruno@clisp.org>
10594
10595         grantpt: Move AC_LIBOBJ invocations to module description.
10596         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10597         invocations from here...
10598         * modules/grantpt (configure.ac): ... to here.
10599
10600 2011-05-08  Bruno Haible  <bruno@clisp.org>
10601
10602         glob: Move AC_LIBOBJ invocations to module description.
10603         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10604         from here...
10605         * modules/glob (configure.ac): ... to here.
10606
10607 2011-05-08  Bruno Haible  <bruno@clisp.org>
10608
10609         getusershell: Move AC_LIBOBJ invocations to module description.
10610         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10611         Move AC_LIBOBJ invocation from here...
10612         * modules/getusershell (configure.ac): ... to here.
10613         (Depends-on): Update condition.
10614
10615 2011-05-08  Bruno Haible  <bruno@clisp.org>
10616
10617         gettimeofday: Move AC_LIBOBJ invocations to module description.
10618         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10619         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10620         gl_PREREQ_GETTIMEOFDAY invocations from here...
10621         * modules/gettimeofday (configure.ac): ... to here.
10622
10623 2011-05-08  Bruno Haible  <bruno@clisp.org>
10624
10625         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10626         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10627         just gl_FUNC_TZSET.
10628         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10629         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10630         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10631         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10632
10633 2011-05-08  Bruno Haible  <bruno@clisp.org>
10634
10635         getsubopt: Move AC_LIBOBJ invocations to module description.
10636         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10637         gl_PREREQ_GETSUBOPT invocations from here...
10638         * modules/getsubopt (configure.ac): ... to here.
10639
10640 2011-05-08  Bruno Haible  <bruno@clisp.org>
10641
10642         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10643         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10644         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10645         * modules/getpass-gnu (configure.ac): ... to here.
10646
10647 2011-05-08  Bruno Haible  <bruno@clisp.org>
10648
10649         getpass: Move AC_LIBOBJ invocations to module description.
10650         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10651         gl_PREREQ_GETPASS invocations from here...
10652         * modules/getpass (configure.ac): ... to here.
10653
10654 2011-05-08  Bruno Haible  <bruno@clisp.org>
10655
10656         getpagesize: Move AC_LIBOBJ invocations to module description.
10657         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10658         from here...
10659         * modules/getpagesize (configure.ac): ... to here.
10660
10661 2011-05-08  Bruno Haible  <bruno@clisp.org>
10662
10663         getopt: Move AC_LIBOBJ invocations to module description.
10664         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10665         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10666         invocations from here...
10667         * modules/getopt-gnu (configure.ac): ... to here.
10668         * modules/getopt-posix (configure.ac): ... and here.
10669         (Depends-on): Update condition.
10670
10671 2011-05-08  Bruno Haible  <bruno@clisp.org>
10672
10673         getopt, argp: Respect rules for use of AC_LIBOBJ.
10674         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10675         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10676         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10677         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10678
10679 2011-05-08  Bruno Haible  <bruno@clisp.org>
10680
10681         getlogin_r: Move AC_LIBOBJ invocations to module description.
10682         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10683         gl_PREREQ_GETLOGIN_R invocations from here...
10684         * modules/getlogin_r (configure.ac): ... to here.
10685
10686 2011-05-08  Bruno Haible  <bruno@clisp.org>
10687
10688         getlogin: Move AC_LIBOBJ invocations to module description.
10689         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10690         here...
10691         * modules/getlogin (configure.ac): ... to here.
10692
10693 2011-05-08  Bruno Haible  <bruno@clisp.org>
10694
10695         getloadavg: Move AC_LIBOBJ invocations to module description.
10696         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10697         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10698         * modules/getloadavg (configure.ac): ... to here.
10699
10700 2011-05-08  Bruno Haible  <bruno@clisp.org>
10701
10702         gethrxtime: Move AC_LIBOBJ invocations to module description.
10703         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10704         LIB_GETHRXTIME from here...
10705         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10706         invocations from here...
10707         * modules/gethrxtime (configure.ac): ... to here.
10708
10709 2011-05-08  Bruno Haible  <bruno@clisp.org>
10710
10711         gethostname: Move AC_LIBOBJ invocations to module description.
10712         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10713         gl_PREREQ_GETHOSTNAME invocations from here...
10714         * modules/gethostname (configure.ac): ... to here.
10715
10716 2011-05-08  Bruno Haible  <bruno@clisp.org>
10717
10718         getgroups: Move AC_LIBOBJ invocations to module description.
10719         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10720         here...
10721         * modules/getgroups (configure.ac): ... to here.
10722
10723 2011-05-08  Bruno Haible  <bruno@clisp.org>
10724
10725         getdtablesize: Move AC_LIBOBJ invocations to module description.
10726         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10727         invocation from here...
10728         * modules/getdtablesize (configure.ac): ... to here.
10729
10730 2011-05-08  Bruno Haible  <bruno@clisp.org>
10731
10732         getdomainname: Move AC_LIBOBJ invocations to module description.
10733         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10734         gl_PREREQ_GETDOMAINNAME invocations from here...
10735         * modules/getdomainname (configure.ac): ... to here.
10736
10737 2011-05-08  Bruno Haible  <bruno@clisp.org>
10738
10739         getline: Move AC_LIBOBJ invocations to module description.
10740         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10741         invocations from here...
10742         * modules/getline (configure.ac): ... to here.
10743
10744 2011-05-08  Bruno Haible  <bruno@clisp.org>
10745
10746         getline: Simplify.
10747         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10748         It's already handled through the module dependency.
10749
10750 2011-05-08  Bruno Haible  <bruno@clisp.org>
10751
10752         getdelim: Move AC_LIBOBJ invocations to module description.
10753         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10754         and gl_PREREQ_GETDELIM invocations from here...
10755         * modules/getdelim (configure.ac): ... to here.
10756         (Depends-on): Fix condition.
10757
10758 2011-05-08  Bruno Haible  <bruno@clisp.org>
10759
10760         getcwd: Move AC_LIBOBJ invocations to module description.
10761         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10762         invocations from here...
10763         * modules/getcwd (configure.ac): ... to here.
10764
10765 2011-05-08  Bruno Haible  <bruno@clisp.org>
10766
10767         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10768         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10769         here...
10770         * modules/getcwd-lgpl (configure.ac): ... to here.
10771
10772 2011-05-07  Bruno Haible  <bruno@clisp.org>
10773
10774         crypto/gc: Move AC_LIBOBJ invocations to module description.
10775         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10776         * modules/crypto/gc (configure.ac): ... to here.
10777
10778 2011-05-07  Bruno Haible  <bruno@clisp.org>
10779
10780         fwriting: Move AC_LIBOBJ invocations to module description.
10781         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10782         here...
10783         * modules/fwriting (configure.ac): ... to here.
10784
10785 2011-05-07  Bruno Haible  <bruno@clisp.org>
10786
10787         fwritable: Move AC_LIBOBJ invocations to module description.
10788         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10789         here...
10790         * modules/fwritable (configure.ac): ... to here.
10791
10792 2011-05-07  Bruno Haible  <bruno@clisp.org>
10793
10794         futimens: Move AC_LIBOBJ invocations to module description.
10795         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10796         here...
10797         * modules/futimens (configure.ac): ... to here.
10798
10799 2011-05-07  Bruno Haible  <bruno@clisp.org>
10800
10801         ftruncate: Move AC_LIBOBJ invocations to module description.
10802         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10803         gl_PREREQ_FTRUNCATE invocations from here...
10804         * modules/ftruncate (configure.ac): ... to here.
10805
10806 2011-05-07  Bruno Haible  <bruno@clisp.org>
10807
10808         fsync: Move AC_LIBOBJ invocations to module description.
10809         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10810         invocations from here...
10811         * modules/fsync (configure.ac): ... to here.
10812
10813 2011-05-07  Bruno Haible  <bruno@clisp.org>
10814
10815         fsusage: Move AC_LIBOBJ invocations to module description.
10816         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10817         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10818         * modules/fsusage (configure.ac): ... to here.
10819
10820 2011-05-07  Bruno Haible  <bruno@clisp.org>
10821
10822         freopen: Move AC_LIBOBJ invocations to module description.
10823         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10824         invocations from here...
10825         * modules/freopen (configure.ac): ... to here.
10826
10827 2011-05-07  Bruno Haible  <bruno@clisp.org>
10828
10829         free: Move AC_LIBOBJ invocations to module description.
10830         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10831         invocations from here...
10832         * modules/free (configure.ac): ... to here.
10833
10834 2011-05-07  Bruno Haible  <bruno@clisp.org>
10835
10836         freadable: Move AC_LIBOBJ invocations to module description.
10837         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10838         here...
10839         * modules/freadable (configure.ac): ... to here.
10840
10841 2011-05-07  Bruno Haible  <bruno@clisp.org>
10842
10843         fpurge: Move AC_LIBOBJ invocations to module description.
10844         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10845         invocations from here...
10846         * modules/fpurge (configure.ac): ... to here.
10847
10848 2011-05-07  Bruno Haible  <bruno@clisp.org>
10849
10850         fpending: Move AC_LIBOBJ invocations to module description.
10851         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10852         gl_FUNC_FPENDING.
10853         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10854         invocations from here...
10855         * modules/fpending (configure.ac): ... to here.
10856
10857 2011-05-07  Bruno Haible  <bruno@clisp.org>
10858
10859         fopen: Move AC_LIBOBJ invocations to module description.
10860         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10861         invocations from here...
10862         * modules/fopen (configure.ac): ... to here.
10863
10864 2011-05-07  Bruno Haible  <bruno@clisp.org>
10865
10866         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10867         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10868         gl_FUNC_FNMATCH_POSIX.
10869         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10870         invocations from here...
10871         * modules/fnmatch (configure.ac): ... to here.
10872         * modules/fnmatch-gnu (configure.ac): ... and here.
10873
10874 2011-05-07  Bruno Haible  <bruno@clisp.org>
10875
10876         flock: Move AC_LIBOBJ invocations to module description.
10877         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10878         invocations from here...
10879         * modules/flock (configure.ac): ... to here.
10880
10881 2011-05-07  Bruno Haible  <bruno@clisp.org>
10882
10883         fileblocks: Move AC_LIBOBJ invocations to module description.
10884         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10885         gl_PREREQ_FILEBLOCKS invocations from here...
10886         * modules/fileblocks (configure.ac): ... to here.
10887
10888 2011-05-06  Bruno Haible  <bruno@clisp.org>
10889
10890         fflush: Move AC_LIBOBJ invocations to module description.
10891         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10892         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10893         invocations from here...
10894         * modules/fflush (configure.ac): ... to here.
10895
10896 2011-05-06  Bruno Haible  <bruno@clisp.org>
10897
10898         fdopendir: Move AC_LIBOBJ invocations to module description.
10899         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10900         here...
10901         * modules/fdopendir (configure.ac): ... to here.
10902         (Depends-on): Improve conditions.
10903
10904 2011-05-06  Bruno Haible  <bruno@clisp.org>
10905
10906         _Exit: Move AC_LIBOBJ invocations to module description.
10907         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10908         invocations from here...
10909         * modules/_Exit (configure.ac): ... to here.
10910
10911 2011-05-21  Bruno Haible  <bruno@clisp.org>
10912
10913         euidaccess: Respect rules for use of AC_LIBOBJ.
10914         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10915         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10916         from here...
10917         * modules/euidaccess (configure.ac): ... to here.
10918
10919 2011-05-06  Bruno Haible  <bruno@clisp.org>
10920
10921         error: Move AC_LIBOBJ invocations to module description.
10922         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10923         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10924         invocations from here...
10925         * modules/error (configure.ac): ... to here.
10926
10927 2011-05-06  Bruno Haible  <bruno@clisp.org>
10928
10929         duplocale: Move AC_LIBOBJ invocations to module description.
10930         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10931         gl_PREREQ_DUPLOCALE invocations from here...
10932         * modules/duplocale (configure.ac): ... to here.
10933
10934 2011-05-05  Bruno Haible  <bruno@clisp.org>
10935
10936         dirfd: Move AC_LIBOBJ invocations to module description.
10937         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10938         gl_FUNC_DIRFD.
10939         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10940         here...
10941         * modules/dirfd (configure.ac): ... to here.
10942         (Depends-on): Fix condition.
10943
10944 2011-05-05  Bruno Haible  <bruno@clisp.org>
10945
10946         chown: Respect rules for use of AC_LIBOBJ.
10947         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10948         * modules/chown (configure.ac): ... to here.
10949
10950 2011-05-05  Bruno Haible  <bruno@clisp.org>
10951
10952         chdir-long: Move AC_LIBOBJ invocations to module description.
10953         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10954         gl_PREREQ_CHDIR_LONG invocations from here...
10955         * modules/chdir-long (configure.ac): ... to here.
10956
10957 2011-05-05  Bruno Haible  <bruno@clisp.org>
10958
10959         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10960         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10961         from here...
10962         * modules/canonicalize-lgpl (configure.ac): ... to here.
10963
10964 2011-05-05  Bruno Haible  <bruno@clisp.org>
10965
10966         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10967         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10968         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10969         REPLACE_CALLOC.
10970         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10971         * modules/calloc-gnu (configure.ac): Likewise.
10972
10973 2011-05-05  Bruno Haible  <bruno@clisp.org>
10974
10975         btowc: Move AC_LIBOBJ invocations to module description.
10976         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10977         invocations from here...
10978         * modules/btowc (configure.ac): ... to here.
10979
10980 2011-05-21  Bruno Haible  <bruno@clisp.org>
10981
10982         atexit: Move AC_LIBOBJ invocations to module description.
10983         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10984         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10985         here...
10986         * modules/atexit (configure.ac): ... to here.
10987
10988 2011-05-05  Bruno Haible  <bruno@clisp.org>
10989
10990         atoll: Move AC_LIBOBJ invocations to module description.
10991         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10992         invocations from here...
10993         * modules/atoll (configure.ac): ... to here.
10994
10995 2011-05-05  Bruno Haible  <bruno@clisp.org>
10996
10997         argz: Move AC_LIBOBJ invocations to module description.
10998         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10999         * modules/argz (configure.ac): ... to here.
11000
11001 2011-05-05  Bruno Haible  <bruno@clisp.org>
11002
11003         alphasort: Move AC_LIBOBJ invocations to module description.
11004         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11005         gl_PREREQ_ALPHASORT invocations from here...
11006         * modules/alphasort (configure.ac): ... to here.
11007
11008 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11009
11010         verify: new macro verify_expr; verify_true deprecated
11011         * NEWS: Mention this.
11012         * doc/verify.texi (Compile-time Assertions): Document this.
11013         * lib/verify.h (verify_true): Deprecate.
11014         (verify_expr): New macro.
11015         * tests/test-verify.c (function): Test verify_expr.
11016
11017 2011-06-14  Jim Meyering  <meyering@redhat.com>
11018
11019         init.sh: give more portable redirection-related advice in a comment
11020         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11021         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11022         for lots of discussion.  Stefano Lattarini suggested the solution
11023         of putting "9>&2" after the command.  Reported by Bruno Haible.
11024
11025 2011-06-13  Bruno Haible  <bruno@clisp.org>
11026
11027         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11028         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11029         'none'.
11030
11031 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11032
11033         ftoastr: use strtof only if HAVE_STRTOF
11034         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11036         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11037         * modules/ftoastr (configure.ac): Check for strtof.
11038
11039 2011-06-13  Bruno Haible  <bruno@clisp.org>
11040
11041         gnulib-tool: Addendum to 2011-06-08 commit.
11042         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11043         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11044
11045 2011-06-13  Bruno Haible  <bruno@clisp.org>
11046
11047         fseeko: Provide a non-inline replacement of fseek().
11048         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11049         * modules/fseeko (Depends-on): Add fseek.
11050         * modules/fseek (License): Change to LGPLv2+.
11051
11052 2011-06-13  Bruno Haible  <bruno@clisp.org>
11053
11054         ftello: Provide a non-inline replacement of ftell().
11055         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11056         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11057         not have ftello() (such as on mingw).
11058         * modules/ftello (Depends-on): Add ftell.
11059         * modules/ftell (License): Change to LGPLv2+.
11060
11061 2011-05-07  Bruno Haible  <bruno@clisp.org>
11062
11063         ftell: Move AC_LIBOBJ invocations to module description.
11064         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11065         * modules/ftell (configure.ac): ... to here.
11066
11067 2011-05-07  Bruno Haible  <bruno@clisp.org>
11068
11069         ftello: Respect rules for use of AC_LIBOBJ.
11070         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11071         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11072         here...
11073         * modules/ftello (configure.ac): ... to here.
11074
11075 2011-05-07  Bruno Haible  <bruno@clisp.org>
11076
11077         fseeko: Simplify.
11078         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11079         (gl_FUNC_FSEEKO): Inline it here.
11080
11081 2011-05-07  Bruno Haible  <bruno@clisp.org>
11082
11083         fseek: Move AC_LIBOBJ invocations to module description.
11084         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11085         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11086         * modules/fseek (configure.ac): ... to here.
11087
11088 2011-05-07  Bruno Haible  <bruno@clisp.org>
11089
11090         fseek: Respect rules for use of AC_LIBOBJ.
11091         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11092         here...
11093         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11094
11095 2011-05-07  Bruno Haible  <bruno@clisp.org>
11096
11097         fseeko: Respect rules for use of AC_LIBOBJ.
11098         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11099         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11100         here...
11101         * modules/fseeko (configure.ac): ... to here.
11102
11103 2011-06-13  Bruno Haible  <bruno@clisp.org>
11104
11105         gnulib-tool: Allow comments in the 'Depends-on' section.
11106         * doc/gnulib.texi (Module description): Mention comment syntax in the
11107         Depends-on section.
11108         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11109
11110 2011-06-13  Bruno Haible  <bruno@clisp.org>
11111
11112         file-set.h: guard __attibute__ use, now that it's not always defined
11113         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11114         versions that support it.  This fixes a coreutils build failure with
11115         the vendor cc on HP-UX 11.31.
11116
11117 2011-06-12  Bruno Haible  <bruno@clisp.org>
11118
11119         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11120         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11121         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11122         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11123         (acl, aclsort): New declarations.
11124         (aclv_nontrivial): New declaration.
11125         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11126         (file_has_acl): Read also the second kind of HP-UX ACLs.
11127         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11128         kind of HP-UX ACLs if the first kind fails.
11129         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11130         second kind of HP-UX ACLs.
11131         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11132         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11133         agree.
11134         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11135         hpuxjfs.
11136         Handle hpuxjfs.
11137         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11138         hpuxjfs.
11139         Handle hpuxjfs.
11140         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11141         (func_test_same_acls): Use both lsacl and getacl.
11142         Handle hpuxjfs.
11143         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11144         (func_test_same_acls): Use both lsacl and getacl.
11145         Handle hpuxjfs.
11146
11147 2011-06-12  Bruno Haible  <bruno@clisp.org>
11148
11149         acl: Complete the 2010-08-10 fix.
11150         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11151         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11152         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11153         explicitly.
11154         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11155         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11156
11157 2011-06-12  Bruno Haible  <bruno@clisp.org>
11158
11159         spawn-pipe tests: Comments.
11160         * tests/test-spawn-pipe-child.c (main): Update comment.
11161         Reported by James Youngman <jay@gnu.org>.
11162
11163 2011-06-11  James Youngman  <jay@gnu.org>
11164
11165         New module 'stat-size'.
11166         * modules/stat-size: New module.  Provides macros for accessing
11167         file size information in instances of struct stat.  Depends on the
11168         fileblocks module because it calls st_blocks.
11169         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11170         * doc/gnulib.texi: Include stat-size.texi.
11171         * doc/stat-size.texi: Documentation for this module.
11172         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11173         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11174         AC_STRUCT_ST_BLOCKS.
11175
11176 2011-06-09  Bruno Haible  <bruno@clisp.org>
11177
11178         thread: Support pthreads-win32.
11179         * lib/glthread/thread.h (gl_thread_self): Define differently on
11180         pthreads-win32.
11181         (gl_null_thread): New declaration.
11182         (gl_thread_self_pointer): New macro.
11183         * lib/glthread/thread.c (gl_null_thread): New constant.
11184         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11185         gl_thread_self.
11186         * tests/test-tls.c: Likewise.
11187         Suggested by Paul Eggert. Reported by Eric Blake.
11188
11189 2011-06-09  Bruno Haible  <bruno@clisp.org>
11190
11191         thread: Fix confusion between NULL and 0.
11192         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11193         Reported by Paul Eggert.
11194
11195 2011-06-09  Bruno Haible  <bruno@clisp.org>
11196
11197         spawn-pipe tests: Avoid test failure on HP-UX 11.
11198         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11199         is closed.
11200
11201 2011-06-09  Bruno Haible  <bruno@clisp.org>
11202
11203         acl tests: Fix compilation error on HP-UX 11.
11204         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11205
11206 2011-06-09  Bruno Haible  <bruno@clisp.org>
11207
11208         rmdir: Avoid test failure on HP-UX 10.20.
11209         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11210         EEXIST.
11211
11212 2011-06-08  Eric Blake  <eblake@redhat.com>
11213
11214         perror: fix test on mingw
11215         * modules/perror-tests (Depends-on): Add dup2.
11216
11217         strerror_r-posix: fix on MacOS
11218         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11219         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11220         logic bug.
11221         * lib/strerror_r.c (strerror_r): Fix the bug.
11222         * lib/strerror.c (strerror): Likewise.
11223         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11224         problem.
11225         * doc/posix-functions/strerror.texi (strerror): Likewise.
11226         * doc/posix-functions/perror.texi (perror): Likewise.
11227         * tests/test-strerror.c (main): Enhance test.
11228         * tests/test-strerror_r.c (main): Likewise.
11229
11230 2011-06-08  Bruno Haible  <bruno@clisp.org>
11231
11232         gnulib-tool: Better isolation between different gnulib-tool invocations.
11233         * gnulib-tool: New option --witness-c-macro.
11234         (witness_c_macro): New variable.
11235         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
11236         AM_CPPFLAGS define it as a C macro.
11237         (func_emit_tests_Makefile_am): Likewise.
11238         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
11239         read it from there.
11240         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
11241         m4_define, not AC_DEFUN.
11242         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
11243         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
11244         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
11245         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
11246         s|...|...|, to substitute the values of the GNULIB_* module indicator
11247         variables.
11248         * modules/dirent (Makefile.am): Likewise.
11249         * modules/fcntl-h (Makefile.am): Likewise.
11250         * modules/iconv-h (Makefile.am): Likewise.
11251         * modules/langinfo (Makefile.am): Likewise.
11252         * modules/locale (Makefile.am): Likewise.
11253         * modules/math (Makefile.am): Likewise.
11254         * modules/netdb (Makefile.am): Likewise.
11255         * modules/poll-h (Makefile.am): Likewise.
11256         * modules/pty (Makefile.am): Likewise.
11257         * modules/search (Makefile.am): Likewise.
11258         * modules/signal (Makefile.am): Likewise.
11259         * modules/spawn (Makefile.am): Likewise.
11260         * modules/stdio (Makefile.am): Likewise.
11261         * modules/stdlib (Makefile.am): Likewise.
11262         * modules/string (Makefile.am): Likewise.
11263         * modules/sys_ioctl (Makefile.am): Likewise.
11264         * modules/sys_select (Makefile.am): Likewise.
11265         * modules/sys_socket (Makefile.am): Likewise.
11266         * modules/sys_stat (Makefile.am): Likewise.
11267         * modules/sys_times (Makefile.am): Likewise.
11268         * modules/sys_utsname (Makefile.am): Likewise.
11269         * modules/sys_wait (Makefile.am): Likewise.
11270         * modules/termios (Makefile.am): Likewise.
11271         * modules/time (Makefile.am): Likewise.
11272         * modules/unistd (Makefile.am): Likewise.
11273         * modules/wchar (Makefile.am): Likewise.
11274
11275 2011-06-08  Eric Blake  <eblake@redhat.com>
11276
11277         strerror: simplify replacement
11278         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
11279         * modules/strerror (configure.ac): No prereqs needed here...
11280         * modules/strerror-override (configure.ac): ...but this needs it.
11281         (Files): Add file for needed prereq macro.
11282
11283 2011-06-08  Bruno Haible  <bruno@clisp.org>
11284
11285         strerror_r-posix: Tweaks.
11286         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
11287         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
11288         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
11289         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
11290         (gl_FUNC_STRERROR_R): ... to here.
11291         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
11292
11293 2011-06-07  Eric Blake  <eblake@redhat.com>
11294
11295         perror: document fixed bugs
11296         * doc/posix-functions/perror.texi (perror): Document recent
11297         patches.
11298
11299 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11300
11301         stat-time: get_stat_birthtime failure is better-defined
11302         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
11303         return a timestamp whose tv_sec and tv_nsec values are both -1.
11304         Previously, the spec said only that the tv_nsec value was negative.
11305         This upward-compatible change simplifies GNU tar a bit.
11306
11307 2011-06-07  Eric Blake  <eblake@redhat.com>
11308
11309         strerror_r-posix: work around cygwin 1.7.9
11310         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
11311         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
11312         bug without replacing strerror_r.
11313         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
11314         strerror_r is buggy, but without requiring strerror_r compilation.
11315         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
11316
11317         test-perror: relax test to ignore cygwin bug
11318         * tests/test-perror2.c (main): Relax test on requiring detection
11319         of stream errors, and use unbuffered stream.
11320         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
11321         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
11322         * doc/posix-functions/fputc.texi (fputc): Likewise.
11323         * doc/posix-functions/fputs.texi (fputs): Likewise.
11324         * doc/posix-functions/fputws.texi (fputws): Likewise.
11325         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
11326         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
11327         * doc/posix-functions/getopt.texi (getopt): Likewise.
11328         * doc/posix-functions/perror.texi (perror): Likewise.
11329         * doc/posix-functions/printf.texi (printf): Likewise.
11330         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
11331         * doc/posix-functions/psignal.texi (psignal): Likewise.
11332         * doc/posix-functions/putc.texi (putc): Likewise.
11333         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
11334         Likewise.
11335         * doc/posix-functions/putchar.texi (putchar): Likewise.
11336         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
11337         Likewise.
11338         * doc/posix-functions/puts.texi (puts): Likewise.
11339         * doc/posix-functions/putwc.texi (putwc): Likewise.
11340         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11341         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11342         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11343         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11344         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11345         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11346         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11347         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11348
11349 2011-05-22  Bruno Haible  <bruno@clisp.org>
11350
11351         strerror: Move AC_LIBOBJ invocations to module description.
11352         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
11353         gl_PREREQ_STRERROR invocations from here...
11354         * modules/strerror (configure.ac): ... to here.
11355
11356 2011-05-21  Bruno Haible  <bruno@clisp.org>
11357
11358         perror: Use common idiom.
11359         * modules/perror (configure.ac): Reorder statements.
11360
11361 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11362
11363         tests: fix usage message in 'mktempd_'
11364         * tests/init.sh (mktempd_): In the usage message, use literal
11365         'mktempd_', not '$ME' (which is even undefined), as the name of
11366         the subroutine.
11367
11368 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11369
11370         tests init: new function 'fatal_', for hard errors
11371         Before this patch, the only way offered by tests/init.sh to
11372         properly signal a hard error was the `framework_failure_'
11373         function.  But the error message issued by that function,
11374         as its name would suggest, refers to a set-up failure in the
11375         testsuite, while hard errors can obviously also be due to
11376         other reasons.  The best way to fix this inconsistency is to
11377         introduce a new function with a more general error message.
11378         * tests/init.sh (fatal_): New function.
11379
11380 2011-06-06  Eric Blake  <eblake@redhat.com>
11381
11382         canonicalize-lgpl: use common idiom
11383         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11384         over newer POSIX -Rf.
11385         Reported by Bruno Haible.
11386
11387         canonicalize-lgpl: work around AIX realpath bug
11388         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11389         * doc/posix-functions/realpath.texi (realpath): Document it.
11390         Reported by Bruno Haible.
11391
11392         strerror: work around FreeBSD bug
11393         * lib/strerror.c (strerror): Special case 0.
11394         Reported by Bruno Haible.
11395
11396         strerror-override: avoid bloating errno module
11397         * modules/errno (Files, configure.ac): Move replacement strings...
11398         * modules/strerror-override: ...to new module.
11399         * modules/strerror (Depends-on): Add strerror-override.
11400         * modules/strerror_r-posix (Depends-on): Likewise.
11401         * MODULES.html.sh: Document new module.
11402         Reported by Bruno Haible.
11403
11404 2011-06-06  Bruno Haible  <bruno@clisp.org>
11405
11406         spawn-pipe tests: Rename program.
11407         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11408         * tests/test-spawn-pipe-child.c: Update comment.
11409         * tests/test-spawn-pipe.sh: Update.
11410         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11411
11412         spawn-pipe tests: Link the child program only against libc.
11413         * tests/test-spawn-pipe-child.c: New file, extracted from
11414         tests/test-spawn-pipe.c.
11415         (main): Expect only one argument.
11416         (is_open): New function, copied from tests/test-pipe.c.
11417         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11418         (child_main): Remove function.
11419         (test_pipe): Pass only one argument to the child program.
11420         (main): Remove child process code. Expect the child program's name as
11421         first argument.
11422         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11423         argument.
11424         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11425         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11426         test-spawn-pipe-child against no libraries.
11427
11428 2011-06-06  Bruno Haible  <bruno@clisp.org>
11429
11430         careadlinkat: Avoid mismatch between ssize_t and int.
11431         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11432         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11433
11434 2011-06-06  Jim Meyering  <meyering@redhat.com>
11435
11436         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11437         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11438         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11439
11440 2011-06-05  Bruno Haible  <bruno@clisp.org>
11441
11442         ansi-c++-opt: Interoperability with libtool.
11443         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11444         set the variable to "no", not to ":".
11445         * NEWS: Mention the change.
11446
11447 2011-06-05  Bruno Haible  <bruno@clisp.org>
11448
11449         acl: Fix test failure on AIX 7.
11450         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11451         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11452
11453 2011-06-05  Bruno Haible  <bruno@clisp.org>
11454
11455         pipe-filter-ii: Fix test failure on AIX and IRIX.
11456         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11457         with EAGAIN, retry with a smaller buffer size.
11458
11459 2011-06-05  Bruno Haible  <bruno@clisp.org>
11460
11461         localename: Fix link dependencies.
11462         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11463         * modules/localename-tests (Makefile.am): Link test-localename with
11464         $(LIBTHREAD).
11465
11466 2011-06-05  Bruno Haible  <bruno@clisp.org>
11467
11468         error: Avoid gcc warning.
11469         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11470
11471 2011-06-05  Bruno Haible  <bruno@clisp.org>
11472
11473         unsetenv: Avoid gcc warning.
11474         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11475
11476 2011-06-05  Bruno Haible  <bruno@clisp.org>
11477
11478         setenv: Avoid gcc warning.
11479         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11480
11481 2011-06-05  Bruno Haible  <bruno@clisp.org>
11482
11483         sys_select: Ensure memset is declared also on AIX 7.
11484         * lib/sys_select.in.h: Include <string.h> also on AIX.
11485         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11486         self-contained also on AIX 7.1.
11487
11488 2011-06-04  Jim Meyering  <meyering@redhat.com>
11489
11490         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11491         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11492         function name, "error".
11493         (_gl_translatable_diag_func_re): New configurable variable.
11494
11495 2011-06-04  Bruno Haible  <bruno@clisp.org>
11496
11497         getopt: Avoid gcc warning.
11498         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11499
11500 2011-06-04  Bruno Haible  <bruno@clisp.org>
11501
11502         strerror_r: Fix comments.
11503         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11504         commit.
11505
11506 2011-06-04  Bruno Haible  <bruno@clisp.org>
11507
11508         perror: Fix compilation error.
11509         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11510         Undefine fprintf, not sprintf.
11511         * modules/perror (Depends-on): Remove intprops, verify.
11512
11513 2011-06-04  Bruno Haible  <bruno@clisp.org>
11514
11515         setlocale: Enable replacement on Cygwin 1.5.
11516         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11517         Cygwin 1.5.x.
11518         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11519         LC_CTYPE category also exists on Cygwin 1.5.x.
11520
11521 2011-06-04  Bruno Haible  <bruno@clisp.org>
11522
11523         strerror-override: Don't disable symbol renamings.
11524         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11525         * lib/strerror-override.c: Include config.h.
11526         (strerror_override): Don't undefine.
11527
11528 2011-06-03  Bruno Haible  <bruno@clisp.org>
11529
11530         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11531         * lib/localename.h: Update copyright header.
11532         * lib/localename.c: Likewise.
11533         * lib/relocatable.h: Likewise.
11534         * lib/relocatable.c: Likewise.
11535
11536 2011-06-02  Bruno Haible  <bruno@clisp.org>
11537
11538         doc: Fix a module name.
11539         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11540
11541 2011-06-02  Bruno Haible  <bruno@clisp.org>
11542
11543         pipe2: Remove dependency on 'nonblocking' module.
11544         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11545         O_NONBLOCK is defined by gnulib.
11546         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11547         is zero.
11548         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11549         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11550         defined by gnulib.
11551         (get_nonblocking_flag): New function.
11552         (main): Test O_NONBLOCK flag only if it is nonzero.
11553         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11554
11555 2011-06-03  Jim Meyering  <meyering@redhat.com>
11556
11557         maint: three new prohibit-header-without-use rules
11558         Prohibit use of cloexec.h, posixver.h, same.h without use.
11559         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11560         (sc_prohibit_posixver_without_use): Likewise.
11561         (sc_prohibit_same_without_use): Likewise.
11562
11563 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11564
11565         allocator: 'die' routine is now given requested size
11566         * lib/allocator.h (struct allocator.die): New size arg.
11567         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11568         If the actual problem is an ssize_t limitation, not a size_t or
11569         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11570
11571 2011-06-01  Eric Blake  <eblake@redhat.com>
11572
11573         strerror: drop strerror_r dependency
11574         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11575         * lib/strerror-override.c (strerror_override): ...to new file.
11576         * lib/strerror-override.h: Add prototype.
11577         * lib/strerror-impl.h: Delete.
11578         * lib/strerror.c (strerror): New implementation.
11579         * modules/errno (Files): Add new files.
11580         (configure.ac): Compile new file as appropriate.
11581         * modules/strerror (Files): Drop unused file.
11582         (Depends-on): Drop strerror_r-posix.
11583         * MODULES.html.sh: Document strerror_r-posix.
11584         Requested by Sam Steingold.
11585
11586         perror: call strerror_r directly
11587         * modules/perror (Files): Drop strerror-impl.h.
11588         * lib/perror.c (perror): Use our own stack buffer, rather than
11589         calling a wrapper that uses static storage.
11590         * doc/posix-functions/perror.texi (perror): Document a limitation
11591         of our replacement.
11592
11593         strerror_r: fix includes for FreeBSD
11594         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11595         since we use abort on some platforms.
11596         Reported by Matthias Bolte.
11597
11598 2011-05-31  Bruno Haible  <bruno@clisp.org>
11599
11600         Fix link errors in tests: openat-die uses gettext-h.
11601         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11602         against $(LIBINTL).
11603         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11604         against $(LIBINTL).
11605         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11606         $(LIBINTL).
11607         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11608         against $(LIBINTL).
11609         * modules/linkat-tests (Makefile.am): Link test-linkat against
11610         $(LIBINTL).
11611         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11612         $(LIBINTL).
11613         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11614         against $(LIBINTL).
11615         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11616         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11617         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11618         $(LIBINTL).
11619         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11620         $(LIBINTL).
11621         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11622         $(LIBINTL).
11623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11624
11625 2011-05-31  Bruno Haible  <bruno@clisp.org>
11626
11627         Fix link errors in tests: wait-process uses gettext-h.
11628         * modules/nonblocking-pipe-tests (Makefile.am): Set
11629         test_nonblocking_pipe_main_LDADD.
11630         * modules/nonblocking-socket-tests (Makefile.am): Link
11631         test-nonblocking-socket-main against $(LIBINTL).
11632         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11633
11634 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11635
11636         assert-h: work around 'verify' incompatibility
11637         * lib/verify.h: Use @...@ directives, not ifdef.
11638         * modules/assert-h (assert.h): Implement the directives.
11639         (assert.h): Substitute the symbol-prefix more consistently.
11640
11641 2011-05-29  Jim Meyering  <meyering@redhat.com>
11642
11643         trim: remove three superfluous assignments
11644         * lib/trim.c (trim2): Remove three superfluous assignments
11645         and correct brace positioning.
11646
11647 2011-05-29  Bruno Haible  <bruno@clisp.org>
11648
11649         wctype-h: Avoid namespace pollution on Solaris 2.6.
11650         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11651         identifiers.
11652         * doc/posix-headers/wctype.texi: Mention the problem.
11653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11654
11655 2011-05-28  Jim Meyering  <meyering@redhat.com>
11656
11657         parse-datetime.y: accommodate -Wstrict-overflow
11658         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11659         placate -Wstrict-overflow.
11660
11661         trim: avoid a warning from -O2 -Wstrict-overflow
11662         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11663
11664 2011-05-29  Bruno Haible  <bruno@clisp.org>
11665
11666         gnulib-tool: Fix bug in yesterday's commit.
11667         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11668         twice.
11669
11670 2011-05-29  Bruno Haible  <bruno@clisp.org>
11671
11672         Allow multiple gnulib generated include files to be combined.
11673         * gnulib-tool (func_compute_include_guard_prefix): New function.
11674         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11675         ${gl_include_guard_prefix} references.
11676         (func_import, func_create_testdir): Invoke
11677         func_compute_include_guard_prefix.
11678         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11679         * lib/ctype.in.h: Likewise.
11680         * lib/dirent.in.h: Likewise.
11681         * lib/errno.in.h: Likewise.
11682         * lib/fcntl.in.h: Likewise.
11683         * lib/float.in.h: Likewise.
11684         * lib/getopt.in.h: Likewise.
11685         * lib/iconv.in.h: Likewise.
11686         * lib/langinfo.in.h: Likewise.
11687         * lib/locale.in.h: Likewise.
11688         * lib/math.in.h: Likewise.
11689         * lib/netdb.in.h: Likewise.
11690         * lib/netinet_in.in.h: Likewise.
11691         * lib/poll.in.h: Likewise.
11692         * lib/pthread.in.h: Likewise.
11693         * lib/pty.in.h: Likewise.
11694         * lib/sched.in.h: Likewise.
11695         * lib/se-selinux.in.h: Likewise.
11696         * lib/search.in.h: Likewise.
11697         * lib/signal.in.h: Likewise.
11698         * lib/spawn.in.h: Likewise.
11699         * lib/stdarg.in.h: Likewise.
11700         * lib/stddef.in.h: Likewise.
11701         * lib/stdint.in.h: Likewise.
11702         * lib/stdio.in.h: Likewise.
11703         * lib/stdlib.in.h: Likewise.
11704         * lib/string.in.h: Likewise.
11705         * lib/strings.in.h: Likewise.
11706         * lib/sys_file.in.h: Likewise.
11707         * lib/sys_ioctl.in.h: Likewise.
11708         * lib/sys_select.in.h: Likewise.
11709         * lib/sys_socket.in.h: Likewise.
11710         * lib/sys_stat.in.h: Likewise.
11711         * lib/sys_time.in.h: Likewise.
11712         * lib/sys_times.in.h: Likewise.
11713         * lib/sys_uio.in.h: Likewise.
11714         * lib/sys_utsname.in.h: Likewise.
11715         * lib/sys_wait.in.h: Likewise.
11716         * lib/sysexits.in.h: Likewise.
11717         * lib/termios.in.h: Likewise.
11718         * lib/time.in.h: Likewise.
11719         * lib/unistd.in.h: Likewise.
11720         * lib/wchar.in.h: Likewise.
11721         * lib/wctype.in.h: Likewise.
11722         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11723         * modules/ctype (Makefile.am): Likewise.
11724         * modules/dirent (Makefile.am): Likewise.
11725         * modules/errno (Makefile.am): Likewise.
11726         * modules/fcntl-h (Makefile.am): Likewise.
11727         * modules/float (Makefile.am): Likewise.
11728         * modules/getopt-posix (Makefile.am): Likewise.
11729         * modules/iconv-h (Makefile.am): Likewise.
11730         * modules/langinfo (Makefile.am): Likewise.
11731         * modules/locale (Makefile.am): Likewise.
11732         * modules/math (Makefile.am): Likewise.
11733         * modules/netdb (Makefile.am): Likewise.
11734         * modules/netinet_in (Makefile.am): Likewise.
11735         * modules/poll-h (Makefile.am): Likewise.
11736         * modules/pthread (Makefile.am): Likewise.
11737         * modules/pty (Makefile.am): Likewise.
11738         * modules/sched (Makefile.am): Likewise.
11739         * modules/search (Makefile.am): Likewise.
11740         * modules/selinux-h (Makefile.am): Likewise.
11741         * modules/signal (Makefile.am): Likewise.
11742         * modules/spawn (Makefile.am): Likewise.
11743         * modules/stdarg (Makefile.am): Likewise.
11744         * modules/stddef (Makefile.am): Likewise.
11745         * modules/stdint (Makefile.am): Likewise.
11746         * modules/stdio (Makefile.am): Likewise.
11747         * modules/stdlib (Makefile.am): Likewise.
11748         * modules/string (Makefile.am): Likewise.
11749         * modules/strings (Makefile.am): Likewise.
11750         * modules/sys_file (Makefile.am): Likewise.
11751         * modules/sys_ioctl (Makefile.am): Likewise.
11752         * modules/sys_select (Makefile.am): Likewise.
11753         * modules/sys_socket (Makefile.am): Likewise.
11754         * modules/sys_stat (Makefile.am): Likewise.
11755         * modules/sys_time (Makefile.am): Likewise.
11756         * modules/sys_times (Makefile.am): Likewise.
11757         * modules/sys_uio (Makefile.am): Likewise.
11758         * modules/sys_utsname (Makefile.am): Likewise.
11759         * modules/sys_wait (Makefile.am): Likewise.
11760         * modules/sysexits (Makefile.am): Likewise.
11761         * modules/termios (Makefile.am): Likewise.
11762         * modules/time (Makefile.am): Likewise.
11763         * modules/unistd (Makefile.am): Likewise.
11764         * modules/wchar (Makefile.am): Likewise.
11765         * modules/wctype-h (Makefile.am): Likewise.
11766         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11767
11768 2011-05-29  Bruno Haible  <bruno@clisp.org>
11769
11770         assert-h: Allow multiple gnulib generated replacements to coexist.
11771         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11772
11773 2011-05-29  Bruno Haible  <bruno@clisp.org>
11774
11775         argp: Allow coexistence with strerror_r-posix module.
11776         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11777         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11778         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11779         not the glibc signature.
11780
11781 2011-05-28  Bruno Haible  <bruno@clisp.org>
11782
11783         gnulib-tool: Alternative structure of testdirs, similar to --import.
11784         * gnulib-tool: New option --single-configure.
11785         (func_usage): Document it.
11786         (single_configure): New variable.
11787         (func_modules_transitive_closure_separately,
11788         func_modules_transitive_closure_separately,
11789         func_determine_use_libtests, func_modules_add_dummy_separately,
11790         func_modules_to_filelist_separately): New functions, extracted from
11791         func_import.
11792         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11793         (func_import): Use the new functions.
11794         (func_create_testdir): Set final_modules. Handle $single_configure =
11795         true case.
11796
11797 2011-05-28  Bruno Haible  <bruno@clisp.org>
11798
11799         getloadavg: Remove an unreliable safety check.
11800         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11801         getloadavg.c is in place.
11802         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11803         Reported by Sam Steingold <sds@gnu.org>.
11804
11805 2011-05-28  Bruno Haible  <bruno@clisp.org>
11806
11807         doc: Cleanup yet another file produced by texinfo.tex.
11808         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11809
11810 2011-05-28  Bruno Haible  <bruno@clisp.org>
11811
11812         Finish the conditional dependencies mechanism.
11813         * gnulib-tool: New option --no-conditional-dependencies.
11814         (func_usage): Document it. Don't mark --conditional-dependencies as
11815         experimental.
11816         (cond_dependencies): The possible values can now be true, false, empty.
11817         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11818         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11819         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11820
11821 2011-05-28  Bruno Haible  <bruno@clisp.org>
11822
11823         doc: Use a recent texinfo.tex.
11824         * doc/Makefile (tex_opts): New variable.
11825         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11826
11827 2011-05-28  Jim Meyering  <meyering@redhat.com>
11828
11829         intprops.h: adjust comment to match code change
11830         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11831         only once, it *may* have side effects.  Also fix an unrelated typo.
11832         (_GL_INT_SIGNED): Likewise.
11833
11834 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11835
11836         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11837
11838 2011-05-26  Bruno Haible  <bruno@clisp.org>
11839
11840         mbsrchr: Avoid collision with system function on Interix.
11841         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11842         Reported by Markus Duft <mduft@gentoo.org>.
11843
11844 2011-05-15  James Youngman  <jay@gnu.org>
11845
11846         getopt: for ambiguous options, enumerate the possibilities.
11847         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11848         the ambiguous options when an ambiguous prefix is given. This was
11849         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11850         glibc change was
11851         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11852
11853 2011-05-25  Eric Blake  <eblake@redhat.com>
11854
11855         getcwd: work around mingw bug
11856         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11857         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11858         Reported by Matthias Bolte.
11859
11860 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11861
11862         test-intprops: disable -Wtype-limits diagnostics
11863         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11864         diagnostics.  Otherwise, the integer overflow macros generate many
11865         diagnostics.  Reported by Jim Meyering in
11866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11867
11868         intprops: shorten, to pacify gcc -Woverlength-strings
11869         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11870         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11871         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11872         likely to run afoul of C compiler limits for string constant lengths.
11873         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11874
11875 2011-05-24  Eric Blake  <eblake@redhat.com>
11876
11877         docs: document recently fixed glibc printf bug
11878         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11879         * doc/posix-functions/printf.texi (printf): Likewise.
11880         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11881         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11882
11883         closein-tests: convert to init.sh
11884         * modules/closein-tests (Files): Add init.sh
11885         * tests/test-closein.sh Use it.
11886
11887         yesno-tests: convert to init.sh
11888         * modules/yesno-tests (Files): Add init.sh.
11889         * tests/test-yesno.sh: Use it.
11890
11891         atexit-tests: ensure reliable exit status
11892         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11893         Reported by Bruno Haible.
11894
11895 2011-05-24  Bruno Haible  <bruno@clisp.org>
11896
11897         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11898         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11899         gl_PREREQ_STRERROR_R invocations from here...
11900         * modules/strerror_r-posix (configure.ac): ... to here.
11901
11902 2011-05-24  Eric Blake  <eblake@redhat.com>
11903
11904         strerror_r: fix missing header
11905         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11906
11907         strerror_r: fix AIX test failures
11908         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11909         ERANGE failure.
11910
11911         strerror_r: fix Solaris test failures
11912         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11913         failures.
11914         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11915
11916         strerror_r: enforce POSIX recommendations
11917         * lib/strerror_r.c (safe_copy): New helper method.
11918         (strerror_r): Guarantee a non-empty string.
11919         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11920         recent POSIX rulings and to match our strerror guarantees.
11921         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11922
11923 2011-05-24  Jim Meyering  <meyering@redhat.com>
11924
11925         test-perror2.c: avoid warning about unused variable
11926         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11927
11928 2011-05-24  Eric Blake  <eblake@redhat.com>
11929
11930         perror: avoid spurious test failure on HP-UX
11931         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11932
11933         tests: fix logic bug in init.sh
11934         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11935         shell.
11936
11937 2011-05-24  Jim Meyering  <meyering@redhat.com>
11938
11939         utimensat: do not reference an out-of-scope buffer
11940         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11941         declared in an inner scope, yet "times" would be dereferenced outside
11942         the scope in which "ts" was valid.
11943         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11944         of ts[2] "out/up", so that the use of aliased "times" (via
11945         "times = ts;") does not end up referencing an out-of-scope "ts"
11946
11947         opendir-safer.c: don't clobber errno; don't close negative FD
11948         * lib/opendir-safer.c (opendir_safer):
11949         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11950         file descriptor, and more importantly, don't clobber the
11951         offending errno value with EINVAL.  Before, upon failure
11952         of dup_safer, we would pass the negative file descriptor to
11953         fdopendir, which would clobber errno.
11954
11955 2011-05-23  Bruno Haible  <bruno@clisp.org>
11956
11957         idcache: Fix module description.
11958         * modules/idcache (Include): Set to "idcache.h".
11959
11960 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11961
11962         gnulib-tool: fix portability problem with MacOS sed
11963         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11964         before the "}".  Problem reported by Leo in
11965         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11966         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11967         sed_extract_condition1, sed_extract_condition2.
11968
11969 2011-05-23  Bruno Haible  <bruno@clisp.org>
11970
11971         hash: Simplify autoconf macro.
11972         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11973
11974 2011-05-23  Bruno Haible  <bruno@clisp.org>
11975
11976         getugroups: Fix module description.
11977         * modules/getugroups (Include): Set to "getugroups.h".
11978
11979 2011-05-23  Bruno Haible  <bruno@clisp.org>
11980
11981         linkat: Simplify autoconf macro.
11982         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11983
11984 2011-05-23  Bruno Haible  <bruno@clisp.org>
11985             Eric Blake  <eblake@redhat.com>
11986
11987         linkat, renameat: Update dependencies.
11988         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11989         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11990         symlinkat.
11991
11992 2011-05-23  Jim Meyering  <meyering@redhat.com>
11993
11994         maint.mk: more tight_scope improvements
11995         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11996         (_gl_TS_headers): Define only in if-0'd block.
11997         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11998         sometimes we must *not* use it.  Adjust uses accordingly.
11999         (sc_tight_scope): Use much simpler grep-based test to determine
12000         whether we skip this rule.
12001
12002         maint.mk: generalize/improve the tight-scope rule
12003         * top/maint.mk: Emit a warning when the test is skipped.
12004         (_gl_TS_dir): Add $(srcdir)/ prefix.
12005         (_gl_TS_function_match): Simplify, rather than trying
12006         to enumerate common types.  Otherwise, it would fail to match an
12007         "extern unsigned char const *" declaration in idutils.
12008         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12009         a way to support use of that type of macro.
12010         (_gl_TS_var_match): Simplify regexp.
12011         (_gl_TS_obj_files): New configurable variable.
12012         (_gl_TS_headers): Likewise.
12013
12014 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12015
12016         verify: fix bug when gnulib <assert.h> is also included
12017         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12018         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12019         Perhaps there's a better way, but this fixes the immediate problem.
12020         Problem reported by Bruno Haible in
12021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12022
12023 2011-05-22  Bruno Haible  <bruno@clisp.org>
12024
12025         xgetcwd: Simplify autoconf macro.
12026         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12027
12028 2011-05-22  Bruno Haible  <bruno@clisp.org>
12029
12030         New module 'mktime-internal'.
12031         * modules/mktime-internal: New file.
12032         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12033         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12034         mktime_internal as a C macro if libc has __mktime_internal.
12035         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12036         conditions.
12037         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12038
12039 2011-05-22  Bruno Haible  <bruno@clisp.org>
12040
12041         timegm: Correct mktime replacement statements.
12042         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12043         defining mktime as a C macro. This completes a 2009-07-28 commit.
12044
12045 2011-05-22  Bruno Haible  <bruno@clisp.org>
12046
12047         timegm: Simplify autoconf macro.
12048         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12049
12050 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12051
12052         clock-time: change to LGPLv2+.
12053         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12054         BSD-like but we have no mark for that; this is good enough for now.
12055
12056 2011-05-21  Bruno Haible  <bruno@clisp.org>
12057
12058         strerror_r: Fix comments.
12059         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12060
12061 2011-05-21  Bruno Haible  <bruno@clisp.org>
12062
12063         relocatable-prog-wrapper: Fix possible link error.
12064         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12065         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12066         (gl_FUNC_SETENV): ... to here.
12067         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12068         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12069
12070 2011-05-21  Bruno Haible  <bruno@clisp.org>
12071
12072         relocatable-prog-wrapper: Assume strerror() exists.
12073         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12074         m4/strerror.m4.
12075         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12076         * lib/relocwrapper.c: Remove mention of strerror module.
12077         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12078         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12079         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12080         C macro.
12081
12082 2011-05-21  Bruno Haible  <bruno@clisp.org>
12083
12084         select: Simplify replacement idiom.
12085         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12086         Win32 platforms.
12087         * lib/sys_select.in.h (select): Simplify accordingly.
12088         * modules/select (Depends-on): Likewise.
12089
12090 2011-05-21  Bruno Haible  <bruno@clisp.org>
12091
12092         mkdir-p: Simplify autoconf macro.
12093         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12094         gl_FUNC_LCHOWN.
12095
12096 2011-05-21  Eric Blake  <eblake@redhat.com>
12097
12098         strerror_r: avoid clobbering strerror on cygwin
12099         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12100         fall back instead to sys_errlist.
12101         * modules/strerror (configure.ac): Add witness.
12102         * tests/test-strerror_r.c (main): Enhance test.
12103         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12104         * tests/test-perror2.c (main): Free memory before exit.
12105
12106 2011-05-21  Bruno Haible  <bruno@clisp.org>
12107
12108         mkdtemp: Use gnulib naming conventions.
12109         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12110         * modules/mkdtemp (configure.ac): Update.
12111
12112 2011-05-20  Eric Blake  <eblake@redhat.com>
12113
12114         strerror_r: avoid corrupting errno on Solaris
12115         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12116         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12117
12118         strerror_r: avoid compiler warning
12119         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12120
12121         strerror_r: simplify AIX code
12122         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12123
12124         test-perror: avoid spurious failure on FreeBSD
12125         * modules/perror-tests (Depends-on): Add strerror, now that
12126         strerror_r no longer pulls it in.
12127
12128 2011-05-20  Bruno Haible  <bruno@clisp.org>
12129
12130         strerror_r-posix: Remove unused dependencies.
12131         * modules/strerror_r-posix (Depends-on): Remove strerror.
12132         Reported by Eric Blake.
12133
12134 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12135
12136         intprops: remove assumption about A|B representation
12137         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12138         is a valid integer if both A and B are.  Although this is true for
12139         all known practical hosts, the C standard doesn't guarantee it,
12140         and the code need not assume it.  Also, this change may work around
12141         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12143
12144 2011-05-20  Eric Blake  <eblake@redhat.com>
12145
12146         perror: work around FreeBSD bug
12147         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12148         is broken.  Move AC_LIBOBJ...
12149         * modules/perror (configure.ac): Here.
12150         * doc/posix-functions/perror.texi (perror): Document this.
12151         * tests/test-perror2.c (main): Enhance test.
12152
12153         test-perror: check for strerror interactions
12154         * tests/macros.h (STREQ): Add macro.
12155         * modules/perror-tests (Files): Add second test.
12156         * tests/test-perror2.c (main): New file.
12157         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12158
12159         test-perror: rewrite to use init script
12160         * modules/perror-tests (Files): Add init.sh.
12161         * tests/test-perror.sh: Use temporary directory.
12162
12163 2011-05-20  Jim Meyering  <meyering@redhat.com>
12164
12165         maint: replace misused "a" with "an"
12166         * doc/intprops.texi: "a integer"
12167         * doc/regex.texi: "a explanation"
12168         * lib/alignof.h: "a object"
12169         * lib/argmatch.h: "a explanation"
12170         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12171         * lib/stdint.in.h: "a integer"
12172         * lib/userspec.c: "a owner"
12173         * doc/gnulib.texi: Fix "a idea", and reword.
12174
12175 2011-05-19  Jim Meyering  <meyering@redhat.com>
12176
12177         maint: correct misuse of "a" and "an"
12178         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12179         * lib/argp-help.c: "an docum...": s/an/a/
12180         * lib/argp-parse.c: "An vector": s/An/A/
12181         * lib/execute.c: "an native": s/an/a/
12182         * lib/spawn-pipe.c: Likewise.
12183         * lib/gc.h: "an Gc_rc": s/an/a/
12184         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12185         * lib/fts.c: "an stat.st_dev": s/an/a/
12186
12187 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12188
12189         intprops-tests: work around HP-UX 11.23 cc bug with constants
12190         * tests/test-intprops.c (VERIFY): New macro.
12191         (main): Use it, instead of verify, to work around the compiler bug; see
12192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12193
12194         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12195         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12196         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12197         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12198         (_GL_REMAINDER_OVERFLOW): Use it.
12199
12200         intprops-tests: revert unsigned part of previous change
12201         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12202         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12203         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12205
12206 2011-05-19  Bruno Haible  <bruno@clisp.org>
12207
12208         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12209         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12210         strerror_r() returned without filling the buffer.
12211         Reported by Eric Blake.
12212
12213 2011-05-19  Eric Blake  <eblake@redhat.com>
12214
12215         strerror_r: guarantee unchanged errno
12216         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12217         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12218         failure.
12219         * tests/test-strerror_r.c (main): Enhance test.
12220
12221 2011-05-19  Bruno Haible  <bruno@clisp.org>
12222
12223         strerror_r: Reorder #if blocks.
12224         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12225         for consistency with the previous commit.
12226
12227 2011-05-19  Bruno Haible  <bruno@clisp.org>
12228
12229         perror: Avoid clobbering the strerror buffer when possible.
12230         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12231         * lib/strerror.c: Include it.
12232         * modules/strerror (Files): Add lib/strerror-impl.h.
12233         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12234         (my_strerror): New function, defined through lib/strerror-impl.h.
12235         (perror): Use it instead of strerror.
12236         * modules/perror (Files): Add lib/strerror-impl.h.
12237         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
12238
12239 2011-05-19  Eric Blake  <eblake@redhat.com>
12240
12241         strerror_r: fix on newer cygwin
12242         * lib/strerror_r.c (strerror_r): Cygwin now has
12243         __xpg_strerror_r, use it.
12244
12245 2011-05-19  Bruno Haible  <bruno@clisp.org>
12246
12247         strerror_r: Avoid clobbering the strerror buffer when possible.
12248         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
12249         (sys_nerr, sys_errlist): New declarations.
12250         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
12251         HP-UX, native Win32, IRIX, and 32-bit Solaris.
12252         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
12253
12254 2011-05-19  Bruno Haible  <bruno@clisp.org>
12255
12256         strerror_r: Fix test failure on mingw.
12257         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
12258         EXTEND_STRERROR_R.
12259         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
12260         macros from errno.in.h instead.
12261
12262 2011-05-19  Eric Blake  <eblake@redhat.com>
12263
12264         strerror: relax test for Solaris
12265         * tests/test-strerror.c (main): Permit Solaris behavior.
12266         * tests/test-strerror_r.c (main): Likewise.
12267
12268         strerror: enforce POSIX ruling on strerror(0)
12269         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
12270         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12271         * lib/strerror_r.c (rpl_strerror_r): Work around it.
12272         * doc/posix-functions/strerror.texi (strerror): Document it.
12273         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
12274         * tests/test-strerror.c (main): Strengthen test.
12275         * tests/test-strerror_r.c (main): Likewise.
12276
12277 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12278
12279         intprop-tests: port to older and more-pedantic compilers
12280         * modules/intprops-tests (Files): Add tests/macros.h.
12281         * tests/test-intprops.c: Include macros.h.
12282         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
12283         it's no longer documented to expand to an integer constant expression.
12284         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
12285         argument is floating point, as it's no longer documented to expand
12286         to an integer constant expression in that case.
12287         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
12288         compiler bugs reported by Bruno Haible.  See
12289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12290         (U0, U1): New constants, to work around the same bugs.  Also,
12291         in tests, use e.g., "(unsigned int) 39" rather than "39u".
12292
12293         intprops: work around C compiler bugs
12294         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
12295         bug in Sun C 5.11 2010/08/13 and other compilers; see
12296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12297
12298         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
12299         * doc/intprops.texi (Integer Type Determination): Fix
12300         documentation for TYPE_IS_INTEGER: it returns an constant
12301         expression, not an integer constant expression.  Fix doc for
12302         TYPE_SIGNED: it returns an integer constant expression only if its
12303         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
12304         hardly worth documented that way....)
12305
12306 2011-05-18  Bruno Haible  <bruno@clisp.org>
12307
12308         strerror_r: Avoid clobbering the strerror buffer when possible.
12309         * lib/strerror_r.c (strerror_r): Merge the three implementations.
12310         Handle gnulib defined errno values here. When strerror() returns NULL
12311         or an empty string, return EINVAL.
12312         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
12313         gnulib defined errno values here.
12314         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
12315
12316 2011-05-18  Eric Blake  <eblake@redhat.com>
12317
12318         fnmatch: avoid compiler warning
12319         * lib/fnmatch_loop.c (FCT): Use correct type.
12320         Reported by Matthias Bolte.
12321
12322 2011-05-13  Jim Meyering  <meyering@redhat.com>
12323
12324         maint.mk: three new prohibit_<HDR>_without_use rules
12325         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
12326         (sc_prohibit_stdio-safer_without_use): Likewise.
12327         (sc_prohibit_xfreopen_without_use): Likewise.
12328
12329 2011-05-17  Jim Meyering  <meyering@redhat.com>
12330
12331         announce-gen: fail if the NEWS delta is empty
12332         If there's nothing noteworthy in NEWS, then either you forgot
12333         or you shouldn't be releasing.
12334         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
12335
12336 2011-05-17  Pádraig Brady <P@draigBrady.com>
12337
12338         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
12339         reserved symbols starting with double underscore from the check.
12340
12341 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12342
12343         intprops: add doc
12344         * doc/intprops.texi: New file, documenting intprops.
12345         * doc/gnulib.texi (Particular Modules): Include it.
12346
12347         verify: add doc to gnulib manual and fix example
12348         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
12349         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
12350         (Compile-time Assertions): Fix example so it can't overflow.
12351
12352 2011-05-17  Jim Meyering  <meyering@redhat.com>
12353
12354         warnings.m4: don't usurp save_CPPFLAGS variable name
12355         * m4/warnings.m4: Prefix local temporary variable name with gl_.
12356
12357         doc: fix typo
12358         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
12359
12360 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12361             Bruno Haible  <bruno@clisp.org>
12362
12363         doc: Tweak recent change.
12364         * README (Portability guidelines): Tweak new text.
12365         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
12366         Interix 6.1.
12367
12368 2011-05-16  Eric Blake  <eblake@redhat.com>
12369
12370         inttypes: avoid autoconf warning
12371         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12372         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12373
12374 2011-05-16  Sam Steingold <sds@gnu.org>
12375         and Eric Blake  <eblake@redhat.com>
12376
12377         vc-list-files: accept multiple directory operands
12378         * build-aux/vc-list-files: Iterate over all remaining operands.
12379
12380 2011-05-16  Bruno Haible  <bruno@clisp.org>
12381
12382         Fix confusion regarding deprecated modules.
12383         * modules/calloc (Status, Notice): Mark module as deprecated, not
12384         obsolete.
12385         * modules/fnmatch-posix (Status, Notice): Likewise.
12386         * modules/getdate (Status, Notice): Likewise.
12387         * modules/getopt (Status, Notice): Likewise.
12388         * modules/malloc (Status, Notice): Likewise.
12389         * modules/pipe (Status, Notice): Likewise.
12390         * modules/realloc (Status, Notice): Likewise.
12391         * modules/rename-dest-slash (Status, Notice): Likewise.
12392         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12393         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12394         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12395         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12396         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12397
12398 2011-05-16  Bruno Haible  <bruno@clisp.org>
12399
12400         doc: List the target platforms.
12401         * doc/gnulib-intro.texi (Target Platforms): New section.
12402         * doc/gnulib.texi (Introduction): Update menu.
12403         * README (Portability guidelines): Refer to the new section. Update
12404         statement about oldest supported environment. Remove rationale why
12405         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12406         unportable C89 function.
12407         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12408         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12409
12410 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12411
12412         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12413
12414 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12415
12416         intprops-tests: new module
12417         * modules/intprops-tests, tests/test-intprops.c: New files.
12418
12419         intprops: add safe, portable integer overflow checking
12420         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12421         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12422         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12423         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12424         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12425         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12426         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12427         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12428         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12429         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12430         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12431
12432 2011-05-12  James Youngman  <jay@gnu.org>
12433
12434         Add a test for glibc's Bugzilla bug #12378.
12435         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12436         doesn't allow the literal matching of a lone "[" (which is
12437         required by POSIX).
12438         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12439
12440 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12441
12442         Sync glibc change fixing Bugzilla bug #12378.
12443         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12444         beginning and fall back to matching as normal character if the
12445         string ends before the matching ']' is found.  This is what POSIX
12446         requires.
12447
12448 2011-05-13  Eric Blake  <eblake@redhat.com>
12449
12450         getcwd-lgpl: relax test for FreeBSD
12451         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12452         issue.
12453         * tests/test-getcwd-lgpl.c (main): Relax test.
12454         Reported by Matthias Bolte.
12455
12456 2011-05-11  Eric Blake  <eblake@redhat.com>
12457
12458         test-fflush: silence compiler warning
12459         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12460
12461 2011-05-11  Bruno Haible  <bruno@clisp.org>
12462
12463         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12464         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12465         * modules/canonicalize (Depends-on): Add 'nocrash'.
12466         * modules/canonicalize-lgpl (Depends-on): Likewise.
12467         * doc/posix-functions/realpath.texi: Update platforms list.
12468         Reported by Ryan Schmidt <ryandesign@macports.org>.
12469
12470 2011-05-11  Bruno Haible  <bruno@clisp.org>
12471
12472         group-member: Declare function in <unistd.h>.
12473         * lib/unistd.in.h (group_member): New declaration.
12474         * lib/group-member.h: Remove file.
12475         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12476         * tests/test-unistd-c++.cc: Check signature of group_member.
12477         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12478         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12479         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12480         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12481         HAVE_GROUP_MEMBER.
12482         * modules/group-member (Files): Remove lib/group-member.h.
12483         (Depends-on): Add unistd. Specify conditions.
12484         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12485         (Include): Change to <unistd.h>.
12486         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12487         HAVE_GROUP_MEMBER.
12488         * NEWS: Mention the change.
12489         * lib/euidaccess.c: Don't include group-member.h.
12490
12491 2011-05-11  Bruno Haible  <bruno@clisp.org>
12492
12493         group-member: Document module.
12494         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12495         module.
12496
12497 2011-05-11  Bruno Haible  <bruno@clisp.org>
12498
12499         fclose: Fix mistake earlier today.
12500         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12501
12502 2011-05-11  Eric Blake  <eblake@redhat.com>
12503
12504         fclose: preserve fflush errors
12505         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12506         Reported by Jim Meyering.
12507
12508         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12509         * build-aux/bootstrap (check_versions): When no specific version
12510         is required, merely check that the app produces an exit status
12511         that indicates its existence.
12512
12513         maint.mk: drop redundant check
12514         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12515         the same but better.
12516
12517 2011-05-11  Bruno Haible  <bruno@clisp.org>
12518
12519         fclose: Fix possible link error.
12520         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12521         unregister_shadow_fd. Improve comments.
12522         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12523         Eric Blake.
12524
12525 2011-05-11  Jim Meyering  <meyering@redhat.com>
12526
12527         maint.mk: improve "can not" detection and generalize rule name
12528         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12529         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12530         Use the same technique as in sc_prohibit_doubled_word, so that
12531         we recognize "can not" also when the words are separated by a newline.
12532         Suggested by Eric Blake.
12533         (perl_filename_lineno_text_): Define.  Factored out of...
12534         (prohibit_doubled_word_): ...here.  Use the new definition.
12535         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12536         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12537         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12538
12539 2011-05-10  Eric Blake  <eblake@redhat.com>
12540
12541         fclose: avoid double close race when possible
12542         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12543         all but WINDOWS_SOCKETS.
12544
12545 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12546
12547         openat: correct new comment
12548         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12549
12550 2011-05-10  Jim Meyering  <meyering@redhat.com>
12551
12552         openat: add comments
12553         * lib/openat-proc.c (openat_proc_name): Add comments,
12554         mostly from Eric Blake.
12555
12556 2011-05-09  Eric Blake  <eblake@redhat.com>
12557
12558         openat: reduce syscalls in first probe of /proc
12559         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12560         be a directory.  Simplify the probe for .. bugs.
12561         * modules/openat (Depends-on): Drop same-inode.
12562         Reported by Bastien ROUCARIES.
12563
12564 2011-05-09  Jim Meyering  <meyering@redhat.com>
12565
12566         maint.mk: change semantics/name of tight_scope variables
12567         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12568         Rename variables to align with semantics that make them more useful.
12569
12570         maint.mk: tweak new rule's name not to impinge
12571         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12572         (sc_tight_scope): Use new rule name rather than $@-0.
12573
12574         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12575         * top/maint.mk (sc_tight_scope): New rule.
12576         (sc_tight_scope-0): New rule, ifdef'd out.
12577         (_gl_TS_dir): Default.
12578         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12579         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12580
12581 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12582
12583         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12584         Haible <bruno@clisp.org>.
12585
12586 2011-05-08  Bruno Haible  <bruno@clisp.org>
12587
12588         Comments.
12589         * m4/isnanf.m4: Add comment.
12590         * m4/isnanl.m4: Likewise.
12591
12592 2011-05-08  Bruno Haible  <bruno@clisp.org>
12593
12594         glob: Remove obsolete macro.
12595         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12596
12597 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12598
12599         intprops: Sun C 5.11 supports __typeof__
12600         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12601         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12602         which is new.
12603         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12604
12605         intprops: switch to usual gnulib indenting and naming
12606         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12607         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12608
12609         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12610
12611 2011-05-08  Jim Meyering  <meyering@redhat.com>
12612
12613         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12614         * top/maint.mk (release-prep): Use make's --no-print-directory
12615         option when generating the announcement.  This eliminates the
12616         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12617         generated announcement template.
12618
12619 2011-05-08  Bruno Haible  <bruno@clisp.org>
12620
12621         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12622         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12623         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12624
12625 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12626
12627         ignore-value, verify: Omit include files from lib_SOURCES.
12628         * modules/ignore-value, modules/verify (Makefile.am):
12629         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12630         that leads Automake to duplicate use of am__objects_... variables
12631         in Makefile.in.  See
12632         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12633
12634 2011-05-07  Bruno Haible  <bruno@clisp.org>
12635
12636         fclose: Simplify autoconf macro.
12637         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12638         defined.
12639
12640 2011-05-07  Bruno Haible  <bruno@clisp.org>
12641
12642         canonicalize-lgpl: Fix autoconf macro ordering bug.
12643         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12644         gl_STDLIB_H_DEFAULTS.
12645
12646 2011-05-06  Eric Blake  <eblake@redhat.com>
12647
12648         maintainer-makefile: make sc_po_check easier to tune
12649         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12650         to probe for strings, such as an alternate location for gnulib.
12651
12652         fclose: guarantee behavior on seekable stdin
12653         * modules/fclose (Depends-on): Add fflush.
12654         * doc/posix-functions/fclose.texi (fclose): Document this.
12655         * tests/test-fclose.c (main): Make test for this unconditional.
12656
12657 2011-05-06  Bruno Haible  <bruno@clisp.org>
12658
12659         fflush, fpurge: Relicense under LGPLv2+.
12660         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12661         * modules/fpurge (License): Likewise.
12662         With permission from Eric Blake and Jim Meyering.
12663         Suggested by Eric Blake.
12664
12665 2011-05-06  Karl Berry  <karl@gnu.org>
12666
12667         * MODULES.html.sh (func_all_modules): remove exit.
12668
12669 2011-05-06  Jim Meyering  <meyering@redhat.com>
12670
12671         maint.mk: use info-gnu@ as the default only for a stable release
12672         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12673         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12674         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12675         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12676
12677 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12678
12679         assert-h: new module, which supports C1X-style static_assert
12680         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12681         * lib/verify.h: Revamp so that this can be copied into assert.h,
12682         while retaining the ability to use it standalone as before.
12683         Rename private identifiers so as not to encroach on the
12684         standard C namespace, since this is now used by assert.h.
12685         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12686         the old verify_true.
12687         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12688         the old verify_true.  Use _GL_VERIFY_TYPE.
12689         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12690         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12691         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12692         defined when this file is copied into the replacement assert.h.
12693         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12694         and _Static_assert is not built in.
12695         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12696         defined, and use the new macros mentioned above.
12697         * doc/posix-headers/assert.texi: Document this.
12698
12699 2011-05-05  Bruno Haible  <bruno@clisp.org>
12700
12701         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12702         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12703         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12704         gl_REPLACE_FCLOSE here.
12705         * modules/fflush (Depends-on): Remove fclose.
12706         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12707         combination with module 'fclose'.
12708
12709 2011-05-05  Bruno Haible  <bruno@clisp.org>
12710
12711         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12712         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12713         gl_FUNC_FFLUSH.
12714         (gl_FUNC_FFLUSH): Use it.
12715         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12716         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12717         gl_REPLACE_FSEEKO here.
12718
12719 2011-05-05  Bruno Haible  <bruno@clisp.org>
12720
12721         tzset: Relicense under LGPL.
12722         * modules/tzset (License): Change to LGPL.
12723         No agreement needed; it's a no-op.
12724
12725         strtoimax, strtoumax: Relicense under LGPL.
12726         * modules/strtoimax (License): Change to LGPL.
12727         * modules/strtoumax (License): Likewise.
12728         With permission from Jim Meyering, Paul Eggert:
12729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12731
12732         getgroups: Relicense under LGPL.
12733         * modules/getgroups (License): Change to LGPL.
12734         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12738
12739         nanosleep: Relicense under LGPL.
12740         * modules/nanosleep (License): Change to LGPL.
12741         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12742         Haible:
12743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12747
12748         futimens: Relicense under LGPL.
12749         * modules/futimens (License): Change to LGPL.
12750         With permission from Eric Blake:
12751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12752
12753         fflush: Relicense under LGPL.
12754         * modules/fflush (License): Change to LGPL.
12755         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12759
12760         tmpfile: Relicense under LGPL.
12761         * modules/tmpfile (License): Change to LGPL.
12762         With permission from Ben Pfaff:
12763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12764
12765         isfinite: Relicense under LGPL.
12766         * modules/isfinite (License): Change to LGPL.
12767         With permission from Ben Pfaff, Bruno Haible:
12768         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12770
12771         acosl..tanl: Relicense under LGPL.
12772         * modules/acosl (License): Change to LGPL.
12773         * modules/asinl (License): Likewise.
12774         * modules/atanl (License): Likewise.
12775         * modules/cosl (License): Likewise.
12776         * modules/expl (License): Likewise.
12777         * modules/logl (License): Likewise.
12778         * modules/sinl (License): Likewise.
12779         * modules/sqrtl (License): Likewise.
12780         * modules/tanl (License): Likewise.
12781         Source code originally from glibc and Paolo Bonzini. Agreements:
12782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12784
12785 2011-05-05  Bruno Haible  <bruno@clisp.org>
12786
12787         signal: Define sighandler_t.
12788         * lib/signal.in.h (sighandler_t): New type.
12789         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12790         whether sighandler_t is defined.
12791         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12792         * modules/signal (Depends-on): Add extensions.
12793         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12794         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12795         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12796
12797 2011-05-05  Eric Blake  <eblake@redhat.com>
12798
12799         maint: remove useless REPLACE_*_H macros
12800         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12801         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12802         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12803         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12804         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12805         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12806         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12807         * m4/btowc.m4: Update callers.
12808         * m4/dirfd.m4: Likewise.
12809         * m4/duplocale.m4: Likewise.
12810         * m4/fchdir.m4: Likewise.
12811         * m4/fdopendir.m4: Likewise.
12812         * m4/inet_ntop.m4: Likewise.
12813         * m4/inet_pton.m4: Likewise.
12814         * m4/ioctl.m4: Likewise.
12815         * m4/mbrlen.m4: Likewise.
12816         * m4/mbrtowc.m4: Likewise.
12817         * m4/mbsinit.m4: Likewise.
12818         * m4/mbsnrtowcs.m4: Likewise.
12819         * m4/mbsrtowcs.m4: Likewise.
12820         * m4/poll.m4: Likewise.
12821         * m4/setlocale.m4: Likewise.
12822         * m4/wcrtomb.m4: Likewise.
12823         * m4/wcsnrtombs.m4: Likewise.
12824         * m4/wcsrtombs.m4: Likewise.
12825         * m4/wctob.m4: Likewise.
12826         * m4/wcwidth.m4: Likewise.
12827         * modules/posix_spawn: Likewise.
12828         * modules/posix_spawn_file_actions_addclose: Likewise.
12829         * modules/posix_spawn_file_actions_adddup2: Likewise.
12830         * modules/posix_spawn_file_actions_addopen: Likewise.
12831         * modules/posix_spawn_file_actions_destroy: Likewise.
12832         * modules/posix_spawn_file_actions_init: Likewise.
12833         * modules/posix_spawnattr_destroy: Likewise.
12834         * modules/posix_spawnattr_getflags: Likewise.
12835         * modules/posix_spawnattr_getpgroup: Likewise.
12836         * modules/posix_spawnattr_getschedparam: Likewise.
12837         * modules/posix_spawnattr_getschedpolicy: Likewise.
12838         * modules/posix_spawnattr_getsigdefault: Likewise.
12839         * modules/posix_spawnattr_getsigmask: Likewise.
12840         * modules/posix_spawnattr_init: Likewise.
12841         * modules/posix_spawnattr_setflags: Likewise.
12842         * modules/posix_spawnattr_setpgroup: Likewise.
12843         * modules/posix_spawnattr_setschedparam: Likewise.
12844         * modules/posix_spawnattr_setschedpolicy: Likewise.
12845         * modules/posix_spawnattr_setsigdefault: Likewise.
12846         * modules/posix_spawnattr_setsigmask: Likewise.
12847         * modules/posix_spawnp: Likewise.
12848
12849 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12850
12851         Add option to do-release-commit-and-tag to specify branch.
12852         * build-aux/do-release-commit-and-tag: Add --branch.
12853
12854 2011-05-03  Bruno Haible  <bruno@clisp.org>
12855
12856         Avoid unnecessary compilation units, through conditional dependencies.
12857         * modules/accept (Depends-on): Add conditions to the dependencies.
12858         * modules/acosl (Depends-on): Likewise.
12859         * modules/argz (Depends-on): Likewise.
12860         * modules/asinl (Depends-on): Likewise.
12861         * modules/atanl (Depends-on): Likewise.
12862         * modules/atoll (Depends-on): Likewise.
12863         * modules/bind (Depends-on): Likewise.
12864         * modules/btowc (Depends-on): Likewise.
12865         * modules/canonicalize-lgpl (Depends-on): Likewise.
12866         * modules/ceil (Depends-on): Likewise.
12867         * modules/ceilf (Depends-on): Likewise.
12868         * modules/ceill (Depends-on): Likewise.
12869         * modules/chdir-long (Depends-on): Likewise.
12870         * modules/chown (Depends-on): Likewise.
12871         * modules/close (Depends-on): Likewise.
12872         * modules/connect (Depends-on): Likewise.
12873         * modules/cosl (Depends-on): Likewise.
12874         * modules/dirfd (Depends-on): Likewise.
12875         * modules/dprintf (Depends-on): Likewise.
12876         * modules/dprintf-posix (Depends-on): Likewise.
12877         * modules/error (Depends-on): Likewise.
12878         * modules/euidaccess (Depends-on): Likewise.
12879         * modules/expl (Depends-on): Likewise.
12880         * modules/faccessat (Depends-on): Likewise.
12881         * modules/fchdir (Depends-on): Likewise.
12882         * modules/fclose (Depends-on): Likewise.
12883         * modules/fcntl (Depends-on): Likewise.
12884         * modules/fdopendir (Depends-on): Likewise.
12885         * modules/fflush (Depends-on): Likewise.
12886         * modules/floor (Depends-on): Likewise.
12887         * modules/floorf (Depends-on): Likewise.
12888         * modules/floorl (Depends-on): Likewise.
12889         * modules/fnmatch (Depends-on): Likewise.
12890         * modules/fopen (Depends-on): Likewise.
12891         * modules/fprintf-posix (Depends-on): Likewise.
12892         * modules/frexp (Depends-on): Likewise.
12893         * modules/frexp-nolibm (Depends-on): Likewise.
12894         * modules/frexpl (Depends-on): Likewise.
12895         * modules/frexpl-nolibm (Depends-on): Likewise.
12896         * modules/fseek (Depends-on): Likewise.
12897         * modules/fsusage (Depends-on): Likewise.
12898         * modules/ftell (Depends-on): Likewise.
12899         * modules/ftello (Depends-on): Likewise.
12900         * modules/futimens (Depends-on): Likewise.
12901         * modules/getcwd (Depends-on): Likewise.
12902         * modules/getcwd-lgpl (Depends-on): Likewise.
12903         * modules/getdelim (Depends-on): Likewise.
12904         * modules/getdomainname (Depends-on): Likewise.
12905         * modules/getgroups (Depends-on): Likewise.
12906         * modules/gethostname (Depends-on): Likewise.
12907         * modules/getline (Depends-on): Likewise.
12908         * modules/getlogin_r (Depends-on): Likewise.
12909         * modules/getopt-posix (Depends-on): Likewise.
12910         * modules/getpeername (Depends-on): Likewise.
12911         * modules/getsockname (Depends-on): Likewise.
12912         * modules/getsockopt (Depends-on): Likewise.
12913         * modules/getsubopt (Depends-on): Likewise.
12914         * modules/getusershell (Depends-on): Likewise.
12915         * modules/glob (Depends-on): Likewise.
12916         * modules/grantpt (Depends-on): Likewise.
12917         * modules/iconv_open (Depends-on): Likewise.
12918         * modules/iconv_open-utf (Depends-on): Likewise.
12919         * modules/inet_ntop (Depends-on): Likewise.
12920         * modules/inet_pton (Depends-on): Likewise.
12921         * modules/ioctl (Depends-on): Likewise.
12922         * modules/isapipe (Depends-on): Likewise.
12923         * modules/isfinite (Depends-on): Likewise.
12924         * modules/isinf (Depends-on): Likewise.
12925         * modules/lchown (Depends-on): Likewise.
12926         * modules/ldexpl (Depends-on): Likewise.
12927         * modules/link (Depends-on): Likewise.
12928         * modules/linkat (Depends-on): Likewise.
12929         * modules/listen (Depends-on): Likewise.
12930         * modules/logl (Depends-on): Likewise.
12931         * modules/lstat (Depends-on): Likewise.
12932         * modules/mbrlen (Depends-on): Likewise.
12933         * modules/mbrtowc (Depends-on): Likewise.
12934         * modules/mbsinit (Depends-on): Likewise.
12935         * modules/mbsnrtowcs (Depends-on): Likewise.
12936         * modules/mbsrtowcs (Depends-on): Likewise.
12937         * modules/mbtowc (Depends-on): Likewise.
12938         * modules/memcmp (Depends-on): Likewise.
12939         * modules/mkdir (Depends-on): Likewise.
12940         * modules/mkdtemp (Depends-on): Likewise.
12941         * modules/mkfifo (Depends-on): Likewise.
12942         * modules/mkfifoat (Depends-on): Likewise.
12943         * modules/mknod (Depends-on): Likewise.
12944         * modules/mkostemp (Depends-on): Likewise.
12945         * modules/mkostemps (Depends-on): Likewise.
12946         * modules/mkstemp (Depends-on): Likewise.
12947         * modules/mkstemps (Depends-on): Likewise.
12948         * modules/mktime (Depends-on): Likewise.
12949         * modules/nanosleep (Depends-on): Likewise.
12950         * modules/open (Depends-on): Likewise.
12951         * modules/openat (Depends-on): Likewise.
12952         * modules/perror (Depends-on): Likewise.
12953         * modules/poll (Depends-on): Likewise.
12954         * modules/popen (Depends-on): Likewise.
12955         * modules/posix_spawn (Depends-on): Likewise.
12956         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12957         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12958         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12959         * modules/posix_spawnp (Depends-on): Likewise.
12960         * modules/pread (Depends-on): Likewise.
12961         * modules/printf-posix (Depends-on): Likewise.
12962         * modules/ptsname (Depends-on): Likewise.
12963         * modules/putenv (Depends-on): Likewise.
12964         * modules/pwrite (Depends-on): Likewise.
12965         * modules/readline (Depends-on): Likewise.
12966         * modules/readlink (Depends-on): Likewise.
12967         * modules/readlinkat (Depends-on): Likewise.
12968         * modules/recv (Depends-on): Likewise.
12969         * modules/recvfrom (Depends-on): Likewise.
12970         * modules/regex (Depends-on): Likewise.
12971         * modules/remove (Depends-on): Likewise.
12972         * modules/rename (Depends-on): Likewise.
12973         * modules/renameat (Depends-on): Likewise.
12974         * modules/rmdir (Depends-on): Likewise.
12975         * modules/round (Depends-on): Likewise.
12976         * modules/roundf (Depends-on): Likewise.
12977         * modules/roundl (Depends-on): Likewise.
12978         * modules/rpmatch (Depends-on): Likewise.
12979         * modules/select (Depends-on): Likewise.
12980         * modules/send (Depends-on): Likewise.
12981         * modules/sendto (Depends-on): Likewise.
12982         * modules/setenv (Depends-on): Likewise.
12983         * modules/setlocale (Depends-on): Likewise.
12984         * modules/setsockopt (Depends-on): Likewise.
12985         * modules/shutdown (Depends-on): Likewise.
12986         * modules/sigaction (Depends-on): Likewise.
12987         * modules/signbit (Depends-on): Likewise.
12988         * modules/sigprocmask (Depends-on): Likewise.
12989         * modules/sinl (Depends-on): Likewise.
12990         * modules/sleep (Depends-on): Likewise.
12991         * modules/snprintf (Depends-on): Likewise.
12992         * modules/snprintf-posix (Depends-on): Likewise.
12993         * modules/socket (Depends-on): Likewise.
12994         * modules/sprintf-posix (Depends-on): Likewise.
12995         * modules/sqrtl (Depends-on): Likewise.
12996         * modules/stat (Depends-on): Likewise.
12997         * modules/strchrnul (Depends-on): Likewise.
12998         * modules/strdup-posix (Depends-on): Likewise.
12999         * modules/strerror (Depends-on): Likewise.
13000         * modules/strerror_r-posix (Depends-on): Likewise.
13001         * modules/strndup (Depends-on): Likewise.
13002         * modules/strnlen (Depends-on): Likewise.
13003         * modules/strptime (Depends-on): Likewise.
13004         * modules/strsep (Depends-on): Likewise.
13005         * modules/strsignal (Depends-on): Likewise.
13006         * modules/strstr-simple (Depends-on): Likewise.
13007         * modules/strtod (Depends-on): Likewise.
13008         * modules/strtoimax (Depends-on): Likewise.
13009         * modules/strtok_r (Depends-on): Likewise.
13010         * modules/strtoumax (Depends-on): Likewise.
13011         * modules/symlink (Depends-on): Likewise.
13012         * modules/symlinkat (Depends-on): Likewise.
13013         * modules/tanl (Depends-on): Likewise.
13014         * modules/tcgetsid (Depends-on): Likewise.
13015         * modules/tmpfile (Depends-on): Likewise.
13016         * modules/trunc (Depends-on): Likewise.
13017         * modules/truncf (Depends-on): Likewise.
13018         * modules/truncl (Depends-on): Likewise.
13019         * modules/uname (Depends-on): Likewise.
13020         * modules/unlink (Depends-on): Likewise.
13021         * modules/unlockpt (Depends-on): Likewise.
13022         * modules/unsetenv (Depends-on): Likewise.
13023         * modules/usleep (Depends-on): Likewise.
13024         * modules/utimensat (Depends-on): Likewise.
13025         * modules/vasprintf (Depends-on): Likewise.
13026         * modules/vdprintf (Depends-on): Likewise.
13027         * modules/vdprintf-posix (Depends-on): Likewise.
13028         * modules/vfprintf-posix (Depends-on): Likewise.
13029         * modules/vprintf-posix (Depends-on): Likewise.
13030         * modules/vsnprintf (Depends-on): Likewise.
13031         * modules/vsnprintf-posix (Depends-on): Likewise.
13032         * modules/vsprintf-posix (Depends-on): Likewise.
13033         * modules/wcrtomb (Depends-on): Likewise.
13034         * modules/wcscasecmp (Depends-on): Likewise.
13035         * modules/wcscspn (Depends-on): Likewise.
13036         * modules/wcsdup (Depends-on): Likewise.
13037         * modules/wcsncasecmp (Depends-on): Likewise.
13038         * modules/wcsnrtombs (Depends-on): Likewise.
13039         * modules/wcspbrk (Depends-on): Likewise.
13040         * modules/wcsrtombs (Depends-on): Likewise.
13041         * modules/wcsspn (Depends-on): Likewise.
13042         * modules/wcsstr (Depends-on): Likewise.
13043         * modules/wcstok (Depends-on): Likewise.
13044         * modules/wcswidth (Depends-on): Likewise.
13045         * modules/wctob (Depends-on): Likewise.
13046         * modules/wctomb (Depends-on): Likewise.
13047         * modules/wctype (Depends-on): Likewise.
13048         * modules/wcwidth (Depends-on): Likewise.
13049         * modules/write (Depends-on): Likewise.
13050
13051 2011-05-03  Bruno Haible  <bruno@clisp.org>
13052
13053         Support for conditional dependencies.
13054         * doc/gnulib.texi (Module description): Document the syntax of
13055         conditional dependencies.
13056         * gnulib-tool: New option --conditional-dependencies.
13057         (func_usage): Document it.
13058         (cond_dependencies): New variable.
13059         (func_get_automake_snippet_conditional,
13060         func_get_automake_snippet_unconditional): New functions, extracted from
13061         func_get_automake_snippet.
13062         (func_get_automake_snippet): Use them.
13063         (sed_first_32_chars): New variable.
13064         (func_module_shellfunc_name): New function.
13065         (func_module_shellvar_name): New function.
13066         (func_module_conditional_name): New function.
13067         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13068         func_cond_module_condition): New functions.
13069         (func_modules_transitive_closure): Add support for conditional
13070         dependencies.
13071         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13072         conditional automake snippet in an automake conditional.
13073         (func_emit_autoconf_snippets): Emit shell functions that contain the
13074         code for conditional modules.
13075         (func_import, func_create_testdir): Update specification.
13076
13077 2011-05-03  Eric Blake  <eblake@redhat.com>
13078
13079         test-getaddrinfo: report error information
13080         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13081
13082 2011-05-03  Jim Meyering  <meyering@redhat.com>
13083
13084         bootstrap: avoid build failure when $GZIP is set
13085         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13086         program name.  If defined at all, it is supposed to list gzip options.
13087         Reported by Alan Curry in http://debbugs.gnu.org/8609
13088
13089 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13090
13091         readme-release: new module with release instructions
13092         * modules/readme-release: New module.
13093         * top/README-release: New file, from coreutils, grep, diffutils.
13094         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13095
13096 2011-05-02  Eric Blake  <eblake@redhat.com>
13097
13098         fflush: also replace fclose when fixing fflush
13099         * modules/fflush (Depends-on): Add fclose.
13100         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13101         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13102         memstreams with no backing fd.
13103         * doc/posix-functions/fclose.texi (fclose): Document the use of
13104         fflush module to fix the bug.
13105         * tests/test-fclose.c (main): Relax test when fclose is used in
13106         isolation.
13107
13108         fclose: add some tests
13109         * modules/fclose-tests: New test module.
13110         * tests/test-fclose.c: New file.
13111         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13112
13113         fclose: reduced dependencies
13114         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13115         simpler lseek.
13116         * lib/fclose.c (rpl_fclose): Likewise.
13117         Reported by Simon Josefsson.
13118
13119         exit: drop remaining clients
13120         * modules/argmatch (Depends-on): Replace exit with stdlib.
13121         * modules/copy-file (Depends-on): Likewise.
13122         * modules/execute (Depends-on): Likewise.
13123         * modules/exitfail (Depends-on): Likewise.
13124         * modules/obstack (Depends-on): Likewise.
13125         * modules/pagealign_alloc (Depends-on): Likewise.
13126         * modules/pipe-filter-gi (Depends-on): Likewise.
13127         * modules/pipe-filter-ii (Depends-on): Likewise.
13128         * modules/savewd (Depends-on): Likewise.
13129         * modules/spawn-pipe (Depends-on): Likewise.
13130         * modules/wait-process (Depends-on): Likewise.
13131         * modules/xsetenv (Depends-on): Likewise.
13132         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13133         * modules/git-merge-changelog (Depends-on): Likewise.
13134         * modules/long-options (Depends-on): Likewise.
13135         * modules/pt_chown (Depends-on): Likewise.
13136         * modules/sysexits (Depends-on): Likewise.
13137
13138         freading: relax license from LGPLv3+ to LGPLv2+
13139         * modules/freading (License): Relax LGPL version.
13140
13141 2011-05-02  Bruno Haible  <bruno@clisp.org>
13142
13143         fchdir: Remove unused dependencies.
13144         * modules/fchdir (Depends-on): Remove include_next.
13145
13146 2011-05-02  Bruno Haible  <bruno@clisp.org>
13147
13148         gnulib-tool: Refactor.
13149         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13150         from func_emit_autoconf_snippets.
13151         (func_emit_autoconf_snippets): Use it.
13152
13153 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13154
13155         * NEWS: Document removal of 'exit'.
13156         * modules/exit: Remove file.
13157
13158 2011-05-01  Bruno Haible  <bruno@clisp.org>
13159
13160         Update DEPENDENCIES.
13161         * DEPENDENCIES (gettext): Recommend the newest release.
13162         Reported by Simon Josefsson.
13163
13164 2011-05-01  Bruno Haible  <bruno@clisp.org>
13165
13166         gnulib-tool: Reduce code duplication.
13167         * gnulib-tool (func_emit_autoconf_snippets): New function.
13168         (func_import, func_create_testdir): Use it.
13169
13170 2011-04-30  Eric Blake  <eblake@redhat.com>
13171
13172         fclose: don't fail on non-seekable input stream
13173         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13174         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13175         since fflush is allowed to fail in that case.
13176
13177 2011-04-30  Bruno Haible  <bruno@clisp.org>
13178
13179         dup3: cleanup
13180         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13181
13182 2011-04-30  Bruno Haible  <bruno@clisp.org>
13183
13184         netdb: Make it work in C++ mode.
13185         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13186         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13187         module.
13188         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13189         gl_MODULE_INDICATOR_FOR_TESTS.
13190         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13191         * modules/netdb-c++-tests: New file.
13192         * tests/test-netdb-c++.cc: New file.
13193
13194 2011-04-30  Bruno Haible  <bruno@clisp.org>
13195
13196         New modules 'vfscanf', 'vscanf'.
13197         * modules/vfscanf: New file.
13198         * modules/vscanf: New file.
13199         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13200         here.
13201         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13202         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13203
13204 2011-04-30  Bruno Haible  <bruno@clisp.org>
13205
13206         passfd: Add comments.
13207         * lib/passfd.c: Add comments about platforms.
13208
13209 2011-04-30  Bruno Haible  <bruno@clisp.org>
13210
13211         sys_uio: Make <sys/uio.h> self-contained.
13212         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13213         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13214
13215 2011-04-30  Bruno Haible  <bruno@clisp.org>
13216
13217         sys_socket: Ensure 'struct iovec' definition.
13218         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13219         <sys/socket.h>.
13220         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13221
13222 2011-04-30  Bruno Haible  <bruno@clisp.org>
13223
13224         sys_uio: Protect definition of 'struct iovec'.
13225         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13226         it as a C struct.
13227
13228 2011-04-30  Bruno Haible  <bruno@clisp.org>
13229
13230         manywarnings: fix indentation
13231         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13232
13233 2011-04-30  Pádraig Brady <P@draigBrady.com>
13234
13235         manywarnings: add -Wno-missing-field-initializers if needed.
13236         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
13237         option if it's needed to allow initialization with { 0, }
13238
13239 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
13240
13241         announce-gen: cosmetic improvement
13242         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
13243
13244 2011-04-29  Jim Meyering  <meyering@redhat.com>
13245
13246         vc-list-files: indent with spaces, not TABs
13247         * build-aux/vc-list-files: Convert leading TABs to spaces,
13248         to match the style of most other files in gnulib.
13249
13250         announce-gen: indent with spaces, not TABs
13251         * build-aux/announce-gen: Convert all TABs to spaces, to match
13252         the style of most other files in gnulib.
13253
13254 2011-04-29  Eric Blake  <eblake@redhat.com>
13255
13256         quotearg: avoid uninitialized variable use
13257         * lib/quotearg.c (quoting_options_from_style): Initialize
13258         remaining fields, and ensure that custom styles are only used via
13259         quoting_options rather than quoting_style.
13260
13261 2011-04-29  Jim Meyering  <meyering@redhat.com>
13262
13263         maint.mk: remove unused VC-tag variable
13264         * top/maint.mk (VC-tag): Remove unused variable.
13265
13266 2011-04-29  Bruno Haible  <bruno@clisp.org>
13267
13268         netdb: fix gai_strerror replacements
13269         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
13270         * modules/netdb: Substitute it.
13271
13272 2011-04-29  Jim Meyering  <meyering@redhat.com>
13273
13274         test-getcwd.c: avoid new set-but-not-used warning
13275         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
13276         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
13277         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
13278         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
13279
13280         test-hash.c: avoid a new shadowing warning
13281         * tests/test-hash.c (main): Don't shadow "dup".
13282
13283 2011-04-28  Eric Blake  <eblake@redhat.com>
13284
13285         getaddrinfo: fix gai_strerror signature
13286         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
13287         and work around mingw with UNICODE defined.
13288         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
13289         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
13290         * modules/netdb (Makefile.am): Substitute it.
13291         * lib/netdb.in.h (gai_strerror): Declare replacement.
13292         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
13293         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
13294         the fix.
13295
13296         getsockopt: avoid compiler warning
13297         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
13298         Reported by Matthias Bolte.
13299
13300         tests: drop unused link dependency
13301         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
13302         * modules/dirent-safer-tests (Makefile.am): Likewise.
13303         * modules/fdopendir-tests (Makefile.am): Likewise.
13304         * modules/mkfifoat-tests (Makefile.am): Likewise.
13305         * modules/openat-safer-tests (Makefile.am): Likewise.
13306         * modules/openat-tests (Makefile.am): Likewise.
13307         * modules/readlinkat-tests (Makefile.am): Likewise.
13308         * modules/symlinkat-tests (Makefile.am): Likewise.
13309         * modules/linkat-tests (Makefile.am): Likewise.
13310         (Depends-on): Switch to filenamecat-lgpl.
13311         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
13312         LIBINTL.
13313         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
13314         * tests/test-linkat.c (main): Don't require xalloc.
13315
13316         hash, mgetgroups: drop xalloc dependency
13317         * lib/hash.c (includes): Adjust includes.
13318         * lib/mgetgroups.c (includes): Likewise.
13319         (xgetgroups): Move...
13320         * lib/xgetgroups.c: ...to new file.
13321         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
13322         * modules/xgetgroups: New file, split from...
13323         * modules/mgetgroups: ...here.
13324         (Depends-on): Add xalloc-oversized.
13325         * modules/hash (Depends-on): Likewise.
13326         * modules/hash-tests (Depends-on): Drop xalloc.
13327         (test_hash_LDADD): Drop unused library.
13328         * tests/test-hash.c (main): Break xalloc dependency.
13329         (includes): Drop unused include.
13330
13331         xalloc-oversized: new module
13332         * modules/xalloc-oversized: New module.
13333         * modules/xalloc (Depends-on): Add it.
13334         * lib/xalloc.h (xalloc_oversized): Move...
13335         * lib/xalloc-oversized.h: ...into new file.
13336
13337         utimecmp: drop dependency on xmalloc
13338         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
13339         due to memory pressure.
13340         * modules/utimecmp (Depends-on): Drop xalloc.
13341
13342 2011-04-27  Eric Blake  <eblake@redhat.com>
13343
13344         getcwd: fix mingw bugs
13345         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
13346         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
13347         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
13348
13349 2011-04-27  Bruno Haible  <bruno@clisp.org>
13350
13351         mkstemps: Ensure declaration on MacOS X 10.5.
13352         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
13353         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13354         MacOS X.
13355
13356 2011-04-27  Bruno Haible  <bruno@clisp.org>
13357
13358         mkstemp: More documentation.
13359         * doc/posix-functions/mkstemp.texi: Document header file problem on
13360         MacOS X.
13361
13362 2011-04-27  Bruno Haible  <bruno@clisp.org>
13363
13364         mkstemp: Tweak configure message when cross-compiling.
13365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
13366         result as a guess.
13367
13368 2011-04-27  Bruno Haible  <bruno@clisp.org>
13369
13370         clean-temp: Clarify what it does.
13371         * lib/clean-temp.h: Add more comments.
13372         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13373         module.
13374         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13375         * doc/glibc-functions/mkstemps.texi: Likewise.
13376         * doc/glibc-functions/mkostemps.texi: Likewise.
13377
13378 2011-04-27  Eric Blake  <eblake@redhat.com>
13379
13380         fchdir: avoid extra chdir and fix test
13381         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13382         getcwd-lgpl.
13383         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13384         have to be canonical.
13385         (canonicalize_file_name): Drop unused macro.
13386         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
13387
13388         filenamecat-lgpl: fix licence
13389         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13390         when it was first created.
13391
13392         linkat, renameat: add missing dependency
13393         * modules/linkat (Depends-on): Require getcwd-lgpl.
13394         * modules/renameat (Depends-on): Likewise.
13395
13396         tests: reduce dependencies
13397         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13398         * tests/test-renameat.c (main): Likewise.
13399         * modules/linkat-tests (Depends-on): Relax dependency.
13400         * modules/renameat-tests (Depends-on): Likewise.
13401         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13402         dependency explicit.
13403
13404         save-cwd: reduce default dependency
13405         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13406         * lib/save-cwd.c: Update comments.
13407         * NEWS: Document the semantic change.
13408
13409         getcwd: enhance tests
13410         * tests/test-getcwd-lgpl.c: New file, taken from...
13411         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13412         repeat long path stress tests from m4 probe.
13413         * modules/getcwd-lgpl-tests: New module.
13414         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13415         * m4/getcwd-abort-bug.m4: Update comment.
13416         * m4/getcwd-path-max.m4: Likewise.
13417
13418         getcwd-lgpl: new module
13419         * modules/getcwd-lgpl: New module.
13420         * lib/getcwd-lgpl.c: New file.
13421         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13422         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13423         * modules/getcwd (configure.ac): Set C witness.
13424         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13425
13426         getcwd: tweak comments
13427         * m4/getcwd-abort-bug.m4: Fix comments.
13428         * m4/getcwd-path-max.m4: Likewise.
13429         * m4/getcwd.m4: Likewise.
13430
13431 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13432         and Eric Blake  <eblake@redhat.com>
13433
13434         mkstemp: replace if system version uses wrong permissions
13435         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13436         read/write mode bits set in file created by mkstemp.
13437         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13438
13439 2011-04-27  Eric Blake  <eblake@redhat.com>
13440
13441         passfd: avoid compiler warning
13442         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13443         Reported by Laine Stump.
13444
13445 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13446
13447         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13448         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13449
13450 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13451         and Eric Blake  <eblake@redhat.com>
13452
13453         mkstemp: mention clean-temp module
13454         * lib/mkstemp.c: Add comment.
13455         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13456
13457 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13458
13459         inttypes: also provide default values for 32-bit tests
13460         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13461         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13462
13463 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13464
13465         strtoumax: remove dependency on strtoimax
13466         This is like the strtoull change of yesterday.
13467         * modules/strtoumax (Files): Add lib/strtoimax.c.
13468         (Depends-on): Remove strtoimax and add verify.
13469
13470         inttypes-incomplete: new module
13471         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13472         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13473         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13474         of gl_INTTYPES_H.
13475         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13476         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13477         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13478         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13479         * modules/strtoumax, modules/xstrtol (Depends-on):
13480         Depend on inttypes-incomplete, not inttypes.
13481         * modules/inttypes-incomplete: New module, containing the contents
13482         of the old modules/inttypes module, except that the Files: section
13483         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13484         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13485         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13486         (Depends-on): Depend only on inttypes-incomplete.
13487         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13488
13489         inttypes: omit now-redundant strtoimax and strtoumax work
13490         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13491         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13492
13493         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13494         This supports apps that need pointers to strtoimax and strtoumax,
13495         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13496         nonexistent functions.  See
13497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13498         et seq.
13499         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13500         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13501         a macro.
13502         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13503
13504 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13505
13506         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13507
13508 2011-04-25  Bruno Haible  <bruno@clisp.org>
13509
13510         strtol, strtoul: Mark modules as obsolete.
13511         * modules/strtol (Status, Notice): New sections.
13512         * modules/strtoul (Status, Notice): New sections.
13513
13514 2011-04-25  Bruno Haible  <bruno@clisp.org>
13515
13516         strtod: Remove check for strtod, unless supporting old platforms.
13517         * modules/strtod-obsolete: New file.
13518         * m4/strtod-obsolete.m4: New file.
13519         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13520         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13521         * modules/strtod (Depends-on): Add strtod-obsolete.
13522         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13523
13524 2011-04-25  Bruno Haible  <bruno@clisp.org>
13525
13526         strcase: Make module obsolete.
13527         * modules/strcase (Status, Notice): New sections.
13528
13529 2011-04-25  Bruno Haible  <bruno@clisp.org>
13530
13531         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13532         * modules/dup2-obsolete: New file.
13533         * m4/dup2-obsolete.m4: New file.
13534         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13535         gl_FUNC_DUP2_OBSOLETE is not also defined.
13536         * modules/dup2 (Depends-on): Add dup2-obsolete.
13537         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13538
13539 2011-04-25  Bruno Haible  <bruno@clisp.org>
13540
13541         strnlen: Avoid memchr related link error on old obsolete platforms.
13542         * modules/memchr-obsolete: New file.
13543         * m4/memchr-obsolete.m4: New file.
13544         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13545         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13546         * modules/memchr (Depends-on): Add memchr-obsolete.
13547         * modules/strnlen (Depends-on): Likewise.
13548         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13549
13550 2011-04-25  Jim Meyering  <meyering@redhat.com>
13551
13552         maint.mk: makefile_at_at_check extend and clean up
13553         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13554         in addition to */Makefile.am.
13555         Exempt legitimate uses of @VAR@ notation, e.g.,
13556         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13557         Remove obsolete coreutils-specific comment.
13558         Prompted by discussion here:
13559         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13560
13561 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13562
13563         strtoul: remove dependency on strtol
13564         This is so that 'configure' need not check for strtol merely because
13565         the application needs strtoul.
13566         * modules/strtoul (Files): Add lib/strtol.c.
13567         (Depends-on): Remove strtol.
13568
13569         strtoull: remove dependency on strtoul
13570         This is like the strtoll change.
13571         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13572         (Depends-on): Remove strtoul.
13573
13574         strtoll: remove dependency on strtol
13575         This is so that 'configure' need not check for strtol merely because
13576         the application needs strtoll.
13577         * modules/strtoll (Files): Add lib/strtol.c.
13578         (Depends-on): Remove strtol.
13579
13580 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13581
13582         inttypes: Move some configure check to module 'imaxdiv'.
13583         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13584         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13585         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13586
13587 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13588
13589         inttypes: Move some configure check to module 'imaxabs'.
13590         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13591         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13592         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13593
13594 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13595
13596         inttypes: Remove configure tests that are not needed since 2009-12-31.
13597         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13598         gl_cv_header_working_inttypes_h.
13599
13600 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13601
13602         * modules/strnlen (Depends-on): Remove memchr.
13603         The strnlen implementation doesn't need the memchr module's fixes; see
13604         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13605
13606         strtol: remove dependency on wchar
13607         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13608         * modules/strtol (Depends-on): Remove wchar.
13609
13610 2011-04-21  Eric Blake  <eblake@redhat.com>
13611
13612         passfd: fix test regression on Linux
13613         * modules/passfd-tests (configure.ac): Correct socketpair check.
13614
13615         passfd: speed up configure and drop unused code
13616         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13617         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13618         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13619         Instead of probing at configure for unix_scm_rights_bsd44_way,
13620         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13621         check to a struct member probe.
13622         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13623         (sendfd, recvfd): Update preprocessor checks.
13624         * modules/passfd (Files): Reflect rename, and drop unused file.
13625         (Depends-on): Drop unused dependency.
13626
13627         passfd: allow compilation on mingw
13628         * modules/sys_socket (Depends-on): Add sys_uio.
13629         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13630         iovec and a minimal struct msghdr.
13631         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13632         * tests/test-sys_socket.c (main): Enhance test.
13633         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13634         guaranteed to provide what we need.
13635         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13636         * modules/passfd-tests (Depends-on): Add sys_wait.
13637         * tests/test-passfd.c (main): Skip test on mingw, for now.
13638         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13639         partial 'struct msghdr' implementation.
13640
13641         sys_uio: new module
13642         * modules/sys_uio: New module.
13643         * modules/sys_uio-tests: Likewise.
13644         * lib/sys_uio.in.h: New file.
13645         * m4/sys_uio_h.m4: Likewise.
13646         * tests/test-sys_uio.c: Likewise.
13647         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13648         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13649
13650 2011-04-20  Jim Meyering  <meyering@redhat.com>
13651
13652         useless-if-before-free: avoid false-positive
13653         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13654         disjunct so that it too requires a terminating ";".  Without that,
13655         this script would identify as useless one statement from gcc that
13656         was not:
13657           if (aligned_ptr)
13658             free (((void **) aligned_ptr) [-1]);
13659
13660 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13661
13662         doc: update users.txt.
13663         * users.txt: Add barcode.
13664
13665 2011-04-19  Bruno Haible  <bruno@clisp.org>
13666
13667         ioctl: Remove link dependency on native Windows.
13668         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13669         (gl_close_fn, gl_ioctl_fn): New types.
13670         (struct fd_hook): Renamed from struct close_hook. Change type of
13671         private_close_fn field. Add private_ioctl_fn field.
13672         (close_hook_fn): Add parameter for primary close method.
13673         (execute_close_hooks, execute_all_close_hooks): Likewise.
13674         (ioctl_hook_fn): New type.
13675         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13676         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13677         argument.
13678         (unregister_fd_hook): Renamed from unregister_close_hook.
13679         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13680         Don't include <unistd.h>.
13681         (close): Remove undef.
13682         (anchor): Update.
13683         (execute_close_hooks): Add argument for primary close method.
13684         (execute_all_close_hooks): Likewise.
13685         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13686         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13687         argument. Allow each argument to be NULL.
13688         (unregister_fd_hook): Renamed from unregister_close_hook.
13689         * lib/close.c (rpl_close): Pass 'close' function pointer to
13690         execute_all_close_hooks.
13691         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13692         (primary_ioctl): New function.
13693         (ioctl): Don't call ioctlsocket here. Instead, call
13694         execute_all_ioctl_hooks.
13695         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13696         close method.
13697         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13698         (fd_sockets_hook): Renamed from close_sockets_hook.
13699         (gl_sockets_startup, gl_sockets_cleanup): Update.
13700         * modules/fd-hook: Renamed from modules/close-hook. Update.
13701         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13702         * modules/sockets (Depends-on): Likewise.
13703         * modules/ioctl (Depends-on): Add fd-hook.
13704         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13705         GNULIB_SOCKET.
13706
13707 2011-04-19  Bruno Haible  <bruno@clisp.org>
13708
13709         Move the support of O_NONBLOCK in open() to the 'open' module.
13710         * modules/nonblocking (Depends-on): Remove 'open'.
13711         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13712         gl_cv_have_open_O_NONBLOCK.
13713         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13714         O_NONBLOCK support.
13715         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13716
13717 2011-04-17  Bruno Haible  <bruno@clisp.org>
13718
13719         pipe2: Simplify code.
13720         * lib/pipe2.c (pipe2): Reduce code duplication.
13721
13722 2011-04-17  Bruno Haible  <bruno@clisp.org>
13723
13724         nonblocking: Add comment.
13725         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13726
13727 2011-04-17  Bruno Haible  <bruno@clisp.org>
13728
13729         nonblocking: Add tests for sockets.
13730         * tests/test-nonblocking-socket.sh: New file.
13731         * tests/test-nonblocking-socket-main.c: New file.
13732         * tests/test-nonblocking-socket-child.c: New file.
13733         * tests/test-nonblocking-socket.h: New file.
13734         * tests/socket-server.h: New file.
13735         * tests/socket-client.h: New file.
13736         * modules/nonblocking-socket-tests: New file.
13737         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13738
13739 2011-04-17  Bruno Haible  <bruno@clisp.org>
13740
13741         nonblocking: Add tests for pipes.
13742         * tests/test-nonblocking-pipe.sh: New file.
13743         * tests/test-nonblocking-pipe-main.c: New file.
13744         * tests/test-nonblocking-pipe-child.c: New file.
13745         * tests/test-nonblocking-pipe.h: New file.
13746         * tests/test-nonblocking-writer.h: New file.
13747         * tests/test-nonblocking-reader.h: New file.
13748         * tests/test-nonblocking-misc.h: New file.
13749         * modules/nonblocking-pipe-tests: New file.
13750         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13751
13752 2011-04-16  Bruno Haible  <bruno@clisp.org>
13753
13754         gettext: Clarify the needed programmer actions.
13755         * modules/gettext (Notice): New field.
13756         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13757
13758 2011-04-16  Bruno Haible  <bruno@clisp.org>
13759
13760         strchrnul: Tweak last commit.
13761         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13762         bug.
13763         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13764         as in _GL_FUNCDECL_SYS.
13765         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13766         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13767
13768 2011-04-15  Eric Blake  <eblake@redhat.com>
13769
13770         strchrnul: work around cygwin bug
13771         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13772         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13773         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13774         * modules/string (Makefile.am): Substitute it.
13775         * lib/string.in.h (strchrnul): Use it.
13776
13777 2011-04-15  Bruno Haible  <bruno@clisp.org>
13778
13779         Don't require lib/stdio-write.c when only module 'stdio' is used.
13780         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13781         invocation.
13782         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13783
13784 2011-04-14  Bruno Haible  <bruno@clisp.org>
13785
13786         Support non-blocking pipe I/O in read() on native Windows.
13787         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13788         (read): New declaration.
13789         * lib/read.c: New file.
13790         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13791         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13792         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13793         vscanf): New declarations.
13794         * lib/stdio-read.c: New file.
13795         * m4/read.m4: New file.
13796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13797         REPLACE_READ.
13798         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13799         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13800         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13801         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13802         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13803         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13804         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13805         * modules/read: New file.
13806         * modules/nonblocking (Files): Add lib/stdio-read.c.
13807         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13808         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13809         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13810         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13811         * modules/pread (Depends-on): Add read.
13812         * modules/safe-read (Depends-on): Likewise.
13813         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13814         gets, scanf, vfscanf, vscanf): Verify signatures.
13815         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13816         problem with non-blocking pipes.
13817         * doc/posix-functions/fgetc.texi: Likewise.
13818         * doc/posix-functions/fgets.texi: Likewise.
13819         * doc/posix-functions/fread.texi: Likewise.
13820         * doc/posix-functions/fscanf.texi: Likewise.
13821         * doc/posix-functions/getc.texi: Likewise.
13822         * doc/posix-functions/getchar.texi: Likewise.
13823         * doc/posix-functions/gets.texi: Likewise.
13824         * doc/posix-functions/scanf.texi: Likewise.
13825         * doc/posix-functions/vfscanf.texi: Likewise.
13826         * doc/posix-functions/vscanf.texi: Likewise.
13827
13828 2011-04-14  Bruno Haible  <bruno@clisp.org>
13829
13830         Support non-blocking pipe I/O in write() on native Windows.
13831         * lib/write.c (rpl_write): Split a write request that failed merely
13832         because the byte count was larger than the pipe buffer's size.
13833         * doc/posix-functions/write.texi: Mention the problem with large byte
13834         counts.
13835
13836 2011-04-14  Bruno Haible  <bruno@clisp.org>
13837
13838         wchar: Ensure that wchar_t gets defined on uClibc.
13839         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13840         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13841
13842 2011-04-13  Bruno Haible  <bruno@clisp.org>
13843
13844         safe-write, full-read: Avoid unnecessary compilation units.
13845         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13846         (Depends-on): Remove safe-read. Add ssize_t.
13847         * modules/full-read (Files): Add lib/full-write.c.
13848         (Depends-on): Add full-write.
13849
13850 2011-04-13  Bruno Haible  <bruno@clisp.org>
13851
13852         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13853         * modules/pwrite (Depends-on): Add 'write'.
13854
13855 2011-04-13  Bruno Haible  <bruno@clisp.org>
13856
13857         Support non-blocking pipe I/O in write() on native Windows.
13858         * lib/unistd.in.h (write): Enable replacement also if
13859         GNULIB_UNISTD_H_NONBLOCKING is 1.
13860         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13861         (rpl_write): When failing to write on a non-blocking pipe, change
13862         errno from ENOSPC to EAGAIN.
13863         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13864         putchar, puts, vfprintf, vprintf): Enable replacement also if
13865         GNULIB_STDIO_H_NONBLOCKING is 1.
13866         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13867         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13868         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13869         CALL_WITH_SIGPIPE_EMULATION.
13870         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13871         * m4/nonblocking.m4: New file.
13872         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13873         for non-blocking I/O support.
13874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13875         GNULIB_UNISTD_H_NONBLOCKING.
13876         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13877         required for non-blocking I/O support.
13878         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13879         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13880         lib/stdio-write.c, m4/asm-underscore.m4.
13881         (Depends-on): Add stdio, unistd.
13882         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13883         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13884         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13885         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13886         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13887         problem with non-blocking pipes.
13888         * doc/posix-functions/fputc.texi: Likewise.
13889         * doc/posix-functions/fputs.texi: Likewise.
13890         * doc/posix-functions/fwrite.texi: Likewise.
13891         * doc/posix-functions/printf.texi: Likewise.
13892         * doc/posix-functions/putc.texi: Likewise.
13893         * doc/posix-functions/putchar.texi: Likewise.
13894         * doc/posix-functions/puts.texi: Likewise.
13895         * doc/posix-functions/vfprintf.texi: Likewise.
13896         * doc/posix-functions/vprintf.texi: Likewise.
13897         * doc/posix-functions/write.texi: Likewise.
13898
13899 2011-04-10  Jim Meyering  <meyering@redhat.com>
13900
13901         maint.mk: prohibit doubled words
13902         Detect them also when they're separated by a newline.
13903         There are 3 ways to customize it:
13904           - disable the test on a per file basis, as usual with rules using
13905             $(VC_LIST_EXCEPT)
13906           - replace the default doubled-word-selecting regexp (affects all files)
13907           - ignore a particular file-vs-doubled-word match
13908         I nearly used that last one to ignore the "is is" match in
13909         coreutils' NEWS file, since the text was "ls -is is ..."
13910         To do that, I would have added this line to cfg.mk:
13911           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13912         but it would have ignored any "is is" match in NEWS.
13913         Low probability, but still...
13914         Instead, I changed the text, slightly:
13915           -  ls -is is now consistent with ls -lis in ignoring values returned
13916           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13917         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13918         (prohibit_doubled_word_): Define.
13919         (sc_prohibit_doubled_word): New rule.
13920         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13921
13922 2011-04-10  Jim Meyering  <meyering@redhat.com>
13923
13924         maint: fix doubled-word typo in comment
13925         * m4/gethostname.m4: s/is is/it is/
13926         * m4/getdomainname.m4: Likewise.
13927
13928 2011-04-10  Jim Meyering  <meyering@redhat.com>
13929
13930         maint: remove doubled word: s/it it/it/
13931         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13932
13933 2011-04-10  Jim Meyering  <meyering@redhat.com>
13934
13935         maint.mk: remove useless semicolon and backslash
13936         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13937         semicolon and backslash.
13938
13939 2011-04-10  Bruno Haible  <bruno@clisp.org>
13940
13941         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13942         * modules/stdint-tests (Depends-on): Add wchar.
13943
13944 2011-04-10  Jim Meyering  <meyering@redhat.com>
13945
13946         maint: remove doubled words in comments, e.g., s/a a/a/
13947         * lib/strptime.c (day_of_the_week): s/the the/the/
13948         * tests/test-chown.h (test_chown): s/a a/a/
13949
13950         test-chown.h: correct a cast
13951         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13952         when the destination is a stat.st_gid.
13953
13954 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13955
13956         getaddrinfo: Fix test for sa_len member.
13957         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13958         include <sys/types.h> before <sys/socket.h>.
13959
13960 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13961
13962         maint: change "can not" to "cannot"
13963         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13964         boundaries.
13965
13966 2011-04-09  Jim Meyering  <meyering@redhat.com>
13967
13968         maint: change "a a" to "a"
13969         * tests/test-lchown.h (test_lchown): s/a a/a/
13970
13971         maint.mk: prohibit \<the the\>
13972         * top/maint.mk (sc_prohibit_the_the): New rule.
13973
13974         maint: fix "the the" in comment
13975         * lib/count-one-bits.h: s/the the/the/
13976
13977         maint: change "can not" to "cannot"
13978         But do not change the occurrences in maintain.texi or in
13979         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13980         * doc/gnulib-tool.texi: s/can not/cannot/
13981         * doc/posix-functions/accept.texi (accept): Likewise.
13982         * doc/posix-functions/socket.texi (socket): Likewise.
13983         * lib/mbrtowc.c: Likewise.
13984
13985         maint.mk: prohibit use of "can not"
13986         * top/maint.mk (sc_prohibit_can_not): New rule.
13987         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13988
13989 2011-04-09  Bruno Haible  <bruno@clisp.org>
13990
13991         careadlinkat: Guard against misuse of careadlinkatcwd.
13992         * lib/careadlinkat.c: Include <stdlib.h>.
13993         (careadlinkatcwd): Check that the fd argument is as expected.
13994
13995 2011-04-09  Bruno Haible  <bruno@clisp.org>
13996
13997         careadlinkat: Use common coding style.
13998         * lib/careadlinkat.c: Move gnulib includes after system includes.
13999
14000 2011-04-09  Bruno Haible  <bruno@clisp.org>
14001
14002         careadlinkat: Clarify specification.
14003         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14004         (careadlinkatcwd): Add comment.
14005         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14006
14007 2011-04-09  Bruno Haible  <bruno@clisp.org>
14008
14009         areadlinkat: Avoid link error on many platforms.
14010         * modules/areadlinkat (Depends-on): Add areadlink.
14011
14012 2011-04-09  Bruno Haible  <bruno@clisp.org>
14013
14014         allocator, careadlinkat: Fix double-inclusion guard.
14015         * lib/allocator.h: Fix double-inclusion guard.
14016         * lib/careadlinkat.h: Likewise.
14017
14018 2011-04-09  Bruno Haible  <bruno@clisp.org>
14019
14020         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14021         * lib/relocwrapper.c: Update dependencies hierarchy.
14022         * build-aux/install-reloc: Update list of files to be compiled.
14023         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14024         lib/allocator.[hc].
14025
14026 2011-04-08  Eric Blake  <eblake@redhat.com>
14027
14028         strftime: silence gnulib-tool warning
14029         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14030
14031 2011-04-08  Bruno Haible  <bruno@clisp.org>
14032
14033         verify: Fix syntax error with GCC 4.6 in C++ mode.
14034         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14035         (HAVE_STATIC_ASSERT): New macro.
14036         (verify_true, verify): Use 'static_assert' if it is supported and
14037         '_Static_assert' is not supported.
14038
14039 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14040
14041         allocator: New module.
14042         * modules/allocator, lib/allocator.c: New files.
14043         * lib/allocator.h (stdlib_allocator): New decl.
14044         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14045         Remove.  Do not include <stdlib.h>.
14046         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14047         * modules/careadlinkat (Files): Remove lib/allocator.h.
14048         (Depends-on): Add allocator.
14049
14050         stdlib: let modules use system malloc, realloc
14051         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14052         if !_GL_USE_STDLIB_ALLOC.
14053         (malloc, realloc): Limit this change to a smaller scope.
14054
14055         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14056         (malloc, realloc): Don't #undef; no longer needed.
14057         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14058         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14059         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14060         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14061         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14062         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14063         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14064         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14065
14066         careadlinkat: rename members to avoid problem
14067         * lib/allocator.h (struct allocator): Rename members from
14068         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14069         and realloc are #define'd.  Reported by Eric Blake in
14070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14071         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14072
14073 2011-04-08  Eric Blake  <eblake@redhat.com>
14074
14075         nonblocking: reduce dependency
14076         * tests/test-nonblocking.c: Only test sockets when in use.
14077         * modules/nonblocking-tests (Depends-on): Drop socket.
14078         (Makefile.am): Link even if sockets are not present.
14079         * modules/pipe2-tests (Makefile.am): Likewise.
14080         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14081
14082         pipe2: fix O_NONBLOCK support on mingw
14083         * modules/pipe2 (Depends-on): Add nonblocking.
14084         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14085         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14086         * tests/test-nonblocking.c (main): Likewise.
14087         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14088
14089         fcntl-h: fix O_ACCMODE on cygwin
14090         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14091         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14092
14093         pipe-filter: drop O_NONBLOCK workarounds
14094         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14095         * modules/pipe-filter-ii (Depends-on): Likewise.
14096         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14097
14098         nonblocking: provide O_NONBLOCK for mingw
14099         * modules/nonblocking (Depends-on): Add open.
14100         (configure.ac): Set new witness macro.
14101         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14102         * modules/fcntl-h (Makefile.am): Substitute it.
14103         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14104         nonblocking module is in use.
14105         * lib/nonblocking.c: Adjust portability test.
14106         * lib/open.c (open): Don't let native open see gnulib flag.
14107         * tests/test-fcntl-h.c (main): Enhance test.
14108         * tests/test-open.h (test_open): Likewise.
14109         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14110
14111         careadlinkat: fix compilation error on mingw
14112         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14113         within struct allocator.
14114
14115 2011-04-06  Eric Blake  <eblake@redhat.com>
14116
14117         binary-io: relicense under LGPLv2+
14118         * modules/binary-io (License): Relax to LGPLv2+.
14119         Requested for libvirt, and required by pipe2.
14120
14121 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14122
14123         verify: use _Static_assert if available
14124         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14125         (verify_true, verify): Use it if available.  This generates better
14126         diagnostics with GCC 4.6.0 and later.
14127
14128 2011-04-05  Bruno Haible  <bruno@clisp.org>
14129
14130         Remove leftover generated .h files after config.status changed.
14131
14132         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14133         GL_GENERATE_ALLOCA_H.
14134         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14135         GL_GENERATE_ALLOCA_H evaluates to false.
14136
14137         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14138         GL_GENERATE_ARGZ_H.
14139         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14140         evaluates to false.
14141
14142         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14143         GL_GENERATE_BYTESWAP_H.
14144         * modules/byteswap (Makefile.am): Remove byteswap.h if
14145         GL_GENERATE_BYTESWAP_H evaluates to false.
14146
14147         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14148         GL_GENERATE_ERRNO_H.
14149         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14150         evaluates to false.
14151
14152         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14153         GL_GENERATE_FLOAT_H.
14154         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14155         evaluates to false.
14156
14157         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14158         GL_GENERATE_FNMATCH_H.
14159         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14160         GL_GENERATE_FNMATCH_H evaluates to false.
14161
14162         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14163         GL_GENERATE_GLOB_H.
14164         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14165         evaluates to false.
14166
14167         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14168         automake conditional GL_GENERATE_ICONV_H.
14169         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14170         evaluates to false.
14171
14172         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14173         GL_GENERATE_NETINET_IN_H.
14174         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14175         GL_GENERATE_NETINET_IN_H evaluates to false.
14176
14177         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14178         conditional GL_GENERATE_PTHREAD_H.
14179         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14180         * modules/pthread (Makefile.am): Remove pthread.h if
14181         GL_GENERATE_PTHREAD_H evaluates to false.
14182
14183         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14184         GL_GENERATE_SCHED_H.
14185         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14186         evaluates to false.
14187
14188         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14189         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14190         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14191         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14192
14193         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14194         GL_GENERATE_STDARG_H.
14195         * modules/stdarg (Makefile.am): Remove stdarg.h if
14196         GL_GENERATE_STDARG_H evaluates to false.
14197
14198         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14199         GL_GENERATE_STDBOOL_H.
14200         * modules/stdbool (Makefile.am): Remove stdbool.h if
14201         GL_GENERATE_STDBOOL_H evaluates to false.
14202
14203         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14204         conditional GL_GENERATE_STDDEF_H.
14205         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14206         * modules/stddef (Makefile.am): Remove stddef.h if
14207         GL_GENERATE_STDDEF_H evaluates to false.
14208
14209         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14210         GL_GENERATE_STDINT_H.
14211         * modules/stdint (Makefile.am): Remove stdint.h if
14212         GL_GENERATE_STDINT_H evaluates to false.
14213
14214         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14215         GL_GENERATE_SYSEXITS_H.
14216         * modules/sysexits (Makefile.am): Remove sysexits.h if
14217         GL_GENERATE_SYSEXITS_H evaluates to false.
14218
14219         Reported by Karl Berry and Ralf Wildenhues.
14220
14221 2011-04-05  Bruno Haible  <bruno@clisp.org>
14222
14223         Ensure to rebuild generated .h files when config.status has changed.
14224         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14225         config.status.
14226         * modules/ctype (Makefile.am): Likewise.
14227         * modules/dirent (Makefile.am): Likewise.
14228         * modules/errno (Makefile.am): Likewise.
14229         * modules/fcntl-h (Makefile.am): Likewise.
14230         * modules/float (Makefile.am): Likewise.
14231         * modules/getopt-posix (Makefile.am): Likewise.
14232         * modules/glob (Makefile.am): Likewise.
14233         * modules/iconv-h (Makefile.am): Likewise.
14234         * modules/inttypes (Makefile.am): Likewise.
14235         * modules/langinfo (Makefile.am): Likewise.
14236         * modules/locale (Makefile.am): Likewise.
14237         * modules/math (Makefile.am): Likewise.
14238         * modules/netdb (Makefile.am): Likewise.
14239         * modules/netinet_in (Makefile.am): Likewise.
14240         * modules/poll-h (Makefile.am): Likewise.
14241         * modules/pthread (Makefile.am): Likewise.
14242         * modules/pty (Makefile.am): Likewise.
14243         * modules/sched (Makefile.am): Likewise.
14244         * modules/search (Makefile.am): Likewise.
14245         * modules/selinux-h (Makefile.am): Likewise.
14246         * modules/signal (Makefile.am): Likewise.
14247         * modules/spawn (Makefile.am): Likewise.
14248         * modules/stdarg (Makefile.am): Likewise.
14249         * modules/stdbool (Makefile.am): Likewise.
14250         * modules/stddef (Makefile.am): Likewise.
14251         * modules/stdint (Makefile.am): Likewise.
14252         * modules/stdio (Makefile.am): Likewise.
14253         * modules/stdlib (Makefile.am): Likewise.
14254         * modules/string (Makefile.am): Likewise.
14255         * modules/strings (Makefile.am): Likewise.
14256         * modules/sys_file (Makefile.am): Likewise.
14257         * modules/sys_ioctl (Makefile.am): Likewise.
14258         * modules/sys_select (Makefile.am): Likewise.
14259         * modules/sys_socket (Makefile.am): Likewise.
14260         * modules/sys_stat (Makefile.am): Likewise.
14261         * modules/sys_time (Makefile.am): Likewise.
14262         * modules/sys_times (Makefile.am): Likewise.
14263         * modules/sys_utsname (Makefile.am): Likewise.
14264         * modules/sys_wait (Makefile.am): Likewise.
14265         * modules/sysexits (Makefile.am): Likewise.
14266         * modules/termios (Makefile.am): Likewise.
14267         * modules/time (Makefile.am): Likewise.
14268         * modules/unistd (Makefile.am): Likewise.
14269         * modules/wchar (Makefile.am): Likewise.
14270         * modules/wctype-h (Makefile.am): Likewise.
14271         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
14272
14273 2011-04-05  Bruno Haible  <bruno@clisp.org>
14274
14275         pipe2: Relicense under LGPLv2+.
14276         * modules/pipe2 (License): Change to LGPLv2+.
14277         Requested by Eric Blake, for libvirt.
14278
14279 2011-04-05  Bruce Korb  <bkorb@gnu.org>
14280
14281         bootstrap: compute gnulib_extra_files after updating build_aux
14282         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
14283         change build_aux or also supply gnulib_extra_files.  Handle correctly.
14284
14285 2011-04-05  Eric Blake  <eblake@redhat.com>
14286
14287         bootstrap: preserve git whitelist item sorting
14288         * build-aux/bootstrap (sort_patterns): New function.
14289         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
14290
14291 2011-04-05  Simon Josefsson  <simon@josefsson.org>
14292
14293         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
14294         sc_space_tab check.
14295
14296 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
14297
14298         areadlink, areadlinkat: rewrite in terms of careadlinkat
14299         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
14300         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
14301         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
14302         (malloc, realloc): Remove #undefs.
14303         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
14304         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
14305         readlink, ssize_t, stdint, unistd.
14306         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
14307         areadlink, stdint.
14308
14309         careadlinkat: new module
14310         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
14311         * modules/careadlinkat: New files, written by me with
14312         a review and feedback from Ben Pfaff in
14313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
14314
14315 2011-04-01  Bruno Haible  <bruno@clisp.org>
14316
14317         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
14318         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
14319         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
14320         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
14321         Reported by Bruce Korb <bruce.korb@gmail.com>.
14322
14323 2011-04-01  Bruno Haible  <bruno@clisp.org>
14324
14325         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
14326         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
14327         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14328         * modules/wcpcpy (Depends-on): Add extensions.
14329         * modules/wcpncpy (Depends-on): Likewise.
14330         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
14331         systems.
14332         * doc/posix-functions/wcpncpy.texi: Likewise.
14333         * doc/posix-functions/wcwidth.texi: Likewise.
14334
14335 2011-03-31  Eric Blake  <eblake@redhat.com>
14336
14337         nonblocking: fix mingw test failures
14338         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
14339         non-blocking flag on regular file.
14340         (get_nonblocking_flag): Set errno on invalid fd.
14341         * tests/test-nonblocking.c (main): Avoid test failure on
14342         directories if fchdir is not active.
14343         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
14344
14345 2011-03-31  Bruno Haible  <bruno@clisp.org>
14346
14347         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
14348         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
14349         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
14350         Reported by Simon Josefsson <simon@josefsson.org>.
14351
14352 2011-03-31  Bruno Haible  <bruno@clisp.org>
14353         and Eric Blake  <eblake@redhat.com>
14354
14355         nonblocking: new module
14356         * modules/nonblocking: New module.
14357         * modules/nonblocking-tests: Likewise.
14358         * lib/nonblocking.h: New file.
14359         * lib/nonblocking.c: Likewise.
14360         * tests/test-nonblocking.c: New test.
14361         * lib/ioctl.c (ioctl) [mingw]: Update comment.
14362
14363 2011-03-30  Bruno Haible  <bruno@clisp.org>
14364
14365         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
14366         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14367         instead of 'printf' format for GCC >= 4.4.
14368         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14369         (fprintf, printf, vfprintf, vprintf): Declare with
14370         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14371         the system's vfprintf() function.
14372         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14373
14374 2011-03-30  Eric Blake  <eblake@redhat.com>
14375
14376         passfd: fix scoping bug
14377         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14378         before sendmsg/recvmsg.
14379
14380         passfd: standardize coding conventions
14381         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14382         can be learned at compile time.
14383         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14384         ifdefs.
14385         (sendfd, recvfd): Follow gnulib code conventions.
14386
14387         passfd: fix incorrect sendmsg arguments
14388         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14389         incorrect msg_controllen value.
14390         * modules/passfd-tests (Depends-on): Check for alarm.
14391         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14392         Reported by Bastien ROUCARIES.
14393
14394 2011-03-30  Bruno Haible  <bruno@clisp.org>
14395
14396         c-strcasestr: Relicense under LGPLv2+.
14397         * modules/c-strcasestr (License): Change to LGPLv2+.
14398         Requested by Eric Blake, for libvirt.
14399
14400 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14401
14402         * users.txt: Add libidn2.  Fix libtasn1 link.
14403
14404 2011-03-30  Jim Meyering  <meyering@redhat.com>
14405
14406         tests: readlink* ("",... fails with EINVAL on newer kernels
14407         readlink and readlinkat have typically failed with ENOENT for
14408         the invalid, empty file name,  "".  However, with the advent
14409         of linux-2.6.39, they fail with EINVAL.
14410         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14411         when operating on the empty file name.
14412         * tests/test-readlink.h (test_readlink): Likewise.
14413
14414 2011-03-29  Bruno Haible  <bruno@clisp.org>
14415
14416         Relicense some modules under LGPLv2+, for libidn2.
14417         * modules/array-mergesort (License): Change to LGPLv2+.
14418         * modules/c-strcaseeq (License): Likewise.
14419         * modules/striconveh (License): Likewise.
14420         * modules/striconveha (License): Likewise.
14421         * modules/uniconv/base (License): Likewise.
14422         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14423         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14424         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14425         * modules/unictype/base (License): Likewise.
14426         * modules/unictype/bidiclass-of (License): Likewise.
14427         * modules/unictype/category-M (License): Likewise.
14428         * modules/unictype/category-none (License): Likewise.
14429         * modules/unictype/category-of (License): Likewise.
14430         * modules/unictype/category-test (License): Likewise.
14431         * modules/unictype/category-test-withtable (License): Likewise.
14432         * modules/unictype/combining-class (License): Likewise.
14433         * modules/unictype/joiningtype-of (License): Likewise.
14434         * modules/unictype/scripts (License): Likewise.
14435         * modules/uninorm/base (License): Likewise.
14436         * modules/uninorm/canonical-decomposition (License): Likewise.
14437         * modules/uninorm/composition (License): Likewise.
14438         * modules/uninorm/decompose-internal (License): Likewise.
14439         * modules/uninorm/decomposition-table (License): Likewise.
14440         * modules/uninorm/nfc (License): Likewise.
14441         * modules/uninorm/nfd (License): Likewise.
14442         * modules/uninorm/u32-normalize (License): Likewise.
14443         * modules/unistr/base (License): Likewise.
14444         * modules/unistr/u32-cpy (License): Likewise.
14445         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14446         * modules/unistr/u32-to-u8 (License): Likewise.
14447         * modules/unistr/u32-uctomb (License): Likewise.
14448         * modules/unistr/u8-check (License): Likewise.
14449         * modules/unistr/u8-mblen (License): Likewise.
14450         * modules/unistr/u8-mbtouc (License): Likewise.
14451         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14452         * modules/unistr/u8-mbtoucr (License): Likewise.
14453         * modules/unistr/u8-prev (License): Likewise.
14454         * modules/unistr/u8-strlen (License): Likewise.
14455         * modules/unistr/u8-to-u32 (License): Likewise.
14456         * modules/unistr/u8-uctomb (License): Likewise.
14457         * modules/unitypes (License): Likewise.
14458         Requested by Simon Josefsson.
14459
14460 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14461
14462         lib-symbol-visibility: Add a notice.
14463         * modules/lib-symbol-visibility (Notice): New field.
14464
14465 2011-03-29  Bruno Haible  <bruno@clisp.org>
14466
14467         getaddrinfo: Doc fix.
14468         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14469         section "fixed in Gnulib".
14470
14471 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14472
14473         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14474         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14475
14476 2011-03-26  Bruno Haible  <bruno@clisp.org>
14477
14478         unictype/property-byname: Reduce the number of load-time relocations.
14479         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14480         (UC_PROPERTY_INDEX_*): New enumeration values.
14481         (uc_property_byname): Convert an index from the lookup table to an
14482         uc_property_t.
14483         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14484         values.
14485
14486 2011-03-26  Bruno Haible  <bruno@clisp.org>
14487
14488         unictype/property-byname: Allow omitted word separators and aliases.
14489         * lib/unictype/pr_byname.gperf: Add property names without word
14490         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14491         for 'space'.
14492
14493 2011-03-26  Bruno Haible  <bruno@clisp.org>
14494
14495         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14496         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14497         also hyphens to space.
14498         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14499         without spaces.
14500         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14501
14502 2011-03-26  Bruno Haible  <bruno@clisp.org>
14503
14504         unictype/joiningtype-byname: Recognize long names as well.
14505         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14506         a long name.
14507         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14508         unictype/joiningtype_byname.h.
14509         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14510         * lib/unictype/joiningtype_byname.gperf: New file.
14511         * modules/unictype/joiningtype-byname (Files): Add
14512         lib/unictype/joiningtype_byname.gperf.
14513         (Depends-on): Add gperf.
14514         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14515         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14516         long names.
14517
14518         Tests for module 'unictype/joiningtype-longname'.
14519         * modules/unictype/joiningtype-longname-tests: New file.
14520         * tests/unictype/test-joiningtype_longname.c: New file.
14521
14522         New module 'unictype/joiningtype-longname'.
14523         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14524         * lib/unictype/joiningtype_longname.c: New file.
14525         * modules/unictype/joiningtype-longname: New file.
14526         * modules/unictype/joiningtype-all (Depends-on): Add
14527         unictype/joiningtype-longname.
14528
14529 2011-03-26  Bruno Haible  <bruno@clisp.org>
14530
14531         unictype/bidiclass-byname: Recognize long names as well.
14532         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14533         name.
14534         * lib/unictype/bidi_byname.c: Include <string.h>,
14535         unictype/bidi_byname.h.
14536         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14537         * lib/unictype/bidi_byname.gperf: New file.
14538         * modules/unictype/bidiclass-byname (Files): Add
14539         lib/unictype/bidi_byname.gperf.
14540         (Depends-on): Add gperf.
14541         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14542         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14543         long names.
14544
14545         Tests for module 'unictype/bidiclass-longname'.
14546         * modules/unictype/bidiclass-longname-tests: New file.
14547         * tests/unictype/test-bidi_longname.c: New file.
14548
14549         New module 'unictype/bidiclass-longname'.
14550         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14551         * lib/unictype/bidi_longname.c: New file.
14552         * modules/unictype/bidiclass-longname: New file.
14553         * modules/unictype/bidiclass-all (Depends-on): Add
14554         unictype/bidiclass-longname.
14555
14556 2011-03-26  Bruno Haible  <bruno@clisp.org>
14557
14558         unictype/bidi*: Rename modules.
14559         * modules/unictype/bidiclass-all: Renamed from
14560         modules/unictype/bidicategory-all.
14561         * modules/unictype/bidiclass-name: Renamed from
14562         modules/unictype/bidiclass-name.
14563         (Description): Update.
14564         * modules/unictype/bidiclass-name-tests: Renamed from
14565         modules/unictype/bidicategory-name-tests.
14566         * modules/unictype/bidiclass-byname: Renamed from
14567         modules/unictype/bidicategory-byname.
14568         (Description): Update.
14569         * modules/unictype/bidiclass-byname-tests: Renamed from
14570         modules/unictype/bidicategory-byname-tests.
14571         * modules/unictype/bidiclass-of: Renamed from
14572         modules/unictype/bidicategory-of.
14573         (Description): Update.
14574         * modules/unictype/bidiclass-of-tests: Renamed from
14575         modules/unictype/bidicategory-of-tests.
14576         * modules/unictype/bidiclass-test: Renamed from
14577         modules/unictype/bidicategory-test.
14578         (Description): Update.
14579         * modules/unictype/bidiclass-test-tests: Renamed from
14580         modules/unictype/bidicategory-test-tests.
14581         * modules/unictype/bidicategory-all: New file, a simple redirection.
14582         * modules/unictype/bidicategory-name: Likewise.
14583         * modules/unictype/bidicategory-byname: Likewise.
14584         * modules/unictype/bidicategory-of: Likewise.
14585         * modules/unictype/bidicategory-test: Likewise.
14586         * modules/unictype/property-bidi-* (Dependencies): Update.
14587         * lib/unictype/bidi_*.c: Update comment.
14588
14589 2011-03-26  Bruno Haible  <bruno@clisp.org>
14590
14591         unictype/bidi*: Rename functions, part 2.
14592         * modules/unictype/bidicategory-name (configure.ac): Update required
14593         libunistring version.
14594         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14595
14596 2011-03-25  Bruno Haible  <bruno@clisp.org>
14597
14598         New module 'unictype/combining-class-all'.
14599         * modules/unictype/combining-class-all: New file.
14600
14601         Tests for module 'unictype/combining-class-byname'.
14602         * modules/unictype/combining-class-byname-tests: New file.
14603         * tests/unictype/test-combiningclass_byname.c: New file.
14604
14605         New module 'unictype/combining-class-byname'.
14606         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14607         * lib/unictype/combiningclass_byname.c: New file.
14608         * lib/unictype/combiningclass_byname.gperf: New file.
14609         * modules/unictype/combining-class-byname: New file.
14610
14611         Tests for module 'unictype/combining-class-longname'.
14612         * modules/unictype/combining-class-longname-tests: New file.
14613         * tests/unictype/test-combiningclass_longname.c: New file.
14614
14615         New module 'unictype/combining-class-longname'.
14616         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14617         * lib/unictype/combiningclass_longname.c: New file.
14618         * modules/unictype/combining-class-longname: New file.
14619
14620         Tests for module 'unictype/combining-class-name'.
14621         * modules/unictype/combining-class-name-tests: New file.
14622         * tests/unictype/test-combiningclass_name.c: New file.
14623
14624         New module 'unictype/combining-class-name'.
14625         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14626         * lib/unictype/combiningclass_name.c: New file.
14627         * modules/unictype/combining-class-name: New file.
14628
14629 2011-03-25  Bruno Haible  <bruno@clisp.org>
14630
14631         unictype/combining-class: Rename source files.
14632         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14633         of unictype/combining.h.
14634         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14635         Update.
14636         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14637         * modules/unictype/combining-class (Description): Fix.
14638         (Files, Makefile.am): Update.
14639         * tests/unictype/test-combiningclass.c: Renamed from
14640         tests/unictype/test-combining.c.
14641         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14642
14643 2011-03-25  Bruno Haible  <bruno@clisp.org>
14644
14645         unictype: Update list of canonical combining classes.
14646         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14647
14648 2011-03-25  Bruno Haible  <bruno@clisp.org>
14649
14650         unictype/category-byname: Recognize long names as well.
14651         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14652         a long name.
14653         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14654         unictype/categ_byname.h.
14655         (UC_CATEGORY_INDEX_*): New enumeration values.
14656         (uc_general_category_byname): Use uc_general_category_lookup and
14657         convert from index to value.
14658         * lib/unictype/categ_byname.gperf: New file.
14659         * modules/unictype/category-byname (Files): Add
14660         lib/unictype/categ_byname.gperf.
14661         (Depends-on): Add gperf.
14662         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14663         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14664         long names.
14665
14666         Tests for module 'unictype/category-longname'.
14667         * modules/unictype/category-longname-tests: New file.
14668         * tests/unictype/test-categ_longname.c: New file.
14669
14670         New module 'unictype/category-longname'.
14671         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14672         * lib/unictype/categ_longname.c: New file.
14673         * modules/unictype/category-longname: New file.
14674         * modules/unictype/category-all (Depends-on): Add it.
14675
14676 2011-03-25  Bruno Haible  <bruno@clisp.org>
14677
14678         Tests for module 'unictype/category-LC'.
14679         * modules/unictype/category-LC-tests: New file.
14680         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14681
14682         New module 'unictype/category-LC'.
14683         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14684         (UC_CATEGORY_LC): New declaration.
14685         (UC_CASED_LETTER): New macro.
14686         * lib/gen-uni-tables.c (is_category_LC): New function.
14687         (output_categories): Also handle category LC.
14688         (UC_CATEGORY_MASK_LC): New enumeration value.
14689         (general_category_byname): Also handle category LC.
14690         * lib/unictype/categ_LC.c: New file.
14691         * lib/unictype/categ_LC.h: New file, automatically generated.
14692         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14693         category LC.
14694         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14695         * modules/unictype/category-LC: New file.
14696         * modules/unictype/category-byname (Depends-on): Add
14697         unictype/category-LC.
14698         * modules/unictype/category-all (Depends-on): Likewise.
14699
14700 2011-03-25  Eric Blake  <eblake@redhat.com>
14701
14702         xmalloc: revert yesterday's regression
14703         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14704         realloc's underlying behavior (allowing allocation of zero-size
14705         objects, especially if malloc-gnu is also in use).
14706
14707 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14708
14709         maint.mk: add missing version to VC-tag
14710         * top/maint.mk: git tag was missing actual tag name; add it.
14711
14712         valgrind: do leak checking, and exit with code 1 on error (not 0)
14713         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14714         to VALGRIND.
14715
14716 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14717
14718         posix-modules: say what it does.
14719         * posix-modules: Add a line to the --help output saying what it does.
14720
14721 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14722
14723         xmalloc: Do not leak if underlying realloc is C99 compatible.
14724         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14725         This avoids a leak on C99-based systems.  See
14726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14727
14728 2011-03-24  Eric Blake  <eblake@redhat.com>
14729
14730         realloc: document portability problem
14731         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14732         passing 0 size to realloc.
14733
14734 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14735
14736         doc: update users.txt
14737         * users.txt: Add cvsps, tmpwatch
14738
14739 2011-03-23  Matt Rice  <ratmice@gmail.com>
14740
14741         doc: update users.txt
14742         * users.txt: Add gdb.
14743
14744 2011-03-23  Jim Meyering  <meyering@redhat.com>
14745
14746         doc: update users.txt
14747         Looking through matches up to the following URL (there are still
14748         several more pages), I found several projects that use gnulib:
14749         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14750         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14751         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14752
14753 2011-03-22  Bruno Haible  <bruno@clisp.org>
14754
14755         unictype/bidi*: Rename functions.
14756         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14757         uc_bidi_class, uc_is_bidi_class): New declarations.
14758         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14759         uc_bidi_category_byname.
14760         (uc_bidi_category_byname): New function.
14761         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14762         u_bidi_category_name.
14763         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14764         (uc_bidi_category_name): New function.
14765         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14766         uc_bidi_category.
14767         (uc_bidi_category): New function.
14768         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14769         uc_is_bidi_category. Invoke uc_bidi_class.
14770         (uc_is_bidi_category): New function.
14771         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14772         instead of uc_bidi_category_byname.
14773         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14774         instead of uc_bidi_category_name.
14775         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14776         uc_bidi_category.
14777         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14778         instead of uc_is_bidi_category.
14779
14780 2011-03-21  Bruno Haible  <bruno@clisp.org>
14781
14782         New module 'unictype/joininggroup-all'.
14783         * modules/unictype/joininggroup-all: New file.
14784
14785         Tests for module 'unictype/joininggroup-of'.
14786         * modules/unictype/joininggroup-of-tests: New file.
14787         * tests/unictype/test-joininggroup_of.c: New file.
14788         * tests/unictype/test-joininggroup_of.h: New file, automatically
14789         generated by gen-uni-tables.
14790
14791         New module 'unictype/joininggroup-of'.
14792         * modules/unictype/joininggroup-of: New file.
14793         * lib/unictype/joininggroup_of.c: New file.
14794         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14795         gen-uni-tables.
14796
14797         Tests for module 'unictype/joininggroup-byname'.
14798         * modules/unictype/joininggroup-byname-tests: New file.
14799         * tests/unictype/test-joininggroup_byname.c: New file.
14800
14801         New module 'unictype/joininggroup-byname'.
14802         * modules/unictype/joininggroup-byname: New file.
14803         * lib/unictype/joininggroup_byname.c: New file.
14804         * lib/unictype/joininggroup_byname.gperf: New file.
14805
14806         Tests for module 'unictype/joininggroup-name'.
14807         * modules/unictype/joininggroup-name-tests: New file.
14808         * tests/unictype/test-joininggroup_name.c: New file.
14809
14810         New module 'unictype/joininggroup-name'.
14811         * modules/unictype/joininggroup-name: New file.
14812         * lib/unictype/joininggroup_name.c: New file.
14813         * lib/unictype/joininggroup_name.h: New file.
14814
14815         New module 'unictype/joiningtype-all'.
14816         * modules/unictype/joiningtype-all: New file.
14817
14818         Tests for module 'unictype/joiningtype-of'.
14819         * modules/unictype/joiningtype-of-tests: New file.
14820         * tests/unictype/test-joiningtype_of.c: New file.
14821         * tests/unictype/test-joiningtype_of.h: New file, automatically
14822         generated by gen-uni-tables.
14823
14824         New module 'unictype/joiningtype-of'.
14825         * modules/unictype/joiningtype-of: New file.
14826         * lib/unictype/joiningtype_of.c: New file.
14827         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14828         gen-uni-tables.
14829
14830         Tests for module 'unictype/joiningtype-byname'.
14831         * modules/unictype/joiningtype-byname-tests: New file.
14832         * tests/unictype/test-joiningtype_byname.c: New file.
14833
14834         New module 'unictype/joiningtype-byname'.
14835         * modules/unictype/joiningtype-byname: New file.
14836         * lib/unictype/joiningtype_byname.c: New file.
14837
14838         Tests for module 'unictype/joiningtype-name'.
14839         * modules/unictype/joiningtype-name-tests: New file.
14840         * tests/unictype/test-joiningtype_name.c: New file.
14841
14842         New module 'unictype/joiningtype-name'.
14843         * modules/unictype/joiningtype-name: New file.
14844         * lib/unictype/joiningtype_name.c: New file.
14845
14846         unictype: Add support for Arabic shaping properties.
14847         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14848         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14849         declarations.
14850         (UC_JOINING_GROUP_*): New enumeration values.
14851         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14852         declarations.
14853         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14854         (unicode_joining_type): New variable.
14855         (UC_JOINING_GROUP_*): New enumeration values.
14856         (unicode_joining_group): New variable.
14857         (fill_arabicshaping, joining_type_as_c_identifier,
14858         output_joining_type_test, output_joining_type,
14859         joining_group_as_c_identifier, output_joining_group_test,
14860         output_joining_group): New functions.
14861         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14862         fill_arabicshaping and output_joining_type_test, output_joining_type,
14863         output_joining_group_test, output_joining_group.
14864         Reported by Simon Josefsson.
14865
14866 2011-03-21  Jim Meyering  <meyering@redhat.com>
14867
14868         strftime: fix a bug in yesterday's change
14869         * lib/strftime.c (add): Accommodate width's initial value of -1.
14870         Otherwise, nstrftime would copy uninitialized data into
14871         the result buffer.
14872
14873 2011-03-21  Jim Meyering  <meyering@redhat.com>
14874
14875         tests: add strftime-tests module
14876         * tests/test-strftime.c: New file.
14877         * modules/strftime-tests: New module.
14878
14879 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14880
14881         strftime: don't assume a byte count fits in 'int'
14882         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14883         found this problem by static analysis, using gcc -Wstrict-overflow
14884         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14885         on an integer overflow having undefined behavior, but it turns out
14886         that the argument is a size, which might not fit in 'int' anyway,
14887
14888 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14889
14890         stdio: don't require ignore_value around fwrite
14891
14892         This patch works around libc bug 11959
14893         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14894         Without this patch, applications must often write
14895         ignore_value (fwrite (...)) even though the ignore_value is
14896         not helpful here.  It's common to write many objects, using
14897         fwrite/printf/etc., and then use ferror to detect output error.
14898
14899         I considered making this patch optional, but decided against it,
14900         because libc is obviously being inconsistent here: there is no
14901         reason libc should insist that user code must inspect fwrite
14902         return's value without also insisting that it inspect printf's,
14903         putchar's, etc.  If user code wants to have a strict style where
14904         all these functions' values are checked (so that ferror need not
14905         be checked), we could add support for that style in a new gnulib
14906         module, but in the meantime it's better to be consistent and to
14907         support common usage.
14908
14909         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14910         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14911         that we are compiling in checking mode, and if not C++, and
14912         if not already wrapping fwrite for some other reason.
14913         (fwrite): #define to rpl_fwrite if the latter is defined.
14914
14915 2011-03-20  Bruno Haible  <bruno@clisp.org>
14916
14917         verror: Fix compilation error introduced on 2011-02-13.
14918         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14919         instead of __attribute__.
14920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14921
14922 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14923             Bruno Haible  <bruno@clisp.org>
14924
14925         socklen: do not depend on sys_socket
14926         While trying to modify Emacs to use gnulib's socklen module,
14927         I discovered a circular dependency: socklen depends on sys_socket
14928         and vice versa.  Emacs can use socklen, but it does not need
14929         sys_socket because it has its own substitute for sys/socket.h.
14930         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14931         gl_TYPE_SOCKLEN_T.
14932         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14933         gl_PREREQ_SYS_H_SOCKET.
14934         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14935         gl_PREREQ_SYS_H_SOCKET.
14936         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14937         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14938         * modules/socklen (Depends-on): Do not depend on sys_socket.
14939         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14940
14941 2011-03-20  Jim Meyering  <meyering@redhat.com>
14942
14943         maint.mk: sort file names *after* new transformation
14944         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14945         prefix would have led to an unwarranted failure in GNU parted.
14946         Sort after that transformation.
14947
14948 2011-03-19  Jim Meyering  <meyering@redhat.com>
14949
14950         maint.mk: fix po-file syntax-check rule
14951         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14952         Patch by Bruno Haible.
14953
14954 2011-03-19  Bruno Haible  <bruno@clisp.org>
14955
14956         socklen: Update comment.
14957         * m4/socklen.m4: Update comment about platforms.
14958
14959 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14960             Bruno Haible  <bruno@clisp.org>
14961
14962         inet_ntop, inet_pton: Simplify.
14963         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14964         documented to provide socklen_t and we already depend on sys_socket.
14965         * modules/inet_pton (Depends-on): Likewise.
14966         * lib/arpa_inet.in.h: Adjust comment.
14967
14968 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14969             Bruno Haible  <bruno@clisp.org>
14970
14971         netdb: Simplify.
14972         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14973         documented to provide socklen_t and we already depend on sys_socket.
14974         * lib/netdb.in.h: Adjust comment.
14975
14976 2011-03-19  Bruno Haible  <bruno@clisp.org>
14977
14978         sys_socket, netdb: Document problem with socklen_t.
14979         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14980         platforms.
14981         * doc/posix-headers/netdb.texi: Likewise.
14982
14983 2011-03-18  Eric Blake  <eblake@redhat.com>
14984
14985         maint.mk: let po check work in VPATH build
14986         * top/maint.mk (po_file): Allow cfg.mk override.
14987         (sc_po_check): Allow VPATH use.
14988         Reported by Jiri Denemark.
14989
14990 2011-03-16  Jim Meyering  <meyering@redhat.com>
14991
14992         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14993         Before, you would have had to create one .x-sc_ file per rule in order
14994         to exempt offending files.  Now, you may instead use a Make variable --
14995         usually defined in cfg.mk -- whose name identifies the affected rule.
14996         * top/maint.mk (_sc_excl): Define.
14997         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14998         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14999
15000 2011-03-13  Bruno Haible  <bruno@clisp.org>
15001
15002         ignore-value tests: Avoid warnings.
15003         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15004         empty for gcc < 3.4.
15005
15006 2011-03-13  Bruno Haible  <bruno@clisp.org>
15007
15008         passfd: Fix link error on Solaris.
15009         * modules/passfd (Description): Correct.
15010         (Depends-on): Add socketlib.
15011         (Link): New section.
15012         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15013
15014 2011-03-13  Bruno Haible  <bruno@clisp.org>
15015
15016         passfd: Fix link error on AIX 5.2.
15017         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15018
15019 2011-03-13  Bruno Haible  <bruno@clisp.org>
15020
15021         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15022         * lib/sys_socket.in.h: Include <stddef.h>.
15023         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15024         CMSG_FIRSTHDR. Remove unused variable.
15025
15026 2011-03-13  Bruno Haible  <bruno@clisp.org>
15027
15028         passfd: Fix compilation error on OpenBSD.
15029         * lib/passfd.c: Include <sys/uio.h>.
15030
15031 2011-03-13  Bruno Haible  <bruno@clisp.org>
15032
15033         passfd test: Fix warnings.
15034         * tests/test-passfd.c: Include <sys/wait.h>.
15035         (main): Fix typo.
15036
15037 2011-03-13  Bruno Haible  <bruno@clisp.org>
15038
15039         passfd module, part 4, tweaks.
15040         * tests/test-passfd.c: Reorder includes.
15041         (main): Fix perror and printf calls.
15042
15043 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15044
15045         passfd module, part 4.
15046         * modules/passfd-tests: New file.
15047         * tests/test-passfd.c: New file.
15048
15049 2011-03-13  Jim Meyering  <meyering@redhat.com>
15050
15051         Makefile: rely on GNU make; derive syntax-check rule names
15052         Rather than requiring that each sc_ rule be listed as a dependent
15053         of "check", use features of GNU make to derive the list.
15054         * Makefile (syntax-check-rules): Define.
15055         (check): Depend on the new variable, not the hard-coded list.
15056
15057 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15058             Bruno Haible  <bruno@clisp.org>
15059
15060         passfd module, part 3.
15061         * lib/passfd.h (recvfd): Add a flags argument.
15062         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15063         (recvfd): Add a flags argument.
15064         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15065         exists.
15066         * modules/passfd (Depends-on): Add cloexec.
15067         Suggested by Eric Blake.
15068
15069 2011-03-13  Bruno Haible  <bruno@clisp.org>
15070
15071         passfd module, part 2, tweaks.
15072         * modules/passfd (Files): Reorder.
15073         (Depends-on): Remove errno.
15074         (Include): Remove <sys/socket.h>, <sys/un.h>.
15075         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15076         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15077         specification header. Include <sys/socket.h> always. Don't include
15078         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15079         (sendfd): Clarify that it sets errno when it fails.
15080         (recvfd): Fix specification.
15081
15082 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15083
15084         passfd module, part 2.
15085         * modules/passfd: New file.
15086         * lib/passfd.h: New file.
15087         * lib/passfd.c: New file.
15088
15089 2011-03-12  Bruno Haible  <bruno@clisp.org>
15090
15091         wcswidth, mbswidth: Avoid integer overflow.
15092         * lib/wcswidth.c: Include <limits.h>.
15093         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15094         * lib/mbswidth.c: Include <limits.h>.
15095         (mbsnwidth): Avoid 'int' overflow.
15096         Reported by Jim Meyering.
15097
15098 2011-03-12  Bruno Haible  <bruno@clisp.org>
15099
15100         futimens, utimensat: Avoid endless recursion on Solaris 10.
15101         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15102         Solaris.
15103         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15104         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15105
15106 2011-03-11  Jim Meyering  <meyering@redhat.com>
15107
15108         maint.mk: relax a regexp to accommodate other formatting styles
15109         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15110         between "ngettext" and the following "(".
15111
15112 2011-03-11  Pádraig Brady <P@draigBrady.com>
15113
15114         maint.mk: suppress a false positive warning
15115         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15116         diagnostics are marked with ngettext.
15117
15118 2011-03-10  Eric Blake  <eblake@redhat.com>
15119
15120         wchar: add explicit dependencies, for Tru64
15121         * modules/mbmemcasecoll (Depends-on): Add wchar.
15122         * modules/mbtowc (Depends-on): Likewise.
15123         * modules/vasnprintf (Depends-on): Likewise.
15124         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15125         * modules/wctomb (Depends-on): Likewise.
15126         Reported by Peter O'Gorman.
15127
15128 2011-03-08  Bruno Haible  <bruno@clisp.org>
15129
15130         passfd module, part 1, tweaks.
15131         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15132         Improve indentation. Improve AC_MSG_CHECKING messages.
15133         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15134         gl_SOCKET_FAMILIES.
15135
15136 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15137
15138         passfd module, part 1.
15139         * m4/afunix.m4: New file.
15140         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15141         sockets.
15142
15143 2011-03-08  Bruno Haible  <bruno@clisp.org>
15144
15145         regex-quote: New API.
15146         * lib/regex-quote.h: Include <stdbool.h>.
15147         (struct regex_quote_spec): New type.
15148         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15149         New declarations.
15150         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15151         'const struct regex_quote_spec *' argument.
15152         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15153         (pcre_special): New constant.
15154         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15155         New functions.
15156         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15157         'const struct regex_quote_spec *' argument.
15158         * modules/regex-quote (Depends-on): Add stdbool.
15159         * tests/test-regex-quote.c (check): Update for new API. Add test for
15160         anchored results.
15161         * NEWS: Mention the API change.
15162         Reported by Reuben Thomas and Eric Blake.
15163
15164 2011-03-06  Bruno Haible  <bruno@clisp.org>
15165
15166         regex-quote: Fix creation of POSIX extended regular expressions.
15167         * lib/regex-quote.c (ere_special): Add grouping and alternation
15168         operators.
15169
15170 2011-03-05  Bruno Haible  <bruno@clisp.org>
15171
15172         doc: Improve doc regarding autopoint vs. gnulib.
15173         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15174         disable autopoint while running autoreconf.
15175         Suggested by Ralf Wildenhues.
15176
15177 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15178
15179         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15180         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15181
15182 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15183
15184         parse-duration: remove xalloc.h dependency
15185         * lib/parse-duration.c (parse_period): handle NULL return from
15186         strdup instead of calling xstrdup().
15187         * modules/parse-duration: remove "xalloc" dependency
15188
15189 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15190
15191         bootstrap: honor m4_base when running aclocal
15192         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15193
15194 2011-03-02  Jim Meyering  <meyering@redhat.com>
15195
15196         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15197         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15198         on request from Matt Booth.
15199
15200 2011-03-01  Eric Blake  <eblake@redhat.com>
15201
15202         test-link: work on Hurd
15203         * tests/test-link.h (test_link): Hurd rejects linking directories
15204         with EISDIR instead of the POSIX-mandated EPERM.
15205
15206 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15207
15208         stdio: simplify by moving files to printf-posix, sigpipe
15209         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15210         since this symbol is needed only if printf is replaced.
15211         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15212         Require gl_ASM_SYMBOL_PREFIX.
15213         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15214         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15215         (Depends-on): Add 'raise'.
15216         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15217         * modules/stdio (Files): Remove lib/stdio-write.c,
15218         m4/asm-underscore.m4.
15219         (Depends-on): Remove 'raise'.
15220
15221         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15222         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15223         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15224         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15225
15226 2011-02-28  Bruno Haible  <bruno@clisp.org>
15227
15228         localcharset: Assume ANSI C behaviour of free().
15229         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15230         calling free().
15231         Suggested by Simon Josefsson <simon@josefsson.org>.
15232
15233 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15234             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15235             Bruno Haible  <bruno@clisp.org>  (tiny change)
15236
15237         On Cygwin, use /proc file system instead of win32 API.
15238         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
15239         Win32 file names.
15240         (DllMain): Simplify by removing Cygwin specific code.
15241         (find_shared_library_fullname): Use Linux specific implementation also
15242         for Cygwin.
15243         (get_shared_library_fullname): Update accordingly.
15244         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
15245         Win32 file names.
15246         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
15247         Cygwin specific code.
15248
15249 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
15250             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
15251
15252         Fix OpenMP flag detection for various Fortran compilers.
15253         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
15254         OpenMP-conditional compilation construct, to force compile
15255         failure with missing OpenMP flag.
15256         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
15257
15258 2011-02-25  Eric Blake  <eblake@redhat.com>
15259
15260         strstr: expand test coverage
15261         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
15262         compilation.
15263         * tests/test-memmem.c (main): Duplicate tests.
15264         * tests/test-strcasestr.c (main): Likewise.
15265         * tests/test-c-strcasestr.c (main): Likewise.
15266
15267 2011-02-25  Jim Meyering  <meyering@redhat.com>
15268
15269         maint.mk: detect missing-NL-at-EOF, too
15270         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
15271         it also detects when a file lacks a newline at EOF.
15272         (require_exactly_one_NL_at_EOF_): Renamed from
15273         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
15274         since people may well have .x-sc_... file names tied to the
15275         existing name.  Suggested by Eric Blake.
15276
15277 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15278
15279         dirname: move m4/dos.m4 functionality into lib/dosname.h
15280
15281         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
15282         extracts symbols from it, puts them into config.h; but it's much
15283         easier to use the symbols directly.  filename.h already does this,
15284         but it disagrees with dos.m4 in some respects.  This patch
15285         introduces a different include file dosname.h that packages up
15286         dos.m4, and then later we can work on merging filename.h and
15287         dosname.h.  Applications that need only the easy-to-configure
15288         symbols should consider including dosname.h rather than dirname.h.
15289         * NEWS: Mention incompatible changes.
15290         * m4/dos.m4: Remove.
15291         * lib/dosname.h, modules/dosname: New files.
15292         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
15293         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
15294         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
15295         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
15296         Include dosname.h, not dirname.h.
15297         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
15298         Include dosname.h, for definitions of symbols like ISSLASH
15299         that used to be in config.h.
15300         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
15301         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15302         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15303         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15304         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
15305         * modules/rmdir (Files): Likewise.
15306         * modules/stat (Files): Likewise.
15307         * modules/unlink (Files): Likewise.
15308         * modules/dirname-lgpl (Depends-on): Add dosname.
15309         * modules/lstat (Depends-on): Likewise.
15310         * modules/openat (Depends-on): Likewise.
15311         * modules/rmdir (Depends-on): Likewise.
15312         * modules/savewd (Depends-on): Likewise.
15313         * modules/stat (Depends-on): Likewise.
15314         * modules/unlink (Depends-on): Likewise.
15315         * modules/openat (Depends-on): Remove dirname-lgpl.
15316         * modules/savewd (Depends-on): Likewise.
15317         * tests/test-dirname.c: Do not use removed symbols like
15318         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
15319         the remaining symbols, e.g., ISSLASH ('\\').
15320
15321 2011-02-25  Eric Blake  <eblake@redhat.com>
15322
15323         strstr: revert patches that introduced bug and pessimization
15324         * lib/str-two-way.h: Add another reference.
15325         (two_way_short_needle, two_way_long_needle): Revert changes from
15326         2011-02-24; they pessimize search speed.
15327         (critical_factorization): Partially revert changes from
15328         2010-06-22; they violate the requirement that the left half of the
15329         needle be smaller than the period of the needle.
15330
15331 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15332
15333         filenamecat: remove unnecessary dependency on dirname-lgpl
15334         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
15335         is no direct dependency, just an indirect one via filenamecat-lgpl.
15336
15337         remove: remove unnecessary use of m4/dos.m4
15338         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
15339         * modules/remove (FILES): Remove m4/dos.m4.
15340
15341         * lib/openat-proc.c: Don't include dirname.h; not needed.
15342
15343         backupfile: remove unnecessary use of m4/dos.m4
15344         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
15345         of its symbols are used by the backupfile code.  backupfile.c does
15346         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
15347         for the rare case of programs that want all their backup file
15348         names to live within 8+3 limits, and dos.m4 doesn't address that.
15349         * modules/backupfile (Files): Remove m4/dos.m4.
15350
15351 2011-02-24  Jim Meyering  <meyering@redhat.com>
15352
15353         strstr: fix a bug whereby strstr would mistakenly return NULL
15354         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
15355         in period calculation.
15356         (two_way_long_needle): Likewise.
15357         The original problem was reported by Mike Stump in
15358         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
15359         Ralf Wildenhues provided the short needle and haystack.
15360         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
15361         Add a more involved test to trigger the bug in two_way_long_needle.
15362
15363 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15364
15365         gnulib-tool: remove use of bold display in help screen
15366         * gnulib-tool (func_usage): Do not use bold display anymore in the
15367         help screen.  That was just meant to be a temporary emphasis for a
15368         backward-incompatible change.
15369
15370 2011-02-23  Bruno Haible  <bruno@clisp.org>
15371
15372         Fix misindentation of preprocessor directives.
15373         * lib/argp-namefrob.h: Reindent preprocessor directives.
15374         * lib/getopt_int.h (struct _getopt_data): Likewise.
15375         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15376         * lib/vasnprintf.c (decode_long_double): Likewise.
15377         * tests/test-argmatch.c: Insert blank lines, for clarity.
15378         * tests/test-exclude.c: Likewise.
15379
15380 2011-02-22  Bruno Haible  <bruno@clisp.org>
15381
15382         ioctl: Fix for MacOS X in 64-bit mode.
15383         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15384         value.
15385         Suggested by Eric Blake.
15386         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
15387
15388 2011-02-22  Jim Meyering  <meyering@redhat.com>
15389
15390         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15391         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15392         in lib/.
15393
15394 2011-02-22  Eric Blake  <eblake@redhat.com>
15395
15396         maint: avoid any CDPATH issue
15397         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15398
15399         maint: adjust cpp indentation for my modules, as well
15400         * Makefile (sc_cpp_indent_check): Add my name.
15401         * lib/fbufmode.c: Filter through cppi.
15402         * lib/fpurge.c: Likewise.
15403         * lib/freadable.c: Likewise.
15404         * lib/freading.c: Likewise.
15405         * lib/fwritable.c: Likewise.
15406         * lib/fwriting.c: Likewise.
15407         * lib/sigaction.c: Likewise.
15408
15409 2011-02-22  Jim Meyering  <meyering@redhat.com>
15410
15411         maint: adjust cpp indentation to reflect nesting depth
15412         I.e., in a block of code that begins with an unnested "#if",
15413         put one space between the "#" in column 1 and following token.
15414         For example,
15415         -#include <sys/vfs.h>
15416         +# include <sys/vfs.h>
15417         Do this only in .c files that are part of a module I maintain.
15418         * lib/linkat.c: Filter through cppi.
15419         * lib/nanosleep.c: Likewise.
15420         * lib/openat.c: Likewise.
15421         * lib/openat-die.c: Likewise.
15422         * lib/dup3.c: Likewise.
15423         * lib/fchownat.c: Likewise.
15424         * lib/flock.c: Likewise.
15425         * lib/fsync.c: Likewise.
15426         * lib/fts.c: Likewise.
15427         * lib/getpass.c: Likewise.
15428         * lib/gettimeofday.c: Likewise.
15429         * lib/userspec.c: Likewise.
15430         * Makefile (sc_cpp_indent_check): New rule, to check this.
15431
15432 2011-02-22  Bruno Haible  <bruno@clisp.org>
15433
15434         New module 'wctomb'.
15435         * lib/stdlib.in.h (wctomb): New declaration.
15436         * lib/wctomb.c: New file.
15437         * lib/wctomb-impl.h: New file.
15438         * m4/wctomb.m4: New file.
15439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15440         REPLACE_WCTOMB.
15441         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15442         REPLACE_WCTOMB.
15443         * modules/wctomb: New file.
15444         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15445         * doc/posix-functions/wctomb.texi: Mention the new module.
15446         * modules/wctob (Depends-on): Add wctomb.
15447
15448 2011-02-22  Bruno Haible  <bruno@clisp.org>
15449
15450         New module 'mbtowc'.
15451         * lib/stdlib.in.h (mbtowc): New declaration.
15452         * lib/mbtowc.c: New file.
15453         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15454         * m4/mbtowc.m4: New file.
15455         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15456         REPLACE_MBTOWC.
15457         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15458         REPLACE_MBTOWC.
15459         * modules/mbtowc: New file.
15460         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15461         * doc/posix-functions/mbtowc.texi: Mention the new module.
15462         * modules/btowc (Depends-on): Add mbtowc.
15463
15464 2011-02-22  Bruno Haible  <bruno@clisp.org>
15465
15466         wcrtomb: Add more tests for native Windows platforms.
15467         * tests/test-wcrtomb-w32-1.sh: New file.
15468         * tests/test-wcrtomb-w32-2.sh: New file.
15469         * tests/test-wcrtomb-w32-3.sh: New file.
15470         * tests/test-wcrtomb-w32-4.sh: New file.
15471         * tests/test-wcrtomb-w32-5.sh: New file.
15472         * tests/test-wcrtomb-w32.c: New file.
15473         * modules/wcrtomb-tests (Files): Add them.
15474         (Makefile.am): Arrange to run these tests.
15475         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15476         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15477
15478 2011-02-20  Bruno Haible  <bruno@clisp.org>
15479
15480         wcrtomb: Enhance test.
15481         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15482
15483 2011-02-20  Bruno Haible  <bruno@clisp.org>
15484
15485         mbrtowc: Tiny optimization.
15486         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15487
15488 2011-02-20  Jim Meyering  <meyering@redhat.com>
15489
15490         test-exclude.c: remove unmatched #endif
15491         * tests/test-exclude.c: Remove stray #endif, left over from
15492         the change of a week ago.
15493
15494 2011-02-19  Jim Meyering  <meyering@redhat.com>
15495
15496         git-version-gen: skip "-dirty" check when appropriate
15497         * build-aux/git-version-gen: Don't run any git commands when the
15498         version string comes from .tarball-version.  Prior to this, we
15499         would run git update-index --refresh even from a just-unpacked
15500         tarball directory, and that could affect a .git/ directory in a
15501         parent of the build directory.  Reported by Mike Frysinger.
15502
15503 2011-02-19  Bruno Haible  <bruno@clisp.org>
15504
15505         unictype/property-byname: Reduce the size of the 'data' segment.
15506         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15507
15508 2011-02-19  Bruno Haible  <bruno@clisp.org>
15509
15510         unictype/scripts: Reduce the size of the 'data' segment.
15511         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15512         '%pic'.
15513         * lib/unictype/scripts_byname.gperf: Regenerated.
15514
15515 2011-02-19  Bruno Haible  <bruno@clisp.org>
15516
15517         stdint: Update documentation.
15518         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15519
15520 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15521
15522         stdint: omit redundant check for wchar.h
15523         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15524         always tests whether wchar.h exists, so remove the now-redundant test.
15525
15526 2011-02-18  Bruno Haible  <bruno@clisp.org>
15527
15528         stdint: Cut dependency to module 'wchar'.
15529         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15530         include the necessary prerequisites.
15531         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15532         * modules/stdint (Depends-on): Remove wchar.
15533         (Makefile.am): Substitute HAVE_WCHAR_H.
15534         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15535
15536 2011-02-18  Eric Blake  <eblake@redhat.com>
15537
15538         longlong: skip, rather than fail, on cross-compilation
15539         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15540         when cross-compiling; regression from 2011-02-16.
15541
15542 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15543
15544         * NEWS: Mention 2011-02-08 change to stdlib.
15545
15546 2011-02-17  Bruno Haible  <bruno@clisp.org>
15547
15548         getloadavg: Add comments about platforms.
15549         * m4/getloadavg.m4: Add comment.
15550         * lib/getloadavg.c: Likewise.
15551
15552 2011-02-17  Bruno Haible  <bruno@clisp.org>
15553
15554         getloadavg: Fix link error on Solaris 2.6.
15555         * modules/getloadavg (Link): New section.
15556         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15557         linking test-getloadavg.
15558         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15559         getloadavg.
15560
15561 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15562
15563         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15564         It was 'int', but this doesn't match the IRIX 6.5 manual.
15565         Suggested by Bruno Haible in
15566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15567
15568 2011-02-17  Bruno Haible  <bruno@clisp.org>
15569
15570         havelib: Fix comments.
15571         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15572         change.
15573
15574 2011-02-17  Bruno Haible  <bruno@clisp.org>
15575
15576         havelib: Update config.rpath.
15577         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15578
15579 2011-02-17  Bruno Haible  <bruno@clisp.org>
15580
15581         getloadavg test: Add some plausibility checks.
15582         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15583         is improbable.
15584
15585 2011-02-16  Eric Blake  <eblake@redhat.com>
15586
15587         maintainer-makefile: make syntax-check a no-op from tarballs
15588         * top/maint.mk (no-vc-detected): New rule.
15589         (local-checks-available): Use it to avoid hanging if someone tries
15590         'make syntax-check' from a tarball.  Also append to any non-syntax
15591         checks already defined in cfg.mk.
15592
15593 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15594
15595         longlong: tune, particularly for common case of c99
15596
15597         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15598         or running anything if c99, or if unsigned long long int does not
15599         work.  In either case, we know the answer without further tests.
15600         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15601         it at most once, and use its results for both long long int and
15602         unsigned long long int.  This is more likely to be efficient in
15603         the common case where the program wants to check for both long
15604         long int and unsigned long long int.
15605         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15606         since the answer is already known.
15607
15608 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15609
15610         getloadavg: set errno
15611         * lib/getloadavg.c: Set errno when returning -1.  If no other
15612         error number looks appropriate, set it to ENOSYS if the getloadavg
15613         looks like it can't possibly ever work, ENOTSUP otherwise.
15614         Suggested by Bruno Haible in
15615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15616
15617         getloadavg: trim unused parts and speed up 'configure'
15618         * NEWS: Document this.
15619         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15620         always compiled if getloadavg is absent.
15621         Move test code to ...
15622         * tests/test-getloadavg.c: New file, containing previous
15623         contents of test from lib/getloadavg.c.  It also contains
15624         suggestions by Bruno Haible in
15625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15626         * modules/getloadavg-tests: New file.
15627         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15628         Do tests in the same order as they're needed for getloadavg.c.
15629         Omit setgid-related tests that generate symbols KMEM_GROUP,
15630         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15631         Do only the tests that are needed to see whether the system has
15632         getloadavg, moving the other tests into ...
15633         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15634         NLIST_NAME_UNION; nobody should be using it.  Do not define
15635         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15636         relevant, as the user of this module shouldn't care how getloadavg
15637         is implemented.
15638
15639         getloadavg: omit unused var
15640         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15641
15642 2011-02-15  Jim Meyering  <meyering@redhat.com>
15643
15644         doc: update users.txt
15645         * users.txt: Update iwhd's URL.
15646
15647 2011-02-13  Bruno Haible  <bruno@clisp.org>
15648
15649         Consistent macro naming for macros that use GCC __attribute__.
15650         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15651         _ATTRIBUTE_NONNULL_.
15652         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15653         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15654         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15655         ATTRIBUTE_DEPRECATED.
15656         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15657         ATTRIBUTE_NORETURN.
15658         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15659         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15660         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15661         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15662         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15663         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15664         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15665         ATTRIBUTE_SENTINEL.
15666         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15667         ATTRIBUTE_RETURN_CHECK.
15668         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15669         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15670         ATTRIBUTE_NORETURN.
15671         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15672         Reported by Paul Eggert.
15673
15674 2011-02-13  Bruno Haible  <bruno@clisp.org>
15675
15676         Don't interfere with a program's definition of __attribute__.
15677         * lib/argp.h (__attribute__): Remove definition.
15678         (_GL_ATTRIBUTE_FORMAT): New macro.
15679         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15680         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15681         (_GL_ATTRIBUTE_FORMAT): New macro.
15682         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15683         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15684         GCC 3 or newer.
15685         * lib/error.h (__attribute__): Remove definition.
15686         (_GL_ATTRIBUTE_FORMAT): New macro.
15687         (error, error_at_line): Use it.
15688         * lib/hash.h (__attribute__): Remove definition.
15689         (ATTRIBUTE_WUR): Update definition. Define always.
15690         * lib/openat.h (__attribute__): Remove definition.
15691         (ATTRIBUTE_NORETURN): Update definition. Define always.
15692         * lib/sigpipe-die.h (__attribute__): Remove definition.
15693         (ATTRIBUTE_NORETURN): Update definition. Define always.
15694         * lib/vasnprintf.h (__attribute__): Remove definition.
15695         (_GL_ATTRIBUTE_FORMAT): New macro.
15696         (asnprintf, vasnprintf): Use it.
15697         * lib/xalloc.h (__attribute__): Remove definition.
15698         (ATTRIBUTE_NORETURN): Update definition. Define always.
15699         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15700         * lib/xmemdup0.h (__attribute__): Remove definition.
15701         (ATTRIBUTE_NORETURN): Update definition. Define always.
15702         * lib/xprintf.h (__attribute__): Remove definition.
15703         (_GL_ATTRIBUTE_FORMAT): New macro.
15704         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15705         * lib/xstrtol.h (__attribute__): Remove definition.
15706         (ATTRIBUTE_NORETURN): Update definition. Define always.
15707         * lib/xvasprintf.h (__attribute__): Remove definition.
15708         (_GL_ATTRIBUTE_FORMAT): New macro.
15709         (xasprintf, xvasprintf): Use it.
15710         * tests/test-argmatch.c (__attribute__): Remove definition.
15711         (ATTRIBUTE_NORETURN): Update definition. Define always.
15712         * tests/test-exclude.c (__attribute__): Remove definition.
15713         (ATTRIBUTE_NORETURN): Update definition. Define always.
15714         Reported by Paul Eggert.
15715
15716 2011-02-13  Bruno Haible  <bruno@clisp.org>
15717
15718         mbrtowc: Add more tests for native Windows platforms.
15719         * tests/test-mbrtowc-w32-1.sh: New file.
15720         * tests/test-mbrtowc-w32-2.sh: New file.
15721         * tests/test-mbrtowc-w32-3.sh: New file.
15722         * tests/test-mbrtowc-w32-4.sh: New file.
15723         * tests/test-mbrtowc-w32-5.sh: New file.
15724         * tests/test-mbrtowc-w32.c: New file.
15725         * modules/mbrtowc-tests (Files): Add them.
15726         (Makefile.am): Arrange to run these tests.
15727         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15728         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15729
15730 2011-02-13  Bruno Haible  <bruno@clisp.org>
15731
15732         mbrtowc: Work around native Windows bug.
15733         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15734         guess when no suitable locale for testing was found.
15735         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15736
15737 2011-02-13  Bruno Haible  <bruno@clisp.org>
15738
15739         mbsinit: Work around mingw bug.
15740         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15741         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15742         Windows.
15743         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15744
15745 2011-02-13  Bruno Haible  <bruno@clisp.org>
15746
15747         mbsinit: Don't crash for a NULL argument.
15748         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15749         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15750
15751 2011-02-13  Bruno Haible  <bruno@clisp.org>
15752
15753         Don't interfere with a program's definition of __attribute__.
15754         * lib/stdio.in.h (__attribute__): Remove definition.
15755         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15756         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15757         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15758         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15759         * lib/string.in.h (__attribute__): Remove definition.
15760         Reported by Paul Eggert.
15761
15762 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15763
15764         stdlib: don't get in the way of non-GCC __attribute__
15765         See thread starting at
15766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15767         Revert previous stdlib change, installing the following instead:
15768         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15769         to get in the way of a non-GCC compiler that supports __attribute__.
15770         (_GL_ATTRIBUTE_RETURN): New macro.
15771         (_Exit): Use it instead of __attribute__.
15772
15773 2011-02-12  Bruno Haible  <bruno@clisp.org>
15774
15775         quotearg test: Avoid test failure on mingw.
15776         * tests/test-quotearg.sh: Convert the locale identifier from native
15777         Windows syntax to Unix syntax.
15778
15779 2011-02-12  Bruno Haible  <bruno@clisp.org>
15780
15781         setlocale: Prefer gnulib's override over libintl's override.
15782         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15783         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15784         GNULIB_defined_setlocale is set.
15785
15786 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15787
15788         stdlib: support non-GCC __attribute__
15789
15790         Fix a serious and tricky problem encountered when attempting to
15791         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15792         5.5, but it crashed due to memory corruption on Solaris 10 with
15793         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15794         bits that are otherwise zero.  This tagging is optional inside
15795         Emacs but is preferred and is used when __attribute__ ((__aligned
15796         (8))) works, as it does with both recent-enough GCC and with Sun C
15797         5.11.  However, Sun C 5.11 is not GCC and does not #define
15798         __GNUC__ and __GNUC_MINOR__.
15799
15800         When I added the getloadavg module to Emacs, it brought in
15801         stdlib.in.h, which contained this fragment:
15802
15803            #ifndef __attribute__
15804            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15805            #  define __attribute__(Spec)   /* empty */
15806            # endif
15807            #endif
15808
15809         When files that include <stdlib.h> were compiled with Sun C 5.11,
15810         the above code disabled __attribute__ ((__aligned (8))), which
15811         caused variables to not be properly aligned, which eventually led
15812         to the pointer corruption mentioned above.  (This was a bit hard
15813         to diagnose, unfortunately.)
15814
15815         Several "#define __attribute__(X) /* empty */" code snippets need
15816         to be eradicated from Gnulib to work with non-GCC compilers that
15817         support __attribute__.  The Autoconf way to do this is to test for
15818         each kind of attribute that we want support for, and selectively
15819         enable that in source code.
15820
15821         Fix this problem just for stdlib.h, by adding a test for the
15822         __noreturn__ attribute, and change stdlib.in.h to use that test
15823         when needed.  This technique can be easily generalized to the
15824         other *.in.h files and attributes, and a similar technique can be
15825         used for *.h and *.c files.  This patch is enough to solve the
15826         problem for Emacs + getloadavg, and I thought I'd publish it for
15827         feedback before undertaking further, similar fixes in other
15828         modules.
15829
15830         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15831         because it's not needed for stdlib.h.  It merely substitutes the
15832         value directly into stdlib.h.  We may well need to #define it, or
15833         similar symbols, for other modules, but it's nice to also have an
15834         option to not #define it for applications like Emacs that do not
15835         need it.
15836
15837         * lib/stdlib.in.h (__attribute__): Do not #define.
15838         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15839         be defined only if the _Exit module is also used.
15840         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15842         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15843         platforms.
15844         * modules/_Exit (Files): Add m4/attribute.m4.
15845         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15846         * m4/attribute.m4: New file.
15847
15848 2011-02-12  Bruno Haible  <bruno@clisp.org>
15849
15850         wcsrtombs: Work around bug on native Windows.
15851         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15852         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15853         instead of len.
15854         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15855
15856 2011-02-12  Bruno Haible  <bruno@clisp.org>
15857
15858         mbsrtowcs: Work around bug on native Windows.
15859         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15860         against mingw bug.
15861         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15862
15863 2011-02-12  Bruno Haible  <bruno@clisp.org>
15864
15865         Avoid setlocale bugs in tests.
15866         * modules/btowc (Dependencies): Add setlocale.
15867         * modules/c-strcase (Dependencies): Likewise.
15868         * modules/mbmemcasecmp (Dependencies): Likewise.
15869         * modules/mbmemcasecoll (Dependencies): Likewise.
15870         * modules/mbrtowc (Dependencies): Likewise.
15871         * modules/mbscasecmp (Dependencies): Likewise.
15872         * modules/mbscasestr (Dependencies): Likewise.
15873         * modules/mbschr (Dependencies): Likewise.
15874         * modules/mbscspn (Dependencies): Likewise.
15875         * modules/mbsinit (Dependencies): Likewise.
15876         * modules/mbsncasecmp (Dependencies): Likewise.
15877         * modules/mbsnrtowcs (Dependencies): Likewise.
15878         * modules/mbspbrk (Dependencies): Likewise.
15879         * modules/mbspcasecmp (Dependencies): Likewise.
15880         * modules/mbsrchr (Dependencies): Likewise.
15881         * modules/mbsrtowcs (Dependencies): Likewise.
15882         * modules/mbsspn (Dependencies): Likewise.
15883         * modules/mbsstr (Dependencies): Likewise.
15884         * modules/nl_langinfo (Dependencies): Likewise.
15885         * modules/quotearg (Dependencies): Likewise.
15886         * modules/unicase/locale-language (Dependencies): Likewise.
15887         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15888         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15889         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15890         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15891         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15892         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15893         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15894         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15895         * modules/vasnprintf-posix (Dependencies): Likewise.
15896         * modules/wcrtomb (Dependencies): Likewise.
15897         * modules/wcsnrtombs (Dependencies): Likewise.
15898         * modules/wcsrtombs (Dependencies): Likewise.
15899
15900 2011-02-12  Bruno Haible  <bruno@clisp.org>
15901
15902         setlocale: Workaround native Windows bug.
15903         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15904         succeeds but sets LC_CTYPE to "C", report a failure.
15905         * tests/test-setlocale2.sh: New file.
15906         * tests/test-setlocale2.c: New file.
15907         * modules/setlocale-tests (Files): Add the new files.
15908         (Makefile.am): Enable test-setlocale2.sh test.
15909         * doc/posix-functions/setlocale.texi: Mention workaround.
15910
15911 2011-02-11  Bruno Haible  <bruno@clisp.org>
15912
15913         Tests for module 'setlocale'.
15914         * modules/setlocale-tests: New file.
15915         * tests/test-setlocale1.sh: New file.
15916         * tests/test-setlocale1.c: New file.
15917
15918         New module 'setlocale'.
15919         * lib/locale.in.h (setlocale): New declaration.
15920         * lib/setlocale.c: New file, based on
15921         gettext/gettext-runtime/intl/setlocale.c.
15922         * m4/setlocale.m4: New file.
15923         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15924         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15925         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15926         REPLACE_SETLOCALE.
15927         * modules/setlocale: New file.
15928         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15929         * doc/posix-functions/setlocale.texi: Mention the new module.
15930
15931 2011-02-11  Bruno Haible  <bruno@clisp.org>
15932
15933         Prepare for locale dependent tests on mingw.
15934         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15935         because it has the wrong locale encoding.
15936         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15937         French_France.1252 instead of "fr".
15938         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15939         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15940         because it has the wrong locale encoding.
15941         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15942         native Windows, try Turkish_Turkey.65001.
15943         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15944         Chinese_China.54936.
15945
15946         Prepare for locale dependent tests on mingw.
15947         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15948         differently.
15949         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15950         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15951         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15952         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15953
15954 2011-02-11  Eric Blake  <eblake@redhat.com>
15955
15956         strptime: avoid compiler warnings
15957         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15958         compiler warnings about dead code.
15959         Reported by Daniel P. Berrange.
15960
15961 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15962
15963         doc: update users.txt
15964         * users.txt: Add rcs.
15965
15966 2011-02-10  John W. Eaton  <jwe@gnu.org>
15967
15968         doc: update users.txt
15969         * users.txt: Add octave.
15970
15971 2011-02-10  Jim Meyering  <meyering@redhat.com>
15972
15973         doc: update users.txt
15974         * users.txt: Add iwhd.
15975
15976 2011-02-09  Bruno Haible  <bruno@clisp.org>
15977
15978         gnulib-tool: Make copyright notice adjustment more robust.
15979         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15980         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15981         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15982         License".
15983         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15984
15985 2011-02-06  Bruno Haible  <bruno@clisp.org>
15986
15987         New module 'towctrans'.
15988         * modules/towctrans: New file.
15989         * lib/wctype.in.h (towctrans): New declaration.
15990         * lib/towctrans.c: New file.
15991         * lib/towctrans-impl.h: New file.
15992         * m4/towctrans.m4: New file.
15993         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15994         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15995         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15996         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15997         * doc/posix-functions/towctrans.texi: Mention the new module.
15998
15999 2011-02-06  Bruno Haible  <bruno@clisp.org>
16000
16001         New module 'wctrans'.
16002         * modules/wctrans: New file.
16003         * lib/wctype.in.h (wctrans): New declaration.
16004         * lib/wctrans.c: New file.
16005         * lib/wctrans-impl.h: New file.
16006         * m4/wctrans.m4: New file.
16007         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16008         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16009         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16010         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16011         * doc/posix-functions/wctrans.texi: Mention the new module.
16012
16013 2011-02-06  Bruno Haible  <bruno@clisp.org>
16014
16015         New module 'iswctype'.
16016         * modules/iswctype: New file.
16017         * lib/wctype.in.h (iswctype): New declaration.
16018         * lib/iswctype.c: New file.
16019         * lib/iswctype-impl.h: New file.
16020         * m4/iswctype.m4: New file.
16021         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16022         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16023         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16024         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16025         * doc/posix-functions/iswctype.texi: Mention the new module and the
16026         HP-UX 11.00 problem.
16027
16028 2011-02-06  Bruno Haible  <bruno@clisp.org>
16029
16030         New module 'wctype'.
16031         * modules/wctype: Change to represent the wctype() substitute.
16032         * lib/wctype.in.h (wctype): New declaration.
16033         * lib/wctype.c: New file.
16034         * lib/wctype-impl.h: New file.
16035         * m4/wctype.m4: New file.
16036         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16037         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16038         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16039         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16040         * doc/posix-functions/wctype.texi: Mention the new module and the
16041         HP-UX 11.00 problem.
16042
16043 2011-02-06  Bruno Haible  <bruno@clisp.org>
16044
16045         wctype-h: Ensure wctype_t and wctrans_t are defined.
16046         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16047         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16048         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16049         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16050         HAVE_WCTRANS_T.
16051         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16052
16053 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16054
16055         flock: fix license typo
16056
16057         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16058         omitted.
16059
16060 2011-02-08  Bruno Haible  <bruno@clisp.org>
16061
16062         Split large sed scripts, for HP-UX sed.
16063         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16064         to avoid HP-UX limit of 99 commands, in the near future.
16065         * modules/stdlib (Makefile.am): Likewise.
16066         * modules/unistd (Makefile.am): Likewise.
16067         * modules/wchar (Makefile.am): Likewise.
16068         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16069         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16070         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16071
16072 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16073             Bruno Haible  <bruno@clisp.org>
16074
16075         stdlib: improve random_r modularization
16076         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16077         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16078         you also need the random_r module to get this material right.
16079         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16080         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16081         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16082
16083 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16084
16085         stdlib: don't depend on stdint
16086         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16087         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16088         be independent of whether stdint.h is needed.
16089         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16090         here, instead of ...
16091         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16092         struct random_data should be using the random_r module, not just
16093         the stdlib module (which wouldn't make sense: what package needs
16094         just struct random_data without also needing random_r?).
16095         * modules/stdlib (Depends-on): Remove stdint.
16096
16097         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16098         See the thread rooted at
16099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16100         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16101         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16102         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16103         __VMS)); previously it was always included (via fcntl--.h).
16104         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16105         hand; this is good enough for load averages.  Also, do not use
16106         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16107         flags directly if available and don't bother otherwise.  (Packages
16108         that need the extra reliability should use the modules that define
16109         these flags on older platforms that lack them.)
16110         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16111         fcntl-safer.
16112
16113 2011-02-08  Jim Meyering  <meyering@redhat.com>
16114
16115         di-set.h, ino-map.h: add multiple-inclusion guard
16116         Technically, the guard is required only for ino-map.h, due to its
16117         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16118         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16119         * lib/ino-map.h: Likewise.
16120
16121 2011-02-06  Bruno Haible  <bruno@clisp.org>
16122
16123         iswblank: Ensure declaration on glibc systems.
16124         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16125         * modules/iswblank (Dependencies): Add 'extensions'.
16126         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16127
16128 2011-02-06  Bruno Haible  <bruno@clisp.org>
16129
16130         New module 'iswblank'.
16131         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16132         * modules/iswblank: New file.
16133         * modules/wctype-h (Files): Remove lib/iswblank.c.
16134         (Makefile.am): Substitute GNULIB_ISWBLANK.
16135         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16136         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16137         (gl_WCTYPE_H_DEFAULTS): New macro.
16138         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16139         * modules/iswblank-tests: New file.
16140         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16141         * tests/test-wctype-h.c (main): Remove iswblank tests.
16142         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16143         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16144         of 'wctype-h'.
16145         * NEWS: Mention the change.
16146         * modules/mbchar (Depends-on): Add iswblank.
16147
16148 2011-02-08  Bruno Haible  <bruno@clisp.org>
16149
16150         di-set tests: Refactor.
16151         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16152         unnecessary includes.
16153         (ASSERT): Remove macro.
16154         (main): Make C90 compliant by avoiding variable declaration after
16155         statement.
16156         * modules/di-set-tests (Files): Add tests/macros.h.
16157
16158 2011-02-08  Bruno Haible  <bruno@clisp.org>
16159
16160         ino-map tests: Refactor.
16161         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16162         unnecessary includes.
16163         (ASSERT): Remove macro.
16164         (main): Make C90 compliant by avoiding variable declaration after
16165         statement.
16166         * modules/ino-map-tests (Files): Add tests/macros.h.
16167
16168 2011-02-08  Jim Meyering  <meyering@redhat.com>
16169
16170         di-set: add "const" to a cast
16171         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16172         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16173
16174 2011-02-06  Bruno Haible  <bruno@clisp.org>
16175
16176         Rename module 'wctype' to 'wctype-h'.
16177         * modules/wctype-h: Renamed from modules/wctype.
16178         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16179         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16180         (Files, Depends-on, Makefile.am): Update.
16181         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16182         (Files, Makefile.am): Update.
16183         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16184         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16185         * doc/posix-headers/wctype.texi: Update.
16186         * doc/posix-functions/iswalnum.texi: Update.
16187         * doc/posix-functions/iswalpha.texi: Update.
16188         * doc/posix-functions/iswblank.texi: Update.
16189         * doc/posix-functions/iswcntrl.texi: Update.
16190         * doc/posix-functions/iswdigit.texi: Update.
16191         * doc/posix-functions/iswgraph.texi: Update.
16192         * doc/posix-functions/iswlower.texi: Update.
16193         * doc/posix-functions/iswprint.texi: Update.
16194         * doc/posix-functions/iswpunct.texi: Update.
16195         * doc/posix-functions/iswspace.texi: Update.
16196         * doc/posix-functions/iswupper.texi: Update.
16197         * doc/posix-functions/iswxdigit.texi: Update.
16198         * doc/posix-functions/towlower.texi: Update.
16199         * doc/posix-functions/towupper.texi: Update.
16200         * NEWS: Mention the change.
16201         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16202         * modules/mbchar (Dependencies): Likewise.
16203         * modules/mbswidth (Dependencies): Likewise.
16204         * modules/quotearg (Dependencies): Likewise.
16205         * modules/regex (Dependencies): Likewise.
16206         * modules/wcscasecmp (Dependencies): Likewise.
16207         * modules/wcsncasecmp (Dependencies): Likewise.
16208         * modules/wcwidth (Dependencies): Likewise.
16209
16210 2011-02-06  Bruno Haible  <bruno@clisp.org>
16211
16212         New module 'wcswidth'.
16213         * modules/wcswidth: New file.
16214         * lib/wchar.in.h (wcswidth): New declaration.
16215         * lib/wcswidth.c: New file.
16216         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16217         * m4/wcswidth.m4: New file.
16218         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16219         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16220         REPLACE_WCSWIDTH.
16221         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16222         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16223         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16224         * doc/posix-functions/wcswidth.texi: Mention the new module.
16225
16226 2011-02-06  Bruno Haible  <bruno@clisp.org>
16227
16228         New module 'wcstok'.
16229         * modules/wcstok: New file.
16230         * lib/wchar.in.h (wcstok): New declaration.
16231         * lib/wcstok.c: New file.
16232         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16233         * m4/wcstok.m4: New file.
16234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
16236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
16237         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
16238         * doc/posix-functions/wcstok.texi: Mention the new module.
16239
16240 2011-02-06  Bruno Haible  <bruno@clisp.org>
16241
16242         New module 'wcsstr'.
16243         * modules/wcsstr: New file.
16244         * lib/wchar.in.h (wcsstr): New declaration.
16245         * lib/wcsstr.c: New file.
16246         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
16247         * m4/wcsstr.m4: New file.
16248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
16249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
16250         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
16251         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
16252         * doc/posix-functions/wcsstr.texi: Mention the new module.
16253
16254 2011-02-06  Bruno Haible  <bruno@clisp.org>
16255
16256         New module 'wcspbrk'.
16257         * modules/wcspbrk: New file.
16258         * lib/wchar.in.h (wcspbrk): New declaration.
16259         * lib/wcspbrk.c: New file.
16260         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
16261         * m4/wcspbrk.m4: New file.
16262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
16263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
16264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
16265         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
16266         * doc/posix-functions/wcspbrk.texi: Mention the new module.
16267
16268 2011-02-06  Bruno Haible  <bruno@clisp.org>
16269
16270         New module 'wcsspn'.
16271         * modules/wcsspn: New file.
16272         * lib/wchar.in.h (wcsspn): New declaration.
16273         * lib/wcsspn.c: New file.
16274         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
16275         * m4/wcsspn.m4: New file.
16276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
16277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
16278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
16279         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
16280         * doc/posix-functions/wcsspn.texi: Mention the new module.
16281
16282 2011-02-06  Bruno Haible  <bruno@clisp.org>
16283
16284         New module 'wcscspn'.
16285         * modules/wcscspn: New file.
16286         * lib/wchar.in.h (wcscspn): New declaration.
16287         * lib/wcscspn.c: New file.
16288         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
16289         * m4/wcscspn.m4: New file.
16290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
16291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
16292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
16293         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
16294         * doc/posix-functions/wcscspn.texi: Mention the new module.
16295
16296 2011-02-06  Bruno Haible  <bruno@clisp.org>
16297
16298         New module 'wcsrchr'.
16299         * modules/wcsrchr: New file.
16300         * lib/wchar.in.h (wcsrchr): New declaration.
16301         * lib/wcsrchr.c: New file.
16302         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
16303         * m4/wcsrchr.m4: New file.
16304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
16305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
16306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
16307         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
16308         * doc/posix-functions/wcsrchr.texi: Mention the new module.
16309
16310 2011-02-06  Bruno Haible  <bruno@clisp.org>
16311
16312         New module 'wcschr'.
16313         * modules/wcschr: New file.
16314         * lib/wchar.in.h (wcschr): New declaration.
16315         * lib/wcschr.c: New file.
16316         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
16317         * m4/wcschr.m4: New file.
16318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
16319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
16320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
16321         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
16322         * doc/posix-functions/wcschr.texi: Mention the new module.
16323
16324 2011-02-06  Bruno Haible  <bruno@clisp.org>
16325
16326         New module 'wcsdup'.
16327         * modules/wcsdup: New file.
16328         * lib/wchar.in.h (wcsdup): New declaration.
16329         * lib/wcsdup.c: New file.
16330         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
16331         * m4/wcsdup.m4: New file.
16332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
16333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
16334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
16335         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
16336         * doc/posix-functions/wcsdup.texi: Mention the new module.
16337
16338 2011-02-06  Bruno Haible  <bruno@clisp.org>
16339
16340         New module 'wcsxfrm'.
16341         * modules/wcsxfrm: New file.
16342         * lib/wchar.in.h (wcsxfrm): New declaration.
16343         * lib/wcsxfrm.c: New file.
16344         * lib/wcsxfrm-impl.h: New file.
16345         * m4/wcsxfrm.m4: New file.
16346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
16347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
16348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
16349         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
16350         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
16351
16352 2011-02-06  Bruno Haible  <bruno@clisp.org>
16353
16354         New module 'wcscoll'.
16355         * modules/wcscoll: New file.
16356         * lib/wchar.in.h (wcscoll): New declaration.
16357         * lib/wcscoll.c: New file.
16358         * lib/wcscoll-impl.h: New file.
16359         * m4/wcscoll.m4: New file.
16360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
16361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
16362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
16363         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
16364         * doc/posix-functions/wcscoll.texi: Mention the new module.
16365
16366 2011-02-06  Bruno Haible  <bruno@clisp.org>
16367
16368         New module 'wcsncasecmp'.
16369         * modules/wcsncasecmp: New file.
16370         * lib/wchar.in.h (wcsncasecmp): New declaration.
16371         * lib/wcsncasecmp.c: New file.
16372         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16373         * m4/wcsncasecmp.m4: New file.
16374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16377         HAVE_WCSNCASECMP.
16378         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16379         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16380
16381 2011-02-06  Bruno Haible  <bruno@clisp.org>
16382
16383         New module 'wcscasecmp'.
16384         * modules/wcscasecmp: New file.
16385         * lib/wchar.in.h (wcscasecmp): New declaration.
16386         * lib/wcscasecmp.c: New file.
16387         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
16388         * m4/wcscasecmp.m4: New file.
16389         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16390         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16391         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16392         HAVE_WCSCASECMP.
16393         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16394         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16395
16396 2011-02-05  Bruno Haible  <bruno@clisp.org>
16397
16398         New module 'wcsncmp'.
16399         * modules/wcsncmp: New file.
16400         * lib/wchar.in.h (wcsncmp): New declaration.
16401         * lib/wcsncmp.c: New file.
16402         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16403         * m4/wcsncmp.m4: New file.
16404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16406         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16407         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16408         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16409
16410 2011-02-05  Bruno Haible  <bruno@clisp.org>
16411
16412         New module 'wcscmp'.
16413         * modules/wcscmp: New file.
16414         * lib/wchar.in.h (wcscmp): New declaration.
16415         * lib/wcscmp.c: New file.
16416         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16417         * m4/wcscmp.m4: New file.
16418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16420         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16421         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16422         * doc/posix-functions/wcscmp.texi: Mention the new module.
16423
16424 2011-02-05  Bruno Haible  <bruno@clisp.org>
16425
16426         New module 'wcsncat'.
16427         * modules/wcsncat: New file.
16428         * lib/wchar.in.h (wcsncat): New declaration.
16429         * lib/wcsncat.c: New file.
16430         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16431         * m4/wcsncat.m4: New file.
16432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16435         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16436         * doc/posix-functions/wcsncat.texi: Mention the new module.
16437
16438 2011-02-05  Bruno Haible  <bruno@clisp.org>
16439
16440         New module 'wcscat'.
16441         * modules/wcscat: New file.
16442         * lib/wchar.in.h (wcscat): New declaration.
16443         * lib/wcscat.c: New file.
16444         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16445         * m4/wcscat.m4: New file.
16446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16449         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16450         * doc/posix-functions/wcscat.texi: Mention the new module.
16451
16452 2011-02-05  Bruno Haible  <bruno@clisp.org>
16453
16454         New module 'wcpncpy'.
16455         * modules/wcpncpy: New file.
16456         * lib/wchar.in.h (wcpncpy): New declaration.
16457         * lib/wcpncpy.c: New file.
16458         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16459         * m4/wcpncpy.m4: New file.
16460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16462         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16463         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16464         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16465
16466 2011-02-05  Bruno Haible  <bruno@clisp.org>
16467
16468         New module 'wcsncpy'.
16469         * modules/wcsncpy: New file.
16470         * lib/wchar.in.h (wcsncpy): New declaration.
16471         * lib/wcsncpy.c: New file.
16472         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16473         * m4/wcsncpy.m4: New file.
16474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16476         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16477         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16478         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16479
16480 2011-02-05  Bruno Haible  <bruno@clisp.org>
16481
16482         New module 'wcpcpy'.
16483         * modules/wcpcpy: New file.
16484         * lib/wchar.in.h (wcpcpy): New declaration.
16485         * lib/wcpcpy.c: New file.
16486         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16487         * m4/wcpcpy.m4: New file.
16488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16490         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16491         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16492         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16493
16494 2011-02-05  Bruno Haible  <bruno@clisp.org>
16495
16496         New module 'wcscpy'.
16497         * modules/wcscpy: New file.
16498         * lib/wchar.in.h (wcscpy): New declaration.
16499         * lib/wcscpy.c: New file.
16500         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16501         * m4/wcscpy.m4: New file.
16502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16505         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16506         * doc/posix-functions/wcscpy.texi: Mention the new module.
16507
16508 2011-02-05  Bruno Haible  <bruno@clisp.org>
16509
16510         New module 'wcsnlen'.
16511         * modules/wcsnlen: New file.
16512         * lib/wchar.in.h (wcsnlen): New declaration.
16513         * lib/wcsnlen.c: New file.
16514         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16515         * m4/wcsnlen.m4: New file.
16516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16519         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16520         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16521
16522 2011-02-05  Bruno Haible  <bruno@clisp.org>
16523
16524         New module 'wcslen'.
16525         * modules/wcslen: New file.
16526         * lib/wchar.in.h (wcslen): New declaration.
16527         * lib/wcslen.c: New file.
16528         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16529         * m4/wcslen.m4: New file.
16530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16533         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16534         * doc/posix-functions/wcslen.texi: Mention the new module.
16535
16536 2011-02-05  Bruno Haible  <bruno@clisp.org>
16537
16538         New module 'wmemset'.
16539         * modules/wmemset: New file.
16540         * lib/wchar.in.h (wmemset): New declaration.
16541         * lib/wmemset.c: New file.
16542         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16543         * m4/wmemset.m4: New file.
16544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16546         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16547         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16548         * doc/posix-functions/wmemset.texi: Mention the new module.
16549
16550 2011-02-05  Bruno Haible  <bruno@clisp.org>
16551
16552         New module 'wmemmove'.
16553         * modules/wmemmove: New file.
16554         * lib/wchar.in.h (wmemmove): New declaration.
16555         * lib/wmemmove.c: New file.
16556         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16557         * m4/wmemmove.m4: New file.
16558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16560         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16561         HAVE_WMEMMOVE.
16562         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16563         * doc/posix-functions/wmemmove.texi: Mention the new module.
16564
16565 2011-02-05  Bruno Haible  <bruno@clisp.org>
16566
16567         New module 'wmemcpy'.
16568         * modules/wmemcpy: New file.
16569         * lib/wchar.in.h (wmemcpy): New declaration.
16570         * lib/wmemcpy.c: New file.
16571         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16572         * m4/wmemcpy.m4: New file.
16573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16575         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16576         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16577         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16578
16579 2011-02-05  Bruno Haible  <bruno@clisp.org>
16580
16581         New module 'wmemcmp'.
16582         * modules/wmemcmp: New file.
16583         * lib/wchar.in.h (wmemcmp): New declaration.
16584         * lib/wmemcmp.c: New file.
16585         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16586         * m4/wmemcmp.m4: New file.
16587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16589         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16590         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16591         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16592
16593 2011-02-07  Jim Meyering  <meyering@redhat.com>
16594
16595         di-set, ino-map: new modules, from coreutils
16596         * lib/di-set.c: New file.
16597         * lib/di-set.h: Likewise.
16598         * lib/ino-map.c: Likewise.
16599         * lib/ino-map.h: Likewise.
16600         * modules/di-set: Likewise.
16601         * modules/di-set-tests: Likewise.
16602         * modules/ino-map: Likewise.
16603         * modules/ino-map-tests: Likewise.
16604         * tests/test-di-set.c: Likewise.
16605         * tests/test-ino-map.c: Likewise.
16606
16607 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16608
16609         getloadavg: merge minor changes from Emacs
16610
16611         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16612         (getloadavg): Use memset, not bzero.
16613
16614         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16615         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16616         clash (bug#86).
16617
16618 2010-11-14  Bruno Haible  <bruno@clisp.org>
16619
16620         Allow multiple gnulib generated replacements to coexist.
16621         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16622         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16623         * lib/langinfo.in.h (nl_item): Likewise.
16624         * lib/math.in.h (_NaN, NAN): Likewise.
16625         * lib/netdb.in.h (struct addrinfo): Likewise.
16626         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16627         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16628         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16629         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16630         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16631         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16632         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16633         pthread_mutexattr_init, pthread_mutexattr_settype,
16634         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16635         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16636         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16637         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16638         * lib/sched.in.h (struct sched_param): Likewise.
16639         * lib/se-selinux.in.h (security_class_t, security_context_t,
16640         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16641         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16642         lsetfilecon, fsetfilecon, security_check_context,
16643         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16644         Likewise.
16645         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16646         Likewise.
16647         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16648         _gl_function_taking_int_returning_void_t, union sigval,
16649         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16650         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16651         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16652         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16653         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16654         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16655         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16656         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16657         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16658         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16659         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16660         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16661         socklen_t, rpl_fd_isset): Likewise.
16662         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16663         * lib/sys_time.in.h (struct timeval): Likewise.
16664         * lib/sys_times.in.h (struct tms): Likewise.
16665         * lib/sys_utsname.in.h (struct utsname):
16666         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16667         * lib/unistd.in.h (getpagesize): Likewise.
16668         * lib/wchar.in.h (mbstate_t): Likewise.
16669         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16670         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16671         towlower, towupper): Likewise.
16672         Reported by Sam Steingold <sds@gnu.org>.
16673
16674 2011-02-05  Eric Blake  <eblake@redhat.com>
16675
16676         unsetenv: work around Haiku issues
16677         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16678         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16679
16680 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16681
16682         libposix: avoid calling error() within libposix
16683         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16684         is defined.
16685
16686 2011-02-05  Eric Blake  <eblake@redhat.com>
16687
16688         strerror_r-posix: port to cygwin
16689         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16690         implementation.
16691         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16692         * tests/test-strerror_r.c (main): Fix test.
16693         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16694         issue.
16695
16696 2011-02-05  Bruno Haible  <bruno@clisp.org>
16697
16698         New module 'wmemchr'.
16699         * modules/wmemchr: New file.
16700         * lib/wchar.in.h (wmemchr): New declaration.
16701         * lib/wmemchr.c: New file.
16702         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16703         * m4/wmemchr.m4: New file.
16704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16706         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16707         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16708         * doc/posix-functions/wmemchr.texi: Mention the new module.
16709
16710 2011-02-04  Eric Blake  <eblake@redhat.com>
16711
16712         fdopendir: detect FreeBSD bug
16713         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16714         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16715
16716 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16717
16718         stdbool: do not define HAVE_STDBOOL_H
16719         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16720         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16721         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16722         imported from the latest Autoconf git.  It was motivated by Emacs,
16723         which uses gnulib but does not need HAVE_STDBOOL_H.
16724
16725 2011-02-04  Bruno Haible  <bruno@clisp.org>
16726
16727         wcsnrtombs: Prepare for new module wwcsnrtombs.
16728         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16729         * lib/wcsnrtombs.c: Include it.
16730         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16731
16732         wcsrtombs: Prepare for new module wwcsrtombs.
16733         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16734         * lib/wcsrtombs.c: Include it.
16735         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16736
16737         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16738         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16739         * lib/mbsnrtowcs.c: Include it.
16740         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16741
16742         mbsrtowcs: Prepare for new module mbsrtowwcs.
16743         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16744         * lib/mbsrtowcs.c: Include it.
16745         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16746
16747 2011-02-04  Bruno Haible  <bruno@clisp.org>
16748
16749         vasnprintf: Reduce use of malloc for small format strings.
16750         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16751         (arguments): Add room for the first 7 arguments.
16752         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16753         (char_directives, u8_directives, u16_directives, u32_directives): Add
16754         room for the first 7 directives.
16755         * lib/printf-parse.c: Include <string.h>.
16756         (PRINTF_PARSE): Change memory handling code so that it uses the first
16757         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16758         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16759         Reported by Pádraig Brady <P@draigbrady.com>.
16760
16761 2011-01-31  Eric Blake  <eblake@redhat.com>
16762
16763         dup2: work around Haiku bug
16764         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16765         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16766         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16767         * tests/test-dup2.c (main): Enhance test.
16768
16769 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16770
16771         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16772         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16773         declared by eglibc 2.11.2.
16774         * lib/stdio.in.h: Likewise.
16775
16776 2011-01-31  Eric Blake  <eblake@redhat.com>
16777
16778         ignore-value: add missing test dependency
16779         * tests/test-ignore-value.c: Revert previous change; stdio.h
16780         provides off_t.
16781         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16782
16783 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16784
16785         mktime: clarify long_int width checking
16786         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16787         the top level, to make it clearer that the assumption about
16788         long_int width is being checked.  See
16789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16790
16791 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16792
16793         ignore-value: Fix self-test.
16794         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16795
16796 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16797
16798         TYPE_MAXIMUM: avoid theoretically undefined behavior
16799         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16800         negative number, which the C Standard says has undefined behavior.
16801         In practice this is not a problem, but might as well do it by the book.
16802         Reported by Rich Felker and Eric Blake; see
16803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16804         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16805         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16807         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16808         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16809         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16810
16811         mktime: #undef mktime before #defining it
16812         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16813
16814         mktime: systematically normalize tm_isdst comparisons
16815         * lib/mktime.c (isdst_differ): New function.
16816         (__mktime_internal): Use it systematically for all isdst comparisons.
16817         This completes the fix for libc BZ #6723, and removes the need for
16818         normalizing tm_isdst.  See
16819         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16820         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16821
16822         mktime: fix some integer overflow issues and sidestep the rest
16823
16824         This was prompted by a bug report by Benjamin Lindner for MinGW
16825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16826         His bug is due to signed integer overflow (0 - INT_MIN), and I
16827         I scanned through mktime.c looking for other integer overflow
16828         problems, fixing all the bugs I found.
16829
16830         Although the C Standard says the resulting code is still not safe
16831         in the presence of integer overflow, in practice it should be good
16832         enough for all real-world two's-complement implementations, except
16833         for debugging environments that deliberately trap on integer
16834         overflow (e.g., gcc -ftrapv).
16835
16836         * lib/mktime.c (WRAPV): New macro.
16837         (SHR): Also check that long_int and time_t shift right in the
16838         usual way, before using the fast-but-unportable method.
16839         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16840         used.  The code already assumed two's complement, so there's
16841         no need to test for alternatives.  All uses removed.
16842         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16843         the C standard.  Problem reported by Rich Felker in
16844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16845         (twos_complement_arithmetic): Also check long_int and time_t.
16846         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16847         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16848         (__mktime_internal): Avoid integer overflow with unary subtraction
16849         in two instances where -1 - X is an adequate replacement for -X,
16850         since the calculations are approximate.
16851
16852 2011-01-29  Eric Blake  <eblake@redhat.com>
16853
16854         mktime: avoid infinite loop
16855         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16856         type; behavior is still undefined but portable to all known targets.
16857         Reported by Rich Felker.
16858
16859 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16860
16861         rename, unlink, same-inode: Relicense.
16862         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16863         * modules/unlink (License): Likewise.
16864         * modules/same-inode (License): Likewise.
16865
16866 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16867
16868         mktime: avoid problems on NetBSD 5 / i386
16869         * lib/mktime.c (long_int): New type.  This works around a problem
16870         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16871         but time_t is 64 bits, and where I expect the existing code is
16872         wrong in some cases.
16873         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16874         (ydhms_diff): Bring back the compile-time check for wide-enough
16875         year and yday.
16876
16877         mktime: fix misspelling in comment
16878         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16879         This merges all recent glibc changes of importance.
16880
16881 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16882
16883         move-if-change: cope with concurrent mv of identical file.
16884         * build-aux/move-if-change (CMPPROG): Accept environment
16885         variable as an override for `cmp'.
16886         (usage): Document CMPPROG.
16887         Adjust comparison to drop stdout.  Cope with failure of mv if
16888         the target file exists and is identical to the source, for
16889         parallel builds.
16890         Report from H.J. Lu against binutils in PR binutils/12283.
16891
16892 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16893
16894         * users.txt: Mention sharutils.
16895
16896 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16897
16898         * users.txt: Mention OATH Toolkit.
16899
16900 2011-01-27  Bruno Haible  <bruno@clisp.org>
16901
16902         Prepare for supporting FreeBSD 10.
16903         * build-aux/config.libpath: Remove handling of freebsd1*.
16904
16905 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16906
16907         Prepare for supporting FreeBSD 10.
16908         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16909         match FreeBSD 10.0.
16910
16911 2011-01-27  Bruno Haible  <bruno@clisp.org>
16912
16913         vma-iter, get-rusage-as: Add OpenBSD support.
16914         * modules/vma-iter (configure.ac): Test for mquery.
16915         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16916         * lib/vma-iter.c: Include <sys/mman.h>.
16917         (vma_iterate): Add an implementation based on mquery().
16918         * lib/resource-ext.h (get_rusage_as): Update comments.
16919         * lib/get-rusage-as.c: Likewise.
16920         * lib/get-rusage-data.c: Likewise.
16921
16922 2011-01-26  Karl Berry  <karl@gnu.org>
16923
16924         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16925         variables to make it easier to override the makeinfo program used.
16926
16927 2011-01-26  Eric Blake  <eblake@redhat.com>
16928
16929         fcntl: work around Haiku F_DUPFD bugs
16930         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16931         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16932         cloexec bit on duplication.
16933         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16934
16935 2011-01-26  Bruno Haible  <bruno@clisp.org>
16936
16937         Enable memory leak tests on AIX.
16938         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16939         * tests/test-fprintf-posix3.c (main): Likewise.
16940
16941 2011-01-26  Bruno Haible  <bruno@clisp.org>
16942
16943         Tests for module 'get-rusage-data'.
16944         * modules/get-rusage-data-tests: New file.
16945         * tests/test-get-rusage-data.c: New file.
16946
16947         New module 'get-rusage-data'.
16948         * lib/resource-ext.h (get_rusage_data): New declaration.
16949         * lib/get-rusage-data.c: New file.
16950         * modules/get-rusage-data: New file.
16951
16952 2011-01-25  Bruno Haible  <bruno@clisp.org>
16953
16954         get-rusage-as: Allow for easier testing.
16955         * lib/resource-ext.h (get_rusage_as): Add comment.
16956         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16957         (main): New function for interactive testing.
16958
16959 2011-01-25  Bruno Haible  <bruno@clisp.org>
16960
16961         vma-iter: Treat Haiku like BeOS.
16962         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16963         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16964
16965 2011-01-25  Eric Blake  <eblake@redhat.com>
16966
16967         c-stack: fix regression on cygwin when libsigsegv is present
16968         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16969
16970 2011-01-24  Bruno Haible  <bruno@clisp.org>
16971
16972         vma-iter: Avoid empty intervals.
16973         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16974         on an empty interval.
16975
16976 2011-01-24  Jim Meyering  <meyering@redhat.com>
16977
16978         u64: remove unnecessary #include
16979         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16980
16981 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16982
16983         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16984         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16985
16986 2011-01-23  Bruno Haible  <bruno@clisp.org>
16987
16988         New module 'vma-iter'.
16989         * lib/vma-iter.h: New file.
16990         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16991         * modules/vma-iter: New file.
16992         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16993         for get_rusage_as_via_iterator.
16994         (vma_iterate_callback): New function.
16995         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16996         * modules/get-rusage-as (Depends-on): Add vma-iter.
16997
16998 2011-01-23  Bruno Haible  <bruno@clisp.org>
16999
17000         uninorm: Tweak includes.
17001         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17002         Reported by Jim Meyering.
17003
17004 2011-01-23  Bruno Haible  <bruno@clisp.org>
17005
17006         get-rusage-as: Improve on NetBSD.
17007         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17008         /proc, like on FreeBSD.
17009
17010 2011-01-23  Jim Meyering  <meyering@redhat.com>
17011
17012         xreadlink.h: remove unnecessary #include
17013         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17014
17015         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17016         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17017
17018 2011-01-23  Bruno Haible  <bruno@clisp.org>
17019
17020         get-rusage-as: Fix bug.
17021         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17022         original limit when aborting the first loop.
17023
17024 2011-01-23  Bruno Haible  <bruno@clisp.org>
17025
17026         wctype: Ensure valid C syntax.
17027         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17028         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17029
17030 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17031
17032         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17034         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17035         as they are needed only for configure's test case.
17036         This removes two unnecessary symbols from config.h.
17037
17038         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17039         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17040         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17041         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17042         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17043         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17044         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17045         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17046         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17047         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17048         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17049         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17050         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17051         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17052         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17053         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17054         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17055         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17056
17057 2011-01-21  Eric Blake  <eblake@redhat.com>
17058
17059         maintainer-makefile: work with older git for submodule check
17060         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17061         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17062         Reported by Matthias Bolte.
17063
17064         bootstrap: minor portability fixes
17065         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17066         (usage): Omit leading capital and trailing . on help phrases, per
17067         GNU Coding Standards.
17068         (check_versions, top level): Prefix messages with script name.
17069
17070 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17071
17072         bootstrap: support --no-git option
17073         * build-aux/bootstrap: Add --no-git option, to be used when
17074         --gnulib-srcdir points to the exact desired checkout.
17075
17076 2011-01-21  Eric Blake  <eblake@redhat.com>
17077
17078         strerror_r-posix: work with glibc 2.13
17079         * lib/strerror_r.c (strerror_r): Fix return type.
17080
17081 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17082             Bruno Haible  <bruno@clisp.org>
17083
17084         uN_strstr: New unit tests.
17085         * modules/unistr/u8-strstr-tests: New file.
17086         * modules/unistr/u16-strstr-tests: New file.
17087         * modules/unistr/u32-strstr-tests: New file.
17088         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17089         * tests/unistr/test-u8-strstr.c: New file.
17090         * tests/unistr/test-u16-strstr.c: New file.
17091         * tests/unistr/test-u32-strstr.c: New file.
17092
17093 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17094             Bruno Haible  <bruno@clisp.org>
17095
17096         Make uN_strstr functions O(n) worst-case.
17097         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17098         16-bit and 32-bit unit cases, use the unibyte algorithm from
17099         lib/mbsstr.c.
17100         * lib/unistr/u8-strstr.c: Include <string.h>.
17101         (UNIT_IS_UINT8_T): New macro.
17102         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17103         (U_STRLEN, U_STRNLEN): New macros.
17104         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17105         (U_STRLEN, U_STRNLEN): New macros.
17106         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17107         (configure.ac): Update required libunistring version.
17108         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17109         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17110         malloca.
17111         (configure.ac): Update required libunistring version.
17112         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17113         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17114         malloca.
17115         (configure.ac): Update required libunistring version.
17116
17117 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17118             Bruno Haible  <bruno@clisp.org>
17119
17120         Prepare for faster uN_strstr functions.
17121         * lib/str-kmp.h: Support definable UNITs.
17122         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17123         needle_len argument.
17124         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17125         * lib/mbscasestr.c (mbscasestr): Likewise.
17126
17127 2011-01-21  Pádraig Brady <P@draigBrady.com>
17128
17129         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17130         * tests/test-malloca.c (main): Unset the environment variable
17131         to greatly speed up the test.
17132         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17133         * modules/malloca-tests: Depend on unsetenv.
17134
17135 2011-01-21  Pádraig Brady <P@draigBrady.com>
17136
17137         ignore-value: remove stdint dependency
17138         * lib/ignore-value.h: Remove <stdint.h>
17139         * modules/ignore-value: Remove stdint dependency.
17140
17141 2011-01-21  Jim Meyering  <meyering@redhat.com>
17142
17143         maint.mk: adjust variable name to be consistent with other gl_ vars
17144         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17145         to be lower case.
17146
17147 2011-01-20  Jim Meyering  <meyering@redhat.com>
17148
17149         maint.mk: make "check" depend on public-submodule-commit by default
17150         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17151
17152 2011-01-20  Bruno Haible  <bruno@clisp.org>
17153
17154         mbfile, mbiter: Complete change from 2008-12-21.
17155         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17156         * m4/mbiter.m4 (gl_MBITER): Likewise.
17157
17158 2011-01-20  Jim Meyering  <meyering@redhat.com>
17159
17160         init.sh: insert space between each function name and "()"
17161         * tests/init.sh: Make it a little easier to see that a function's
17162         name is "warn_", and not "warn" when looking at the first part of
17163         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17164
17165 2011-01-20  Jim Meyering  <meyering@redhat.com>
17166
17167         mountlist: clean up code formatting
17168         * lib/mountlist.c (read_file_system_list): Split a long line,
17169         correct bracing style, use NULL in place of "(struct statfs *)0",
17170         don't parenthesize return value, add spaces around "=" and after
17171         ";-in-for-stmt".
17172
17173 2011-01-14  Markus Duft <mduft@gentoo.org>
17174
17175         mountlist: add support for Interix
17176         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17177         Apply statvfs to all entries of /dev/fs.
17178         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17179         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17180
17181 2011-01-20  Jim Meyering  <meyering@redhat.com>
17182
17183         maint.mk: improve the public-submodule-commit rule
17184         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17185         to suppress printing of its commands... unless V=1.
17186         Add git submodule's --quiet option to suppress printing of e.g.,
17187         "Entering gnulib" output.
17188         "cd" into $(srcdir) before running git submodule.
17189
17190 2011-01-20  Bruno Haible  <bruno@clisp.org>
17191
17192         include_next: Fix bug introduced on 2011-01-18.
17193         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17194         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17195         ac_cv_header_... variable if the second argument is not 'check'.
17196         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17197         gl_NEXT_HEADERS_INTERNAL.
17198
17199 2011-01-20  Bruno Haible  <bruno@clisp.org>
17200
17201         Allow the user to avoid the GNULIB_TEST_* macros.
17202         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17203         Suggested by Paul Eggert.
17204
17205 2011-01-14  Jim Meyering  <meyering@redhat.com>
17206
17207         bootstrap: avoid failure when there is no .gitmodules file
17208         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17209         has been assigned to, even when its value is the empty string.
17210         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17211         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17212         Reported by John W. Eaton <jwe@gnu.org>.
17213
17214 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17215
17216         assume <ctype.h>, ..., <time.h> exist
17217         For years gnulib has been assuming the existence of the headers
17218         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17219         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17220         them, since they don't appear to be needed.
17221         * README (Portability guidelines): Document this.
17222         * lib/flock.c: Assume <fcntl.h> exists.
17223         * lib/regex_internal.h: Assume <locale.h> exists.
17224         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17225         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17226         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17227         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17228         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17229         * m4/regex.m4 (gl_REGEX): Likewise.
17230         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17231         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17232         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17233         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17234         * tests/test-argp.c: Likewise.
17235         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
17236
17237         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
17238         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
17239         AA_APPLE_UNIVERSAL_BUILD.  See
17240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
17241         * NEWS: Document this.
17242
17243 2011-01-19  Eric Blake  <eblake@redhat.com>
17244
17245         c-stack: assume stack overflow if SA_SIGINFO unsupported
17246         * lib/c-stack.c (SIGACTION_WORKS): Rename...
17247         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
17248         sigaction will work.
17249         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
17250         behavior match Linux.
17251         * tests/test-c-stack.c (main): Prefer NULL for pointers.
17252
17253         stdbool-tests: accomodate Haiku
17254         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
17255
17256         binary-io: fix O_TEXT on Haiku
17257         * modules/binary-io (Depends-on): Add fcntl-h.
17258         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
17259         than blindly undefining O_TEXT.
17260         Reported by Scott McCreary.
17261
17262 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17263
17264         include_next: do not check for standard headers like stddef.h
17265
17266         I found this problem when modifying Emacs to use gnulib.
17267         I noticed that it added HAVE_STDDEF_H to config.h, even though
17268         gnulib always assumes <stddef.h> exists as per README and this
17269         symbol is unnecessary.
17270         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
17271         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
17272         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
17273         faster for headers like stddef.h that are known to exist.
17274         (gl_CHECK_NEXT_HEADERS): Use it.
17275         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
17276         rather than gl_CHECK_NEXT_HEADERS.
17277         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
17278         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
17279
17280 2011-01-18  Eric Blake  <eblake@redhat.com>
17281
17282         ansi-c++-opt: skip C++ dependency style if C++ is unused
17283         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
17284         tests when we know C++ compilation is not desired.
17285         Reported by Scott McCreary.
17286
17287 2011-01-18  Bruno Haible  <bruno@clisp.org>
17288
17289         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
17290         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
17291         (main): Perform test also when getrlimit and setrlimit don't exist or
17292         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
17293         limiting the address space size using setrlimit, compare the address
17294         space size before and after the the test.
17295         * tests/test-dprintf-posix2.c: Likewise.
17296         * tests/test-fprintf-posix3.sh: Update skip messages.
17297         * tests/test-dprintf-posix2.sh: Likewise.
17298         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
17299         * modules/dprintf-posix-tests (Depends-on): Likewise.
17300         Reported by Bruce Korb <bkorb@gnu.org> and
17301         Gary V. Vaughan <gary@gnu.org>.
17302
17303 2011-01-18  Bruno Haible  <bruno@clisp.org>
17304
17305         get-rusage-as: Improvement for Cygwin.
17306         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
17307         areas that are merely reserved.
17308
17309 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17310
17311         strftime: remove dependencies on multibyte modules
17312
17313         strftime depended on mbrlen, mbsinit, and wchar, but these modules
17314         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
17315         only if __osf__ is defined, and I suspect OSF doesn't need these
17316         other modules.  If my guess is wrong, we'll need to come up with a
17317         variant of strftime that doesn't need the multibyte modules.
17318
17319         I discovered this problem when attempting modify Emacs to use the
17320         strftime module.  With the previous gnulib, this caused Emacs to
17321         need 31 new files, ranging from lib/config.charset to
17322         m4/wint_t.m4.  This was overkill and I expect would be offputting
17323         to the Emacs maintainers.  After this change, only 6 new files are
17324         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
17325         stdbool.m4, and tm_gmtoff.m4.
17326
17327         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
17328         Suggested by Bruno Haible in
17329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
17330         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
17331         and do not check for wchar.h.
17332         * modules/strftime (Files): Remove m4/mbstate_t.m4.
17333         (Depends-on): Remove mbrlen, mbsinit, wchar.
17334
17335 2011-01-18  Bruno Haible  <bruno@clisp.org>
17336
17337         Tests for module 'get-rusage-as'.
17338         * modules/get-rusage-as-tests: New file.
17339         * tests/test-get-rusage-as.c: New file.
17340
17341         New module 'get-rusage-as'.
17342         * modules/get-rusage-as: New file.
17343         * lib/resource-ext.h: New file.
17344         * lib/get-rusage-as.c: New file.
17345
17346 2011-01-17  Eric Blake  <eblake@redhat.com>
17347
17348         sigaction: relax license from LGPLv3+ to LGPLv2+
17349         * modules/sigaction (License): Relax to LGPLv2+.
17350
17351 2011-01-14  Bruno Haible  <bruno@clisp.org>
17352
17353         filemode: Make function declarations usable in C++ mode.
17354         * lib/filemode.h: Enclose function declarations in extern "C" block.
17355         Reported by John W. Eaton <jwe@gnu.org>.
17356
17357 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
17358
17359         save-cwd: no longer include "xgetcwd.h"
17360         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
17361         This avoids a compilation failure in projects that use save-cwd
17362         without also using the xgetcwd module.
17363
17364 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17365
17366         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17367         This is so that a program like Emacs, which needs only dtoastr,
17368         does not have to bother with distributing and compiling ftoastr
17369         and ldtoastr.
17370         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17371         * modules/dtoastr, modules/ldtoastr: New files.
17372         * modules/ftoastr: Now works just for 'float'.
17373         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17374         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17375         dtoastr.c, ldtoastr.c.
17376
17377 2011-01-11  Jim Meyering  <meyering@redhat.com>
17378
17379         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17380         There is no need to work around the lack of the fchdir function,
17381         since gnulib can now provide a replacement when required.
17382         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17383         * modules/save-cwd (Depends-on): Add fchdir.
17384
17385 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17386
17387         openat, save-cwd: avoid xmalloc
17388
17389         This removes a direct (but undocumented) dependency of openat on
17390         xalloc, along with an indirect dependency via save-cwd.  It also
17391         removes a dependency of save-cwd on xgetcwd, and thereby
17392         indirectly on xalloc.  This change causes the openat substitute
17393         to fall back on save_cwd when memory is tight, and for save_cwd to
17394         fail instead of dying when memory is tight, but that's good enough.
17395         Problem and initial idea for fix reported by Bastien Roucaries in
17396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17397
17398         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17399         xalloc.h (for xmalloc).
17400         (openat_proc_name): Use malloc, not xmalloc.
17401         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17402         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17403
17404         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17405         This avoids heap allocation for file names whose lengths are in
17406         the range 512..1023, with the upper bound increasing to at most
17407         4031 depending on the platform's PATH_MAX.  (We do not want
17408         pathmax.h here as it might supply a non-constant PATH_MAX.)
17409         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17410         Perhaps they should be moved to malloca.h?
17411         (OPENAT_BUFFER_SIZE): Use them.
17412
17413 2011-01-10  Bruno Haible  <bruno@clisp.org>
17414
17415         doc: Update users.txt.
17416         * users.txt: Add recutils.
17417
17418 2011-01-09  Karl Berry  <karl@gnu.org>
17419
17420         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17421
17422         * doc/configmake.texi: New file.
17423         * doc/gnulib.texi: Include it.
17424         * modules/configmake: Move documentation from here.
17425
17426 2011-01-09  Bruno Haible  <bruno@clisp.org>
17427
17428         Update to Unicode 6.0.0.
17429         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17430         (get_lbp): Update for Unicode 6.0.0.
17431         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17432         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17433         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17434         U+11001, U+11038..U+11046. Remove U+06DE.
17435         (uc_width): Fix bounds of planes.
17436         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17437         lib/uniwidth/width.c.
17438         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17439         trailing whitespace removed.
17440         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17441         without comments, but with the original copyright notice.
17442         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17443         * lib/unicase/ignorable.h: Likewise.
17444         * lib/unicase/tocasefold.h: Likewise.
17445         * lib/unicase/tolower.h: Likewise.
17446         * lib/unicase/totitle.h: Likewise.
17447         * lib/unicase/toupper.h: Likewise.
17448         * lib/unictype/bidi_of.h: Likewise.
17449         * lib/unictype/blocks.h: Likewise.
17450         * lib/unictype/categ_C.h: Likewise.
17451         * lib/unictype/categ_Cn.h: Likewise.
17452         * lib/unictype/categ_L.h: Likewise.
17453         * lib/unictype/categ_Ll.h: Likewise.
17454         * lib/unictype/categ_Lm.h: Likewise.
17455         * lib/unictype/categ_Lo.h: Likewise.
17456         * lib/unictype/categ_Lu.h: Likewise.
17457         * lib/unictype/categ_M.h: Likewise.
17458         * lib/unictype/categ_Mc.h: Likewise.
17459         * lib/unictype/categ_Me.h: Likewise.
17460         * lib/unictype/categ_Mn.h: Likewise.
17461         * lib/unictype/categ_N.h: Likewise.
17462         * lib/unictype/categ_Nd.h: Likewise.
17463         * lib/unictype/categ_No.h: Likewise.
17464         * lib/unictype/categ_P.h: Likewise.
17465         * lib/unictype/categ_Po.h: Likewise.
17466         * lib/unictype/categ_S.h: Likewise.
17467         * lib/unictype/categ_Sc.h: Likewise.
17468         * lib/unictype/categ_Sk.h: Likewise.
17469         * lib/unictype/categ_Sm.h: Likewise.
17470         * lib/unictype/categ_So.h: Likewise.
17471         * lib/unictype/categ_of.h: Likewise.
17472         * lib/unictype/combining.h: Likewise.
17473         * lib/unictype/ctype_alnum.h: Likewise.
17474         * lib/unictype/ctype_alpha.h: Likewise.
17475         * lib/unictype/ctype_graph.h: Likewise.
17476         * lib/unictype/ctype_lower.h: Likewise.
17477         * lib/unictype/ctype_print.h: Likewise.
17478         * lib/unictype/ctype_punct.h: Likewise.
17479         * lib/unictype/ctype_upper.h: Likewise.
17480         * lib/unictype/decdigit.h: Likewise.
17481         * lib/unictype/digit.h: Likewise.
17482         * lib/unictype/numeric.h: Likewise.
17483         * lib/unictype/pr_alphabetic.h: Likewise.
17484         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17485         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17486         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17487         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17488         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17489         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17490         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17491         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17492         * lib/unictype/pr_case_ignorable.h: Likewise.
17493         * lib/unictype/pr_cased.h: Likewise.
17494         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17495         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17496         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17497         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17498         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17499         * lib/unictype/pr_combining.h: Likewise.
17500         * lib/unictype/pr_composite.h: Likewise.
17501         * lib/unictype/pr_currency_symbol.h: Likewise.
17502         * lib/unictype/pr_decimal_digit.h: Likewise.
17503         * lib/unictype/pr_deprecated.h: Likewise.
17504         * lib/unictype/pr_format_control.h: Likewise.
17505         * lib/unictype/pr_grapheme_base.h: Likewise.
17506         * lib/unictype/pr_grapheme_extend.h: Likewise.
17507         * lib/unictype/pr_grapheme_link.h: Likewise.
17508         * lib/unictype/pr_id_continue.h: Likewise.
17509         * lib/unictype/pr_id_start.h: Likewise.
17510         * lib/unictype/pr_ideographic.h: Likewise.
17511         * lib/unictype/pr_lowercase.h: Likewise.
17512         * lib/unictype/pr_math.h: Likewise.
17513         * lib/unictype/pr_numeric.h: Likewise.
17514         * lib/unictype/pr_other_alphabetic.h: Likewise.
17515         * lib/unictype/pr_other_id_continue.h: Likewise.
17516         * lib/unictype/pr_other_math.h: Likewise.
17517         * lib/unictype/pr_punctuation.h: Likewise.
17518         * lib/unictype/pr_sentence_terminal.h: Likewise.
17519         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17520         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17521         * lib/unictype/pr_unified_ideograph.h: Likewise.
17522         * lib/unictype/pr_uppercase.h: Likewise.
17523         * lib/unictype/pr_xid_continue.h: Likewise.
17524         * lib/unictype/pr_xid_start.h: Likewise.
17525         * lib/unictype/scripts.h: Likewise.
17526         * lib/unictype/scripts_byname.gperf: Likewise.
17527         * lib/unictype/sy_java_ident.h: Likewise.
17528         * lib/unigbrk/gbrkprop.h: Likewise.
17529         * lib/unilbrk/lbrkprop1.h: Likewise.
17530         * lib/unilbrk/lbrkprop2.h: Likewise.
17531         * lib/uninorm/decomposition-table2.h: Likewise.
17532         * lib/uniwbrk/wbrkprop.h: Likewise.
17533         * tests/unicase/test-cased.c: Likewise.
17534         * tests/unicase/test-ignorable.c: Likewise.
17535         * tests/unicase/test-uc_tolower.c: Likewise.
17536         * tests/unicase/test-uc_totitle.c: Likewise.
17537         * tests/unicase/test-uc_toupper.c: Likewise.
17538         * tests/unictype/test-categ_C.c: Likewise.
17539         * tests/unictype/test-categ_Cn.c: Likewise.
17540         * tests/unictype/test-categ_L.c: Likewise.
17541         * tests/unictype/test-categ_Ll.c: Likewise.
17542         * tests/unictype/test-categ_Lm.c: Likewise.
17543         * tests/unictype/test-categ_Lo.c: Likewise.
17544         * tests/unictype/test-categ_Lu.c: Likewise.
17545         * tests/unictype/test-categ_M.c: Likewise.
17546         * tests/unictype/test-categ_Mc.c: Likewise.
17547         * tests/unictype/test-categ_Me.c: Likewise.
17548         * tests/unictype/test-categ_Mn.c: Likewise.
17549         * tests/unictype/test-categ_N.c: Likewise.
17550         * tests/unictype/test-categ_Nd.c: Likewise.
17551         * tests/unictype/test-categ_No.c: Likewise.
17552         * tests/unictype/test-categ_P.c: Likewise.
17553         * tests/unictype/test-categ_Po.c: Likewise.
17554         * tests/unictype/test-categ_S.c: Likewise.
17555         * tests/unictype/test-categ_Sc.c: Likewise.
17556         * tests/unictype/test-categ_Sk.c: Likewise.
17557         * tests/unictype/test-categ_Sm.c: Likewise.
17558         * tests/unictype/test-categ_So.c: Likewise.
17559         * tests/unictype/test-ctype_alnum.c: Likewise.
17560         * tests/unictype/test-ctype_alpha.c: Likewise.
17561         * tests/unictype/test-ctype_graph.c: Likewise.
17562         * tests/unictype/test-ctype_lower.c: Likewise.
17563         * tests/unictype/test-ctype_print.c: Likewise.
17564         * tests/unictype/test-ctype_punct.c: Likewise.
17565         * tests/unictype/test-ctype_upper.c: Likewise.
17566         * tests/unictype/test-decdigit.h: Likewise.
17567         * tests/unictype/test-digit.h: Likewise.
17568         * tests/unictype/test-numeric.h: Likewise.
17569         * tests/unictype/test-pr_alphabetic.c: Likewise.
17570         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17571         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17572         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17573         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17574         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17575         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17576         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17577         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17578         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17579         * tests/unictype/test-pr_cased.c: Likewise.
17580         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17581         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17582         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17583         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17584         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17585         * tests/unictype/test-pr_combining.c: Likewise.
17586         * tests/unictype/test-pr_composite.c: Likewise.
17587         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17588         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17589         * tests/unictype/test-pr_deprecated.c: Likewise.
17590         * tests/unictype/test-pr_format_control.c: Likewise.
17591         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17592         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17593         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17594         * tests/unictype/test-pr_id_continue.c: Likewise.
17595         * tests/unictype/test-pr_id_start.c: Likewise.
17596         * tests/unictype/test-pr_ideographic.c: Likewise.
17597         * tests/unictype/test-pr_lowercase.c: Likewise.
17598         * tests/unictype/test-pr_math.c: Likewise.
17599         * tests/unictype/test-pr_numeric.c: Likewise.
17600         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17601         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17602         * tests/unictype/test-pr_other_math.c: Likewise.
17603         * tests/unictype/test-pr_punctuation.c: Likewise.
17604         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17605         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17606         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17607         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17608         * tests/unictype/test-pr_uppercase.c: Likewise.
17609         * tests/unictype/test-pr_xid_continue.c: Likewise.
17610         * tests/unictype/test-pr_xid_start.c: Likewise.
17611         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17612         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17613         changes.
17614         * lib/unictype/categ_Cc.h: Likewise.
17615         * lib/unictype/categ_Cf.h: Likewise.
17616         * lib/unictype/categ_Co.h: Likewise.
17617         * lib/unictype/categ_Cs.h: Likewise.
17618         * lib/unictype/categ_Lt.h: Likewise.
17619         * lib/unictype/categ_Nl.h: Likewise.
17620         * lib/unictype/categ_Pc.h: Likewise.
17621         * lib/unictype/categ_Pd.h: Likewise.
17622         * lib/unictype/categ_Pe.h: Likewise.
17623         * lib/unictype/categ_Pf.h: Likewise.
17624         * lib/unictype/categ_Pi.h: Likewise.
17625         * lib/unictype/categ_Ps.h: Likewise.
17626         * lib/unictype/categ_Z.h: Likewise.
17627         * lib/unictype/categ_Zl.h: Likewise.
17628         * lib/unictype/categ_Zp.h: Likewise.
17629         * lib/unictype/categ_Zs.h: Likewise.
17630         * lib/unictype/ctype_blank.h: Likewise.
17631         * lib/unictype/ctype_cntrl.h: Likewise.
17632         * lib/unictype/ctype_digit.h: Likewise.
17633         * lib/unictype/ctype_space.h: Likewise.
17634         * lib/unictype/ctype_xdigit.h: Likewise.
17635         * lib/unictype/mirror.h: Likewise.
17636         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17637         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17638         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17639         * lib/unictype/pr_bidi_control.h: Likewise.
17640         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17641         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17642         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17643         * lib/unictype/pr_bidi_pdf.h: Likewise.
17644         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17645         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17646         * lib/unictype/pr_dash.h: Likewise.
17647         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17648         * lib/unictype/pr_diacritic.h: Likewise.
17649         * lib/unictype/pr_extender.h: Likewise.
17650         * lib/unictype/pr_hex_digit.h: Likewise.
17651         * lib/unictype/pr_hyphen.h: Likewise.
17652         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17653         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17654         * lib/unictype/pr_ignorable_control.h: Likewise.
17655         * lib/unictype/pr_iso_control.h: Likewise.
17656         * lib/unictype/pr_join_control.h: Likewise.
17657         * lib/unictype/pr_left_of_pair.h: Likewise.
17658         * lib/unictype/pr_line_separator.h: Likewise.
17659         * lib/unictype/pr_logical_order_exception.h: Likewise.
17660         * lib/unictype/pr_non_break.h: Likewise.
17661         * lib/unictype/pr_not_a_character.h: Likewise.
17662         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17663         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17664         * lib/unictype/pr_other_id_start.h: Likewise.
17665         * lib/unictype/pr_other_lowercase.h: Likewise.
17666         * lib/unictype/pr_other_uppercase.h: Likewise.
17667         * lib/unictype/pr_paired_punctuation.h: Likewise.
17668         * lib/unictype/pr_paragraph_separator.h: Likewise.
17669         * lib/unictype/pr_pattern_syntax.h: Likewise.
17670         * lib/unictype/pr_pattern_white_space.h: Likewise.
17671         * lib/unictype/pr_private_use.h: Likewise.
17672         * lib/unictype/pr_quotation_mark.h: Likewise.
17673         * lib/unictype/pr_radical.h: Likewise.
17674         * lib/unictype/pr_soft_dotted.h: Likewise.
17675         * lib/unictype/pr_space.h: Likewise.
17676         * lib/unictype/pr_titlecase.h: Likewise.
17677         * lib/unictype/pr_variation_selector.h: Likewise.
17678         * lib/unictype/pr_white_space.h: Likewise.
17679         * lib/unictype/pr_zero_width.h: Likewise.
17680         * lib/unictype/sy_c_ident.h: Likewise.
17681         * lib/unictype/sy_c_whitespace.h: Likewise.
17682         * lib/unictype/sy_java_whitespace.h: Likewise.
17683         * lib/uninorm/composition-table.gperf: Likewise.
17684         * lib/uninorm/decomposition-table1.h: Likewise.
17685         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17686         LB8.
17687         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17688         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17689         * modules/unictype/*: Bump version number of expected libunistring
17690         version.
17691
17692 2011-01-09  Bruno Haible  <bruno@clisp.org>
17693
17694         Update to Unicode 5.2.0.
17695         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17696         trailing whitespace removed.
17697
17698 2011-01-09  Bruno Haible  <bruno@clisp.org>
17699
17700         New Unicode character properties, from Unicode 5.2.0.
17701         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17702         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17703         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17704         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17705         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17706         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17707         uc_is_property_cased, uc_is_property_case_ignorable,
17708         uc_is_property_changes_when_lowercased,
17709         uc_is_property_changes_when_uppercased,
17710         uc_is_property_changes_when_titlecased,
17711         uc_is_property_changes_when_casefolded,
17712         uc_is_property_changes_when_casemapped): New declarations.
17713         * lib/unictype/pr_byname.gperf: Add the new properties.
17714         * modules/unictype/property-byname (Depends-on): Depend on the new
17715         properties modules.
17716         * modules/unictype/property-all (Depends-on): Likewise.
17717         * MODULES.html.sh (Unicode string functions): Add
17718         unictype/property-case-ignorable, unictype/property-cased,
17719         unictype/property-changes-when-casefolded,
17720         unictype/property-changes-when-casemapped,
17721         unictype/property-changes-when-lowercased,
17722         unictype/property-changes-when-titlecased,
17723         unictype/property-changes-when-uppercased.
17724
17725         New module 'unictype/property-changes-when-casemapped'.
17726         * modules/unictype/property-changes-when-casemapped: New file.
17727         * lib/unictype/pr_changes_when_casemapped.c: New file.
17728         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17729         generated by gen-uni-tables.
17730         * modules/unictype/property-changes-when-casemapped-tests: New file.
17731         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17732         automatically generated by gen-uni-tables.
17733
17734         New module 'unictype/property-changes-when-casefolded'.
17735         * modules/unictype/property-changes-when-casefolded: New file.
17736         * lib/unictype/pr_changes_when_casefolded.c: New file.
17737         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17738         generated by gen-uni-tables.
17739         * modules/unictype/property-changes-when-casefolded-tests: New file.
17740         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17741         automatically generated by gen-uni-tables.
17742
17743         New module 'unictype/property-changes-when-titlecased'.
17744         * modules/unictype/property-changes-when-titlecased: New file.
17745         * lib/unictype/pr_changes_when_titlecased.c: New file.
17746         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17747         generated by gen-uni-tables.
17748         * modules/unictype/property-changes-when-titlecased-tests: New file.
17749         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17750         automatically generated by gen-uni-tables.
17751
17752         New module 'unictype/property-changes-when-uppercased'.
17753         * modules/unictype/property-changes-when-uppercased: New file.
17754         * lib/unictype/pr_changes_when_uppercased.c: New file.
17755         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17756         generated by gen-uni-tables.
17757         * modules/unictype/property-changes-when-uppercased-tests: New file.
17758         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17759         automatically generated by gen-uni-tables.
17760
17761         New module 'unictype/property-changes-when-lowercased'.
17762         * modules/unictype/property-changes-when-lowercased: New file.
17763         * lib/unictype/pr_changes_when_lowercased.c: New file.
17764         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17765         generated by gen-uni-tables.
17766         * modules/unictype/property-changes-when-lowercased-tests: New file.
17767         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17768         automatically generated by gen-uni-tables.
17769
17770         New module 'unictype/property-case-ignorable'.
17771         * modules/unictype/property-case-ignorable: New file.
17772         * lib/unictype/pr_case_ignorable.c: New file.
17773         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17774         by gen-uni-tables.
17775         * modules/unictype/property-case-ignorable-tests: New file.
17776         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17777         generated by gen-uni-tables.
17778
17779         New module 'unictype/property-cased'.
17780         * modules/unictype/property-cased: New file.
17781         * lib/unictype/pr_cased.c: New file.
17782         * lib/unictype/pr_cased.h: New file, automatically generated by
17783         gen-uni-tables.
17784         * modules/unictype/property-cased-tests: New file.
17785         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17786         gen-uni-tables.
17787
17788 2011-01-09  Bruno Haible  <bruno@clisp.org>
17789
17790         Update to Unicode 5.2.0.
17791         * lib/gen-uni-tables.c (output_predicate, output_category,
17792         output_combclass, output_bidi_category, output_decimal_digit_test,
17793         output_decimal_digit, output_digit_test, output_digit,
17794         output_numeric_test, output_numeric, output_mirror, output_scripts,
17795         output_scripts_byname, output_blocks, output_ident_category): Fix
17796         comment header.
17797         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17798         get_wbp.
17799         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17800         items.
17801         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17802         Changes_When_Lowercased, Changes_When_Uppercased,
17803         Changes_When_Titlecased, Changes_When_Casefolded,
17804         Changes_When_Casemapped.
17805         (is_property_alphabetic, is_property_default_ignorable_code_point):
17806         Update for Unicode 5.2.0.
17807         (is_property_cased, is_property_case_ignorable,
17808         is_property_changes_when_lowercased,
17809         is_property_changes_when_uppercased,
17810         is_property_changes_when_titlecased,
17811         is_property_changes_when_casefolded,
17812         is_property_changes_when_casemapped): New functions.
17813         (output_properties): Output also the properties cased, case_ignorable,
17814         changes_when_lowercased, changes_when_uppercased,
17815         changes_when_titlecased, changes_when_casefolded,
17816         changes_when_casemapped.
17817         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17818         Unicode TR#11 revision 17 -> 19.
17819         (LBP_CP): New enumeration value.
17820         (LBP_*): Adjust values accordingly.
17821         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17822         TR#14 revision 22 -> 24.
17823         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17824         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17825         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17826         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17827         is_WBP_MIDLETTER.
17828         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17829         the code1 and code2 of each composition rule.
17830         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17831         * lib/unicase/ignorable.h: Likewise.
17832         * lib/unicase/tocasefold.h: Likewise.
17833         * lib/unicase/tolower.h: Likewise.
17834         * lib/unicase/totitle.h: Likewise.
17835         * lib/unicase/toupper.h: Likewise.
17836         * lib/unictype/bidi_of.h: Likewise.
17837         * lib/unictype/blocks.h: Likewise.
17838         * lib/unictype/categ_C.h: Likewise.
17839         * lib/unictype/categ_Cf.h: Likewise.
17840         * lib/unictype/categ_Cn.h: Likewise.
17841         * lib/unictype/categ_L.h: Likewise.
17842         * lib/unictype/categ_Ll.h: Likewise.
17843         * lib/unictype/categ_Lm.h: Likewise.
17844         * lib/unictype/categ_Lo.h: Likewise.
17845         * lib/unictype/categ_Lu.h: Likewise.
17846         * lib/unictype/categ_M.h: Likewise.
17847         * lib/unictype/categ_Mc.h: Likewise.
17848         * lib/unictype/categ_Mn.h: Likewise.
17849         * lib/unictype/categ_N.h: Likewise.
17850         * lib/unictype/categ_Nd.h: Likewise.
17851         * lib/unictype/categ_Nl.h: Likewise.
17852         * lib/unictype/categ_No.h: Likewise.
17853         * lib/unictype/categ_P.h: Likewise.
17854         * lib/unictype/categ_Pd.h: Likewise.
17855         * lib/unictype/categ_Po.h: Likewise.
17856         * lib/unictype/categ_S.h: Likewise.
17857         * lib/unictype/categ_Sc.h: Likewise.
17858         * lib/unictype/categ_So.h: Likewise.
17859         * lib/unictype/categ_of.h: Likewise.
17860         * lib/unictype/combining.h: Likewise.
17861         * lib/unictype/ctype_alnum.h: Likewise.
17862         * lib/unictype/ctype_alpha.h: Likewise.
17863         * lib/unictype/ctype_graph.h: Likewise.
17864         * lib/unictype/ctype_lower.h: Likewise.
17865         * lib/unictype/ctype_print.h: Likewise.
17866         * lib/unictype/ctype_punct.h: Likewise.
17867         * lib/unictype/ctype_upper.h: Likewise.
17868         * lib/unictype/decdigit.h: Likewise.
17869         * lib/unictype/digit.h: Likewise.
17870         * lib/unictype/numeric.h: Likewise.
17871         * lib/unictype/pr_alphabetic.h: Likewise.
17872         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17873         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17874         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17875         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17876         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17877         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17878         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17879         * lib/unictype/pr_combining.h: Likewise.
17880         * lib/unictype/pr_composite.h: Likewise.
17881         * lib/unictype/pr_currency_symbol.h: Likewise.
17882         * lib/unictype/pr_dash.h: Likewise.
17883         * lib/unictype/pr_decimal_digit.h: Likewise.
17884         * lib/unictype/pr_deprecated.h: Likewise.
17885         * lib/unictype/pr_diacritic.h: Likewise.
17886         * lib/unictype/pr_extender.h: Likewise.
17887         * lib/unictype/pr_grapheme_base.h: Likewise.
17888         * lib/unictype/pr_grapheme_extend.h: Likewise.
17889         * lib/unictype/pr_grapheme_link.h: Likewise.
17890         * lib/unictype/pr_id_continue.h: Likewise.
17891         * lib/unictype/pr_id_start.h: Likewise.
17892         * lib/unictype/pr_ideographic.h: Likewise.
17893         * lib/unictype/pr_ignorable_control.h: Likewise.
17894         * lib/unictype/pr_logical_order_exception.h: Likewise.
17895         * lib/unictype/pr_lowercase.h: Likewise.
17896         * lib/unictype/pr_numeric.h: Likewise.
17897         * lib/unictype/pr_other_alphabetic.h: Likewise.
17898         * lib/unictype/pr_punctuation.h: Likewise.
17899         * lib/unictype/pr_sentence_terminal.h: Likewise.
17900         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17901         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17902         * lib/unictype/pr_unified_ideograph.h: Likewise.
17903         * lib/unictype/pr_uppercase.h: Likewise.
17904         * lib/unictype/pr_xid_continue.h: Likewise.
17905         * lib/unictype/pr_xid_start.h: Likewise.
17906         * lib/unictype/pr_zero_width.h: Likewise.
17907         * lib/unictype/scripts.h: Likewise.
17908         * lib/unictype/scripts_byname.gperf: Likewise.
17909         * lib/unictype/sy_java_ident.h: Likewise.
17910         * lib/unigbrk/gbrkprop.h: Likewise.
17911         * lib/unilbrk/lbrkprop1.h: Likewise.
17912         * lib/unilbrk/lbrkprop2.h: Likewise.
17913         * lib/unilbrk/lbrktables.h: Likewise.
17914         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17915         LBP_CP. Implement rule LB30.
17916         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17917         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17918         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17919         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17920         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17921         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17922         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17923         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17924         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17925         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17926         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17927         bits instead of 16 bits in the code1 and code2 of each composition
17928         rule.
17929         (uc_composition): Update for Unicode 5.2.0.
17930         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17931         * lib/uninorm/decomposition-table2.h: Likewise.
17932         * lib/uniwbrk/wbrkprop.h: Likewise.
17933         * tests/unicase/test-cased.c: Likewise.
17934         * tests/unicase/test-ignorable.c: Likewise.
17935         * tests/unicase/test-uc_tolower.c: Likewise.
17936         * tests/unicase/test-uc_totitle.c: Likewise.
17937         * tests/unicase/test-uc_toupper.c: Likewise.
17938         * tests/unictype/test-categ_C.c: Likewise.
17939         * tests/unictype/test-categ_Cf.c: Likewise.
17940         * tests/unictype/test-categ_Cn.c: Likewise.
17941         * tests/unictype/test-categ_L.c: Likewise.
17942         * tests/unictype/test-categ_Ll.c: Likewise.
17943         * tests/unictype/test-categ_Lm.c: Likewise.
17944         * tests/unictype/test-categ_Lo.c: Likewise.
17945         * tests/unictype/test-categ_Lu.c: Likewise.
17946         * tests/unictype/test-categ_M.c: Likewise.
17947         * tests/unictype/test-categ_Mc.c: Likewise.
17948         * tests/unictype/test-categ_Mn.c: Likewise.
17949         * tests/unictype/test-categ_N.c: Likewise.
17950         * tests/unictype/test-categ_Nd.c: Likewise.
17951         * tests/unictype/test-categ_Nl.c: Likewise.
17952         * tests/unictype/test-categ_No.c: Likewise.
17953         * tests/unictype/test-categ_P.c: Likewise.
17954         * tests/unictype/test-categ_Pd.c: Likewise.
17955         * tests/unictype/test-categ_Po.c: Likewise.
17956         * tests/unictype/test-categ_S.c: Likewise.
17957         * tests/unictype/test-categ_Sc.c: Likewise.
17958         * tests/unictype/test-categ_So.c: Likewise.
17959         * tests/unictype/test-ctype_alnum.c: Likewise.
17960         * tests/unictype/test-ctype_alpha.c: Likewise.
17961         * tests/unictype/test-ctype_graph.c: Likewise.
17962         * tests/unictype/test-ctype_lower.c: Likewise.
17963         * tests/unictype/test-ctype_print.c: Likewise.
17964         * tests/unictype/test-ctype_punct.c: Likewise.
17965         * tests/unictype/test-ctype_upper.c: Likewise.
17966         * tests/unictype/test-decdigit.h: Likewise.
17967         * tests/unictype/test-digit.h: Likewise.
17968         * tests/unictype/test-numeric.h: Likewise.
17969         * tests/unictype/test-pr_alphabetic.c: Likewise.
17970         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17971         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17972         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17973         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17974         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17975         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17976         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17977         * tests/unictype/test-pr_combining.c: Likewise.
17978         * tests/unictype/test-pr_composite.c: Likewise.
17979         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17980         * tests/unictype/test-pr_dash.c: Likewise.
17981         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17982         * tests/unictype/test-pr_deprecated.c: Likewise.
17983         * tests/unictype/test-pr_diacritic.c: Likewise.
17984         * tests/unictype/test-pr_extender.c: Likewise.
17985         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17986         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17987         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17988         * tests/unictype/test-pr_id_continue.c: Likewise.
17989         * tests/unictype/test-pr_id_start.c: Likewise.
17990         * tests/unictype/test-pr_ideographic.c: Likewise.
17991         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17992         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17993         * tests/unictype/test-pr_lowercase.c: Likewise.
17994         * tests/unictype/test-pr_numeric.c: Likewise.
17995         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17996         * tests/unictype/test-pr_punctuation.c: Likewise.
17997         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17998         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17999         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18000         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18001         * tests/unictype/test-pr_uppercase.c: Likewise.
18002         * tests/unictype/test-pr_xid_continue.c: Likewise.
18003         * tests/unictype/test-pr_xid_start.c: Likewise.
18004         * tests/unictype/test-pr_zero_width.c: Likewise.
18005         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18006         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18007         changed behaviour: line breaking is now disallowed between a letter
18008         or '=' and '('.
18009         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18010         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18011         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18012         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18013         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18014         lib/uniwidth/width.c.
18015         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18016         without comments, but with the original copyright notice.
18017         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18018         changes.
18019         * lib/unictype/categ_Cc.h: Likewise.
18020         * lib/unictype/categ_Co.h: Likewise.
18021         * lib/unictype/categ_Cs.h: Likewise.
18022         * lib/unictype/categ_Lt.h: Likewise.
18023         * lib/unictype/categ_Me.h: Likewise.
18024         * lib/unictype/categ_Pc.h: Likewise.
18025         * lib/unictype/categ_Pe.h: Likewise.
18026         * lib/unictype/categ_Pf.h: Likewise.
18027         * lib/unictype/categ_Pi.h: Likewise.
18028         * lib/unictype/categ_Ps.h: Likewise.
18029         * lib/unictype/categ_Sk.h: Likewise.
18030         * lib/unictype/categ_Sm.h: Likewise.
18031         * lib/unictype/categ_Z.h: Likewise.
18032         * lib/unictype/categ_Zl.h: Likewise.
18033         * lib/unictype/categ_Zp.h: Likewise.
18034         * lib/unictype/categ_Zs.h: Likewise.
18035         * lib/unictype/ctype_blank.h: Likewise.
18036         * lib/unictype/ctype_cntrl.h: Likewise.
18037         * lib/unictype/ctype_digit.h: Likewise.
18038         * lib/unictype/ctype_space.h: Likewise.
18039         * lib/unictype/ctype_xdigit.h: Likewise.
18040         * lib/unictype/mirror.h: Likewise.
18041         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18042         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18043         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18044         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18045         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18046         * lib/unictype/pr_bidi_control.h: Likewise.
18047         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18048         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18049         * lib/unictype/pr_bidi_pdf.h: Likewise.
18050         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18051         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18052         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18053         * lib/unictype/pr_format_control.h: Likewise.
18054         * lib/unictype/pr_hex_digit.h: Likewise.
18055         * lib/unictype/pr_hyphen.h: Likewise.
18056         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18057         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18058         * lib/unictype/pr_iso_control.h: Likewise.
18059         * lib/unictype/pr_join_control.h: Likewise.
18060         * lib/unictype/pr_left_of_pair.h: Likewise.
18061         * lib/unictype/pr_line_separator.h: Likewise.
18062         * lib/unictype/pr_math.h: Likewise.
18063         * lib/unictype/pr_non_break.h: Likewise.
18064         * lib/unictype/pr_not_a_character.h: Likewise.
18065         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18066         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18067         * lib/unictype/pr_other_id_continue.h: Likewise.
18068         * lib/unictype/pr_other_id_start.h: Likewise.
18069         * lib/unictype/pr_other_lowercase.h: Likewise.
18070         * lib/unictype/pr_other_math.h: Likewise.
18071         * lib/unictype/pr_other_uppercase.h: Likewise.
18072         * lib/unictype/pr_paired_punctuation.h: Likewise.
18073         * lib/unictype/pr_paragraph_separator.h: Likewise.
18074         * lib/unictype/pr_pattern_syntax.h: Likewise.
18075         * lib/unictype/pr_pattern_white_space.h: Likewise.
18076         * lib/unictype/pr_private_use.h: Likewise.
18077         * lib/unictype/pr_quotation_mark.h: Likewise.
18078         * lib/unictype/pr_radical.h: Likewise.
18079         * lib/unictype/pr_soft_dotted.h: Likewise.
18080         * lib/unictype/pr_space.h: Likewise.
18081         * lib/unictype/pr_titlecase.h: Likewise.
18082         * lib/unictype/pr_variation_selector.h: Likewise.
18083         * lib/unictype/pr_white_space.h: Likewise.
18084         * lib/unictype/sy_c_ident.h: Likewise.
18085         * lib/unictype/sy_c_whitespace.h: Likewise.
18086         * lib/unictype/sy_java_whitespace.h: Likewise.
18087         * modules/uni*/*: Bump version number of expected libunistring version.
18088         Reported by Simon Josefsson.
18089
18090 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18091
18092         useless-if-before-free: fix typo in --help and make the internal,
18093         automatic version date update process work once again.
18094         --help output contained a NUL character instead of the
18095         backslash-zero that was intended.  Also, the "must lie within
18096         the first 8 lines" line is on line 9, and hence not getting
18097         automatically updated.
18098         * build-aux/useless-if-before-free: Fix the former by adding a
18099         backslash, and the latter by condensing the three lines of what-it-does
18100         to a single line, leaving one line of slack for the future.
18101
18102 2011-01-09  Bruno Haible  <bruno@clisp.org>
18103
18104         uniwidth/width: Fix width of U+1D173..U+1D17A.
18105         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18106         symbolic_width, output_width_property_test): New functions.
18107         (main): Invoke output_nonspacing_property, output_width_property_test.
18108         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18109         U+1D173..U+1D17A.
18110         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18111         1.
18112         * modules/uniwidth/*: Bump version number of expected libunistring
18113         version.
18114         * modules/unilbrk/*: Likewise.
18115
18116 2011-01-08  Bruno Haible  <bruno@clisp.org>
18117
18118         uninorm tests: Preserve copyright of Unicode data file.
18119         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18120         Mention modifications.
18121
18122 2011-01-08  Bruno Haible  <bruno@clisp.org>
18123
18124         gen-uni-tables: Prepare for Unicode 5.2.0.
18125         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18126         (debug_output_lbp, output_lbp): Update.
18127
18128 2011-01-08  Bruno Haible  <bruno@clisp.org>
18129
18130         unilbrk: Clarify gen-uni-tables.c code.
18131         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18132         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18133         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18134
18135 2011-01-07  Bruno Haible  <bruno@clisp.org>
18136
18137         strtod: Restore errno when successfully parsing Infinity or NaN.
18138         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18139         restore the original errno.
18140
18141 2011-01-07  Bruno Haible  <bruno@clisp.org>
18142
18143         remove test: Avoid failure on HP-UX 11.
18144         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18145
18146 2011-01-07  Bruno Haible  <bruno@clisp.org>
18147
18148         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18149         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18150         error code.
18151
18152 2011-01-07  Pádraig Brady <P@draigBrady.com>
18153
18154         ignore-value: fixup comments, and add Eric Blake
18155         as an author since he rewrote the macros.
18156         * lib/ignore-value.h (ignore_value):  State that
18157         we now support aggregates.  Also specify exactly
18158         when the GCC warn_unused_result feature was added.
18159
18160 2011-01-06  Eric Blake  <eblake@redhat.com>
18161
18162         ignore-value: support aggregate types
18163         * lib/ignore-value.h (ignore_value): Provide separate gcc
18164         definition.
18165         * modules/ignore-value-tests: New test module.
18166         * tests/test-ignore-value.c: New test.
18167
18168         maint.mk: improve sc_prohibit_strcmp regex
18169         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18170         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18171         definition of STRNEQ.
18172
18173         signal: work around Haiku issue with SIGBUS
18174         * lib/siglist.h: Add comment.
18175         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18176         strsignal's favoring of SIGSEGV.
18177         * tests/test-signal.c (main): Avoid test failure.
18178         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18179         Reported by Scott McCreary.
18180
18181         maint.mk: add pre-release check to ensure submodule commits are public
18182         * top/maint.mk (public-submodule-commit): New rule.
18183         (submodule-checks): New variable.
18184         (alpha beta stable): Depend on the variable.
18185
18186 2011-01-05  Pádraig Brady <P@draigBrady.com>
18187         and Jim Meyering  <meyering@redhat.com>
18188
18189         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18190         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18191         (ATTRIBUTE_DEPRECATED): Define.
18192         (_ignore_case): New function.
18193         (ignore_value): New macro, to replace the old function.
18194         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18195         * modules/ignore-value (Depends-on): Add stdint.
18196
18197 2011-01-04  Eric Blake  <eblake@redhat.com>
18198
18199         doc: regenerate INSTALL
18200         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18201         @firstparagraphindent support, now that autoconf dropped it.
18202         (INSTALL_PRELUDE): Reinstate old macro.
18203         * doc/install.texi: Resync from autoconf.
18204         * doc/INSTALL: Reflect recent autoconf update.
18205         * doc/INSTALL.ISO: Likewise.
18206         * doc/INSTALL.UTF-8: Likewise.
18207         Reported by Karl Berry.
18208
18209 2011-01-04  Bruce Korb  <address@hidden>
18210
18211         git-version-gen: avoid a sub-shell
18212         * build-aux/git-version-gen: Redirect stderr in `...` via
18213         "exec 2>...", rather than via an added sub-shell.
18214
18215 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18216
18217         git-version-gen: use (...) rather than sh -c '...'
18218         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18219         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18220
18221 2011-01-03  Jim Meyering  <meyering@redhat.com>
18222
18223         git-version-gen: convert leading TABs to spaces
18224         * build-aux/git-version-gen: Expand leading TABs.
18225
18226         git-version-gen: handle failed "git rev-list"
18227         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18228         from git and proceeding as if it had succeeded but printed no SHA1
18229         checksums, suppress the diagnostic and handle the failure.
18230         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18231
18232         git-version-gen: include command name in one more diagnostic
18233         * build-aux/git-version-gen: When the required .tarball-version file
18234         was missing or unreadable, you might see the diagnostic from "cat",
18235         but no trace of the name of the invoking script.  Now, you still see
18236         the diagnostic from cat, but also get one from "git-version-gen: ".
18237         Inspired by a patch from Bruce Korb.
18238
18239         update-copyright: adjust test to match changed code
18240         * tests/test-update-copyright.sh: Change test's expected output
18241         to match new actual output.
18242
18243 2011-01-02  Bruno Haible  <bruno@clisp.org>
18244
18245         getlogin_r: Avoid test failure on HP-UX 11.
18246         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
18247         ERANGE when the second argument is zero.
18248         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
18249         portability problem.
18250
18251 2011-01-02  Bruce Korb  <bkorb@gnu.org>
18252
18253         * build-aux/update-copyright: doc Simon's changes
18254
18255 2011-01-02  Simon Josefsson  <simon@josefsson.org>
18256
18257         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
18258         environment variable.
18259
18260 2011-01-02  Bruno Haible  <bruno@clisp.org>
18261
18262         unigbrk: Avoid gcc warnings.
18263         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
18264         unused variable.
18265         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
18266         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
18267         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
18268         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
18269         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
18270         Change type of first argument to 'const char *'.
18271         (main): Remove unused variable.
18272         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
18273         type of first argument to 'const char *'.
18274         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
18275         Likewise.
18276         (main): Change type of variable 's'.
18277         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
18278         to 'int'.
18279
18280 2011-01-02  Bruno Haible  <bruno@clisp.org>
18281
18282         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
18283         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
18284         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
18285         bug.
18286         * lib/pwrite.c: Undo 2010-12-31 patch.
18287         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
18288
18289 2011-01-02  Bruno Haible  <bruno@clisp.org>
18290
18291         pread: Fix test whether it works.
18292         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
18293
18294 2011-01-02  Bruno Haible  <bruno@clisp.org>
18295
18296         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
18297         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
18298         ends in "6". Don't require a specific month name. Try also the locale
18299         names found on HP-UX 11 and Solaris 7.
18300
18301 2011-01-02  Bruno Haible  <bruno@clisp.org>
18302
18303         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
18304         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
18305         C linkage.
18306         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
18307
18308 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18309
18310         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
18311         for consistency, since the "cluster" term is not used elsewhere.
18312         * lib/unigbrk.in.h: Update name.
18313         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
18314         * lib/unigbrk/u16-grapheme-next.c: Update name.
18315         * lib/unigbrk/u16-grapheme-prev.c: Update name.
18316         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
18317         * lib/unigbrk/u32-grapheme-next.c: Update name.
18318         * lib/unigbrk/u32-grapheme-prev.c: Update name.
18319         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
18320         * lib/unigbrk/u8-grapheme-next.c: Update name.
18321         * lib/unigbrk/u8-grapheme-prev.c: Update name.
18322         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
18323         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
18324         Suggested by Bruno Haible.
18325
18326 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18327
18328         Remove module 'u8-grapheme-len' as too redundant with
18329         'u8-grapheme-next'.
18330         * modules/unigbrk/u8-grapheme-len: Delete file.
18331         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
18332         * lib/unigbrk.in.h: Remove prototype for deleted function.
18333         * lib/unigbrk/u8-grapheme-len.c: Delete file.
18334         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
18335
18336         Remove module 'u16-grapheme-len' as too redundant with
18337         'u16-grapheme-next'.
18338         * modules/unigbrk/u16-grapheme-len: Delete file.
18339         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
18340         * lib/unigbrk.in.h: Remove prototype for deleted function.
18341         * lib/unigbrk/u16-grapheme-len.c: Delete file.
18342         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
18343
18344         Remove module 'u32-grapheme-len' as too redundant with
18345         'u32-grapheme-next'.
18346         * modules/unigbrk/u32-grapheme-len: Delete file.
18347         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
18348         * lib/unigbrk.in.h: Remove prototype for deleted function.
18349         * lib/unigbrk/u32-grapheme-len.c: Delete file.
18350         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
18351
18352         Suggested by Bruno Haible.
18353
18354 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18355
18356         * unigbrk.in.h: Fix typo: "ben" => "been".
18357         Reported by Bruno Haible.
18358
18359 2011-01-01  Jim Meyering  <meyering@redhat.com>
18360
18361         maint: update almost all copyright ranges to include 2011
18362         Run the new "make update-copyright" rule.
18363
18364 2011-01-01  Jim Meyering  <meyering@redhat.com>
18365
18366         maint: update-copyright: exempt doc/INSTALL*
18367         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18368         since they are generated.  Suggested by Bruno Haible.
18369
18370 2011-01-01  Jim Meyering  <meyering@redhat.com>
18371
18372         maint: refine the update-copyright rule
18373         * Makefile (update-copyright): Also exclude any file that includes
18374         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18375         code that merely generates the comment.
18376
18377 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18378
18379         New module 'u8-grapheme-len'.
18380         * modules/unigbrk/u8-grapheme-len: New file.
18381         * modules/unigbrk/u8-grapheme-len-tests: New file.
18382         * lib/unigbrk.in.h: Add prototype for new function.
18383         * lib/unigbrk/u8-grapheme-len.c: New file.
18384         * tests/unigbrk/test-u8-grapheme-len.c: New file.
18385
18386         New module 'u16-grapheme-len'.
18387         * modules/unigbrk/u16-grapheme-len: New file.
18388         * modules/unigbrk/u16-grapheme-len-tests: New file.
18389         * lib/unigbrk.in.h: Add prototype for new function.
18390         * lib/unigbrk/u16-grapheme-len.c: New file.
18391         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18392
18393         New module 'u32-grapheme-len'.
18394         * modules/unigbrk/u32-grapheme-len: New file.
18395         * modules/unigbrk/u32-grapheme-len-tests: New file.
18396         * lib/unigbrk.in.h: Add prototype for new function.
18397         * lib/unigbrk/u32-grapheme-len.c: New file.
18398         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18399
18400         New module 'u8-grapheme-next'.
18401         * modules/unigbrk/u8-grapheme-next: New file.
18402         * modules/unigbrk/u8-grapheme-next-tests: New file.
18403         * lib/unigbrk.in.h: Add prototype for new function.
18404         * lib/unigbrk/u8-grapheme-next.c: New file.
18405         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18406
18407         New module 'u16-grapheme-next'.
18408         * modules/unigbrk/u16-grapheme-next: New file.
18409         * modules/unigbrk/u16-grapheme-next-tests: New file.
18410         * lib/unigbrk.in.h: Add prototype for new function.
18411         * lib/unigbrk/u16-grapheme-next.c: New file.
18412         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18413
18414         New module 'u32-grapheme-next'.
18415         * modules/unigbrk/u32-grapheme-next: New file.
18416         * modules/unigbrk/u32-grapheme-next-tests: New file.
18417         * lib/unigbrk.in.h: Add prototype for new function.
18418         * lib/unigbrk/u32-grapheme-next.c: New file.
18419         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18420
18421         New module 'u8-grapheme-prev'.
18422         * modules/unigbrk/u8-grapheme-prev: New file.
18423         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18424         * lib/unigbrk.in.h: Add prototype for new function.
18425         * lib/unigbrk/u8-grapheme-prev.c: New file.
18426         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18427
18428         New module 'u16-grapheme-prev'.
18429         * modules/unigbrk/u16-grapheme-prev: New file.
18430         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18431         * lib/unigbrk.in.h: Add prototype for new function.
18432         * lib/unigbrk/u16-grapheme-prev.c: New file.
18433         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18434
18435         New module 'u32-grapheme-prev'.
18436         * modules/unigbrk/u32-grapheme-prev: New file.
18437         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18438         * lib/unigbrk.in.h: Add prototype for new function.
18439         * lib/unigbrk/u32-grapheme-prev.c: New file.
18440         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18441
18442         New module 'u8-grapheme-breaks'.
18443         * modules/unigbrk/u8-grapheme-breaks: New file.
18444         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18445         * lib/unigbrk.in.h: Add prototype for new function.
18446         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18447         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18448
18449         New module 'u16-grapheme-breaks'.
18450         * modules/unigbrk/u16-grapheme-breaks: New file.
18451         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18452         * lib/unigbrk.in.h: Add prototype for new function.
18453         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18454         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18455
18456         New module 'u32-grapheme-breaks'.
18457         * modules/unigbrk/u32-grapheme-breaks: New file.
18458         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18459         * lib/unigbrk.in.h: Add prototype for new function.
18460         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18461         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18462
18463         New module 'ulc-grapheme-breaks'.
18464         * modules/unigbrk/ulc-grapheme-breaks: New file.
18465         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18466         * m4/locale-ar.m4: New file.
18467         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18468         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18469         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18470
18471 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18472
18473         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18474         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18475         modified how this file was generated before I initially submitted
18476         the module, but failed to regenerate it.  This meant that several
18477         of the level2 entries were wrong.
18478         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18479         Remove the division-by-2 that is folded into the table now that
18480         gbrkprop.h has been regenerated properly.  Now -1 entries are
18481         handled correctly.
18482
18483         New module 'unigbrk/uc-gbrk-prop-tests'.
18484         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18485         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18486         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18487         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18488
18489 2011-01-01  Bruno Haible  <bruno@clisp.org>
18490
18491         Avoid use of hexadecimal escapes.
18492         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18493         instead of hexadecimal escapes.
18494
18495 2011-01-01  Jim Meyering  <meyering@redhat.com>
18496
18497         maint: new rule to update copyright year ranges
18498         * Makefile (update-copyright): New rule.
18499
18500         maint: indent with TABs in Makefile
18501         * Makefile: Expand leading sequences of spaces to TABs
18502
18503         version-etc: update the copyright year it reports
18504         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18505
18506 2010-12-31  Bruno Haible  <bruno@clisp.org>
18507
18508         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18509         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18510         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18511         zero.
18512
18513 2010-12-31  Bruno Haible  <bruno@clisp.org>
18514
18515         pwrite: Work around HP-UX 11.11 bug.
18516         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18517         works and set REPLACE_PWRITE if not.
18518         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18519         function.
18520         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18521
18522 2010-12-31  Bruno Haible  <bruno@clisp.org>
18523
18524         pread: Work around HP-UX 11 bugs.
18525         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18526         and set REPLACE_PREAD if not.
18527         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18528
18529 2010-12-31  Eric Blake  <eblake@redhat.com>
18530
18531         nl_langinfo: fix YESEXPR on Irix 6.5
18532         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18533         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18534         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18535         it.
18536
18537 2010-12-31  Bruno Haible  <bruno@clisp.org>
18538
18539         iconv: Document HP-UX 11 bug.
18540         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18541
18542 2010-12-31  Bruno Haible  <bruno@clisp.org>
18543
18544         ldexpl: Fix link error on HP-UX 11.
18545         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18546         LDEXPL_LIBM, using $ISNANL_LIBM.
18547
18548 2010-12-31  Eric Blake  <eblake@redhat.com>
18549
18550         ftello: avoid compilation failure with SunStudio c89
18551         * lib/ftello.c (ftello): Use lseek, not llseek.
18552
18553         tests: avoid failing coreutils tests on cygwin
18554         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18555         (create_exe_shims_): Return 0 when skipping.
18556
18557 2010-12-31  Bruno Haible  <bruno@clisp.org>
18558
18559         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18560         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18561
18562 2010-12-31  Bruno Haible  <bruno@clisp.org>
18563
18564         waitpid: Fix link error in C++ mode.
18565         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18566
18567 2010-12-31  Bruno Haible  <bruno@clisp.org>
18568
18569         isnan: Use GCC built-ins when possible.
18570         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18571         __builtin_isnan.
18572         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18573         (isnan): Define using GCC built-ins for GCC >= 4.0.
18574
18575 2010-12-31  Bruno Haible  <bruno@clisp.org>
18576
18577         isnand: Fix mistake.
18578         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18579         __builtin_isnand.
18580
18581 2010-12-31  Bruno Haible  <bruno@clisp.org>
18582
18583         open: Avoid C++ error on HP-UX 11.
18584         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18585
18586 2010-12-31  Bruno Haible  <bruno@clisp.org>
18587
18588         time_r: Add missing declarations on HP-UX 11.
18589         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18590         instead of HAVE_LOCALTIME_R.
18591         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18592         HAVE_LOCALTIME_R always.
18593         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18594         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18595         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18596         HAVE_LOCALTIME_R.
18597         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18598         * doc/posix-functions/localtime_r.texi: Likewise.
18599
18600 2010-12-29  Eric Blake  <eblake@redhat.com>
18601
18602         mountlist: tweak previous commit
18603         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18604         Reported by Paul Eggert.
18605
18606         mountlist: fix local drive detection on cygwin
18607         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18608         that works for cygwin.
18609
18610 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18611
18612         ftoastr, snprintf: ftoastr + snprintf module
18613         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18614         since the snprintf module now should be good enough here.
18615         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18616         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18617         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18618         GNULIB_SNPRINTF only for the test directory, and the latter
18619         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18620         seems to suffice by itself.
18621
18622 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18623
18624         alloca: one step towards thread-safety
18625         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18626         need for a static variable.  All callers changed.  This does not
18627         make the alloca replacement thread-safe, but it's one step.
18628
18629         tests: minor indenting change
18630         * tests/init.sh: Sync from coreutils housekeeping patch
18631         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18632         to keep lines within 80 columns.
18633
18634 2010-12-28  Jim Meyering  <meyering@redhat.com>
18635
18636         regex: don't infloop on persistent failing calloc
18637         * lib/regexec.c (build_trtable): Return failure indication upon
18638         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18639         In glibc, this was fixed for version 2.13:
18640         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18641
18642 2010-12-28  Bruno Haible  <bruno@clisp.org>
18643             Paul Eggert <eggert@cs.ucla.edu>
18644
18645         linkat: Make implementation robust against system behaviour variations.
18646         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18647         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18648         way, and to -2 if it needs a generic runtime test.
18649         * lib/linkat.c (solaris_optimized_link_immediate,
18650         solaris_optimized_link_follow): New functions.
18651         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18652         (check_same_link): Use it.
18653
18654 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18655
18656         New module 'unigbrk/base'.
18657         * modules/unigbrk/base: New file.
18658         * lib/unigbrk.in.h: New file.
18659
18660         New module 'unigbrk/uc-gbrk-prop'.
18661         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18662         * modules/unigbrk/uc-gbrk-prop: New file.
18663         * lib/unigbrk/gbrkprop.h: New file.
18664         * lib/unigbrk/uc-gbrk-prop.c: New file.
18665
18666         New module 'unigbrk/uc-is-grapheme-break'.
18667         * modules/unigbrk/uc-is-grapheme-break: New file.
18668         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18669         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18670         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18671         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18672         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18673
18674         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18675
18676 2010-12-27  Bruno Haible  <bruno@clisp.org>
18677
18678         linkat test: Avoid failure on Solaris 11 2010-11.
18679         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18680
18681 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18682
18683         utimens: work around glibc rounding bug on more platforms
18684         * lib/utimens.c (fdutimens): Work around rounding bug even if
18685         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18686         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18687
18688 2010-12-27  Bruno Haible  <bruno@clisp.org>
18689
18690         select tests: Improve comments.
18691         * tests/test-select.c (do_select): Add comments.
18692
18693 2010-12-27  Bruno Haible  <bruno@clisp.org>
18694
18695         select tests: Safer way of handling timeout.
18696         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18697         at every invocation.
18698
18699 2010-12-27  Bruno Haible  <bruno@clisp.org>
18700
18701         select tests: Use 'bool' where appropriate.
18702         * tests/test-select.c (connect_to_socket): Change argument type to
18703         'bool'.
18704
18705 2010-12-27  Bruno Haible  <bruno@clisp.org>
18706
18707         select tests: Use existing modules.
18708         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18709         (configure.ac): Don't test for unistd.h.
18710         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18711         declared in <unistd.h>.
18712
18713 2010-12-27  Bruno Haible  <bruno@clisp.org>
18714
18715         mbrtowc: Work around a Solaris 7 bug.
18716         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18717         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18718         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18719         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18720         MBRTOWC_NULL_ARG1_BUG.
18721         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18722         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18723         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18724         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18725
18726 2010-12-27  Jim Meyering  <meyering@redhat.com>
18727
18728         read-file.c: tweak syntax
18729         * lib/read-file.c (fread_file): Remove space after "*" in function
18730         definitions.
18731
18732 2010-12-27  Bruno Haible  <bruno@clisp.org>
18733
18734         times test: Avoid gcc warnings on OSF/1.
18735         * tests/test-times.c (main): Cast printf arguments from clock_t to
18736         'long int'.
18737
18738 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18739
18740         utimens: work around glibc rounding bug on older Linux kernels
18741         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18742         on Linux with a glibc whose utimes might not work, then work
18743         around a longstanding glibc bug involving rounding rather than
18744         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18745         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18746
18747 2010-12-26  Bruno Haible  <bruno@clisp.org>
18748
18749         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18750         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18751         _GL_CXXALIAS_SYS.
18752         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18753
18754 2010-12-26  Bruno Haible  <bruno@clisp.org>
18755
18756         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18757         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18758         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18759         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18760         looking for the declaration.
18761         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18762         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18763         problem.
18764         * doc/posix-functions/inet_pton.texi: Likewise.
18765
18766 2010-12-26  Bruno Haible  <bruno@clisp.org>
18767
18768         arpa_inet: Use the common idioms with C++ support.
18769         * lib/arpa_inet.in.h: Include c++defs.h.
18770         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18771         support.
18772         * modules/arpa_inet (Depends-on): Add c++defs.
18773         (Makefile.am): Substitute the contents of c++defs.h.
18774         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18775         * modules/arpa_inet-c++-tests: New file.
18776         * tests/test-arpa_inet-c++.cc: New file.
18777
18778 2010-12-25  Bruno Haible  <bruno@clisp.org>
18779
18780         Fix more C++ link errors on Solaris 8.
18781         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18782         $(LIB_EACCESS).
18783         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18784         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18785         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18786         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18787         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18788
18789 2010-12-25  Bruno Haible  <bruno@clisp.org>
18790
18791         printf-posix: Fix link error when a non-GCC compiler is used.
18792         * lib/stdio.in.h (printf): When not using GCC, override printf
18793         correctly.
18794         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18795
18796 2010-12-25  Bruno Haible  <bruno@clisp.org>
18797
18798         strerror_r-posix: Update doc.
18799         * doc/posix-functions/strerror_r.texi: Update doc about the return
18800         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18801
18802 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18803
18804         utimens: simplify the logic of the previous change
18805         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18806         This should not affect whether the test succeeds or fails.
18807
18808         utimens: configure better on hosts with NFS clock skew
18809         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18810         uses the clock of the local host.  It might use the clock of the
18811         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18812         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18813
18814 2010-12-25  Bruno Haible  <bruno@clisp.org>
18815
18816         ptsname test: Avoid failure on Solaris.
18817         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18818         open a pseudo-terminal; don't use BSD-style ptys.
18819         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18820
18821 2010-12-25  Bruno Haible  <bruno@clisp.org>
18822
18823         ptsname: Avoid ERANGE failure on some systems.
18824         * lib/ptsname.c (buffer): Increase size.
18825
18826 2010-12-25  Bruno Haible  <bruno@clisp.org>
18827
18828         rename, renameat: Avoid test failures at NFS mounted locations.
18829         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18830         so that subsequent mkdir calls succeed.
18831
18832 2010-12-25  Bruno Haible  <bruno@clisp.org>
18833
18834         iswblank: Fix C++ link error on Solaris 8.
18835         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18836         _GL_FUNCDECL_SYS.
18837
18838 2010-12-25  Bruno Haible  <bruno@clisp.org>
18839
18840         unistd: Fix C++ link error on Solaris 8.
18841         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18842
18843 2010-12-25  Bruno Haible  <bruno@clisp.org>
18844
18845         readlink doc: Mention an old glibc bug.
18846         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18847
18848 2010-12-25  Bruno Haible  <bruno@clisp.org>
18849
18850         fcntl-h: Fix for use of C++ on glibc systems.
18851         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18852         also on glibc systems in C++ mode.
18853         Reported by Gary V. Vaughan <gary@gnu.org>.
18854
18855 2010-12-25  Bruno Haible  <bruno@clisp.org>
18856
18857         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18858         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18859
18860 2010-12-25  Bruno Haible  <bruno@clisp.org>
18861
18862         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18863         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18864         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18865         test whether truncl works according to ISO C 99 with IEC 60559.
18866         * m4/truncl-ieee.m4: New file.
18867         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18868         m4/signbit.m4.
18869         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18870
18871 2010-12-25  Bruno Haible  <bruno@clisp.org>
18872
18873         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18874         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18875         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18876         test whether ceill works according to ISO C 99 with IEC 60559.
18877         * m4/ceill-ieee.m4: New file.
18878         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18879         m4/signbit.m4.
18880         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18881
18882 2010-12-25  Bruno Haible  <bruno@clisp.org>
18883
18884         Ensure all prerequisites of <wchar.h> are included.
18885         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18886         before <wchar.h>.
18887         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18888         gl_MBRLEN_NUL_RETVAL): Likewise.
18889         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18890         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18891         AC_FUNC_MBRTOWC): Likewise.
18892         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18893         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18894         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18895         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18896         Likewise.
18897         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18898         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18899         (gl_WCHAR_H): Improve comments.
18900         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18901
18902 2010-12-25  Bruno Haible  <bruno@clisp.org>
18903
18904         strtok_r: Fix C syntax error in autoconf macro.
18905         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18906         characters in test program.
18907
18908 2010-12-24  Bruno Haible  <bruno@clisp.org>
18909
18910         ceil, trunc, round: Fix gcc warnings.
18911         * lib/ceil.c (MIN): Undefine before redefining.
18912         * lib/trunc.c (MIN): Likewise.
18913         * lib/round.c (MIN): Likewise.
18914         Include <math.h> first.
18915
18916 2010-12-24  Bruno Haible  <bruno@clisp.org>
18917
18918         select tests: Avoid failures on OSF/1 5.1.
18919         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18920         failure of closing the last socket; it may fail with ECONNRESET.
18921
18922 2010-12-24  Eric Blake  <eblake@redhat.com>
18923
18924         stdint: avoid HP-UX 10.20 preprocessor bug
18925         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18926         than #if.
18927         * tests/test-floor2.c (main): Likewise.
18928         Reported by Peter O'Gorman.
18929
18930         pipe: make obsoletion transition easier
18931         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18932         * modules/pipe (Files): Include revived file.
18933         (Include): Drop reference, to mirror getdate's behavior.
18934
18935 2010-12-24  Bruno Haible  <bruno@clisp.org>
18936
18937         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18938         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18939         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18940         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18941
18942 2010-12-24  Bruno Haible  <bruno@clisp.org>
18943
18944         gethostname: Ensure declaration on NonStop Kernel.
18945         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18946         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18947
18948 2010-12-24  Bruno Haible  <bruno@clisp.org>
18949
18950         sys_select: Ensure all necessary types on NonStop Kernel.
18951         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18952         include <sys/time.h>.
18953         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18954         NonStop Kernel.
18955         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18956
18957 2010-12-24  Bruno Haible  <bruno@clisp.org>
18958
18959         sys_select: Remove unneeded include.
18960         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18961         have <sys/select.h>.
18962
18963 2010-12-24  Bruno Haible  <bruno@clisp.org>
18964
18965         gethostname: Provide a fallback for HOST_NAME_MAX.
18966         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18967         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18968         instead.
18969         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18970
18971 2010-12-24  Bruno Haible  <bruno@clisp.org>
18972
18973         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18974         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18975         (SA_RESTART): Likewise.
18976         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18977
18978 2010-12-24  Bruno Haible  <bruno@clisp.org>
18979
18980         signal: Define NSIG.
18981         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18982         * tests/test-signal.c (nsig): New variable.
18983         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18984
18985 2010-12-24  Bruno Haible  <bruno@clisp.org>
18986
18987         rename, renameat: Avoid test failures on OSF/1 5.1.
18988         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18989         alternative error codes.
18990         * tests/test-renameat.c (main): Likewise.
18991
18992 2010-12-24  Bruno Haible  <bruno@clisp.org>
18993
18994         *printf: Detect large precisions bug on Solaris 10/SPARC.
18995         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18996         by Paul Eggert.
18997         * tests/test-snprintf-posix.h (test_function): Add this test code here
18998         too.
18999         * tests/test-sprintf-posix.h (test_function): Likewise.
19000         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19001         * tests/test-vasprintf-posix.c (test_function): Likewise.
19002         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19003         around by gnulib.
19004         * doc/posix-functions/printf.texi: Likewise.
19005         * doc/posix-functions/snprintf.texi: Likewise.
19006         * doc/posix-functions/sprintf.texi: Likewise.
19007         * doc/posix-functions/vfprintf.texi: Likewise.
19008         * doc/posix-functions/vprintf.texi: Likewise.
19009         * doc/posix-functions/vsnprintf.texi: Likewise.
19010         * doc/posix-functions/vsprintf.texi: Likewise.
19011         * doc/posix-functions/dprintf.texi: Undo last commit.
19012         * doc/posix-functions/vdprintf.texi: Likewise.
19013
19014 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19015
19016         tests: port test-fdutimensat.c to Solaris 8
19017         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19018         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19019         On Solaris 8, it fails with errno == ENOSYS, because there is no
19020         futimens (so it can't use the fd), and there is no lutimens (so it
19021         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19022
19023         vsnprintf: make more consistent with snprintf; doc fixes
19024
19025         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19026         the byte count return problem was promoted from the snprintf-posix
19027         to the snprintf module.
19028         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19029         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19030         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19031         * tests/test-snprintf.c (main): Check the byte count returned.
19032         * tests/test-vsnprintf.c (main): Likewise.
19033
19034 2010-12-23  Eric Blake  <eblake@redhat.com>
19035
19036         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19037         * modules/sigpipe (License): Relax license.
19038
19039 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19040
19041         doc: document Solaris printf bug with large float precisions
19042         * doc/posix-functions/dprintf.texi (dprintf):
19043         * doc/posix-functions/fprintf.texi (fprintf):
19044         * doc/posix-functions/printf.texi (printf):
19045         * doc/posix-functions/snprintf.texi (snprintf):
19046         * doc/posix-functions/sprintf.texi (sprintf):
19047         * doc/posix-functions/vdprintf.texi (vdprintf):
19048         * doc/posix-functions/vfprintf.texi (vfprintf):
19049         * doc/posix-functions/vprintf.texi (vprintf):
19050         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19051         * doc/posix-functions/vsprintf.texi (vsprintf):
19052         Mention that these functions mishandle large floating point
19053         precisions on Solaris 10.  The same bug is also present in Solaris
19054         8, and I assume earlier.  This causes "cd gnulib-tests; make
19055         check" to fail on Solaris 8 (and I assume, later) when building
19056         the latest coreutils, in test-vasprintf-posix's call to
19057         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19058         the wide flavors (e.g., wprintf) so this patch just updates the
19059         documentation for the narrow ones.
19060
19061         test-posixtm.c: add two tests
19062         * tests/test-posixtm.c: Add two tests, to highlight the
19063         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19064         around this bug; this is merely to document it.
19065
19066 2010-12-22  Bruno Haible  <bruno@clisp.org>
19067
19068         getlogin_r: Work around portability problem on OSF/1.
19069         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19070         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19071         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19072         test for a truncated result.
19073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19074         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19075         * modules/getlogin_r (Depends-on): Add memchr.
19076         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19077
19078 2010-12-22  Bruno Haible  <bruno@clisp.org>
19079
19080         ptsname: Avoid test failure on OSF/1 5.1.
19081         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19082         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19083         (same_slave): New function.
19084         (main): Use it to compare ptsname's result with the expected file name.
19085
19086 2010-12-22  Bruno Haible  <bruno@clisp.org>
19087
19088         Port extended stdio modules to HP NonStop Kernel.
19089         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19090         macros.
19091         * lib/fbufmode.c: Update comments.
19092         * lib/fflush.c: Likewise.
19093         * lib/fpurge.c: Likewise.
19094         * lib/freadable.c: Likewise.
19095         * lib/freadahead.c: Likewise.
19096         * lib/freading.c: Likewise.
19097         * lib/freadptr.c: Likewise.
19098         * lib/freadseek.c: Likewise.
19099         * lib/fseeko.c: Likewise.
19100         * lib/fseterr.c: Likewise.
19101         * lib/fwritable.c: Likewise.
19102         * lib/fwriting.c: Likewise.
19103         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19104
19105 2010-12-22  Bruno Haible  <bruno@clisp.org>
19106
19107         ttyname_r: Work around bug on OSF/1 5.1.
19108         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19109         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19110         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19111         present.
19112         * lib/ttyname_r.c (ttyname_r): Update comments.
19113
19114 2010-12-22  Bruno Haible  <bruno@clisp.org>
19115
19116         round: Implement result sign according to IEEE 754.
19117         * lib/round.c (MIN, MINUS_ZERO): New macros.
19118         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19119         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19120         * tests/test-round-ieee.c (main): Likewise.
19121         * tests/test-roundl-ieee.c (main): Likewise.
19122
19123         trunc: Implement result sign according to IEEE 754.
19124         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19125         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19126         * tests/test-trunc2.c: Include minus-zero.h.
19127         (MINUS_ZERO): New macro.
19128         (trunc_reference): Keep in sync with lib/trunc.c.
19129         * tests/test-truncf2.c: Include minus-zero.h.
19130         (MINUS_ZERO): New macro.
19131         (truncf_reference): Keep in sync with lib/trunc.c.
19132         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19133         * tests/test-trunc-ieee.c (main): Likewise.
19134         * tests/test-truncl-ieee.c (main): Likewise.
19135
19136         ceil: Implement result sign according to IEEE 754.
19137         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19138         (FUNC): Return -0.0 for -1 < x < 0.
19139         * tests/test-ceil2.c: Include minus-zero.h.
19140         (MINUS_ZERO): New macro.
19141         (ceil_reference): Keep in sync with lib/ceil.c.
19142         * tests/test-ceilf2.c: Include minus-zero.h.
19143         (MINUS_ZERO): New macro.
19144         (ceilf_reference): Keep in sync with lib/ceil.c.
19145         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19146         * tests/test-ceil-ieee.c (main): Likewise.
19147         * tests/test-ceill-ieee.c (main): Likewise.
19148
19149         floor: Implement result sign according to IEEE 754.
19150         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19151         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19152         * tests/test-floorf2.c (floorf_reference): Likewise.
19153         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19154         * tests/test-floor-ieee.c (main): Likewise.
19155         * tests/test-floorl-ieee.c (main): Likewise.
19156
19157 2010-12-22  Bruno Haible  <bruno@clisp.org>
19158
19159         getaddrinfo: Update doc.
19160         * doc/posix-functions/gai_strerror.texi: Return type is also different
19161         on AIX and HP-UX.
19162
19163 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19164
19165         getaddrinfo, inet_ntop: Update doc for Solaris.
19166         * doc/posix-functions/gai_strerror.texi: Return type is also an
19167         issue on Solaris 9 and earlier.
19168         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19169         on Solaris 10 and earlier.
19170
19171 2010-12-21  Bruno Haible  <bruno@clisp.org>
19172
19173         New module 'roundl-ieee'.
19174         * modules/roundl-ieee: New file.
19175         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19176         test whether roundl works according to ISO C 99 with IEC 60559.
19177         * m4/roundl-ieee.m4: New file.
19178         * modules/roundl-ieee-tests: New file.
19179         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19180         * tests/test-roundl.c (main): Remove signbit tests.
19181         * modules/roundl-tests (Depends-on): Remove signbit.
19182         * doc/posix-functions/roundl.texi: Mention the new module.
19183
19184 2010-12-21  Bruno Haible  <bruno@clisp.org>
19185
19186         New module 'truncl-ieee'.
19187         * modules/truncl-ieee: New file.
19188         * modules/truncl-ieee-tests: New file.
19189         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19190         * tests/test-truncl.c (main): Remove signbit tests.
19191         * modules/truncl-tests (Depends-on): Remove signbit.
19192         * doc/posix-functions/truncl.texi: Mention the new module.
19193
19194 2010-12-21  Bruno Haible  <bruno@clisp.org>
19195
19196         New module 'ceill-ieee'.
19197         * modules/ceill-ieee: New file.
19198         * modules/ceill-ieee-tests: New file.
19199         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19200         * tests/test-ceill.c (main): Remove signbit tests.
19201         * modules/ceill-tests (Depends-on): Remove signbit.
19202         * doc/posix-functions/ceill.texi: Mention the new module.
19203
19204 2010-12-21  Bruno Haible  <bruno@clisp.org>
19205
19206         New module 'floorl-ieee'.
19207         * modules/floorl-ieee: New file.
19208         * modules/floorl-ieee-tests: New file.
19209         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19210         * tests/test-floorl.c (main): Remove signbit tests.
19211         * modules/floorl-tests (Depends-on): Remove signbit.
19212         * doc/posix-functions/floorl.texi: Mention the new module.
19213
19214 2010-12-21  Bruno Haible  <bruno@clisp.org>
19215
19216         New module 'round-ieee'.
19217         * modules/round-ieee: New file.
19218         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19219         whether round works according to ISO C 99 with IEC 60559.
19220         * m4/round-ieee.m4: New file.
19221         * modules/round-ieee-tests: New file.
19222         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19223         * tests/test-round1.c (main): Remove signbit tests.
19224         * modules/round-tests (Depends-on): Remove 'signbit'.
19225         * doc/posix-functions/round.texi: Mention the new module.
19226
19227 2010-12-21  Bruno Haible  <bruno@clisp.org>
19228
19229         New module 'trunc-ieee'.
19230         * modules/trunc-ieee: New file.
19231         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19232         whether trunc works according to ISO C 99 with IEC 60559.
19233         * m4/trunc-ieee.m4: New file.
19234         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
19236         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
19237         * modules/trunc-ieee-tests: New file.
19238         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
19239         * tests/test-trunc1.c (main): Remove signbit tests.
19240         * modules/trunc-tests (Depends-on): Remove 'signbit'.
19241         * doc/posix-functions/trunc.texi: Mention the new module.
19242
19243 2010-12-21  Bruno Haible  <bruno@clisp.org>
19244
19245         New module 'ceil-ieee'.
19246         * modules/ceil-ieee: New file.
19247         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
19248         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
19249         ISO C 99 with IEC 60559.
19250         * m4/ceil-ieee.m4: New file.
19251         * modules/ceil (Files): Add lib/ceil.c.
19252         (Depends-on): Add 'float'.
19253         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19254         * lib/math.in.h (ceil): New declaration.
19255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
19256         REPLACE_CEIL.
19257         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
19258         * modules/ceil-ieee-tests: New file.
19259         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
19260         * tests/test-math-c++.cc: Check the signature of 'ceil'.
19261         * doc/posix-functions/ceil.texi: Mention the new module.
19262
19263 2010-12-21  Bruno Haible  <bruno@clisp.org>
19264
19265         New module 'floor-ieee'.
19266         * modules/floor-ieee: New file.
19267         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
19268         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
19269         ISO C 99 with IEC 60559.
19270         * m4/floor-ieee.m4: New file.
19271         * modules/floor (Files): Add lib/floor.c.
19272         (Depends-on): Add 'float'.
19273         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19274         * lib/math.in.h (floor): New declaration.
19275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
19276         REPLACE_FLOOR.
19277         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
19278         * modules/floor-ieee-tests: New file.
19279         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
19280         * tests/test-math-c++.cc: Check the signature of 'floor'.
19281         * doc/posix-functions/floor.texi: Mention the new module.
19282
19283 2010-12-21  Bruno Haible  <bruno@clisp.org>
19284
19285         New module 'roundf-ieee'.
19286         * modules/roundf-ieee: New file.
19287         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
19288         test whether roundf works according to ISO C 99 with IEC 60559.
19289         * m4/roundf-ieee.m4: New file.
19290         * modules/roundf-ieee-tests: New file.
19291         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
19292         * tests/test-roundf1.c (main): Remove signbit tests.
19293         * modules/roundf-tests (Depends-on): Remove 'signbit'.
19294         * doc/posix-functions/roundf.texi: Mention the new module.
19295
19296 2010-12-21  Bruno Haible  <bruno@clisp.org>
19297
19298         New module 'truncf-ieee'.
19299         * modules/truncf-ieee: New file.
19300         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
19301         test whether truncf works according to ISO C 99 with IEC 60559.
19302         * m4/truncf-ieee.m4: New file.
19303         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
19304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
19305         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
19306         * modules/truncf-ieee-tests: New file.
19307         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
19308         * tests/test-truncf1.c (main): Remove signbit tests.
19309         * modules/truncf-tests (Depends-on): Remove 'signbit'.
19310         * doc/posix-functions/truncf.texi: Mention the new module.
19311
19312 2010-12-21  Bruno Haible  <bruno@clisp.org>
19313
19314         New module 'ceilf-ieee'.
19315         * modules/ceilf-ieee: New file.
19316         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
19317         test whether ceilf works according to ISO C 99 with IEC 60559.
19318         * m4/ceilf-ieee.m4: New file.
19319         * modules/ceilf-ieee-tests: New file.
19320         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
19321         * tests/test-ceilf1.c (main): Remove signbit tests.
19322         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
19323         * doc/posix-functions/ceilf.texi: Mention the new module.
19324
19325 2010-12-21  Bruno Haible  <bruno@clisp.org>
19326
19327         New module 'floorf-ieee'.
19328         * modules/floorf-ieee: New file.
19329         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
19330         test whether floorf works according to ISO C 99 with IEC 60559.
19331         * m4/floorf-ieee.m4: New file.
19332         * modules/floorf-ieee-tests: New file.
19333         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
19334         * tests/test-floorf1.c (main): Remove signbit tests.
19335         * modules/floorf-tests (Depends-on): Remove 'signbit'.
19336         * doc/posix-functions/floorf.texi: Mention the new module.
19337
19338 2010-12-21  Bruno Haible  <bruno@clisp.org>
19339
19340         Support for minus zero in autoconf macros.
19341         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
19342         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
19343         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
19344         * tests/minus-zero.h: Update comments.
19345
19346 2010-12-21  Bruno Haible  <bruno@clisp.org>
19347
19348         Tests for module 'ceil'.
19349         * modules/ceil-tests: New file.
19350         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
19351         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
19352
19353 2010-12-21  Bruno Haible  <bruno@clisp.org>
19354
19355         Tests for module 'floor'.
19356         * modules/floor-tests: New file.
19357         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
19358         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
19359
19360 2010-12-21  Bruno Haible  <bruno@clisp.org>
19361
19362         math: Fix indentation.
19363         * lib/math.in.h (floorf): Fix indentation.
19364
19365 2010-12-21  Bruno Haible  <bruno@clisp.org>
19366
19367         Fix cross-compilation guesses on Solaris.
19368         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19369         not match "solaris2.10".
19370         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19371         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19372         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19373
19374 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19375
19376         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19377         This fixes a problem observed with the latest coreutils snapshot
19378         that caused a test to fail on Solaris 8.  src/csplit.c's call
19379         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19380         earlier, instead of returning the number of bytes that would have
19381         been generated; this causes csplit to incorrectly report memory
19382         exhaustion.
19383         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19384         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
19385         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
19386         comments to match.
19387         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
19388         Fix typo in matching older versions of Solaris: "solaris2.10"
19389         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19390         only for guessing while cross-compiling.
19391         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19392
19393 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19394
19395         ftoastr: fix comment again
19396         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19397         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19398         Also, simplify example a bit by using flags = 0.
19399
19400 2010-12-20  Bruno Haible  <bruno@clisp.org>
19401
19402         round*, trunc*: Update documentation regarding glibc.
19403         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19404         * doc/posix-functions/round.texi: Likewise.
19405         * doc/posix-functions/roundl.texi: Likewise.
19406         * doc/posix-functions/truncf.texi: Likewise.
19407         * doc/posix-functions/trunc.texi: Likewise.
19408         * doc/posix-functions/truncl.texi: Likewise.
19409
19410 2010-12-20  Bruno Haible  <bruno@clisp.org>
19411
19412         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19413         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19414         * doc/posix-functions/round.texi: Likewise.
19415         * doc/posix-functions/roundl.texi: Likewise.
19416
19417 2010-12-20  Bruno Haible  <bruno@clisp.org>
19418
19419         ttyname_r: Add missing declaration on HP-UX 11.
19420         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19421         HAVE_TTYNAME_R.
19422         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19423         declared. Set HAVE_TTYNAME_R always.
19424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19425         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19426         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19427         HAVE_TTYNAME_R.
19428         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19429
19430 2010-12-20  Bruno Haible  <bruno@clisp.org>
19431
19432         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19433         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19434         * doc/posix-functions/getlogin_r.texi: Likewise.
19435         * tests/test-getlogin.c: Include <errno.h>.
19436         (main): Avoid test failure on HP-UX 11.11.
19437         * tests/test-getlogin_r.c (main): Likewise.
19438
19439 2010-12-20  Bruno Haible  <bruno@clisp.org>
19440
19441         getlogin_r: Add missing declaration on HP-UX 11.
19442         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19443         declared also when it exists as a function.
19444         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19445
19446 2010-12-20  Bruno Haible  <bruno@clisp.org>
19447
19448         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19449         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19450         through wcrtomb.
19451
19452 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19453
19454         ftoastr: fix comment
19455         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19456         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19457
19458 2010-12-19  Bruno Haible  <bruno@clisp.org>
19459
19460         isnan: Ensure it is a macro.
19461         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19462         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19463         Solaris.
19464
19465 2010-12-19  Bruno Haible  <bruno@clisp.org>
19466
19467         ldexpl test: Fix link error on OSF/1 5.1.
19468         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19469
19470 2010-12-19  Bruno Haible  <bruno@clisp.org>
19471
19472         wctype: Make it work in C++ mode on OSF/1 5.1.
19473         * lib/wctype.in.h (iswblank): Declare but not define here.
19474         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19475         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19476         * modules/wctype (Files): Add lib/iswblank.c.
19477
19478 2010-12-19  Bruno Haible  <bruno@clisp.org>
19479
19480         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19481         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19482         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19483
19484 2010-12-19  Bruno Haible  <bruno@clisp.org>
19485
19486         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19487         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19488         _POSIX_PII_SOCKET.
19489         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19490         * doc/posix-functions/recvfrom.texi: Likewise.
19491         * doc/posix-functions/send.texi: Likewise.
19492         * doc/posix-functions/sendto.texi: Likewise.
19493
19494 2010-12-19  Bruno Haible  <bruno@clisp.org>
19495
19496         tcgetsid: Add missing declaration on OSF/1 5.1.
19497         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19498         HAVE_TCGETSID.
19499         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19500         Don't set HAVE_TCGETSID.
19501         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19502         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19503         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19504         HAVE_TCGETSID.
19505         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19506
19507 2010-12-19  Bruno Haible  <bruno@clisp.org>
19508
19509         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19510         * lib/stdio.in.h: During the include_next statement, let recursive
19511         includes of this file include only the system header file.
19512
19513 2010-12-19  Bruno Haible  <bruno@clisp.org>
19514
19515         iconv_open: Fix regression from 2010-12-04.
19516         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19517         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19518
19519 2010-12-19  Bruno Haible  <bruno@clisp.org>
19520
19521         stdbool test: Avoid a gcc warning.
19522         * tests/test-stdbool.c (main): Fail if e1 is false.
19523         Reported by Jim Meyering.
19524
19525 2010-12-19  Jim Meyering  <meyering@redhat.com>
19526
19527         setenv: restore to working order
19528         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19529         mistakenly removed.
19530         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19531         HAVE_SETENV.
19532         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19533         HAVE_SETENV.
19534
19535 2010-12-19  Bruno Haible  <bruno@clisp.org>
19536
19537         Document some different function declarations on OSF/1 5.1.
19538         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19539         * doc/posix-functions/inet_ntop.texi: Likewise.
19540         * doc/posix-functions/gethostname.texi: Likewise.
19541         * lib/unistd.in.h (gethostname): Update comment.
19542
19543 2010-12-19  Bruno Haible  <bruno@clisp.org>
19544
19545         doc: Mention vasprintf-posix module.
19546         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19547         the 'vasprintf-posix' module.
19548         * doc/glibc-functions/vasprintf.texi: Likewise.
19549
19550 2010-12-19  Bruno Haible  <bruno@clisp.org>
19551
19552         unsetenv: Add missing declaration on OSF/1 5.1.
19553         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19554         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19555         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19557         not HAVE_UNSETENV.
19558         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19559         HAVE_UNSETENV.
19560         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19561
19562 2010-12-19  Bruno Haible  <bruno@clisp.org>
19563
19564         setenv: Add missing declaration on OSF/1 5.1.
19565         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19566         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19567         declared. Don't set HAVE_SETENV.
19568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19569         not HAVE_SETENV.
19570         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19571         HAVE_SETENV.
19572         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19573
19574 2010-12-19  Bruno Haible  <bruno@clisp.org>
19575
19576         nl_langinfo tests: Avoid gcc warning.
19577         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19578
19579 2010-12-19  Bruno Haible  <bruno@clisp.org>
19580
19581         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19582         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19583         _GL_CXXALIAS_SYS.
19584
19585 2010-12-19  Bruno Haible  <bruno@clisp.org>
19586
19587         stdbool: Relax test.
19588         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19589         address to 'bool' work in static initializer, for compilers other than
19590         GCC.
19591
19592 2010-12-19  Bruno Haible  <bruno@clisp.org>
19593
19594         ftello: Add missing declaration on OSF/1 5.1.
19595         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19596         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19598         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19599         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19600
19601 2010-12-19  Bruno Haible  <bruno@clisp.org>
19602
19603         fseeko: Add missing declaration on OSF/1 5.1.
19604         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19605         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19607         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19608         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19609
19610 2010-12-19  Bruno Haible  <bruno@clisp.org>
19611
19612         fchdir: Add missing declaration on OSF/1 5.1.
19613         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19616         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19617         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19618
19619 2010-12-19  Bruno Haible  <bruno@clisp.org>
19620
19621         relocatable-prog-wrapper: Separate from relocatable-prog.
19622         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19623         uninstall-relocwrapper rule here.
19624         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19625         Reported by Ian Beckwith <ianb@erislabs.net>.
19626
19627 2010-12-19  Bruno Haible  <bruno@clisp.org>
19628
19629         unistr/u8-mbsnlen: Add missing dependency.
19630         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19631         Reported by Ian Beckwith <ianb@erislabs.net>.
19632
19633 2010-12-19  Bruno Haible  <bruno@clisp.org>
19634
19635         iconv: Make it possible again to use this module without 'iconv-h'.
19636         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19637         if it is not defined.
19638         Reported by Ian Beckwith <ianb@erislabs.net>.
19639
19640 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19641
19642         acl: port to Solaris 8 when copying from tmpfs to ufs
19643         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19644         error number.  Problem observed on Solaris 8 with latest
19645         coreutils, with "mv A B", where A is on a tmpfs file system and B
19646         is on a ufs file system.  This caused coreutils' mv/part-symlink
19647         test to fail.
19648
19649         tests: set fail=0 at start
19650         * tests/init.sh (setup_): Move fail=0 initialization here ...
19651         (mktempd_): ... from here, so that tests can rely on fail being
19652         set to 0 initially.  This fixes a problem in coreutils; see:
19653         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19654
19655 2010-12-18  Bruno Haible  <bruno@clisp.org>
19656
19657         memmem-simple: Stylistic changes.
19658         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19659         Fix preprocessor directive indentation.
19660
19661 2010-12-15  Pádraig Brady <P@draigBrady.com>
19662
19663         memmem, memmem-simple: reorganize and expand empty needle check
19664         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19665         functional checks to memmem-simple so that one has a fully functional
19666         memmem by using just this module.
19667         Restrict the performance only check to the memmem module.
19668         Also expand the empty needle check to ensure the correct
19669         pointer is returned, not just a non NULL pointer.
19670         * doc/glibc-functions/memmem.texi: Rearrange the portability
19671         documentation to correlate with the rearranged checks.
19672         Clarify exactly how the memmem and memmem-simple modules
19673         relate to each other.
19674
19675 2010-12-15  Pádraig Brady <P@draigBrady.com>
19676             Bruno Haible  <bruno@clisp.org>
19677
19678         Improve cross-compilation guesses for uClibc.
19679         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19680         that uClibc does not have the glibc bug.
19681         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19682         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19683
19684 2010-12-14  Eric Blake  <eblake@redhat.com>
19685
19686         configmake: provide fallbacks for oldest supported autotools
19687         * m4/configmake.m4: New file.
19688         * modules/configmake (Files): Ship it.
19689         (configure.ac): Use it to guarantee fallbacks.
19690
19691 2010-12-13  Pádraig Brady <P@draigBrady.com>
19692
19693         read-file: Improve handling of large files
19694         * lib/read-file.c (fread_file): Minimize realloc()s
19695         for regular files, and better manage sizes around SIZE_MAX.
19696
19697 2010-12-13  Eric Blake  <eblake@redhat.com>
19698
19699         cloexec, fcntl: relax license
19700         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19701         consent from all contributors.
19702         * modules/fcntl (License): Likewise.
19703
19704 2010-12-10  Bruno Haible  <bruno@clisp.org>
19705
19706         Tests for module 'pipe-posix'.
19707         * modules/pipe-posix-tests: New file.
19708         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19709
19710 2010-12-10  Bruno Haible  <bruno@clisp.org>
19711
19712         pipe-posix: Make it work in C++ mode.
19713         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19714         (pipe): Use common idiom, not a macro definition.
19715         * lib/pipe.c: New file.
19716         * m4/pipe.m4: New file.
19717         * modules/pipe-posix (Description): Enhance.
19718         (Files): Add lib/pipe.c, m4/pipe.m4.
19719         (configure.ac): Invoke gl_FUNC_PIPE.
19720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19721         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19722         * tests/test-unistd-c++.cc: Check the signature of pipe.
19723
19724 2010-12-10  Bruno Haible  <bruno@clisp.org>
19725
19726         Rename module 'pipe' to 'spawn-pipe'.
19727         * modules/spawn-pipe: New file, renamed from modules/pipe.
19728         (Files, configure.ac, Makefile.am): Update.
19729         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19730         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19731         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19732         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19733         "spawn-pipe.h" instead of "pipe.h".
19734         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19735         to gl_SPAWN_PIPE.
19736         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19737         (Files, Makefile.am): Update.
19738         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19739         Update.
19740         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19741         Include "spawn-pipe.h" instead of "pipe.h".
19742         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19743         * lib/javacomp.c: Likewise.
19744         * lib/javaversion.c: Likewise.
19745         * lib/pipe-filter-gi.c: Likewise.
19746         * lib/pipe-filter-ii.c: Likewise.
19747         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19748         * modules/javacomp (Depends-on): Likewise.
19749         * modules/javaversion (Depends-on): Likewise.
19750         * modules/pipe-filter-gi (Depends-on): Likewise.
19751         * modules/pipe-filter-ii (Depends-on): Likewise.
19752         * MODULES.html.sh (Executing programs): Update.
19753         * NEWS: Mention the change.
19754
19755 2010-12-10  Eric Blake  <eblake@redhat.com>
19756
19757         pipe-posix: new module
19758         * modules/pipe-posix: New file.
19759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19760         (gl_UNISTD_H): Check for declaration.
19761         * modules/unistd (Makefile.am): Substitute it.
19762         * lib/unistd.in.h (pipe): Provide it for mingw.
19763         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19764         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19765
19766 2010-12-07  Bruno Haible  <bruno@clisp.org>
19767
19768         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19769         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19770         u8_strcmp_gnu.
19771         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19772
19773 2010-12-06  Bruno Haible  <bruno@clisp.org>
19774
19775         Update internal documentation.
19776         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19777
19778 2010-12-04  Bruno Haible  <bruno@clisp.org>
19779
19780         Put more information about failed tests into the test return codes.
19781         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19782         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19783         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19784         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19785         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19786         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19787         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19788         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19789         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19791         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19792         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19793         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19794         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19795         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19796         returns a bit mask.
19797         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19798         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19799         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19800         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19801         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19802         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19803         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19805         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19806         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19807         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19808         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19809         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19811         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19812         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19813         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19814         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19815         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19816         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19817         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19818         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19819         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19820         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19821         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19822         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19823         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19824         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19825         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19826         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19827         gl_PRINTF_PRECISION): Likewise.
19828         * m4/regex.m4 (gl_REGEX): Likewise.
19829         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19830         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19831         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19832         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19833         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19835         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19836         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19837         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19838         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19839         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19840         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19841         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19842         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19843         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19844         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19845         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19846         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19848         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19849         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19850         enumerated value.
19851         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19852
19853 2010-12-04  Bruno Haible  <bruno@clisp.org>
19854
19855         Update for Solaris 11 2010-11.
19856         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19857         Express, released in November 2010.
19858
19859 2010-12-04  Bruno Haible  <bruno@clisp.org>
19860
19861         nproc: Relax license.
19862         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19863         and Paul Eggert.
19864         Requested by Ludovic Courtès <ludo@gnu.org>.
19865
19866 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19867
19868         utimecmp: fine-grained src to nearby coarse-grained dest
19869
19870         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19871         and the source is on a file system with higher-resolution time
19872         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19873         not work, and the time stamps are close together, the algorithm to
19874         determine the exact resolution from the read-back mtime was buggy:
19875         it had a "!=" where it should have had an "==".  This bug has been
19876         in the code ever since it was introduced to gnulib.
19877         Problem reported by Dan Jacobson in
19878         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19879
19880 2010-11-30  Bruno Haible  <bruno@clisp.org>
19881
19882         strerror_r-posix: Fix autoconf test.
19883         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19884
19885 2010-11-28  Bruno Haible  <bruno@clisp.org>
19886             Paul Eggert  <eggert@cs.ucla.edu>
19887
19888         Tests for module 'getdomainname'.
19889         * modules/getdomainname-tests: New file.
19890         * tests/test-getdomainname.c: New file, based on
19891         tests/test-gethostname.c.
19892
19893 2010-11-28  Bruno Haible  <bruno@clisp.org>
19894             Paul Eggert  <eggert@cs.ucla.edu>
19895
19896         getdomainname: Use the system function when possible.
19897         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19898         (getdomainname): Replace if needed. Provide the declaration if it is
19899         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19900         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19901         (getdomainname): When the system has getdomainname, call the system
19902         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19903         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19904         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19905         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19906         the function if its second argument is of type 'int' or if it is found
19907         in libnsl.
19908         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19909         <sys/systeminfo.h> and sysinfo().
19910         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19912         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19913         HAVE_GETDOMAINNAME.
19914         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19915         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19916         * doc/glibc-functions/getdomainname.texi: Document the problems with
19917         the getdomainname declaration.
19918
19919 2010-11-28  Bruno Haible  <bruno@clisp.org>
19920
19921         sys_socket: Ensure ss_family field on AIX.
19922         * lib/sys_socket.in.h (ss_family): New macro definition.
19923         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19924         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19925         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19926         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19927         * modules/sys_socket (Makefile.am): Substitute
19928         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19929         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19930
19931 2010-11-27  Bruno Haible  <bruno@clisp.org>
19932
19933         readline: Improve configure output.
19934         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19935         "checking for readline..." result understandable.
19936
19937 2010-11-27  Bruno Haible  <bruno@clisp.org>
19938
19939         *printf-posix: Detect a bug on Solaris 10/x86.
19940         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19941         for floating-point output.
19942         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19943         directive.
19944         * tests/test-snprintf-posix.h (test_function): Likewise.
19945         * tests/test-sprintf-posix.h (test_function): Likewise.
19946         * tests/test-vasprintf-posix.c (test_function): Likewise.
19947         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19948         * doc/posix-functions/printf.texi: Likewise.
19949         * doc/posix-functions/snprintf.texi: Likewise.
19950         * doc/posix-functions/sprintf.texi: Likewise.
19951         * doc/posix-functions/vfprintf.texi: Likewise.
19952         * doc/posix-functions/vprintf.texi: Likewise.
19953         * doc/posix-functions/vsnprintf.texi: Likewise.
19954         * doc/posix-functions/vsprintf.texi: Likewise.
19955         * doc/glibc-functions/obstack_printf.texi: Likewise.
19956         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19957
19958 2010-11-27  Bruno Haible  <bruno@clisp.org>
19959
19960         Fix link error when module libunistring-optional is in use.
19961         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19962         * modules/striconveha-tests (Makefile.am): Likewise.
19963
19964 2010-11-27  Bruno Haible  <bruno@clisp.org>
19965
19966         regex: Mention link dependencies.
19967         * modules/regex (Link): New section.
19968         * modules/rpmatch (Link): Likewise.
19969         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19970
19971 2010-11-27  Bruno Haible  <bruno@clisp.org>
19972
19973         ftoastr: Fix compilation error on Solaris.
19974         * lib/ftoastr.c: Include <config.h>.
19975
19976 2010-11-27  Bruno Haible  <bruno@clisp.org>
19977
19978         getloadavg: Update documentation.
19979         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19980
19981 2010-11-27  Bruno Haible  <bruno@clisp.org>
19982
19983         sys_socket: Fix test whether the functions are declared.
19984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19985         not <sys/select.h>.
19986
19987 2010-11-27  Bruno Haible  <bruno@clisp.org>
19988
19989         getpass: Make sure to get system declaration on some platforms.
19990         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19991         gl_USE_SYSTEM_EXTENSIONS.
19992         * modules/getpass (Depends-on): Add extensions.
19993
19994 2010-11-26  Bruno Haible  <bruno@clisp.org>
19995
19996         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19997         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19998         'iconv' module is present.
19999         (ICONV_CONST): New macro.
20000         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20001         ICONV_CONST.
20002         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20003         set ICONV_CONST.
20004         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20005         here.
20006         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20007         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20008         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20009         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20010         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20011         present.
20012
20013 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20014
20015         ftoastr: comment fix
20016         * lib/ftoastr.c: "little" -> "little or no" in comment
20017
20018 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20019
20020         stdint: port to GCC 4.3 + OSX + Octave
20021         On this platform, stdint.h is buggy and defines int64_t to long
20022         long int.  The replacement defined it to long int, causing
20023         problems with C++ style name mangling.  Instead, trust the system
20024         definition if INT64_MAX is defined, and likewise for the unsigned
20025         variant.   Problem reported by Jarno Rajahalme in
20026         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20027         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20028         and don't mess with int64_t and INT64_MAX in this case.
20029         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20030
20031 2010-11-24  Bruno Haible  <bruno@clisp.org>
20032
20033         doc: Corrections regarding MacOS X 10.4 and 10.5.
20034         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20035         MacOS X.
20036         Reported by Simon Josefsson.
20037
20038 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20039
20040         Uninstall ".bin" files installed by relocwrapper.
20041         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20042         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20043         unless it is already there.
20044
20045 2010-11-21  Bruno Haible  <bruno@clisp.org>
20046
20047         Update for NetBSD 5.0.
20048         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20049         NetBSD; the test fails on NetBSD 5.0.
20050         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20051         about NetBSD.
20052
20053 2010-11-21  Bruno Haible  <bruno@clisp.org>
20054
20055         Update for HP-UX 11.23 and HP-UX 11.31.
20056         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20057         HP-UX.
20058
20059 2010-11-21  Bruno Haible  <bruno@clisp.org>
20060
20061         Update for MacOS X 10.5.
20062         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20063         MacOS X; the test fails on MacOS X 10.5.8.
20064         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20065         about MacOS X.
20066
20067 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20068
20069         bootstrap: add bootstrap_sync option.
20070         See discussion at
20071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20072         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20073         * build-aux/bootstrap: Accept --bootstrap-sync to update
20074         bootstrap if it is not identical to the local gnulib's
20075         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20076         enable this by default.  Accept --no-bootstrap-sync to disable
20077         it.
20078
20079 2010-11-20  Bruno Haible  <bruno@clisp.org>
20080
20081         Ensure that <features.h> is included before __GLIBC__ is tested.
20082         * lib/printf-parse.h: Include <features.h>.
20083         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20084         Reported by Mike Frysinger <vapier@gentoo.org>.
20085
20086         Ensure that <features.h> is included before __GLIBC__ is tested.
20087         * lib/wchar.in.h: Include <features.h>.
20088         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20089         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20090         Reported by Mike Frysinger <vapier@gentoo.org>.
20091
20092         Ensure that <features.h> is included before __GLIBC__ is tested.
20093         * lib/arpa_inet.in.h: Include <features.h>.
20094         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20095         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20096         Reported by Mike Frysinger <vapier@gentoo.org>.
20097
20098         Ensure that <features.h> is included before __GLIBC__ is tested.
20099         * build-aux/link-warning.h: Include <features.h>.
20100         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20101         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20102         Reported by Mike Frysinger <vapier@gentoo.org>.
20103
20104         Ensure that <features.h> is included before __GLIBC__ is tested.
20105         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20106         Reported by Mike Frysinger <vapier@gentoo.org>.
20107
20108 2010-11-20  Bruno Haible  <bruno@clisp.org>
20109
20110         memmem: Fix autoconf test.
20111         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20112
20113 2010-11-20  Bruno Haible  <bruno@clisp.org>
20114
20115         Port to uClibc.
20116         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20117         * lib/fcntl.in.h: Likewise.
20118         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20119         * lib/mbrtowc.c (mbrtowc): Likewise.
20120         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20121         * lib/strerror_r.c: Likewise.
20122         * lib/unistr/u8-strnlen.c: Likewise.
20123         * lib/vasnprintf.c (decimal_point_char): Likewise.
20124         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20125         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20126         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20127         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20128         * tests/test-sigaction.c (handler, main): Likewise.
20129         * lib/freading.h: Treat uClibc like a non-glibc platform.
20130         * lib/freading.c: Likewise.
20131         * lib/gettext.h: Likewise.
20132         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20133         Likewise.
20134         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20135         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20136         * lib/propername.c (proper_name_utf8): Likewise.
20137         * lib/spawn.in.h: Likewise.
20138         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20139         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20140         mem_cd_iconveh_internal): Likewise.
20141         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20142         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20143         strstr, strcasestr): Likewise.
20144         * lib/unicodeio.c (unicode_to_mb): Likewise.
20145         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20146         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20147         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20148         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20149         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20150         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20151         * lib/unistr/u8-stpncpy.c: Likewise.
20152         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20153         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20154         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20155         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20156         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20157         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20158         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20160         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20161         Likewise.
20162         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20163         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20164         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20165         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20166         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20167         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20168         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20169         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20170         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20171         * tests/test-striconveha.c (main): Likewise.
20172         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20173         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20174         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20175         * doc/posix-functions/getline.texi: Likewise.
20176         Reported by Mike Frysinger <vapier@gentoo.org>.
20177
20178 2010-11-20  Bruno Haible  <bruno@clisp.org>
20179
20180         nproc: Fix condition.
20181         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20182         HAVE_PTHREAD_AFFINITY_NP.
20183
20184 2010-11-20  Bruno Haible  <bruno@clisp.org>
20185
20186         Fix a comment.
20187         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20188
20189 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20190
20191         ftoastr: don't assume snprintf
20192         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20193         Implement a subset of snprintf here, by using sprintf safely.
20194         * modules/ftoastr (Depends-on): Remove snprintf.
20195
20196 2010-11-19  Jim Meyering  <meyering@redhat.com>
20197
20198         test-rename.h: fix compilation failure
20199         * tests/test-rename.h (test_rename): Add omitted "}".
20200
20201 2010-11-17  Jim Meyering  <meyering@redhat.com>
20202
20203         maint.mk: add a URL discussing the no-@acronym policy
20204         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20205
20206 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20207
20208         ftoastr: depend on snprintf, improve comments
20209         * lib/ftoastr.c: Also mention Loitsch's draft.
20210         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20211         needed in the current implementation, but it might simplify
20212         speeding up the code later.
20213         * modules/ftoastr: Depend on snprintf; this improves portability.
20214         Suggested by Bruno Haible in the same email.
20215
20216         ftoastr: port to hosts lacking strtof and strtold
20217         Problem reported by Bruno Haible in
20218         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20219         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20220         environment and strtold (and presumably strtof) are not available.
20221         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20222         (configure.ac): Require gl_C99_STRTOLD.
20223
20224 2010-11-18  Bruno Haible  <bruno@clisp.org>
20225
20226         c-strtold: Avoid link error on AIX 7.
20227         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20228         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20229         (gl_C_STRTOLD): Test whether strtold_l exists.
20230         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20231
20232 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20233
20234         intprops: new macro INT_BITS_STRLEN_BOUND
20235         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
20236         ftoastr.h.  This exposes an internal of intprops.h that was formerly
20237         not exposed.  Also, it uses a slightly tighter bound than before;
20238         though this makes no practical difference, we might as well be as
20239         tight as we easily can.
20240
20241         ftoastr: new module, for lossless conversion of floats to short strings
20242         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
20243         * modules/ftoastr: New files.
20244
20245 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20246
20247         bootstrap: port to Solaris sed
20248         * build-aux/bootstrap (get_version): Port to Solaris sed.
20249         See Ralf Wildenhues's note in
20250         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
20251
20252 2010-11-14  Jim Meyering  <meyering@redhat.com>
20253
20254         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
20255         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
20256         and move definition closer to sole use.
20257
20258 2010-11-13  Jim Meyering  <meyering@redhat.com>
20259
20260         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
20261         Now we require at least autoconf-2.59, which means the work-around
20262         is no longer needed.
20263         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
20264         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20265         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20266         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20267         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20268
20269 2010-11-13  Bruno Haible  <bruno@clisp.org>
20270
20271         rename, renameat: Avoid test failures at NFS mounted locations.
20272         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
20273         functions.
20274         (test_rename): Use assert_nonexistent.
20275         * tests/test-rename.c: Include <dirent.h>.
20276         * tests/test-renameat.c: Likewise.
20277         Reported by Gary V. Vaughan <gary@gnu.org>.
20278
20279         rename, renameat: Document Linux bug with NFS
20280         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
20281         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
20282         * doc/posix-functions/renameat.texi: Likewise.
20283         Suggested by Eric Blake.
20284
20285 2010-11-13  Bruno Haible  <bruno@clisp.org>
20286
20287         rename test: Add comments.
20288         * tests/test-rename.h (test_rename): Add structure and comments.
20289
20290 2010-11-13  Eric Blake  <eblake@redhat.com>
20291
20292         maintainer-makefile: cover a few more files
20293         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
20294         scripts generated within C files, for libvirt.
20295
20296 2010-11-13  Bruno Haible  <bruno@clisp.org>
20297
20298         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
20299         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
20300         character, return the number of bytes that belong together, not always
20301         1.
20302         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20303         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20304         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20305         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
20306         number of bytes of an invalid character.
20307         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
20308         (main): Invoke it.
20309         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
20310         results.
20311         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
20312         malformed byte sequences.
20313         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
20314         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
20315         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
20316         Reported by Ben Pfaff and Paolo Bonzini.
20317
20318 2010-11-13  Bruno Haible  <bruno@clisp.org>
20319
20320         openat: Work around glibc bug with fchownat() and empty file names.
20321         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
20322         (gl_FUNC_FCHOWNAT): Invoke it.
20323         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
20324         * doc/posix-functions/fchownat.texi: Document the glibc bug.
20325         Reported by Gary V. Vaughan <gary@gnu.org>.
20326
20327 2010-11-13  Bruno Haible  <bruno@clisp.org>
20328
20329         openat: Ensure autoconf macro ordering.
20330         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
20331         gl_USE_SYSTEM_EXTENSIONS.
20332         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
20333
20334 2010-11-13  Bruno Haible  <bruno@clisp.org>
20335
20336         Update comments.
20337         * lib/unistr/u8-check.c: Update file name in comments.
20338         * lib/unistr/u8-mblen.c: Likewise.
20339         * lib/unistr/u8-prev.c: Likewise.
20340         * lib/unistr/u8-strmblen.c: Likewise.
20341         * lib/unistr/u8-strmbtouc.c: Likewise.
20342
20343 2010-11-13  Jim Meyering  <meyering@redhat.com>
20344
20345         tests: avoid test failure on Solaris 10 due to lack of PATH export
20346         * tests/test-update-copyright.sh: Don't forget to export PATH.
20347
20348         init.sh: ensure that IFS is defined, just in case...
20349         * tests/init.sh (setup_): Ensure that IFS is defined,
20350         so that saving and restoring it works as expected.  This
20351         appears to be useful at least for an old version of dash
20352         from a long time ago (RH 6).  See here for details:
20353         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
20354
20355         maint.mk: tighten "test a == b" check
20356         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
20357         test to files that contain something like #!/bin/sh.
20358         Without this, coreutils would get two false positives in
20359         the comments of C source files.
20360
20361 2010-11-12  Eric Blake  <eblake@redhat.com>
20362
20363         bootstrap: fix typo in previous attempt
20364         * build-aux/bootstrap (buildreq): Correct the grouping.
20365         Reported by Paul Eggert.
20366
20367         maintainer-makefile: prohibit test x == x
20368         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20369         Based on a report by Matthias Bolte.
20370
20371         bootstrap: allow FreeBSD gzip
20372         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20373         which has no '.' and goes to stderr.
20374         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20375         Reported by Matthias Bolte.
20376
20377         maintainer-makefile: check for i18n setup
20378         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20379         will likely work.
20380
20381 2010-11-12  Bruno Haible  <bruno@clisp.org>
20382
20383         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20384         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
20385         * lib/nanosleep.c (nanosleep): Likewise.
20386
20387 2010-11-11  Bruno Haible  <bruno@clisp.org>
20388
20389         fcntl-h: Fix for use of C++ on glibc systems.
20390         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20391         also on glibc systems in C++ mode.
20392         Reported by Gary V. Vaughan <gary@gnu.org>.
20393
20394 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20395
20396         mknod: avoid false failure with dash
20397         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20398
20399 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20400
20401         unlink: Fix "is it should" typo in diagnostic.
20402         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20403         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20404
20405 2010-11-11  Bruno Haible  <bruno@clisp.org>
20406
20407         Tests for module 'strerror_r-posix'.
20408         * modules/strerror_r-posix-tests: New file.
20409         * tests/test-strerror_r.c: New file.
20410         * tests/test-string-c++.cc: Check the signature of strerror_r.
20411
20412         New module 'strerror_r-posix'.
20413         * lib/string.in.h (strerror_r): New declaration.
20414         * lib/strerror_r.c: New file.
20415         * m4/strerror_r.m4: New file.
20416         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20417         of strerror_r.
20418         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20419         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20420         * modules/strerror_r-posix: New file.
20421         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20422         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20423         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20424         portability problems.
20425
20426 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20427
20428         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20429         line is also considered for output. Quoted function name in shell
20430         command, so temporary files for functions like MyClass::operator()
20431         are removed correctly without errors.
20432
20433 2010-11-09  Bruno Haible  <bruno@clisp.org>
20434
20435         * doc/posix-functions/strerror.texi: List more failing platforms.
20436
20437         * doc/posix-functions/strerror.texi: Add a comment.
20438
20439 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20440
20441         fdopendir: fix bug on MacOS X when low on file descriptors
20442
20443         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20444         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20445         All callers changed.
20446         (fdopendir): Invoke save_cwd at the top level, not after using
20447         multiple dup() calls to use up file descriptors.  Then retry
20448         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20449         less than the maximum number of open file descriptors, because
20450         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20451         on Mac OS X 10.6.4 for tar 1.24
20452         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20453         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20454         and for tar 1.25
20455         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20456
20457 2010-11-07  Bruno Haible  <bruno@clisp.org>
20458
20459         vasnprintf: Support I flag on glibc systems.
20460         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20461         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20462         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20463         snprintf function.
20464         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20465         glibc systems.
20466         * tests/test-vasnprintf-posix3.c: New file.
20467         * modules/vasnprintf-posix-tests (Files): Add it.
20468         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20469
20470 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20471
20472         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20473         * MODULES.html.sh: For compiler warnings, use name
20474         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20475
20476 2010-11-05  Eric Blake  <eblake@redhat.com>
20477
20478         ceil, floor: avoid spurious failure with icc
20479         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20480         [denormals-as-zero] when optimizing without -mieee-fp option.
20481         * tests/test-floorf2.c (floorf_reference): Likewise.
20482         * tests/test-ceilf1.c (dummy): New function.
20483         (main): Use it to outsmart icc's optimization.
20484         * tests/test-floorf1.c (dummy, main): Likewise.
20485
20486         tests: require working signbit
20487         * modules/ceilf-tests (Depends-on): Add signbit.
20488         * modules/ceill-tests (Depends-on): Likewise.
20489         * modules/floorf-tests (Depends-on): Likewise.
20490         * modules/floorl-tests (Depends-on): Likewise.
20491         * modules/round-tests (Depends-on): Likewise.
20492         * modules/roundf-tests (Depends-on): Likewise.
20493         * modules/roundl-tests (Depends-on): Likewise.
20494         * modules/trunc-tests (Depends-on): Likewise.
20495         * modules/truncf-tests (Depends-on): Likewise.
20496         * modules/truncl-tests (Depends-on): Likewise.
20497
20498         strtod: work around icc bug
20499         * lib/strtod.c (minus_zero): Define to working value.
20500         (strtod): Use it to avoid icc bug.
20501
20502         copysign: enhance tests
20503         * modules/copysign-tests (Files): Add minus-zero.h.
20504         * tests/test-copysign.c (main): Also test zeros.
20505
20506 2010-11-04  Eric Blake  <eblake@redhat.com>
20507
20508         ceil, floor, round, trunc: enhance tests of -0
20509         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20510         * tests/test-ceill.c (main): Likewise.
20511         * tests/test-floorf1.c (main): Likewise.
20512         * tests/test-floorl.c (main): Likewise.
20513         * tests/test-round1.c (main): Likewise.
20514         * tests/test-roundf1.c (main): Likewise.
20515         * tests/test-roundl.c (main): Likewise.
20516         * tests/test-trunc1.c (main): Likewise.
20517         * tests/test-truncf1.c (main): Likewise.
20518         * tests/test-truncl.c (main): Likewise.
20519
20520 2010-11-04  Eric Blake  <eblake@redhat.com>
20521
20522         frexp, tests: work around ICC bug with -zero
20523         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20524         works with more compilers.
20525         * tests/minus-zero.h: New file.
20526         * modules/ceilf-tests (Files): Include it.
20527         * modules/ceill-tests (Files): Likewise.
20528         * modules/floorf-tests (Files): Likewise.
20529         * modules/floorl-tests (Files): Likewise.
20530         * modules/frexp-nolibm-tests (Files): Likewise.
20531         * modules/frexp-tests (Files): Likewise.
20532         * modules/frexpl-nolibm-tests (Files): Likewise.
20533         * modules/frexpl-tests (Files): Likewise.
20534         * modules/isnan-tests (Files): Likewise.
20535         * modules/isnand-nolibm-tests (Files): Likewise.
20536         * modules/isnand-tests (Files): Likewise.
20537         * modules/isnanf-nolibm-tests (Files): Likewise.
20538         * modules/isnanf-tests (Files): Likewise.
20539         * modules/isnanl-nolibm-tests (Files): Likewise.
20540         * modules/isnanl-tests (Files): Likewise.
20541         * modules/round-tests (Files): Likewise.
20542         * modules/roundf-tests (Files): Likewise.
20543         * modules/roundl-tests (Files): Likewise.
20544         * modules/ldexpl-tests (Files): Likewise.
20545         * modules/signbit-tests (Files): Likewise.
20546         * modules/snprintf-posix-tests (Files): Likewise.
20547         * modules/sprintf-posix-tests (Files): Likewise.
20548         * modules/strtod-tests (Files): Likewise.
20549         * modules/trunc-tests (Files): Likewise.
20550         * modules/truncf-tests (Files): Likewise.
20551         * modules/truncl-tests (Files): Likewise.
20552         * modules/vsnprintf-posix-tests (Files): Likewise.
20553         * modules/vsprintf-posix-tests (Files): Likewise.
20554         * modules/vasnprintf-posix-tests (Files): Likewise.
20555         * modules/vasprintf-posix-tests (Files): Likewise.
20556         * tests/test-ceilf1.c (main): Use it.
20557         * tests/test-ceill.c (main): Likewise.
20558         * tests/test-floorf1.c (main): Likewise.
20559         * tests/test-floorl.c (main): Likewise.
20560         * tests/test-frexp.c (main): Likewise.
20561         * tests/test-frexpl.c (main): Likewise.
20562         * tests/test-isnan.c (main): Likewise.
20563         * tests/test-isnand.h (main): Likewise.
20564         * tests/test-isnanf.h (main): Likewise.
20565         * tests/test-isnanl.h (main): Likewise.
20566         * tests/test-ldexpl.c (main): Likewise.
20567         * tests/test-round.c (main): Likewise.
20568         * tests/test-roundf.c (main): Likewise.
20569         * tests/test-roundl.c (main): Likewise.
20570         * tests/test-signbit.c (test_signbitf, test_signbitd)
20571         (test_signbitl): Likewise.
20572         * tests/test-snprintf-posix.h (test_function): Likewise.
20573         * tests/test-sprintf-posix.h (test_function): Likewise.
20574         * tests/test-strtod.c (main): Likewise.
20575         * tests/test-trunc1.c (main): Likewise.
20576         * tests/test-truncf1.c (main): Likewise.
20577         * tests/test-truncl.c (main): Likewise.
20578
20579         isnanl: work around icc bug
20580         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20581
20582 2010-11-03  Eric Blake  <eblake@redhat.com>
20583
20584         tests: fix compiler warnings
20585         * tests/test-getopt.h (test_getopt): Fix condition.
20586         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20587         * tests/test-pipe2.c (main): Likewise.
20588         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20589
20590         utimens: fix broken m4 test
20591         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20592
20593 2010-10-28  Bruno Haible  <bruno@clisp.org>
20594
20595         posix_spawn*, getdtablesize: Relax license.
20596         * modules/posix_spawn (License): Change to LGPLv2+.
20597         * modules/posix_spawnp (License): Likewise.
20598         * modules/posix_spawn-internal (License): Likewise.
20599         * modules/posix_spawnattr_init (License): Likewise.
20600         * modules/posix_spawnattr_getflags (License): Likewise.
20601         * modules/posix_spawnattr_setflags (License): Likewise.
20602         * modules/posix_spawnattr_getpgroup (License): Likewise.
20603         * modules/posix_spawnattr_setpgroup (License): Likewise.
20604         * modules/posix_spawnattr_getschedparam (License): Likewise.
20605         * modules/posix_spawnattr_setschedparam (License): Likewise.
20606         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20607         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20608         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20609         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20610         * modules/posix_spawnattr_getsigmask (License): Likewise.
20611         * modules/posix_spawnattr_setsigmask (License): Likewise.
20612         * modules/posix_spawnattr_destroy (License): Likewise.
20613         * modules/posix_spawn_file_actions_init (License): Likewise.
20614         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20615         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20616         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20617         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20618         * modules/getdtablesize (License): Likewise.
20619         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20620
20621 2010-10-26  Bruno Haible  <bruno@clisp.org>
20622
20623         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20624         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20625         Cygwin and mingw.
20626         Suggested by Eric Blake.
20627
20628 2010-10-26  Bruno Haible  <bruno@clisp.org>
20629
20630         stdio: Work around compilation error due to renameat() on Solaris 10.
20631         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20632         * lib/renameat.c: Don't include <unistd.h> here.
20633         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20634         Reported by Paul Eggert and Eric Blake.
20635
20636 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20637
20638         renameat: port to Solaris 10, which declares renameat in unistd.h
20639
20640         * lib/renameat.c: Include unistd.h before stdio.h, because
20641         Solaris 10 declares renameat in unistd.h.  Problem encountered
20642         when building GNU tar 1.24 on Solaris 10.
20643
20644 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20645
20646         fdopendir: fix C89 compilation
20647         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20648         compilers.
20649
20650 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20651
20652         inttostr: simplify by removing unnecessary redundancy
20653         * lib/anytostr.c: Don't include verify.h.
20654         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20655         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20656         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20657         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20658         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20659         Likewise.
20660         * modules/inttostr (Depends-on): Remove 'verify'.
20661
20662 2010-10-23  Bruno Haible  <bruno@clisp.org>
20663
20664         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20665         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20666         Reported by Eric Blake.
20667
20668 2010-10-23  Bruno Haible  <bruno@clisp.org>
20669
20670         Tests: Fix LOCALE_JA on MirBSD 10.
20671         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20672         to an UTF-8 locale.
20673         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20674         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20675         Reported by Eric Blake.
20676
20677 2010-10-21  Bruno Haible  <bruno@clisp.org>
20678
20679         nl_langinfo test: Avoid test failure on NetBSD 5.
20680         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20681         Reported by Eric Blake.
20682
20683 2010-10-21  Eric Blake  <eblake@redhat.com>
20684
20685         c-stack: work around libsigsegv 2.8 bug
20686         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20687         overflow on at least PowerPC64.
20688
20689 2010-10-17  Bruno Haible  <bruno@clisp.org>
20690
20691         userspec: Drop redundant file.
20692         * modules/userspec (Files): Remove lib/inttostr.h.
20693
20694 2010-10-17  Bruno Haible  <bruno@clisp.org>
20695
20696         nl_langinfo tests: Silence some warnings.
20697         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20698         Reported by Jim Meyering.
20699
20700 2010-10-17  Bruno Haible  <bruno@clisp.org>
20701
20702         Make use of GCC's attribute __alloc_size__.
20703         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20704         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20705         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20706         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20707         __alloc_size__.
20708         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20709         Suggested by Jim Meyering.
20710
20711 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20712
20713         bootstrap: anchor .gitignore entries.
20714         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20715         with...
20716         (insert_vc_ignore): ... this new function, which prepends `/' to
20717         all .gitignore entries before passing them to
20718         insert_sorted_if_absent.
20719
20720 2010-10-16  Bruno Haible  <bruno@clisp.org>
20721
20722         nextafter: Fix configure check.
20723         * modules/nextafter (configure.ac): Correct expected prototype.
20724
20725 2010-10-16  Bruno Haible  <bruno@clisp.org>
20726
20727         termios: Update documentation.
20728         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20729
20730 2010-10-16  Bruno Haible  <bruno@clisp.org>
20731
20732         tests: Make them compile with TinyCC.
20733         * tests/test-strstr.c (main): Remove parentheses around array
20734         initializer.
20735
20736 2010-10-15  Eric Blake  <eblake@redhat.com>
20737
20738         ignore-value: make header idempotent
20739         * lib/ignore-value.h: Add double-inclusion guards.
20740         Reported by Stefan Berger.
20741
20742 2010-10-15  Jim Meyering  <meyering@redhat.com>
20743
20744         GNUmakefile: handle "stable" target, not "major"
20745         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20746         lists in maint.mk and announce-gen.  Without this, "make stable"
20747         would fail to ensure that $(VERSION) is up to date.
20748
20749 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20750
20751         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20752         & co.
20753
20754 2010-10-14  Bruno Haible  <bruno@clisp.org>
20755
20756         vasnprintf: Don't set errno to 0.
20757         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20758         block that sets it to 0.
20759         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20760
20761 2010-10-14  Bruno Haible  <bruno@clisp.org>
20762
20763         socketlib: Fix.
20764         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20765         gl_PREREQ_SYS_H_WINSOCK2.
20766         Reported by Ian Beckwith <ianb@erislabs.net>.
20767
20768 2010-10-13  Jim Meyering  <meyering@redhat.com>
20769
20770         test-select-stdin.c: avoid warn_unused_result warnings
20771         * tests/test-select-stdin.c: Include "macros.h".
20772         ASSERT that read and fflush succeed.
20773
20774 2010-10-13  Jim Meyering  <meyering@redhat.com>
20775
20776         git-version-gen: do require git-VC'd files in cwd
20777         * build-aux/git-version-gen: Reject a git version string
20778         if there are no commits associated with the current directory.
20779         This avoids an unlikely false-positive (unrelated dir whose parent
20780         repository also contains a tag matching v*), as pointed out
20781         by Giuseppe Scrivano in
20782         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20783
20784 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20785
20786         argv-iter: omit nonconforming declaration
20787         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20788         enum arg_iter_err declaration, which doesn't conform to C99.
20789         Solaris 10 cc warns about this.
20790
20791 2010-10-13  Eric Blake  <eblake@redhat.com>
20792
20793         termios: fix compilation on mingw
20794         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20795         (gl_TERMIOS_H): Adjust it on mingw.
20796         * modules/termios (Makefile.am): Substitute new key.
20797         * lib/termios.in.h (includes): Make include_next conditional.
20798         * doc/posix-headers/termios.texi (termios.h): Update
20799         documentation.
20800         Reported by Daniel P. Berrange.
20801
20802 2010-10-13  Jim Meyering  <meyering@redhat.com>
20803
20804         git-version-gen: don't require that .git/ be in the current dir
20805         * build-aux/git-version-gen: Adjust this script so that it works
20806         when run from any working directory beneath the top-level .git/-
20807         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20808         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20809
20810         test-select: avoid warn_unused_result warnings
20811         * tests/test-select.c: Include "macros.h".
20812         ASSERT that each call to read, write, and pipe succeeds.
20813         While not technically required, also check each "close".
20814         * modules/select-tests (Files): Add tests/macros.h.
20815
20816         test-symlinkat: remove declaration of unused local
20817         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20818
20819         test-inttostr: avoid shadowing warnings
20820         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20821         and use malloc rather than the stack for the same reason as
20822         mentioned in the comment justifying the other allocation.
20823
20824 2010-10-11  Bruno Haible  <bruno@clisp.org>
20825
20826         stdlib: Allow multiple gnulib generated replacements to coexist.
20827         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20828         Reported by Sam Steingold <sds@gnu.org>.
20829
20830 2010-10-11  Jim Meyering  <meyering@redhat.com>
20831
20832         fix a documentation typo
20833         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20834
20835 2010-10-11  Eric Blake  <eblake@redhat.com>
20836
20837         futimens: work around Solaris 11 bug
20838         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20839         * tests/test-futimens.h (test_futimens): Enhance, rather than
20840         weaken test.
20841         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20842
20843 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20844
20845         Indentation.
20846         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20847         higher-level operators more to the left.
20848
20849 2010-10-11  Jim Meyering  <meyering@redhat.com>
20850
20851         test-futimens: avoid unwarranted test failure on Solaris 5.11
20852         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20853         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20854         because it tries to dereference the NULL name argument.
20855
20856 2010-10-11  Bruno Haible  <bruno@clisp.org>
20857
20858         Indentation.
20859         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20860         indentation.
20861
20862 2010-10-11  Jim Meyering  <meyering@redhat.com>
20863
20864         spawn.in.h: make indentation consistent with parentheses
20865         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20866         Make indentation consistent with parentheses.
20867
20868 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20869
20870         Fix mismatched parens in previous commit
20871         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20872         parens.
20873
20874 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20875
20876         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20877
20878         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20879         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20880         * lib/malloca.c: Include "verify.h".
20881         (verify1): Remove, replacing with a verify call.
20882         * lib/relocwrapper.c (verify1): Likewise.
20883         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20884         Likewise.
20885         * modules/malloca (Depends-on): Add 'verify'.
20886         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20887         * modules/vasnprintf (Depends-on): Add 'verify'.
20888         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20889         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20890         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20891         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20892         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20893         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20894         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20895
20896         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20897
20898         Formerly the style was sometimes 2*X - 1, because the C standard
20899         was wrongly thought to disallow ?: in integral constant expressions.
20900         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20901         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20902         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20903         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20904         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20905         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20906         verify that time_t cannot be floating.
20907
20908 2010-10-08  Eric Blake  <eblake@redhat.com>
20909
20910         time: enforce recent POSIX ruling that time_t is integral
20911         * lib/time.in.h (__time_t_must_be_integral): Detect any
20912         problematic systems, allowing the rest of gnulib to assume POSIX.
20913
20914 2010-10-08  Jim Meyering  <meyering@redhat.com>
20915
20916         fdopendir: fix a bug on systems lacking openat and /proc support
20917         OpenBSD 4.7 is one such system.  The most noticeable effect was
20918         failure of any application making nontrivial use of fts: rm, du,
20919         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20920           ./rm: traversal failed: `a': Bad file descriptor
20921         Debugging that, you see that even though FD 6 was closed just
20922         prior to the opendir call in fd_clone_opendir, its resulting
20923         dir->dd_fd was 8, rather than the expected value of 6:
20924
20925         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20926         93                close (fd);
20927         (gdb) n
20928         94                dir = fd_clone_opendir (dupfd);
20929         (gdb) n
20930         95                saved_errno = errno;
20931         (gdb) p dir->dd_fd
20932         $11 = 8
20933
20934         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20935         The problem is that on OpenBSD, fd_clone_opendir has to resort
20936         to using the old-style save/restore CWD mechanism, due to its
20937         lack of openat/proc support, and *that* would steal the FD (6)
20938         that opendir was supposed to use.
20939
20940         The fix is to squirrel away the desired FD so that save_cwd uses a
20941         different one, and then free the dest FD right before calling opendir.
20942         That guarantees opendir will use the required file descriptor.
20943
20944         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20945
20946 2010-10-08  Bruno Haible  <bruno@clisp.org>
20947
20948         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20949         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20950
20951 2010-10-08  Bruno Haible  <bruno@clisp.org>
20952
20953         nanosleep: Make replacement POSIX compliant.
20954         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20955         is out of range.
20956         Reported by Jim Meyering.
20957
20958 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20959
20960         bootstrap: add hook for altering gnulib.mk, for Bison
20961         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20962         the Bison bootstrapping process can rewrite file names and variables
20963         in this file before later parts of 'bootstrap' use the file.
20964         Bison wants to include lib/gnulib.mk from the top-level makefile,
20965         so it needs the file names in this file to be relative to the top
20966         level, not relative to lib; plus it needs variable names to be
20967         rewritten.
20968         (slurp): Use the new function.
20969
20970         bootstrap: reformat for readability
20971         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20972
20973 2010-10-08  Eric Blake  <eblake@redhat.com>
20974
20975         docs: update cygwin progress
20976         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20977         1.7.7.
20978         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20979         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20980         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20981         * doc/posix-functions/carg.texi (carg): Likewise.
20982         * doc/posix-functions/cargf.texi (cargf): Likewise.
20983         * doc/posix-functions/casin.texi (casin): Likewise.
20984         * doc/posix-functions/casinf.texi (casinf): Likewise.
20985         * doc/posix-functions/casinh.texi (casinh): Likewise.
20986         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20987         * doc/posix-functions/catan.texi (catan): Likewise.
20988         * doc/posix-functions/catanf.texi (catanf): Likewise.
20989         * doc/posix-functions/catanh.texi (catanh): Likewise.
20990         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20991         * doc/posix-functions/ccos.texi (ccos): Likewise.
20992         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20993         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20994         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20995         * doc/posix-functions/cexp.texi (cexp): Likewise.
20996         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20997         * doc/posix-functions/cimag.texi (cimag): Likewise.
20998         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20999         * doc/posix-functions/clog.texi (clog): Likewise.
21000         * doc/posix-functions/clogf.texi (clogf): Likewise.
21001         * doc/posix-functions/conj.texi (conj): Likewise.
21002         * doc/posix-functions/conjf.texi (conjf): Likewise.
21003         * doc/posix-functions/cpow.texi (cpow): Likewise.
21004         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21005         * doc/posix-functions/cproj.texi (cproj): Likewise.
21006         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21007         * doc/posix-functions/creal.texi (creal): Likewise.
21008         * doc/posix-functions/crealf.texi (crealf): Likewise.
21009         * doc/posix-functions/csin.texi (csin): Likewise.
21010         * doc/posix-functions/csinf.texi (csinf): Likewise.
21011         * doc/posix-functions/csinh.texi (csinh): Likewise.
21012         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21013         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21014         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21015         * doc/posix-functions/ctan.texi (ctan): Likewise.
21016         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21017         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21018         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21019         * doc/posix-headers/complex.texi (complex.h): Likewise.
21020
21021 2010-10-07  Jim Meyering  <meyering@redhat.com>
21022
21023         parse-datetime: avoid compilation failure on OpenBSD 4.7
21024         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21025         This works around a compilation failure on OpenBSD 4.7:
21026         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21027
21028 2010-10-07  Eric Blake  <eblake@redhat.com>
21029
21030         docs: update cygwin progress
21031         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21032         1.7.6.
21033         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21034         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21035         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21036         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21037         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21038         Likewise.
21039         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21040         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21041         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21042         Likewise.
21043         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21044         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21045         Likewise.
21046         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21047         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21048         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21049         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21050         Likewise.
21051         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21052         Likewise.
21053         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21054
21055         docs: update parse-datetime history
21056         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21057         documentation of this function's history and alternatives.
21058
21059         cygwin: use more robust version check
21060         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21061         exclude an eventual cygwin 1.9.1.
21062         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21063         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21064         (gl_FUNC_STRCASESTR): Likewise.
21065         Reported by Bruno Haible.
21066
21067 2010-10-06  Bruno Haible  <bruno@clisp.org>
21068
21069         string, sys_select: Avoid #including large headers unless necessary.
21070         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21071         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21072         OSF/1, BeOS, Haiku.
21073         Reported by Jim Meyering.
21074
21075 2010-10-05  Eric Blake  <eblake@redhat.com>
21076
21077         memmem, strstr, strcasestr: fix bug with long periodic needle
21078         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21079         periodic needle having false positive.
21080         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21081         and cygwin 1.7.7.
21082         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21084         (gl_FUNC_STRCASESTR): Likewise.
21085         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21086         * tests/test-memmem.c (main): Expose the bug.
21087         * tests/test-strcasestr.c (main): Likewise.
21088         * tests/test-strstr.c (main): Likewise.
21089         * tests/test-c-strcasestr.c (main): Likewise.
21090         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21091         * doc/posix-functions/strstr.texi (strstr): Likewise.
21092         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21093         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21094
21095 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21096
21097         parse-datetime: do some more renaming
21098         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21099         parse_datetime, not get_date.  Mention the renaming.
21100         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21101         in comments.
21102         * m4/bison.m4: Likewise.
21103
21104 2010-10-05  Eric Blake  <eblake@redhat.com>
21105
21106         parse-datetime: better name than get_date
21107         * NEWS: Reword the deprecation notice.
21108         * modules/get_date: Rename to modules/parse-datetime.
21109         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21110         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21111         * lib/get_date.y: Rename to lib/parse-datetime.y.
21112         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21113         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21114         * doc/getdate.texi: Provide fallback wrapper.
21115         * lib/getdate.h: Move guts, and wrap...
21116         * lib/parse-datetime.h: ...new file.
21117         * lib/parse-datetime.y (get_date): Rename...
21118         (parse_datetime): ...to this.
21119         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21120         (gl_PARSE_DATETIME): ...to this.
21121         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21122         documentation.
21123         * modules/getdate (Files): Provide fallback docs and header.
21124         (Notice, Depends-on): Update references.
21125         * tests/test-parse-datetime.c: Likewise.
21126         * DEPENDENCIES: Likewise.
21127         * MODULES.html.sh (Date and time <time.h>): Likewise.
21128         * doc/parse-datetime.texi (Date input formats)
21129         (Authors of parse_datetime): Likewise.
21130         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21131         (Include): Likewise.
21132         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21133         * gnulib-tool: Likewise.
21134         * m4/bison.m4 (gl_BISON): Likewise.
21135         Suggested by Bruno Haible.
21136
21137 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21138
21139         more ports to Solaris tr, which needs [] around ranges
21140         * gnulib-tool: Solaris tr needs [] around ranges.
21141         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21142         * tests/test-pipe-filter-gi1.c (main): Likewise.
21143         * tests/test-pipe-filter-ii1.c (main): Likewise.
21144
21145 2010-10-05  Eric Blake  <eblake@redhat.com>
21146
21147         bootstrap: fix Solaris regression
21148         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21149         around ranges.
21150         Reported by Pádraig Brady.
21151
21152         bootstrap: work with pkg-config
21153         * build-aux/bootstrap (check_versions): Also transliterate - in
21154         prerequisite name.
21155         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21156         prerequisites that were already found, to avoid confusion.
21157         Reported by Justin Clift.
21158
21159         faccessat: remove unused wrappers
21160         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21161         presence of these wrappers dragged in -lgen on Solaris.
21162         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21163
21164 2010-10-05  Jim Meyering  <meyering@redhat.com>
21165
21166         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21167         * Makefile (sc_pragma_columns): New syntax-check rule.
21168
21169 2010-10-04  Bruno Haible  <bruno@clisp.org>
21170
21171         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21172         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21173         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21174         Reported by Bruce Korb and Eric Blake.
21175
21176 2010-10-04  Bruno Haible  <bruno@clisp.org>
21177
21178         threadlib: Make option --with-libpth-prefix work.
21179         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21180         use $LIBPTH, not just -lpth.
21181
21182 2010-10-04  Bruno Haible  <bruno@clisp.org>
21183
21184         Avoid line length limitation from HP NonStop system header files.
21185         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21186         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21187         * lib/ctype.in.h: Likewise.
21188         * lib/dirent.in.h: Likewise.
21189         * lib/errno.in.h: Likewise.
21190         * lib/fcntl.in.h: Likewise.
21191         * lib/float.in.h: Likewise.
21192         * lib/getopt.in.h: Likewise.
21193         * lib/iconv.in.h: Likewise.
21194         * lib/inttypes.in.h: Likewise.
21195         * lib/langinfo.in.h: Likewise.
21196         * lib/locale.in.h: Likewise.
21197         * lib/math.in.h: Likewise.
21198         * lib/netdb.in.h: Likewise.
21199         * lib/netinet_in.in.h: Likewise.
21200         * lib/poll.in.h: Likewise.
21201         * lib/pthread.in.h: Likewise.
21202         * lib/pty.in.h: Likewise.
21203         * lib/sched.in.h: Likewise.
21204         * lib/se-selinux.in.h: Likewise.
21205         * lib/search.in.h: Likewise.
21206         * lib/signal.in.h: Likewise.
21207         * lib/spawn.in.h: Likewise.
21208         * lib/stdarg.in.h: Likewise.
21209         * lib/stddef.in.h: Likewise.
21210         * lib/stdint.in.h: Likewise.
21211         * lib/stdio.in.h: Likewise.
21212         * lib/stdlib.in.h: Likewise.
21213         * lib/string.in.h: Likewise.
21214         * lib/strings.in.h: Likewise.
21215         * lib/sys_file.in.h: Likewise.
21216         * lib/sys_ioctl.in.h: Likewise.
21217         * lib/sys_select.in.h: Likewise.
21218         * lib/sys_socket.in.h: Likewise.
21219         * lib/sys_stat.in.h: Likewise.
21220         * lib/sys_time.in.h: Likewise.
21221         * lib/sys_times.in.h: Likewise.
21222         * lib/sys_utsname.in.h: Likewise.
21223         * lib/sys_wait.in.h: Likewise.
21224         * lib/sysexits.in.h: Likewise.
21225         * lib/termios.in.h: Likewise.
21226         * lib/time.in.h: Likewise.
21227         * lib/unistd.in.h: Likewise.
21228         * lib/wchar.in.h: Likewise.
21229         * lib/wctype.in.h: Likewise.
21230         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21231         * modules/ctype (Makefile.am): Likewise.
21232         * modules/dirent (Makefile.am): Likewise.
21233         * modules/errno (Makefile.am): Likewise.
21234         * modules/fcntl-h (Makefile.am): Likewise.
21235         * modules/float (Makefile.am): Likewise.
21236         * modules/getopt-posix (Makefile.am): Likewise.
21237         * modules/iconv-h (Makefile.am): Likewise.
21238         * modules/inttypes (Makefile.am): Likewise.
21239         * modules/langinfo (Makefile.am): Likewise.
21240         * modules/locale (Makefile.am): Likewise.
21241         * modules/math (Makefile.am): Likewise.
21242         * modules/netdb (Makefile.am): Likewise.
21243         * modules/netinet_in (Makefile.am): Likewise.
21244         * modules/poll-h (Makefile.am): Likewise.
21245         * modules/pthread (Makefile.am): Likewise.
21246         * modules/pty (Makefile.am): Likewise.
21247         * modules/sched (Makefile.am): Likewise.
21248         * modules/search (Makefile.am): Likewise.
21249         * modules/selinux-h (Makefile.am): Likewise.
21250         * modules/signal (Makefile.am): Likewise.
21251         * modules/spawn (Makefile.am): Likewise.
21252         * modules/stdarg (Makefile.am): Likewise.
21253         * modules/stddef (Makefile.am): Likewise.
21254         * modules/stdint (Makefile.am): Likewise.
21255         * modules/stdio (Makefile.am): Likewise.
21256         * modules/stdlib (Makefile.am): Likewise.
21257         * modules/string (Makefile.am): Likewise.
21258         * modules/strings (Makefile.am): Likewise.
21259         * modules/sys_file (Makefile.am): Likewise.
21260         * modules/sys_ioctl (Makefile.am): Likewise.
21261         * modules/sys_select (Makefile.am): Likewise.
21262         * modules/sys_socket (Makefile.am): Likewise.
21263         * modules/sys_stat (Makefile.am): Likewise.
21264         * modules/sys_time (Makefile.am): Likewise.
21265         * modules/sys_times (Makefile.am): Likewise.
21266         * modules/sys_utsname (Makefile.am): Likewise.
21267         * modules/sys_wait (Makefile.am): Likewise.
21268         * modules/sysexits (Makefile.am): Likewise.
21269         * modules/termios (Makefile.am): Likewise.
21270         * modules/time (Makefile.am): Likewise.
21271         * modules/unistd (Makefile.am): Likewise.
21272         * modules/wchar (Makefile.am): Likewise.
21273         * modules/wctype (Makefile.am): Likewise.
21274
21275 2010-10-04  Bruno Haible  <bruno@clisp.org>
21276
21277         read-file tests: Avoid a test failure on NonStop Kernel.
21278         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
21279         a regular file.
21280         Reported by Joachim Schmitz <schmitz@hp.com>.
21281
21282 2010-10-03  Bruno Haible  <bruno@clisp.org>
21283
21284         gnulib-tool: Fixes for --create-testdir with --libtool.
21285         * gnulib-tool (func_get_automake_snippet): Don't augment
21286         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
21287         an executable.
21288         (func_create_testdir): Handle module 'alloca' like func_import.
21289         Reported by Bruce Korb <bruce.korb@gmail.com>.
21290
21291 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21292
21293         Avoid some lines longer than 80 characters.
21294         * lib/stdint.in.h: Break long comment lines.
21295         * lib/math.in.h: Likewise.
21296         (_GL_NUM_UINT_WORDS): New macro, for readability.
21297         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
21298         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
21299         * lib/stdlib.in.h: Likewise.
21300         * lib/spawn.in.h: Likewise.
21301         * lib/sys_socket.in.h: Update an URL.
21302         * lib/sys_stat.in.h: Break long line.
21303
21304 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
21305
21306         Improve pmccabe2html.
21307         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
21308         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
21309         when the sources change. Remove the line in the HTML about "Used
21310         ranges" (which implied that there might be other unused ranges),
21311         rename "Resume" to "Summary" (easier to understand for more users).
21312         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
21313         styles, and some unnecessary blank lines.
21314
21315 2010-10-03  Bruno Haible  <bruno@clisp.org>
21316             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
21317
21318         acl: Add support for ACLs on NonStop Kernel.
21319         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
21320         Check whether the function aclsort() exists.
21321         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
21322         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
21323         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21324         (acl_nontrivial [HAVE_ACLSORT]: New function.
21325         (file_has_acl): Implement for NonStop Kernel.
21326         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21327         (qset_acl): Implement for NonStop Kernel.
21328         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
21329         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21330         (main): Implement for NonStop Kernel.
21331         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
21332         Kernel. Handle this flavor.
21333         * tests/test-set-mode-acl.sh: Likewise.
21334         * tests/test-copy-acl.sh: Likewise.
21335         * tests/test-copy-file.sh: Likewise.
21336
21337 2010-10-03  Bruno Haible  <bruno@clisp.org>
21338
21339         Info about ACLs on NonStop Kernel.
21340         * doc/acl-resources.txt: Add info about NonStop Kernel.
21341         References by Joachim Schmitz <schmitz@hp.com>.
21342
21343 2010-10-02  Bruno Haible  <bruno@clisp.org>
21344
21345         Define missing EDQUOT on NonStop Kernel.
21346         * lib/errno.in.h (EDQUOT): Assign a value if missing.
21347         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
21348         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
21349         missing.
21350         * doc/posix-headers/errno.texi: Mention the NSK bug.
21351         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
21352         Reported by Joachim Schmitz <schmitz@hp.com>.
21353
21354 2010-10-02  Bruno Haible  <bruno@clisp.org>
21355
21356         Update doc for POSIX:2008.
21357         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
21358         Update URL of POSIX specification.
21359
21360 2010-10-02  Bruno Haible  <bruno@clisp.org>
21361
21362         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
21363         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
21364         from gnulib, not from Automake.
21365
21366 2010-10-02  Bruno Haible  <bruno@clisp.org>
21367
21368         New module 'system-posix'.
21369         * modules/system-posix: New file.
21370         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21371         module is present.
21372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21373         GNULIB_SYSTEM_POSIX.
21374         * modules/stdlib (Depends-on): Remove sys_wait.
21375         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21376         * doc/posix-functions/system.texi: Mention the new module.
21377         * doc/posix-headers/stdlib.texi: Likewise.
21378         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21379         define test_sys_wait_macros to a no-op.
21380         Reported by Sam Steingold <sds@gnu.org>.
21381
21382 2010-09-30  Bruno Haible  <bruno@clisp.org>
21383
21384         More renaming from 'getdate' to 'get_date'.
21385         * doc/get_date.texi: Renamed from doc/getdate.texi.
21386         * modules/get_date (Files): Update.
21387         * MODULES.html.sh (Date and time <time.h>): Update.
21388         * DEPENDENCIES: Update.
21389         * gnulib-tool: Update comment.
21390         * m4/bison.m4 (gl_BISON): Likewise.
21391         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21392
21393 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21394
21395         bootstrap: support ACLOCAL_FLAGS during aclocal
21396         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21397         can add additional -I dir for third-party .m4 files.
21398
21399 2010-09-30  Eric Blake  <eblake@redhat.com>
21400
21401         bootstrap: use glibtoolize on MacOS
21402         * build-aux/bootstrap (check_versions): Convert libtool into
21403         libtoolize.
21404         (tool search): Move libtool check earlier, and look for
21405         glibtoolize for MacOS.
21406         (gnulib_tool_options): Auto-add --libtool when appropriate.
21407         Reported by Justin Clift.
21408
21409         poll: fix typo that broke test on MacOS
21410         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21411         Reported by Justin Clift.
21412
21413         getdate: rename to get_date
21414         Note: getdate.h is not renamed, to minimize client impact.
21415         * modules/getdate: Mark obsolete.  Move old contents...
21416         * modules/get_date: ...to new module name.
21417         * modules/getdate-tests: Move...
21418         * modules/get_date-tests: ...here.
21419         * m4/getdate.m4: Move...
21420         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21421         * lib/getdate.y: Move...
21422         * lib/get_date.y: ...here.
21423         * tests/test-getdate.c: Move...
21424         * tests/test-get_date.c: ...here.
21425         * doc/posix-functions/getdate.texi (getdate): Update name.
21426         * NEWS: Mention the change.
21427
21428 2010-09-29  Bruno Haible  <bruno@clisp.org>
21429
21430         Separate the module 'waitpid' from the module 'sys_wait'.
21431         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21432         present.
21433         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21434         gl_MODULE_INDICATOR_FOR_TESTS.
21435         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21436         * modules/sys_wait (Depends-on): Remove waitpid.
21437         (Makefile.am): Substitute GNULIB_WAITPID.
21438         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21439         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21440         signature only if the 'waitpid' module is present.
21441         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21442         * NEWS: Mention the change.
21443         * modules/grantpt (Depends-on): Add waitpid.
21444         * modules/wait-process (Depends-on): Likewise.
21445
21446 2010-09-29  Bruno Haible  <bruno@clisp.org>
21447
21448         More tests for module 'sys_wait'.
21449         * modules/sys_wait-c++-tests: New file.
21450         * tests/test-sys_wait-c++.cc: New file.
21451         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21452         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21453
21454 2010-09-29  Bruno Haible  <bruno@clisp.org>
21455
21456         New module 'waitpid'.
21457         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21458         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21459         Don't include <process.h>.
21460         (waitpid): Declare only, using modern idiom.
21461         * m4/waitpid.m4: New file.
21462         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21463         * modules/waitpid: New file.
21464         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21465         (Makefile.am): Update.
21466         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21467
21468 2010-09-28  Bruno Haible  <bruno@clisp.org>
21469
21470         poll: Assume ANSI C.
21471         * lib/poll.c (poll): Use an ANSI C declaration.
21472
21473 2010-09-28  Bruno Haible  <bruno@clisp.org>
21474
21475         poll-h: Create poll.h on all platforms.
21476         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21477         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21478         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21479         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21480         (gl_REPLACE_POLL_H): Don't set POLL_H.
21481         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21482         * modules/poll-h (Depends-on): Add include_next.
21483         (Makefile.am): Create poll.h unconditionally. Substitute also
21484         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21485
21486 2010-09-28  Bruno Haible  <bruno@clisp.org>
21487
21488         Tests for module 'poll-h'.
21489         * modules/poll-h-c++-tests: New file.
21490         * tests/test-poll-h-c++.cc: New file.
21491
21492         Tests for module 'poll-h'.
21493         * modules/poll-h-tests: New file.
21494         * tests/test-poll-h.c: New file.
21495
21496 2010-09-28  Bruno Haible  <bruno@clisp.org>
21497
21498         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21499         * modules/poll-h (Depends-on): Add 'extensions'.
21500
21501 2010-09-28  Bruno Haible  <bruno@clisp.org>
21502
21503         New module 'poll-h'.
21504         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21505         (poll): Use modern idiom.
21506         * modules/poll-h: New file.
21507         * modules/poll (Files): Remove lib/poll.in.h.
21508         (Depends-on): Add poll-h.
21509         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21510         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21511         * m4/poll_h.m4: New file.
21512         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21513         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21514         and invoke gl_REPLACE_POLL_H.
21515         * lib/poll.c: Use common idiom.
21516         * tests/test-poll.c: Likewise.
21517         * doc/posix-headers/poll.texi: Mention the poll-h module.
21518         Suggested by Eric Blake.
21519
21520 2010-09-26  Bruno Haible  <bruno@clisp.org>
21521
21522         sys_wait: Implement WSTOPSIG.
21523         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21524         Reported by Simon Josefsson.
21525
21526 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21527
21528         stdlib, sys_wait: Avoid compilation error on mingw.
21529         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21530
21531 2010-09-26  Bruno Haible  <bruno@clisp.org>
21532
21533         stdlib tests: Avoid code duplication.
21534         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21535         * modules/sys_wait-tests (Files): Likewise.
21536         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21537         * tests/test-stdlib.c: Include test-sys_wait.h.
21538         (main): Invoke test_sys_wait_macros.
21539         * tests/test-sys_wait.c: Include test-sys_wait.h.
21540         (main): Invoke test_sys_wait_macros.
21541
21542 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21543
21544         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21545         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21546         sure Windows sockets are working before calling getaddrinfo.
21547         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21548         * doc/gnulib.texi (Windows sockets): Fix typo.
21549
21550 2010-09-25  Bruno Haible  <bruno@clisp.org>
21551
21552         Tests for module 'regex-quote'.
21553         * modules/regex-quote-tests: New file.
21554         * tests/test-regex-quote.c: New file.
21555
21556         New module 'regex-quote'.
21557         * lib/regex-quote.h: New file.
21558         * lib/regex-quote.c: New file.
21559         * modules/regex-quote: New file.
21560         Suggested by Reuben Thomas <rrt@sc3d.org>.
21561
21562 2010-09-24  Bruno Haible  <bruno@clisp.org>
21563
21564         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21565         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21566
21567 2010-09-23  Bruno Haible  <bruno@clisp.org>
21568
21569         setenv: Relax license.
21570         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21571         Blake.
21572         Requested by Eric Blake.
21573
21574 2010-09-22  Bruno Haible  <bruno@clisp.org>
21575
21576         termios: Relax license.
21577         * modules/termios (License): Change to LGPLv2+.
21578         Requested by Eric Blake.
21579
21580 2010-09-22  Bruno Haible  <bruno@clisp.org>
21581
21582         threadlib: Allow the package to change the default to 'no'.
21583         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21584         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21585         Reported by Paul Eggert.
21586
21587 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21588             Bruno Haible  <bruno@clisp.org>
21589
21590         Fix endless loop in mbmemcasecoll.
21591         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21592         byte.
21593         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21594
21595 2010-09-22  Bruno Haible  <bruno@clisp.org>
21596
21597         Tests for module 'memcoll'.
21598         * modules/memcoll-tests: New file.
21599         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21600
21601         memcoll, xmemcoll: Clarify size vs. length.
21602         * modules/memcoll.c (memcoll0): Clarify specification.
21603         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21604         passed to collate_error.
21605
21606 2010-09-22  Bruno Haible  <bruno@clisp.org>
21607
21608         Tests for module 'memcasecmp'.
21609         * modules/memcasecmp-tests: New file.
21610         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21611
21612 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21613
21614         * lib/pthread.in.h: Add split double-inclusion guard, and include
21615         system <pthread.h> if there is one.  Use @@-style as in other
21616         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21617         pthread.h doesn't.
21618         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21619         (pthread_mutexattr_settype, pthread_mutex_trylock):
21620         New static inline functions, if there's no system <pthread.h>.
21621         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21622         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21623         Approximate with mutexes if the system lacks spinlocks, as in
21624         MacOS.
21625         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21626         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21627         @@-style.  Check for spinlocks separately.
21628         (gl_PTHREAD_DEFAULTS): New macro.
21629         * modules/pthread: Redo to use a more typical style for in.h files.
21630
21631 2010-09-21  Eric Blake  <eblake@redhat.com>
21632
21633         net_if: enhance tests
21634         * tests/test-net_if.c (main): Move signature checks earlier.
21635         Print failures to stderr.
21636         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21637         Document the bug that we do not yet fix.
21638
21639 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21640
21641         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21642         about gnulib, not GSS.
21643
21644 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21645
21646         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21647         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21648         for Emacs.
21649         * build-aux/pmccabe2html: Make Makefile.am example code more
21650         cut-and-paste friendly.
21651
21652 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21653
21654         * tests/test-net_if.c: New file.
21655         * modules/net_if-tests: New file.
21656
21657 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21658
21659         pthread: add pthread_spin_destroy
21660         * lib/pthread.in.h (pthread_spin_destroy): New function.
21661
21662 2010-09-19  Bruno Haible  <bruno@clisp.org>
21663
21664         gnulib-tool: Fix --help output.
21665         * gnulib-tool (func_usage): Fix help message.
21666         Reported by Reuben Thomas <rrt@sc3d.org>.
21667
21668 2010-09-18  Jim Meyering  <meyering@redhat.com>
21669
21670         maint.mk: avoid unexpanded \n in two diagnostics
21671         * top/maint.mk (sc_prohibit_always_true_header_tests):
21672         Don't use a literal \n in a halt=... assignment.  It would not be
21673         expanded, and the two \n bytes would appear in the diagnostic output
21674         rather than the desired newline.  Use halt=$$(printf ... instead.
21675         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21676
21677 2010-09-18  Bruno Haible  <bruno@clisp.org>
21678
21679         netinet_in: Doc tweak.
21680         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21681         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21682
21683 2010-09-18  Jim Meyering  <meyering@redhat.com>
21684
21685         init.sh: correct an outdated comment
21686         * tests/init.sh (create_exe_shims_):  s/function/alias/
21687
21688         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21689         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21690         a file named "*.exe" is removed between the glob expansion and the
21691         processing of that oddly named file.
21692
21693 2010-09-17  Eric Blake  <eblake@redhat.com>
21694
21695         mirbsd: add some more support
21696         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21697         in BSD family.
21698         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21699         devices as OpenBSD.
21700         * m4/host-os.m4 (mirbsd): Add MirBSD.
21701
21702         tests: fix unportable assumption on sys/wait.h
21703         * tests/test-sys_wait.c (main): Relax test.
21704         * tests/test-stdlib.c (main): Likewise.
21705
21706         init.sh: accomodate directory with no .exes
21707         * tests/init.sh: Accomodate directory containing only scripts.
21708
21709         tests: avoid compiler warning
21710         * tests/test-stdlib.c (main): Use the variable.
21711
21712         fdutimens, fdutimensat: update signature, again
21713         * lib/utimens.h (gl_futimens): Delete, and move signature...
21714         (fdutimens): ...here.
21715         (fdutimensat): Rearrange signature.
21716         (lutimensat): Rename variable for clarity.
21717         * lib/fdutimensat.c (fdutimensat): Update signature.
21718         * lib/utimens.c (fdutimens): Likewise.
21719         (gl_futimens): Delete.
21720         (utimens, lutimens): Update callers.
21721         * lib/futimens.c (futimens): Likewise.
21722         * tests/test-fdutimensat.c: Likewise.
21723         * tests/test-utimens.c: Likewise.
21724         * tests/test-futimens.h: Update comment.
21725         * NEWS: Mention this.
21726         Suggested by Paul Eggert.
21727
21728 2010-09-17  Bruno Haible  <bruno@clisp.org>
21729
21730         Take over the maintenance of some older macros from Autoconf.
21731         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21732         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21733         GNU Autoconf.
21734         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21735         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21736
21737 2010-09-17  Eric Blake  <eblake@redhat.com>
21738
21739         fdutimensat: drop atflag validation
21740         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21741         with valid fd, to close a race scenario where futimens is
21742         unsupported and FILE was replaced by a symlink.
21743         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21744         accordingly.
21745         Suggested by Paul Eggert.
21746
21747 2010-09-16  Bruno Haible  <bruno@clisp.org>
21748
21749         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21750         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21751
21752 2010-09-16  Bruno Haible  <bruno@clisp.org>
21753
21754         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21755         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21756         login_tty exists.
21757         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21758
21759 2010-09-16  Bruno Haible  <bruno@clisp.org>
21760
21761         login_tty: Make the replacement code work on BSD systems.
21762         * lib/login_tty.c: Include <sys/ioctl.h>.
21763         (login_tty): Use ioctl TIOCSCTTY when available.
21764         * modules/login_tty (Depends-on): Add sys_ioctl.
21765         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21766
21767 2010-09-16  Bruno Haible  <bruno@clisp.org>
21768
21769         login_tty: Stricter unit test.
21770         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21771         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21772         and tcgetsid() after login_tty.
21773         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21774
21775 2010-09-16  Bruno Haible  <bruno@clisp.org>
21776
21777         New module 'tcgetsid'.
21778         * lib/tcgetsid.c: New file.
21779         * m4/tcgetsid.m4: New file.
21780         * modules/tcgetsid: New file.
21781         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21782         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21783         GNULIB_TCGETSID, HAVE_TCGETSID.
21784         * lib/termios.in.h: Include <sys/types.h>.
21785         (tcgetsid): New declaration.
21786         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21787         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21788         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21789         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21790
21791 2010-09-16  Bruno Haible  <bruno@clisp.org>
21792
21793         Tests for module 'termios'.
21794         * modules/termios-c++-tests: New file.
21795         * modules/termios-tests: New file.
21796         * tests/test-termios-c++.cc: New file.
21797         * tests/test-termios.c: New file.
21798
21799         New module 'termios'.
21800         * modules/termios: New file.
21801         * lib/termios.in.h: New file.
21802         * m4/termios_h.m4: New file.
21803         * doc/posix-headers/termios.texi: Mention the new module.
21804
21805 2010-09-16  Eric Blake  <eblake@redhat.com>
21806
21807         fdutimensat: add an atflag parameter
21808         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21809         * lib/utimens.h (fdutimensat): Update prototype.
21810         * tests/test-fdutimensat.c: Adjust test to match.
21811         * NEWS: Document the change.
21812         Suggested by Paul Eggert.
21813
21814 2010-09-16  Bruno Haible  <bruno@clisp.org>
21815
21816         Fix typos in comments.
21817         * lib/striconveh.h: Fix typo in comment.
21818         * lib/login_tty.c (login_tty): Likewise.
21819
21820 2010-09-15  Bruno Haible  <bruno@clisp.org>
21821
21822         stdlib: clarify MirBSD WEXITSTATUS bug
21823         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21824         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21825
21826 2010-09-15  Eric Blake  <eblake@redhat.com>
21827
21828         stdlib: work around MirBSD WEXITSTATUS bug
21829         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21830         * modules/stdlib (Depends-on): Add sys_wait.
21831         * tests/test-sys_wait.c (main): Enhance test.
21832         * tests/test-stdlib.c (main): Likewise.
21833         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21834
21835         docs: mention MacOS issue with WEXITSTATUS(constant)
21836         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21837         issue.
21838         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21839
21840         strnlen: add tests
21841         * modules/strnlen-tests: New file.
21842         * tests/test-strnlen.c: Likewise.
21843
21844 2010-09-14  Bruno Haible  <bruno@clisp.org>
21845
21846         unistr/base: Avoid link errors when module 'libunistring' is also used.
21847         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21848         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21849         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21850         Declare also when HAVE_LIBUNISTRING is set.
21851         Reported by Pádraig Brady <P@draigbrady.com>.
21852
21853 2010-09-14  Eric Blake  <eblake@redhat.com>
21854
21855         test-rawmemchr: make more robust
21856         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21857         (Depends-on, configure.ac): Add needed prerequisites to use it.
21858         * modules/memchr-tests (Files, Depends-on, configure.ac):
21859         Likewise, to avoid implicit reliance on memchr module prereqs.
21860         * tests/test-memchr.c (main): Ensure proper masking.
21861         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21862         reads.
21863
21864         memchr: detect glibc Alpha bug
21865         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21866         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21867         Alpha.
21868         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21869         * tests/test-memchr.c (main): Enhance test.
21870         Reported by Nelson H. F. Beebe.
21871
21872 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21873
21874         fts, getcwd, glob: audit for dirfd returning -1
21875         * lib/fts.c (opendir): Remove #define; no longer used.
21876         (opendirat): New arg PDIR_FD.  All callers changed.
21877         (fts_build, _opendir2): Use new opendirat to avoid the need for
21878         dirfd, or for checking whether dirfd returns a negative value.
21879         Don't use opendir; always use openat followed by fdopendir.
21880         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21881         it.
21882         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21883         returns -1 here.
21884         * modules/fts (Depends-on): Remove dirfd.
21885         * modules/getcwd (Depends-on): Likewise.
21886
21887 2010-09-13  Eric Blake  <eblake@redhat.com>
21888
21889         float: fix broken MirBSD header
21890         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21891         * doc/posix-headers/float.texi (float.h): Document it.
21892
21893 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21894
21895         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21896         * lib/fts.c (opendirat): New arg extra_flags.
21897         (__opendir2): Use it to avoid following symlinks when opening
21898         a directory, if symlinks are not supposed to be followed.  See
21899         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21900
21901         fdopendir: preserve argument fd before returning
21902         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21903         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21904         (fdopendir): Use them, arranging for FD to be open to the same
21905         directory that it was when it started.  (It might be temporarily
21906         closed while fdopendir is running, so this not thread- or
21907         signal-safe.)  Be careful to do the right thing even when file
21908         descriptors are scarce and dup fails with errno == EMFILE.  See
21909         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21910
21911 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21912
21913         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21914         * NEWS: Document change.
21915         * m4/regex.m4: Disable test for regoff_t size.
21916
21917 2010-09-13  Jim Meyering  <meyering@redhat.com>
21918
21919         fts: don't operate on an invalid file descriptor after failed dup
21920         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21921         negative file descriptor.
21922
21923 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21924
21925         savedir: add streamsavedir, deprecate fdsavedir
21926         * NEWS: Mention deprecation of fdsavedir.
21927         * lib/savedir.c (streamsavedir): New extern function, whose name
21928         ends in "savedir" to be consistent with the others.  This differs
21929         from savedirstream in that it doesn't close its argument.  The
21930         next version of GNU tar will use this instead of fdsavedir, to
21931         avoid some race conditions and conserve file descriptors.
21932         (savedirstream): Reimplement as a wrapper around streamsavedir.
21933         (fdsavedir): Add a comment deprecating this function.  As far as
21934         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21935         * lib/savedir.h (streamsavedir): New decl.
21936         (fdsavedir): Add a comment deprecating this.
21937
21938 2010-09-10  Bruno Haible  <bruno@clisp.org>
21939
21940         langinfo: Fix last commit.
21941         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21942         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21944
21945 2010-09-10  Bruno Haible  <bruno@clisp.org>
21946
21947         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21948         * lib/progreloc.c (O_EXEC): Define fallback.
21949
21950 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21951
21952         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21953         * NEWS: Document recent changes to fcntl-h.
21954         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21955         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21956         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21957         Similarly for O_SEARCH; this last was already true, but not documented.
21958         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21959         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21960         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21961         Likewise.
21962         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21963         is zero, not whether it is defined.
21964         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21965         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21966         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21967
21968 2010-09-10  Bruno Haible  <bruno@clisp.org>
21969
21970         langinfo, nl_langinfo: Fix for IRIX 5.3.
21971         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21972         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21973         HAVE_LANGINFO_YESEXPR.
21974         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21975         HAVE_LANGINFO_YESEXPR.
21976         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21977         HAVE_LANGINFO_T_FMT_AMPM is 0.
21978         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21979         HAVE_LANGINFO_YESEXPR is 0.
21980         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21981         NOEXPR.
21982         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21983         * doc/posix-functions/nl_langinfo.texi: Likewise.
21984         Reported by Eric Blake.
21985
21986 2010-09-10  Bruno Haible  <bruno@clisp.org>
21987
21988         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21989         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21990         on FreeBSD 8.0 and OpenBSD 4.6.
21991         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21992         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21993         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21994         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21995         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21996         ac_includes_default.
21997         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21998
21999 2010-09-09  Eric Blake  <eblake@redhat.com>
22000
22001         strsignal: work around NetBSD bug
22002         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22003         * lib/string.in.h (includes): Likewise.
22004         * doc/posix-functions/strsignal.texi (strsignal): Document the
22005         bug.
22006         Reported by Nelson H. F. Beebe.
22007
22008         gnulib-tool: work with NetBSD /bin/sh
22009         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22010         (func_get_description, func_get_comment, func_get_status)
22011         (func_get_notice, func_get_applicability, func_get_filelist)
22012         (func_get_dependencies, func_get_autoconf_early_snippet)
22013         (func_get_autoconf_snippet, func_get_automake_snippet)
22014         (func_get_include_directive, func_get_link_directive)
22015         (func_get_license, func_get_maintainer, func_import): Avoid
22016         shell syntax errors from parsing syntax extensions.
22017
22018 2010-09-09  Bruno Haible  <bruno@clisp.org>
22019
22020         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22021         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22022         a reliable way to determine whether the 'alias' command works.
22023
22024 2010-09-08  Jim Meyering  <meyering@redhat.com>
22025
22026         init.sh: penalize a set-x-impaired shell; don't disqualify it
22027         * tests/init.sh: Too many shells corrupt application stderr when
22028         you set -x, so we can't afford to disqualify them, since at least
22029         on Irix-6.5, that would disqualify all bourne shells.
22030         Instead, use a two-pass approach.
22031         On the first pass, try to find a shell that meets the stricter
22032         condition that set -x does not corrupt stderr.
22033         If no shell meets the stricter condition, retest each candidate
22034         shell, but without that extra condition.  Finally, when
22035         VERBOSE=yes is requested and set -x might cause trouble, simply
22036         issue a warning and refrain from enabling debug output.
22037
22038 2010-09-08  Eric Blake  <eblake@redhat.com>
22039
22040         unsetenv: fix OpenBSD bug
22041         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22042         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22043         documentation.
22044         Reported by Jim Meyering.
22045
22046         strtod: work around IRIX 6.5 bug
22047         * lib/strtod.c (strtod): Reparse number on shorter string if
22048         exponent parse was invalid.
22049         * tests/test-strtod.c (main): Add check for "0x1p 2".
22050         Reported by Tom G. Christensen.
22051
22052         getopt: optimize previous patch
22053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22054         empty variable.  Speed up awk script.
22055         Reported by Paolo Bonzini.
22056
22057 2010-09-08  Jim Meyering  <meyering@redhat.com>
22058
22059         test.sh: disqualify shells for which set -x corrupts stderr
22060         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22061         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22062         appear in stderr output.  For example, this command:
22063             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22064         prints "P=1" on those two systems:
22065
22066 2010-09-08  Bruno Haible  <bruno@clisp.org>
22067
22068         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22069         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22070         commands, because some shells ignore redirections when there is an
22071         error in the command lookup.
22072         Reported by Eric Blake.
22073
22074 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22075
22076         * lib/regex.h: Fix a mention of `regex_compile' (should be
22077         `re_compile_pattern').
22078         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22079         (re_set_registers): Correct name of parameter in comment.
22080
22081         * doc/regex.texi: Add documentation for missing syntax flags.
22082         Remove commented-out documentation of defunct syntax option
22083         RE_NO_EMPTY_ALTS.
22084         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22085         Add documentation of re_set_registers.
22086         Document trick to re-use a pattern buffer by setting fastmap manually.
22087         Update documentation of struct re_pattern_buffer per public members.
22088         Uncomment documentation of equivalence class operators and
22089         collating symbol operators, since they are now implemented,
22090         Explain leftmost-longest matching in relation to alternatives.
22091         Tidy documentation of substring matching.
22092         Remove POSIX documentation, which is done better in
22093         glibc, and refer the reader there. Keep BSD API documentation, as
22094         that is not readily available elsewhere.
22095
22096 2010-09-07  Eric Blake  <eblake@redhat.com>
22097
22098         getopt: handle POSIXLY_CORRECT set but not exported
22099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22100         export state of POSIXLY_CORRECT, due to bash set -o posix.
22101         Reported by Dustin J. Mitchell.
22102
22103 2010-09-05  Bruno Haible  <bruno@clisp.org>
22104
22105         gnulib-tool: Highlight the changed options.
22106         * gnulib-tool (func_usage): Display the --import, --add-import,
22107         --remove-import explanations in bold font.
22108
22109 2010-09-06  Karl Berry  <karl@gnu.org>
22110
22111         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22112
22113 2010-09-05  Bruno Haible  <bruno@clisp.org>
22114
22115         uniwidth/width: Update comment.
22116         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22117         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22118
22119 2010-09-05  Bruno Haible  <bruno@clisp.org>
22120
22121         isinf, isnan: Relax license.
22122         * modules/isinf (License): Change from GPL to LGPL, with consent from
22123         Ben Pfaff.
22124         * modules/isnan (License): Likewise.
22125         Requested by Ludovic Courtès.
22126
22127 2010-09-04  Bruno Haible  <bruno@clisp.org>
22128
22129         gnulib-tool: Help migration from --import to --add-import or --update.
22130         * gnulib-tool: Emit a verbose error message when --import is used
22131         without any module name.
22132
22133 2010-09-04  Bruno Haible  <bruno@clisp.org>
22134
22135         Update doc about gnulib-tool.
22136         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22137         'gnulib-tool --update' in more detail.
22138         Reported by Eric Blake.
22139
22140 2010-09-04  Bruno Haible  <bruno@clisp.org>
22141
22142         gnulib-tool: Change --import. New options --add/remove-import.
22143         * gnulib-tool: New options --add-import, --remove-import.
22144         (func_usage): Document them.
22145         (have_associative): Define always.
22146         (func_import): In import mode, don't merge the specified settings with
22147         the cached settings. Implement remove-import mode.
22148         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22149         Explain when to use them versus --import.
22150         (Simple update): Use --add-import instead of --import.
22151         * NEWS: Mention the change.
22152
22153 2010-09-04  Bruno Haible  <bruno@clisp.org>
22154
22155         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22156         separate gnulib.mk.
22157
22158 2010-09-04  Bruno Haible  <bruno@clisp.org>
22159
22160         gnulib-tool: Don't talk about CVS any more.
22161         * gnulib-tool (func_usage, func_import): Write "version control"
22162         instead of CVS.
22163
22164 2010-09-04  Jim Meyering  <meyering@redhat.com>
22165
22166         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22167         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22168         false positives (whose names may be ill-chosen) when searching
22169         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22170         would cause a false-positive.
22171
22172         avoid coreutils "make distcheck" failure
22173         Coreutils tests with an absolute build directory name that contains
22174         a space.  Not quoting this directory name caused a failure.
22175         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22176         * tests/test-vc-list-files-cvs.sh: Likewise.
22177
22178 2010-09-04  Bruno Haible  <bruno@clisp.org>
22179
22180         gnulib-tool: Avoid error when run in a package without Makefile.am.
22181         * gnulib-tool: When collecting the m4dirs in a package that does not
22182         have a Makefile.am, eliminate those directories that contain no
22183         gnulib-cache.m4. Fix expression that counts these directories.
22184
22185 2010-09-04  Bruno Haible  <bruno@clisp.org>
22186
22187         update-copyright test: Improve output when perl is missing or too old.
22188         * tests/test-update-copyright.sh: Move test of Perl version down after
22189         the test whether Perl exists. Provide an explanation relating Perl's
22190         error message to Automake's SKIP: message.
22191
22192 2010-09-04  Bruno Haible  <bruno@clisp.org>
22193
22194         Don't augment PATH in TESTS_ENVIRONMENT.
22195         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22196         set abs_aux_dir instead of augmenting PATH.
22197         * modules/vc-list-files-tests (Makefile.am): Likewise.
22198         * tests/test-update-copyright.sh: Augment PATH here.
22199         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22200         path_prepend_.
22201         * tests/test-vc-list-files-git.sh: Likewise.
22202
22203 2010-09-04  Jim Meyering  <meyering@redhat.com>
22204
22205         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22206         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22207
22208 2010-09-04  Bruno Haible  <bruno@clisp.org>
22209
22210         strdup: Fix compilation error in C++ mode.
22211         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22212         the macro.
22213
22214 2010-09-04  Bruno Haible  <bruno@clisp.org>
22215
22216         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22217         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22218         macro into a function.
22219         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22220
22221 2010-09-04  Bruno Haible  <bruno@clisp.org>
22222
22223         Set PATH_SEPARATOR the same way autoconf does.
22224         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22225         the value of PATH_SEPARATOR the same way autoconf-generated configure
22226         scripts do.
22227         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22228         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22229
22230 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22231
22232         Set PATH_SEPARATOR the same way autoconf does.
22233         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22234         the same way autoconf-generated configure scripts do.
22235         * posix-modules: Likewise.
22236
22237 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22238
22239         hash: fix safe_hasher const typo
22240         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
22241         const; otherwise, there is a type error later.
22242
22243 2010-09-02  Jim Meyering  <meyering@redhat.com>
22244
22245         test-update-copyright.sh: require perl 5.8.0
22246         * tests/test-update-copyright.sh: Require 5.8.0,
22247         which Tom G. Christensen has confirmed is adequate,
22248         while 5.6.1 is not.
22249
22250 2010-09-02  Eric Blake  <eblake@redhat.com>
22251
22252         tests: init.sh improvements for re-exec'ing with zsh
22253         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
22254         -vx through shell re-exec.
22255         Reported by Tom G. Christensen.
22256
22257         wctype: fix typo in previous commit
22258         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
22259         Reported by Ludovic Courtès.
22260
22261 2010-09-02  Jim Meyering  <meyering@redhat.com>
22262
22263         test-update-copyright.sh: skip test if Perl is too old
22264         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
22265         Reported by Tom G. Christensen.
22266
22267 2010-09-02  Bruno Haible  <bruno@clisp.org>
22268
22269         wctype: Avoid compilation error on IRIX 6.5.30.
22270         * lib/wctype.in.h (iswblank): Declare with a replacement if
22271         REPLACE_ISWBLANK is set.
22272         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
22273         declared. Set REPLACE_ISWBLANK.
22274         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
22275         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
22276         * doc/posix-headers/wctype.texi: Likewise.
22277         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22278
22279 2010-09-01  Bruno Haible  <bruno@clisp.org>
22280
22281         New module 'socketlib'.
22282         * modules/socketlib: New file.
22283         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
22284         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
22285         * modules/sockets (Depends-on): Add socketlib.
22286         Suggested by Sam Steingold <sds@gnu.org>.
22287
22288 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22289
22290         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
22291
22292         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
22293         when one needs search access to a directory but not read access.
22294         On systems where it is available, it works in some cases where
22295         O_RDONLY does not, namely on directories that are searchable but
22296         not readable, and which need only to be searchable.  If O_SEARCH
22297         is not available, fall back to the traditional method of using
22298         O_RDONLY.
22299
22300         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
22301         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
22302         when opening a directory that needs only to be searchable.
22303         * lib/chdir-safer.c (chdir_no_follow): Likewise.
22304         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
22305         * lib/openat-proc.c (openat_proc_name): Likewise.
22306         * lib/openat.c (openat_needs_fchdir): Likewise.
22307         * lib/save-cwd.c (save_cwd): Likewise.
22308         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22309
22310 2010-08-28  Bruno Haible  <bruno@clisp.org>
22311
22312         New module 'host-cpu-c-abi'.
22313         * modules/host-cpu-c-abi: New file.
22314         * m4/host-cpu-c-abi.m4: New file, based on part of
22315         clisp/src/m4/general.m4.
22316         Requested by Sam Steingold <sds@gnu.org>.
22317
22318 2010-08-31  Eric Blake  <eblake@redhat.com>
22319         and Jim Meyering  <meyering@redhat.com>
22320
22321         hash: factor, and guard against misbehaving hasher function
22322         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
22323         of table->hasher's return value.  Also protect against a hash value
22324         so large that adding it to table->bucket results in a NULL pointer.
22325         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
22326         Use it in place of open-coded check-and-abort.
22327
22328 2010-08-30  Bruno Haible  <bruno@clisp.org>
22329
22330         hash: silence spurious clang warning
22331         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
22332         Reported by Eric Blake.
22333
22334 2010-08-30  Eric Blake  <eblake@redhat.com>
22335
22336         strstr, memmem, strcasestr: avoid leaked shell message
22337         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
22338         FreeBSD.
22339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22340         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22341
22342         tests: silence clang warning
22343         * tests/test-malloca.c (do_allocation): Avoid dead store.
22344
22345 2010-08-29  Bruno Haible  <bruno@clisp.org>
22346
22347         gettext: Fix recent mistake.
22348         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
22349
22350 2010-08-29  Bruno Haible  <bruno@clisp.org>
22351
22352         selinux-h: Offer a --without-selinux option.
22353         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
22354         --without-selinux was specified, skip all tests and define
22355         HAVE_SELINUX_SELINUX_H to 0.
22356         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
22357         set LIB_SELINUX to empty.
22358         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
22359         gl_LIBSELINUX. If --without-selinux was specified, replace
22360         selinux/context.h.
22361         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
22362
22363 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22364             Bruno Haible  <bruno@clisp.org>
22365
22366         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22367         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22368         of HAVE_REALLOC.
22369         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22370         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22371         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22372         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22373
22374 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22375             Bruno Haible  <bruno@clisp.org>
22376
22377         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22378         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22379         HAVE_CALLOC.
22380         * lib/xmalloc.c: Update accordingly.
22381         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22382         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22383         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22384
22385 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22386             Bruno Haible  <bruno@clisp.org>
22387
22388         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22389         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22390         HAVE_MALLOC.
22391         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22392         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22393         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22394
22395 2010-08-29  Bruno Haible  <bruno@clisp.org>
22396
22397         Update modules list.
22398         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22399         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22400         (String handling <string.h>): Add astrxfrm.
22401         (File system functions): Add readlinkat.
22402
22403 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22404
22405         Tests for module 'realloc-gnu'.
22406         * modules/realloc-gnu-tests: New file.
22407         * tests/test-realloc-gnu.c: New file.
22408
22409         Tests for module 'calloc-gnu'.
22410         * modules/calloc-gnu-tests: New file.
22411         * tests/test-calloc-gnu.c: New file.
22412
22413         Tests for module 'malloc-gnu'.
22414         * modules/malloc-gnu-tests: New file.
22415         * tests/test-malloc-gnu.c: New file.
22416
22417 2010-08-28  Bruno Haible  <bruno@clisp.org>
22418
22419         Rename module 'realloc' -> 'realloc-gnu'.
22420         * modules/realloc-gnu: New file, copied from modules/realloc.
22421         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22422         obsolete.
22423         * modules/mgetgroups (Depends-on): Update.
22424         * doc/posix-functions/realloc.texi: Update.
22425         * NEWS: Mention the change.
22426
22427         Rename module 'calloc' -> 'calloc-gnu'.
22428         * modules/calloc-gnu: New file, copied from modules/calloc.
22429         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22430         obsolete.
22431         * doc/posix-functions/calloc.texi: Update.
22432         * NEWS: Mention the change.
22433
22434         Rename module 'malloc' -> 'malloc-gnu'.
22435         * modules/malloc-gnu: New file, copied from modules/malloc.
22436         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22437         obsolete.
22438         * modules/argp (Depends-on): Update.
22439         * modules/regex (Depends-on): Update.
22440         * doc/posix-functions/malloc.texi: Update.
22441         * NEWS: Mention the change.
22442
22443 2010-08-28  Eric Blake  <eblake@redhat.com>
22444
22445         pread, pwrite: add missing dependency
22446         * modules/pread (Depends-on): Add extensions.
22447         * modules/pwrite (Depends-on): Likewise.
22448
22449 2010-08-28  Bruno Haible  <bruno@clisp.org>
22450
22451         unistr/u*-strchr: Fix tests dependencies.
22452         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22453         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22454         Reported by Ian Beckwith <ianb@erislabs.net>.
22455
22456 2010-08-28  Bruno Haible  <bruno@clisp.org>
22457
22458         read-file: Don't occupy too much unused memory.
22459         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22460
22461 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22462             Eric Blake  <eblake@redhat.com>
22463             Bruno Haible  <bruno@clisp.org>
22464
22465         read-file: Avoid memory reallocations with regular files.
22466         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22467         (fread_file): With regular files, use the remaining length as the
22468         initial buffer size.  Check against overflow.
22469         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22470         sys_stat.
22471
22472 2010-08-28  Bruno Haible  <bruno@clisp.org>
22473
22474         ftello: Relax license.
22475         * modules/ftello (License): Relax to LGPLv2+.
22476         Reported by Eric Blake.
22477
22478 2010-08-28  Bruno Haible  <bruno@clisp.org>
22479
22480         Avoid relocwrapper link errors due to gnulib replacement functions.
22481         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22482         function.
22483         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22484
22485 2010-08-28  Bruno Haible  <bruno@clisp.org>
22486
22487         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22488         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22489         defined.
22490         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22491         Suggested by Eric Blake.
22492
22493 2010-08-28  Bruno Haible  <bruno@clisp.org>
22494
22495         sys_socket, netdb: Ensure socklen_t gets defined.
22496         * modules/sys_socket (Depends-on): Add socklen.
22497         * modules/netdb (Depends-on): Likewise.
22498         * modules/getaddrinfo (Depends-on): Remove socklen.
22499         * modules/getsockopt (Depends-on): Likewise.
22500         * modules/setsockopt (Depends-on): Likewise.
22501         * tests/test-sys_socket.c: Check that socklen_t is defined.
22502         * tests/test-netdb.c: Likewise.
22503         * m4/socklen.m4: Update comments.
22504         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22505
22506 2010-08-27  Eric Blake  <eblake@redhat.com>
22507
22508         login_tty: add missing dependency
22509         * modules/login_tty (Depends-on): Add pty.
22510
22511 2010-08-26  Eric Blake  <eblake@redhat.com>
22512
22513         lib-symbol-versions: fix m4 quoting
22514         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22515         format for AC_LINK_IFELSE.
22516
22517         glob: fix compile test
22518         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22519
22520         btowc: fix missing file
22521         * modules/btowc (Files): Also ship locale-fr.m4.
22522
22523         lseek: fix link test
22524         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22525         AC_LINK_IFELSE.
22526
22527         include_next: silence autoconf 2.68 warning
22528         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22529         AC_COMPILE_IFELSE as special.
22530         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22531         autoconf < 2.68.
22532
22533         acl: fix compilation test
22534         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22535         AC_COMPILE_IFELSE.
22536
22537 2010-08-26  Bruno Haible  <bruno@clisp.org>
22538
22539         Modernize AC_TRY_RUN invocations.
22540         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22541         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22542         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22543         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22544         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22545         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22546         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22547         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22548         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22549         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22551         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22552         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22553         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22554         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22555         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22556         gl_MBRLEN_NUL_RETVAL): Likewise.
22557         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22558         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22559         Likewise.
22560         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22561         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22562         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22563         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22564         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22565         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22566         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22567         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22568         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22569         Likewise.
22570         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22571         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22572         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22573         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22574         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22575         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22576         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22577         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22578         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22580
22581 2010-08-26  Bruno Haible  <bruno@clisp.org>
22582
22583         Modernize AC_TRY_LINK invocations.
22584         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22585         AC_TRY_LINK.
22586         * m4/argp.m4 (gl_ARGP): Likewise.
22587         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22588         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22589         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22590         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22591         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22592         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22593         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22594         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22595         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22596         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22597         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22598         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22599         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22600         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22601         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22602         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22603         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22604         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22605         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22606         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22607         Likewise.
22608         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22609         Likewise.
22610         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22611         Likewise.
22612         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22613         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22614         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22615         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22616         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22617         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22618         * m4/servent.m4 (gl_SERVENT): Likewise.
22619         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22620         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22621         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22622         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22623         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22624         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22625         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22626         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22627         * modules/tsearch-tests (configure.ac): Likewise.
22628
22629 2010-08-26  Bruno Haible  <bruno@clisp.org>
22630
22631         Modernize AC_TRY_COMPILE invocations.
22632         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22633         AC_TRY_COMPILE.
22634         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22635         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22636         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22637         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22638         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22639         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22640         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22641         * m4/lock.m4 (gl_LOCK): Likewise.
22642         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22643         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22644         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22645         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22646         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22647         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22648         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22649         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22650         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22651         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22652         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22653         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22654         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22655         extraneous semicolon.
22656
22657 2010-08-26  Jim Meyering  <meyering@redhat.com>
22658
22659         stat-time: relax license LGPL
22660         * modules/stat-time (License): Change from GPL to LGPL,
22661         with consent from all contributors, for use in libguile.
22662         Requested by Ludovic Courtès.
22663
22664 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22665
22666         poll: return immediately on POLLHUP.
22667         * lib/poll.c (poll): Always set timeout before wait_timeout is
22668         computed.
22669
22670 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22671
22672         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22673         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22674         rmdir ("dir/.//"), unlinkat.
22675
22676 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22677
22678         stdbool: avoid spurious failure with modern xlc
22679         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22680
22681 2010-08-24  Bruno Haible  <bruno@clisp.org>
22682
22683         getloadavg: simplify code
22684         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22685         gl_have_func. Update comments.
22686
22687 2010-08-24  Eric Blake  <eblake@redhat.com>
22688
22689         getloadavg: don't define SVR4 on cygwin
22690         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22691         only define SVR4 when -lkvm is required.
22692         Reported by Yaakov Selkowitz.
22693
22694 2010-08-24  Bruno Haible  <bruno@clisp.org>
22695
22696         priv-set: fix comment
22697         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22698
22699 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22700
22701         priv-set: fix comments
22702         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22703         to match code, as suggested by David Bartley in:
22704         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22705
22706 2010-08-23  Eric Blake  <eblake@redhat.com>
22707
22708         stdbool: avoid rejecting clang
22709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22710         * tests/test-stdbool.c: Enable more tests if using the system
22711         <stdbool.h> instead of the gnulib replacement.
22712         (main): Move xlc bug test to a runtime test for all compilers.
22713         Reported by Anders Kaseorg.
22714
22715         argz: fix shell quoting issue
22716         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22717         Reported by Charles Wilson.
22718
22719 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22720             Erik Faye-Lund <kusmabite@gmail.com>
22721
22722         poll, select: handle ERROR_BROKEN_PIPE.
22723         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22724         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22725         * lib/select.c (win32_compute_revents): Do not mark a pipe
22726         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22727
22728 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22729
22730         fts: allow compilation with C++
22731         * lib/fts_.h: Specify extern "C" linkage with C++.
22732
22733 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22734
22735         Fix gnulib-tool sed script de-commentation for AIX sed.
22736         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22737         sed.
22738
22739 2010-08-17  Eric Blake  <eblake@redhat.com>
22740
22741         test-stddef: test for (some) offsetof bugs
22742         * tests/test-stddef.c: Enhance test to ensure correct type of
22743         offsetof.
22744         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22745         that we are not fixing at this time.
22746
22747 2010-08-15  Bruno Haible  <bruno@clisp.org>
22748
22749         stpncpy: Allow stpncpy to be defined as a macro.
22750         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22751         if it's already correctly declared.
22752         * lib/string.in.h (stpncpy): Undefine before redefining.
22753         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22754
22755 2010-08-14  Bruno Haible  <bruno@clisp.org>
22756
22757         Rename module 'memxfrm' to 'amemxfrm'.
22758         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22759         (amemxfrm): Renamed from memxfrm.
22760         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22761         (amemxfrm): Renamed from memxfrm.
22762         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22763         * NEWS: Mention the change.
22764         * MODULES.html.sh (String handling <string.h>): Update.
22765         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22766         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22767         * lib/unicase/u16-casexfrm.c: Likewise.
22768         * lib/unicase/u32-casexfrm.c: Likewise.
22769         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22770         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22771         * lib/uninorm/u16-normxfrm.c: Likewise.
22772         * lib/uninorm/u32-normxfrm.c: Likewise.
22773         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22774         memxfrm.
22775         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22776         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22777         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22778         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22779         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22780         Suggested by Paul Eggert.
22781
22782 2010-08-14  Bruno Haible  <bruno@clisp.org>
22783
22784         Tests for module 'astrxfrm'.
22785         * modules/astrxfrm-tests: New file.
22786         * tests/test-astrxfrm.c: New file.
22787
22788         New module 'astrxfrm'.
22789         * lib/astrxfrm.h: New file.
22790         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22791         * modules/astrxfrm: New file.
22792
22793 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22794
22795         regex: Tweak doc.
22796         * doc/regex.texi (Overview): Don't mention regex.c.
22797         (GNU Regular Expression Compiling): Likewise.
22798         (Match-end-of-line Operator): Mention 'not_eol'.
22799
22800 2010-08-14  Brian Gough  <bjg@gnu.org>
22801             Bruno Haible  <bruno@clisp.org>
22802
22803         git-merge-changelog: add doc relating to use with bzr and hg.
22804         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22805
22806 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22807
22808         pthread: fix pthread.h creation for srcdir != builddir
22809         * modules/pthread (Makefile.am): Fix the rule to work also in a
22810         non-srcdir build.
22811
22812 2010-08-13  Karl Berry  <karl@gnu.org>
22813
22814         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22815         * doc/posix-*/*: force line break before @url of POSIX
22816         specifications.
22817         Suggested by Werner Lemberg.
22818
22819 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22820
22821         strtod: fix const diagnostic
22822         * lib/strtod.c (strtod): Don't assign const char * to char *,
22823         as this elicits a warning from GCC when warnings are enabled.
22824
22825 2010-08-10  Pádraig Brady <P@draigbrady.com>
22826         and Eric Blake  <eblake@redhat.com>
22827
22828         copy-acl: ignore ENOTSUP on HP-UX
22829         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22830         so that it is available for HP-UX.
22831         * lib/copy-acl.c (qcopy_acl): Use it.
22832         Reported by Patrick M. Callahan.
22833
22834 2010-08-10  Eric Blake  <eblake@redhat.com>
22835
22836         open, chown: relax license
22837         * modules/open (License): Change to LGPLv2+, with consent by all
22838         authors, for use in augeas.
22839         * modules/chown (License): Likewise.
22840         * modules/lchown (Likewise): Likewise.
22841         Requested by Adam Stokes.
22842
22843 2010-08-09  Karl Berry  <karl@gnu.org>
22844
22845         * build-aux/ar-lib: new file, import from Automake.
22846         * config/srclist.txt: autocheck for updates.
22847
22848 2010-08-09  Eric Blake  <eblake@redhat.com>
22849
22850         readlinkat: adjust client modules
22851         * modules/areadlinkat (Depends-on): Use readlinkat, not
22852         symlinkat.
22853         * modules/areadlinkat-with-size (Depends-on): Likewise.
22854
22855         mknod: be more vocal about danger of running tests as root
22856         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22857         root, since that is just asking for problems.
22858         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22859
22860         readlinkat: split into its own module
22861         * modules/symlinkat: Split readlinkat...
22862         * modules/readlinkat: ...into separate module.
22863         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22864         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22865         * lib/symlinkat.c (readlinkat): Move...
22866         * lib/readlinkat.c: ...into new file.
22867         * modules/symlinkat-tests: Split readlinkat test...
22868         * modules/readlinkat-tests: ...into separate module.
22869         * tests/test-symlinkat.c: Split...
22870         * tests/test-readlinkat.c: ...into new file.
22871         * NEWS: Document the split.
22872         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22873         * lib/unistd.in.h (readlinkat): Likewise.
22874         Suggested by Bruno Haible.
22875
22876 2010-08-08  Bruno Haible  <bruno@clisp.org>
22877
22878         memxfrm: Speed up.
22879         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22880         that usually only one call to strxfrm is necessary for each string
22881         part.
22882         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22883
22884 2010-08-07  Karl Berry  <karl@gnu.org>
22885
22886         * doc/posix-headers/limits.texi,
22887         * doc/posix-functions/malloc.texi,
22888         * doc/posix-functions/strsignal.texi: missing @item.
22889         * doc/ld-version-script.texi: spurious leading i.
22890         * doc/regex.texi (Interval Operators): no commas inside @var.
22891
22892 2010-08-01  Bruno Haible  <bruno@clisp.org>
22893
22894         Integrate the regex documentation.
22895         * doc/gnulib.texi: Define 'cn' index.
22896         (Regular expressions): New a chapter that includes regex.texi and
22897         regexprops-generic.texi.
22898         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22899         syntax.
22900
22901         Whitespace cleanup.
22902         * doc/regex.texi: Remove trailing spaces.
22903
22904         Add regex documentation.
22905         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22906         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22907         Written by Kathy A. Hargreaves and Karl Berry.
22908
22909 2010-08-01  Bruno Haible  <bruno@clisp.org>
22910
22911         link: Update documentation.
22912         * doc/posix-functions/link.texi: Update regarding Solaris.
22913
22914 2010-07-31  Bruno Haible  <bruno@clisp.org>
22915
22916         Update modules list.
22917         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22918         (String handling <string.h>): Add memcmp2, memxfrm.
22919         (Container data structures): Add xlist, xsublist, xoset.
22920         (Core language properties): Add alignof, unused-parameter.
22921         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22922         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22923         (Unibyte characters <ctype.h>): New section.
22924         (String handling <string.h>): New section.
22925         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22926         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22927         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22928         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22929         tan, tanh, tanl, y0, y1, yn.
22930         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22931         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22932         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22933         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22934         unlockpt, vdprintf, vdprintf-posix.
22935         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22936         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22937         xconcat-filename.
22938         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22939         getdtablesize, pipe2, pipe2-safer.
22940         (Security): New section.
22941         (Networking functions): Add accept4.
22942         (Signal handling): Add sigpipe.
22943         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22944         mbmemcasecoll.
22945         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22946         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22947         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22948         pipe-filter-ii.
22949         (Misc): Add argp-version-etc, login_tty, parse-duration.
22950
22951 2010-07-31  Bruno Haible  <bruno@clisp.org>
22952
22953         Improve doc in MODULES.html.
22954         * modules/linkat (Description): Add the word "function".
22955         * modules/mkfifo (Description): Likewise.
22956         * modules/mknod (Description): Likewise.
22957         * modules/remove (Description): Likewise.
22958         * modules/renameat (Description): Likewise.
22959         * modules/stat (Description): Likewise.
22960         * modules/symlink (Description): Likewise.
22961         * modules/unlink (Description): Likewise.
22962
22963 2010-07-31  Bruno Haible  <bruno@clisp.org>
22964
22965         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22966         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22967         option --enable/disable-c++ instead of --enable/disable-cxx.
22968         * NEWS: Mention the change.
22969
22970 2010-07-31  Bruno Haible  <bruno@clisp.org>
22971
22972         readlink, areadlink: Relax test a bit.
22973         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22974         alternative to ENOTDIR.
22975         * tests/test-areadlink.h (test_areadlink): Likewise.
22976         Reported by Rainer Tammer.
22977
22978 2010-07-31  Bruno Haible  <bruno@clisp.org>
22979
22980         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22981         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22982         character, perform the search using U_STRCHR.
22983         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22984         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22985         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22986         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22987         Suggested by Paolo Bonzini.
22988
22989 2010-07-31  Bruno Haible  <bruno@clisp.org>
22990
22991         unistr/u*-strstr: Fix dependencies.
22992         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22993         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22994         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22995
22996 2010-07-31  Bruno Haible  <bruno@clisp.org>
22997
22998         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22999         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23000         the beginning of the loop.
23001         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23002         cases in 'switch' statement.
23003
23004         unistr/u8-strchr: Fix several bugs.
23005         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23006         the string. When not found, return NULL, not a pointer near the end.
23007
23008         More tests for unistr/u8-strchr.
23009         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23010         that the function does not read past the first occurrence of the byte
23011         being searched.
23012         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23013         * tests/unistr/test-u16-strchr.c (main): New function.
23014         * tests/unistr/test-u32-strchr.c (main): New function.
23015
23016 2010-07-31  Bruno Haible  <bruno@clisp.org>
23017
23018         posix-modules: Ignore backup files of documentation files.
23019         * posix-modules: grep only through files named *.texi.
23020
23021 2010-07-31  Bruno Haible  <bruno@clisp.org>
23022
23023         symlinkat: Fix documentation.
23024         * doc/posix-functions/readlinkat.texi: Fix module name.
23025
23026 2010-07-31  Bruno Haible  <bruno@clisp.org>
23027
23028         fchownat: Replace also when chown has the trailing slash bug.
23029         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23030         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23031         introduced on 2010-04-10.
23032         Reported by Rainer Tammer.
23033
23034 2010-07-31  Bruno Haible  <bruno@clisp.org>
23035
23036         linkat: Work around AIX 7.1 bug.
23037         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23038         whether linkat handles trailing slash correctly. If not, replace linkat
23039         and define LINKAT_TRAILING_SLASH_BUG.
23040         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23041         check whether (fd1,file1) points to a directory if file1 or file2 ends
23042         in a slash. Code taken from lib/link.c.
23043         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23044         Reported by Rainer Tammer.
23045
23046 2010-07-31  Bruno Haible  <bruno@clisp.org>
23047
23048         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23049         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23050         This disables an xlc optimization that was causing wrong test results.
23051         Reported by Rainer Tammer.
23052
23053 2010-07-31  Bruno Haible  <bruno@clisp.org>
23054
23055         iconv: Work around AIX 6.1..7.1 bug.
23056         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23057         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23058         cross-compiling, guess no on all versions of AIX.
23059         Reported by Rainer Tammer.
23060
23061 2010-07-31  Bruno Haible  <bruno@clisp.org>
23062
23063         readlink: Relax test a bit.
23064         * tests/test-readlink.h (test_readlink): Allow different errno value
23065         when readlink is called with a file name that ends in / and refers to
23066         a file.
23067         Suggested by Eric Blake.
23068         Reported by Rainer Tammer.
23069
23070 2010-07-31  Bruno Haible  <bruno@clisp.org>
23071
23072         copysign: Does not require -lm on glibc systems.
23073         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23074         gl_COMMON_DOUBLE_MATHFUNC.
23075         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23076
23077 2010-07-31  Bruno Haible  <bruno@clisp.org>
23078
23079         duplocale: Work around AIX 7.1 bug.
23080         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23081         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23082         * lib/duplocale.c (rpl_duplocale): Update comment.
23083         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23084         Reported by Rainer Tammer.
23085
23086 2010-07-30  Bruno Haible  <bruno@clisp.org>
23087
23088         dirfd: Avoid link error on AIX 7.1.
23089         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23090         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23091         exist, set REPLACE_DIRFD.
23092         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23093         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23094         * doc/posix-functions/dirfd.texi: Update.
23095         Reported by Rainer Tammer.
23096
23097 2010-07-30  Eric Blake  <eblake@redhat.com>
23098
23099         strtod: next round of AIX fixes
23100         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23101         exponent.
23102         * tests/test-strtod.c (main): Enhance tests.
23103         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23104         Reported by Rainer Tammer.
23105
23106         futimens: fix configure check
23107         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23108         Reported by Bruno Haible.
23109
23110 2010-07-30  Bruno Haible  <bruno@clisp.org>
23111
23112         getline: Update regarding AIX.
23113         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23114         Reported by Rainer Tammer.
23115
23116 2010-07-30  Bruno Haible  <bruno@clisp.org>
23117
23118         wcwidth: Drop replacement on AIX 7.
23119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23120         AIX 7.
23121         Reported by Rainer Tammer.
23122
23123 2010-07-30  Bruno Haible  <bruno@clisp.org>
23124
23125         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23126         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23127         a 'char *'.
23128         Reported by Rainer Tammer.
23129
23130 2010-07-30  Bruno Haible  <bruno@clisp.org>
23131
23132         unlink: Update regarding AIX.
23133         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23134         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23135         Reported by Rainer Tammer.
23136
23137 2010-07-30  Bruno Haible  <bruno@clisp.org>
23138
23139         symlink: Update regarding AIX.
23140         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23141         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23142         Reported by Rainer Tammer.
23143
23144 2010-07-30  Bruno Haible  <bruno@clisp.org>
23145
23146         strndup: Update regarding AIX.
23147         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23148         AIX 7.
23149         Reported by Rainer Tammer.
23150
23151 2010-07-30  Bruno Haible  <bruno@clisp.org>
23152
23153         stat: Update regarding AIX.
23154         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23155         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23156         Reported by Rainer Tammer.
23157
23158 2010-07-30  Bruno Haible  <bruno@clisp.org>
23159
23160         truncl: Fix autoconf test.
23161         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23162         whether truncl works.
23163         Reported by Rainer Tammer.
23164
23165 2010-07-30  Bruno Haible  <bruno@clisp.org>
23166
23167         round: Update regarding AIX.
23168         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23169         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23170         Reported by Rainer Tammer.
23171
23172 2010-07-30  Bruno Haible  <bruno@clisp.org>
23173
23174         rename: Update regarding AIX.
23175         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23176         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23177         Reported by Rainer Tammer.
23178
23179 2010-07-30  Bruno Haible  <bruno@clisp.org>
23180
23181         printf.m4: Update regarding AIX.
23182         * m4/printf.m4: Update comments regarding AIX.
23183         Reported by Rainer Tammer.
23184
23185 2010-07-30  Bruno Haible  <bruno@clisp.org>
23186
23187         iconv: Update regarding AIX.
23188         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23189         AIX 7.
23190         Reported by Rainer Tammer.
23191
23192 2010-07-30  Bruno Haible  <bruno@clisp.org>
23193
23194         getopt: Update regarding AIX.
23195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23196         no on AIX.
23197         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23198         Reported by Rainer Tammer.
23199
23200 2010-07-30  Bruno Haible  <bruno@clisp.org>
23201
23202         ldexpl; Update regarding AIX.
23203         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23204         on AIX 7.
23205         Reported by Rainer Tammer.
23206
23207 2010-07-30  Bruno Haible  <bruno@clisp.org>
23208
23209         frexpl: Update regarding AIX.
23210         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23211         on AIX 7.
23212         Reported by Rainer Tammer.
23213
23214 2010-07-30  Bruno Haible  <bruno@clisp.org>
23215
23216         open, fopen: Update regarding AIX.
23217         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23218         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23219         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23220         * doc/posix-functions/fopen.texi: Likewise.
23221         Reported by Rainer Tammer.
23222
23223 2010-07-30  Bruno Haible  <bruno@clisp.org>
23224
23225         chown: Update doc regarding AIX.
23226         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23227         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23228         Reported by Rainer Tammer.
23229
23230 2010-07-30  Eric Blake  <eblake@redhat.com>
23231
23232         strtod: fix bug in replacement function on AIX
23233         * lib/strtod.c (strtod): Special case broken "0x" parse in
23234         underlying strtod.
23235         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
23236         * doc/posix-functions/strtod.texi (strtod): Likewise.
23237         Reported by Rainer Tammer.
23238
23239 2010-07-30  Bruno Haible  <bruno@clisp.org>
23240
23241         mbrlen: Fix cross-compilation guess for AIX.
23242         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
23243         guess. Leftover from 2008-12-22.
23244
23245 2010-07-30  Bruno Haible  <bruno@clisp.org>
23246
23247         mbrtowc: Fix cross-compilation guess for AIX.
23248         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
23249         guess. Leftover from 2008-12-21.
23250
23251 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
23252
23253         init.sh: work around trap limitation of some shells
23254         * tests/init.sh (setup_): Move exit trap outside of shell function.
23255
23256 2010-07-29  Eric Blake  <eblake@redhat.com>
23257
23258         strtod: aid debugging
23259         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
23260         understanding why strtod is rejected.
23261
23262 2010-07-28  Bruno Haible  <bruno@clisp.org>
23263
23264         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
23265         * lib/unistr/u8-chr.c: Include <string.h>.
23266         * tests/unistr/test-u8-chr.c: Likewise.
23267         * tests/unistr/test-u16-chr.c: Likewise.
23268         * tests/unistr/test-u32-chr.c: Likewise.
23269         * tests/unistr/test-u8-strchr.c: Likewise.
23270         * tests/unistr/test-u16-strchr.c: Likewise.
23271         * tests/unistr/test-u32-strchr.c: Likewise.
23272         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
23273         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
23274         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
23275         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
23276
23277 2010-07-28  Bruno Haible  <bruno@clisp.org>
23278
23279         Use spaces for indentation, not tabs.
23280         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23281
23282 2010-07-27  Bruno Haible  <bruno@clisp.org>
23283
23284         mbspcasecmp: Fix function specification.
23285         * lib/string.in.h (mbspcasecmp): Fix specification comment.
23286         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
23287         Reported by Eric Blake <eblake@redhat.com>.
23288
23289 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
23290
23291         timespec: use cast and not conditional, as truncation isn't possible
23292         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
23293         instead of a conditional.  Comment about the situation in more detail.
23294         This undoes most of the 2009-10-29 patch.
23295
23296 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
23297
23298         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
23299         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
23300         * lib/unistr/u8-strchr.c: Likewise.
23301         * modules/unistr/u8-chr: Depend on memchr.
23302
23303         unistr/u*-strchr: add tests
23304         * modules/unistr/u8-strchr-tests: New file.
23305         * modules/unistr/u16-strchr-tests: New file.
23306         * modules/unistr/u32-strchr-tests: New file.
23307         * tests/unistr/test-strchr.h: New file.
23308         * tests/unistr/test-u8-strchr.c: New file.
23309         * tests/unistr/test-u16-strchr.c: New file.
23310         * tests/unistr/test-u32-strchr.c: New file.
23311
23312         unistr/u*-chr: test multibyte sequences more
23313         * tests/unistr/test-chr.h: Do complete testing of the characters in the
23314         test vector.
23315         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
23316         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
23317         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
23318
23319         unistr/u*-chr: test multibyte sequences
23320         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
23321
23322         unistr/u*-chr: prepare for multibyte tests
23323         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
23324         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
23325         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
23326         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
23327         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
23328         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
23329
23330 2010-07-18  Bruno Haible  <bruno@clisp.org>
23331
23332         unistr/u8-strchr: Optimize non-ASCII argument case.
23333         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
23334         because the first byte often matches anyway.
23335         Reported by Pádraig Brady <P@draigbrady.com>.
23336
23337 2010-07-15  Karl Berry  <karl@gnu.org>
23338
23339         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
23340
23341 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
23342
23343         getcwd: on Solaris, work better if ancestors are inaccessible
23344         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
23345         buffer and size, try again with a large buffer.  This works better
23346         on Solaris, since its getcwd succeeds even if the path to the root
23347         is inaccessible, and this is helpful in common cases such as .zfs
23348         hidden directories.  Problem reported by J Chapman Flack in
23349         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
23350         Use system getcwd if it's declared, not merely if it's partly
23351         working; use the partly-working test only to avoid needless effort
23352         if the system getcwd fails.
23353         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
23354         comment that was already obsolete and is now even more obsolete.
23355         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
23356         now might call strdup.
23357
23358 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
23359
23360         pthread: Add enough so that coreutils/src/sort.c compiles.
23361         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
23362         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
23363         gnulib. Include <sched.h> and <time.h>, as per POSIX.
23364         Include <sys/types.h>, in case it defines pthread_t.
23365         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
23366         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23367         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23368         (pthread_rwlockattr_t, pthread_spinlock_t):
23369         New typedefs, if HAVE_PTHREAD_T is not defined.
23370         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23371         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23372         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23373         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23374         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23375         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23376         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23377         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23378         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23379         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23380         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23381         New macros.
23382         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23383         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23384         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
23385         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
23386         (pthread_spin_unlock): New dummy functions.
23387         (pthread_create): Return EAGAIN; don't set errno.
23388         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23389         require AC_C_INLINE.
23390         * modules/pthread (Depends-on): Add sched, time.
23391         (pthread.h): Use AM_V_GEN.
23392
23393 2010-07-13  Bruno Haible  <bruno@clisp.org>
23394
23395         striconveh: Don't malloc memory if the result buffer is sufficient.
23396         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23397         buffer if its size is sufficient.
23398         Reported by Ludovic Courtès <ludo@gnu.org>.
23399
23400 2010-07-13  Bruno Haible  <bruno@clisp.org>
23401
23402         strtod: Add safety check.
23403         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23404
23405 2010-07-12  Bruno Haible  <bruno@clisp.org>
23406
23407         Unify tests that set gl_cv_func_ldexpl_no_libm.
23408         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23409         gl_FUNC_LDEXPL.
23410         (gl_FUNC_LDEXPL): Invoke it.
23411         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23412
23413 2010-07-12  Bruno Haible  <bruno@clisp.org>
23414
23415         Unify tests that set gl_cv_func_ldexp_no_libm.
23416         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23417         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23418         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23419         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23420         * modules/strtod (Files): Add m4/ldexp.m4.
23421
23422 2010-07-12  Bruno Haible  <bruno@clisp.org>
23423
23424         Unify tests that set gl_cv_func_frexpl_no_libm.
23425         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23426         gl_FUNC_FREXPL_NO_LIBM.
23427         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23428         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23429
23430 2010-07-12  Bruno Haible  <bruno@clisp.org>
23431
23432         Unify tests that set gl_cv_func_frexp_no_libm.
23433         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23434         gl_FUNC_FREXP_NO_LIBM.
23435         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23436         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23437
23438 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23439
23440         memcoll: clarify sizes versus lengths, document better, and tweak perf
23441         * lib/memcoll.c (strcoll_loop, memcoll0):
23442         Improve quality of descriptive comments.  Name variables
23443         consistently as to whether they are lengths (which do not include
23444         terminating null) versus sizes (which do).
23445         * lib/xmemcoll.c (xmemcoll0): Likewise.
23446         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23447         returned when s1size == 0; this is easier to compile and saves
23448         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23449
23450 2010-07-12  Bruno Haible  <bruno@clisp.org>
23451
23452         Tests for module '_Exit'.
23453         * modules/_Exit-tests: New file.
23454         * tests/test-_Exit.sh: New file.
23455         * tests/test-_Exit.c: New file.
23456
23457         New module '_Exit'.
23458         * lib/stdlib.in.h (__attribute__): New macro.
23459         (_Exit): New declaration.
23460         * lib/_Exit.c: New file.
23461         * m4/_Exit.m4: New file.
23462         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23463         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23464         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23465         * modules/_Exit: New file.
23466         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23467         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23468
23469 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23470
23471         strtod: make it more-accurate typically, and don't require libm
23472         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23473         Include limits.h.  Don't include string.h.
23474         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23475         (locale_isspace): New function, so that no casts are needed to
23476         check whether *s is a space.
23477         (ldexp): Provide an unused dummy if not available.
23478         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23479         (strtod): Use them.  This implementation prefers to use the
23480         underlying strtod if available, falling back on our own code
23481         only to fix known bugs.  This is more likely to produce an
23482         accurate result.  Also, it avoids the use of libm functions.
23483         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23484         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23485         was absent, but it caused a test failure with coreutils.
23486         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23487         with libm.
23488         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23489         * modules/strtod-tests (Makefile.am): Likewise.
23490
23491 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23492             Bruno Haible  <bruno@clisp.org>
23493
23494         unistr/u8-strchr: Optimize ASCII argument case.
23495         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23496
23497 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23498
23499         (x)memcoll: minor tweaks
23500         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23501         is after the type that it qualifies.
23502         (memcoll0): Likewise.
23503         * lib/memcoll.h (memcoll0): Likewise.
23504         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23505         * lib/xmemcoll.h (xmemcoll0): Likewise.
23506         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23507         differs from memcoll in that the NUL byte is part of the argument.
23508         Omit the abort-checks, as performance is a real issue here.  Plus,
23509         the checks were wrong anyway (an off-by-one error).  Omit local
23510         variable 'diff', as it's a bit clearer that way.
23511         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23512         no longer needed.
23513
23514 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23515
23516         (x)memcoll: speedup when input is known to be NUL delimited
23517         * lib/memcoll.c: Include stdlib.
23518         (memcoll0): New function.
23519         (strcoll_loop): New function, refactored for use in both memcoll
23520         and memcoll0.
23521         * lib/memcoll.h (memcoll0): Add prototype.
23522         * lib/xmemcoll.c (xmemcoll0): New function.
23523         (collate_error): New function, refactored for use in both xmemcoll
23524         and xmemcoll0.
23525         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23526         * m4/memcoll.m4: add inline invocation.
23527
23528 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23529
23530         * build-aux/bootstrap: Remove any local translations
23531         from the translation project synchronization directory,
23532         so that local only translations are not distributed.
23533
23534 2010-07-04  Bruno Haible  <bruno@clisp.org>
23535
23536         fsusage: Clarify which code applies to which platforms.
23537         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23538         platform.
23539         * lib/fsusage.c (get_fs_usage): Likewise.
23540
23541 2010-07-04  Bruno Haible  <bruno@clisp.org>
23542
23543         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23544         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23545         Reported by Martin Lambers <marlam@marlam.de>.
23546
23547 2010-07-04  Jim Meyering  <meyering@redhat.com>
23548
23549         hash: once again explicitly disallow insertion of NULL
23550         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23551         inserting a NULL pointer cannot work with these functions.
23552         Add a comment with details.
23553         This reverts part of the 2010-07-01 commit, 5bef1a35
23554         "hash: extend module to deal with non-pointer keys".
23555
23556 2010-07-01  Bruno Haible  <bruno@clisp.org>
23557
23558         stdbool: Update doc.
23559         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23560         Info from Christian Weisgerber <naddy@mips.inka.de>.
23561
23562 2010-07-01  Jim Meyering  <meyering@redhat.com>
23563
23564         hash: extend module to deal with non-pointer keys
23565         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23566         but that allows insertion of non-pointer entries.
23567         Do not disallow an ENTRY value of NULL.
23568         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23569         * lib/hash.h (hash_insert0): Declare.
23570
23571 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23572
23573         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23574         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23575         not present (i.e. with autoconf 2.59 and when using gettextize, not
23576         gnulib), require AC_GNU_SOURCE instead.
23577
23578 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23579
23580         idpriv-drop: Fix tests.
23581         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23582         not to the test-idpriv-droptemp program.
23583
23584 2010-06-29  Bruno Haible  <bruno@clisp.org>
23585
23586         string: Fix syntax error with g++ 2.96.
23587         * lib/string.in.h (__pure__): Remove definition.
23588         (_GL_ATTRIBUTE_PURE): New macro.
23589         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23590         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23591         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23592
23593 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23594
23595         unitypes: Fix bug introduced on 2010-05-18.
23596         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23597
23598 2010-06-22  Eric Blake  <eblake@redhat.com>
23599
23600         memmem: slight optimization
23601         * lib/str-two-way.h (critical_factorization): Update comments.
23602         Reduce work during factorization phase.
23603         Reported by Carlos Bueno <carlos@bueno.org>.
23604
23605 2010-06-21  Bruno Haible  <bruno@clisp.org>
23606
23607         Fix HAVE_CALLOC_POSIX misnomer.
23608         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23609         !HAVE_CALLOC_POSIX.
23610         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23611         HAVE_CALLOC_POSIX.
23612         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23613         instead of HAVE_CALLOC_POSIX.
23614         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23615         HAVE_CALLOC_POSIX.
23616
23617         Use modern idiom for calloc() replacement.
23618         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23619         AC_FUNC_CALLOC.
23620         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23621         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23622         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23623         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23624         (gl_REPLACE_CALLOC): New macro.
23625
23626 2010-06-21  Bruno Haible  <bruno@clisp.org>
23627
23628         Fix HAVE_REALLOC_POSIX misnomer.
23629         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23630         !HAVE_REALLOC_POSIX.
23631         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23632         HAVE_REALLOC_POSIX.
23633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23634         instead of HAVE_REALLOC_POSIX.
23635         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23636         HAVE_REALLOC_POSIX.
23637
23638         Use modern idiom for realloc() replacement.
23639         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23640         AC_FUNC_REALLOC.
23641         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23642         Autoconf's AC_FUNC_REALLOC.
23643         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23644         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23645         (gl_REPLACE_REALLOC): New macro.
23646         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23647
23648 2010-06-21  Bruno Haible  <bruno@clisp.org>
23649
23650         Fix HAVE_MALLOC_POSIX misnomer.
23651         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23652         !HAVE_MALLOC_POSIX.
23653         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23654         HAVE_MALLOC_POSIX.
23655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23656         instead of HAVE_MALLOC_POSIX.
23657         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23658         HAVE_MALLOC_POSIX.
23659
23660         Use modern idiom for malloc() replacement.
23661         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23662         AC_FUNC_MALLOC.
23663         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23664         Autoconf's AC_FUNC_MALLOC.
23665         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23666         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23667         (gl_REPLACE_MALLOC): New macro.
23668         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23669
23670 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23671
23672         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23673         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23674         This macro takes 3 arguments, not 4.
23675
23676 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23677
23678         ipv6: fix detection under mingw
23679         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23680         in6_addr.
23681
23682 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23683
23684         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23685         that strtod() works when cross-compiling to a glibc version known
23686         to work.
23687
23688 2010-06-15  Bruno Haible  <bruno@clisp.org>
23689
23690         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23691
23692 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23693
23694         select: Correct timeout.
23695         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23696
23697 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23698
23699         git-version-gen: init shell var to avoid env var influence
23700         * build-aux/git-version-gen (v): Init shell var to empty.
23701
23702 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23703
23704         priv-set: Don't assume that priv.h exists merely because getppriv does.
23705         See Jan Andersen's bug report about AIX 5L in
23706         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23707         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23708         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23709         * lib/priv-set.h: Likewise.
23710         * tests/test-priv-set.c: Likewise.
23711
23712 2010-06-13  Bruno Haible  <bruno@clisp.org>
23713
23714         relocatable: Make it easier to test whether to install wrappers.
23715         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23716         RELOCATABLE_VIA_WRAPPER.
23717
23718 2010-06-13  Bruno Haible  <bruno@clisp.org>
23719
23720         gnulib-tool: Display specified modules and dependencies differently.
23721         * gnulib-tool (func_show_module_list): New function.
23722         (func_import, func_create_testdir): Invoke it.
23723         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23724
23725 2010-06-13  Bruno Haible  <bruno@clisp.org>
23726
23727         gnulib-tool: Align code of func_import and func_create_testdir.
23728         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23729         specified_modules.
23730
23731 2010-06-12  Jim Meyering  <meyering@redhat.com>
23732
23733         test-inttostr: avoid spurious failure on Solaris 9
23734         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23735         to accept "%ju".  Reported by Bruno Haible.
23736
23737 2010-06-11  Jim Meyering  <meyering@redhat.com>
23738
23739         test-sys_socket: mark variables as used more readably
23740         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23741         as "used" explicitly via (void) statement casts.  This is more
23742         readable than using them in an artificial return expression.
23743         Suggestion from Bruno Haible.
23744
23745 2010-06-11  Bruno Haible  <bruno@clisp.org>
23746
23747         Avoid some more warnings from "gcc -Wwrite-strings".
23748         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23749         to 'const char *'.
23750         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23751         * tests/test-c-strcasestr.c (main): Likewise.
23752         * tests/test-mbscasestr1.c (main): Likewise.
23753         * tests/test-mbscasestr2.c (main): Likewise.
23754         * tests/test-memmem.c (main): Likewise.
23755         * tests/test-strstr.c (main): Likewise.
23756         * tests/test-strcasestr.c (main): Likewise.
23757
23758 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23759
23760         init.sh: change framework_failure_ to fail with status 99, not 1
23761         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23762         automake's parallel-tests rule that this is an unexpected failure,
23763         even if the test is listed in XFAIL_TESTS.
23764
23765 2010-06-11  Jim Meyering  <meyering@redhat.com>
23766
23767         test-inttostr: avoid warnings about 4-6KB literal strings
23768         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23769         Include "macros.h", for its definition of ASSERT.
23770         (CK): s/assert/ASSERT/
23771         * modules/inttostr-tests (Files): Add macros.h.
23772
23773         init.sh: don't use $ME_ or skip_ before they are defined
23774         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23775         their first uses.  Also hoist their companions: warn_, fail_,
23776         framework_failure_, $stderr_fileno.  Prompted by a patch from
23777         Stefano Lattarini.
23778
23779         test-sys_socket: avoid set-but-not-used warnings from gcc
23780         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23781         avoid warning about set-but-not-used variables.
23782
23783         test-xvasprintf: avoid 'const' discard warnings
23784         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23785         "const" when assigning from literal strings.
23786         (test_xasprintf): Add "void" in function argument list to placate
23787         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23788
23789         tests: avoid compilation warnings in argmatch and exclude tests...
23790         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23791         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23792         Since it always exits, declare with the "noreturn" attribute.
23793         * tests/test-argmatch.c: Likewise.
23794
23795         tests: avoid 'const' discard warnings in mbsstr tests
23796         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23797         * tests/test-mbsstr2.c (main): Likewise.
23798
23799         test-verify: avoid warning from gcc's -Wmissing-declarations
23800         * tests/test-verify.c (function): Declare to be static.
23801
23802         test-inttostr.c: include <string.h> for use of strcmp
23803         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23804
23805         test-linkat: avoid failed assertion on "other" architectures
23806         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23807         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23808         sparc: https://bugs.launchpad.net/bugs/591968
23809
23810 2010-06-11  Jim Meyering  <meyering@redhat.com>
23811
23812         printf.m4: avoid autoconf's "Expanded Before Required" warning
23813         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23814         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23815         autoconf warning.
23816
23817 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23818
23819         Replacement header templates are now named with ".in", not "_".
23820         * doc/gnulib-intro.texi: Correct.
23821
23822 2010-06-10  Jim Meyering  <meyering@redhat.com>
23823
23824         inttostr-tests: depend on snprintf, not snprintf-posix
23825         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23826         snprintf-posix, to avoid this aclocal failure:
23827           missing file gnulib-tests/vasnprintf.c
23828           configure.ac:45: error: expected source file, required through \
23829           AC_LIBSOURCES, not found
23830
23831 2010-06-10  Jim Meyering  <meyering@redhat.com>
23832
23833         inttostr: add a new function, inttostr, and tests
23834         The namesake function was not available.  The existence of the
23835         template file, inttostr.c makes its addition nontrivial.
23836         * lib/anytostr.c: Rename from inttostr.c.
23837         (anytostr): Rename from inttostr.
23838         * lib/inttostr.c: New file.
23839         * modules/inttostr (Files): Add anytostr.c.
23840         (Makefile.am): Set lib_SOURCES instead of ...
23841         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23842         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23843         * lib/offtostr.c: Likewise.
23844         * lib/uinttostr.c: Likewise.
23845         * lib/umaxtostr.c: Likewise.
23846         * modules/inttostr-tests: New file.
23847         * tests/test-inttostr.c: New file.  Test these functions.
23848
23849 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23850             Bruno Haible  <bruno@clisp.org>
23851
23852         Add "Extending Gnulib" chapter to manual.
23853         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23854         chapter.
23855         (Extending Gnulib): New chapter.
23856         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23857         chapter.
23858
23859 2010-06-09  Bruno Haible  <bruno@clisp.org>
23860
23861         Avoid relocwrapper link errors due to gnulib replacement functions.
23862         * lib/areadlink.c: Use the system's malloc, realloc functions.
23863         (areadlink): Set errno to ENOMEM explicitly.
23864         * modules/areadlink (Depends-on): Remove malloc-posix.
23865         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23866
23867 2010-06-09  Bruno Haible  <bruno@clisp.org>
23868
23869         Avoid relocwrapper link errors due to gnulib replacement functions.
23870         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23871         * lib/malloca.c: Likewise.
23872         * lib/relocatable.c: Likewise.
23873         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23874         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23875         * lib/setenv.c: Use the system's malloc, realloc functions.
23876         * lib/strerror.c: Use the system's sprintf function.
23877         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23878
23879 2010-06-04  Bruno Haible  <bruno@clisp.org>
23880
23881         Prefer documented low-level autoconf macro names.
23882         * m4/lib-link.m4: Use m4_translit instead of translit.
23883         * m4/environ.m4: Likewise.
23884         * m4/mathfunc.m4: Likewise.
23885         * m4/onceonly.m4: Likewise.
23886         * m4/stdint.m4: Likewise.
23887         Suggested by Eric Blake.
23888
23889 2010-06-04  Martin Lambers  <marlam@marlam.de>
23890             Bruno Haible  <bruno@clisp.org>
23891
23892         havelib: Allow library names with '+' characters.
23893         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23894         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23895
23896 2010-06-09  Bruno Haible  <bruno@clisp.org>
23897
23898         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23899         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23900         realloc failed.
23901
23902 2010-06-08  Peter Simons  <simons@cryp.to>
23903
23904         maint.mk: make the news-check rule more configurable
23905         * top/maint.mk (news-check-lines-spec): New variable.
23906         (news-check): Use "sed -n 1,10p" in place of "head".
23907
23908 2010-06-07  Jim Meyering  <meyering@redhat.com>
23909
23910         do-release-commit-and-tag: fix typo in --help
23911         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23912
23913         regex: avoid new dead-code warning with gcc-4.6.0
23914         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23915         if-block containing a while-loop.  It's been unused for at least
23916         5 years.
23917
23918 2010-06-05  Bruno Haible  <bruno@clisp.org>
23919
23920         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23921         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23922
23923 2010-06-04  Bruno Haible  <bruno@clisp.org>
23924
23925         Update to GNU gettext 0.18.1.
23926         * modules/gettext (configure.ac): Require gettext infrastructure from
23927         version 0.18.1.
23928
23929 2010-06-03  Bruno Haible  <bruno@clisp.org>
23930
23931         Don't use AC_LIBOBJ with file names in subdirectories.
23932         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23933         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23934         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23935         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23936         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23937         gl_LIBUNISTRING_LIBSOURCE.
23938         (Makefile.am): Augment lib_SOURCES here, conditionally.
23939         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23940
23941 2010-06-03  Bruno Haible  <bruno@clisp.org>
23942
23943         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23944         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23945         expansion does not end with a newline.
23946         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23947         unnecessary newline.
23948
23949 2010-06-03  Bruno Haible  <bruno@clisp.org>
23950
23951         Reduce dependencies.
23952         * tests/test-quotearg.h: New file, extracted from
23953         tests/test-quotearg.c.
23954         * tests/test-quotearg-simple.c: New file, extracted from
23955         tests/test-quotearg.c.
23956         * tests/test-quotearg.c: Don't include <ctype.h>.
23957         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23958         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23959         use_quote_double_quotes, use_quotearg_colon): Moved to
23960         tests/test-quotearg.h.
23961         (results_g, flag_results, custom_quotes, custom_results): Moved
23962         to tests/test-quotearg-simple.c.
23963         (main): Moved the part that does not depend on gettext to
23964         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23965         performed.
23966         * modules/quotearg-simple: New file.
23967         * modules/quotearg-simple-tests: New file.
23968         * modules/quotearg (Depends-on): Add quotearg-simple.
23969         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23970         (Files): Add tests/test-quotearg.h.
23971         Reported by Paolo Bonzini.
23972
23973 2010-06-03  Bruno Haible  <bruno@clisp.org>
23974
23975         Reduce dependencies.
23976         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23977
23978 2010-06-03  Bruno Haible  <bruno@clisp.org>
23979
23980         time: Undefine more broken macros.
23981         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23982         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23983         Reported by Eric Blake.
23984
23985 2010-06-03  Bruno Haible  <bruno@clisp.org>
23986
23987         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23988         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23989         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23990         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23991         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23992         Reported by Ludovic Courtès <ludo@gnu.org>.
23993
23994 2010-06-02  Eric Blake  <eblake@redhat.com>
23995
23996         time: work with mingw + pthreads-win32 library
23997         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23998         if timespec is defined only in pthread.h.
23999         * modules/time (Makefile.am): Substitute it.
24000         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24001         <pthread.h>, when needed.
24002         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24003         from the library.
24004
24005 2010-05-31  Bruno Haible  <bruno@clisp.org>
24006
24007         Avoid expanding two macros in the wrong order.
24008         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24009         gl_LIBUNISTRING if it is defined.
24010         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24011         autoconf >= 2.64.
24012         Reported by Ludovic Courtès <ludo@gnu.org>.
24013
24014 2010-05-27  Jim Meyering  <meyering@redhat.com>
24015
24016         maint.mk: also prohibit "#undef" of always-defined symbols
24017         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24018         Allow more than one space before the symbol name.
24019         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24020         the regexp uses alternation.
24021
24022 2010-05-26  Eric Blake  <eblake@redhat.com>
24023
24024         maint.mk: avoid echo -e
24025         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24026         Convert all uses of echo -* to printf.
24027         Reported by Matthias Bolte.
24028
24029 2010-05-25  Bruno Haible  <bruno@clisp.org>
24030
24031         Update to GNU gettext 0.18, part 2.
24032         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24033         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24034
24035 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24036
24037         Add missing include in test-pwrite.c.
24038         * tests/test-pwrite.c: Include string.h, for strcmp.
24039
24040 2010-05-24  Bruno Haible  <bruno@clisp.org>
24041
24042         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24043
24044 2010-05-24  Bruno Haible  <bruno@clisp.org>
24045
24046         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24047         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24048         iconveh_error argument.
24049         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24050         U_STRCONV_TO_LOCALE.
24051         * lib/unistr/u16-strcoll.c: Likewise.
24052         * lib/unistr/u32-strcoll.c: Likewise.
24053         * modules/unistr/u8-strcoll (Depends-on): Add
24054         uniconv/u8-strconv-to-enc, localcharset. Remove
24055         uniconv/u8-strconv-to-locale.
24056         (configure.ac): Bump version number.
24057         * modules/unistr/u16-strcoll (Depends-on): Add
24058         uniconv/u16-strconv-to-enc, localcharset. Remove
24059         uniconv/u16-strconv-to-locale.
24060         (configure.ac): Bump version number.
24061         * modules/unistr/u32-strcoll (Depends-on): Add
24062         uniconv/u32-strconv-to-enc, localcharset. Remove
24063         uniconv/u32-strconv-to-locale.
24064         (configure.ac): Bump version number.
24065
24066 2010-05-24  Bruno Haible  <bruno@clisp.org>
24067
24068         Avoid a test failure on NetBSD 5.0.
24069         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24070         an iconv() bug.
24071
24072 2010-05-24  Bruno Haible  <bruno@clisp.org>
24073
24074         Adjust #include directive style.
24075         * modules/regex (Includes): Recommend to write <regex.h>.
24076
24077 2010-05-24  Bruno Haible  <bruno@clisp.org>
24078
24079         regex: Don't require alloca.
24080         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24081         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24082         only inside if (0).
24083
24084 2010-05-23  Jim Meyering  <meyering@redhat.com>
24085
24086         test-renameat.c: include <sys/stat.h>
24087         * tests/test-renameat.c: Include <sys/stat.h>; required for
24088         definition of S_IS* macros.
24089
24090 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24091
24092         Update maintainer documentation for 'relocatable-prog' module.
24093         * doc/relocatable-maint.texi: Update.
24094         Comments by Bruno Haible.
24095
24096 2010-05-23  Bruno Haible  <bruno@clisp.org>
24097
24098         git-merge-changelog: Enable --split-merged-entry by default.
24099         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24100         (usage): Don't mention this option any more.
24101         Reported by Ralf Wildenhues.
24102
24103 2010-05-23  Jim Meyering  <meyering@redhat.com>
24104
24105         test-pwrite: do not leave behind a test file named "out"
24106         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24107         The trivial-looking use of init.sh is really necessary.
24108         It ensures that the temporary file, "out", is created in
24109         a temporary directory, and removed upon termination.
24110         * tests/test-pwrite.sh: Re-add file.
24111         * modules/pwrite-tests: Reference it.
24112
24113 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24114
24115         Fix output redirection buglet in init.sh.
24116         * tests/init.sh: Fix redirection of stderr.
24117
24118 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24119
24120         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24121
24122 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24123
24124         * modules/valgrind-tests: New file.
24125         * m4/valgrind-tests.m4: New file.
24126         * doc/valgrind-tests.texi: New file.
24127         * doc/gnulib.texi (Running self-tests under valgrind): New
24128         section.
24129
24130 2010-05-19  Bruno Haible  <bruno@clisp.org>
24131
24132         Clean up dead code in recent commit.
24133         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24134         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24135         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24136         Suggested by Paolo Bonzini.
24137
24138 2010-05-19  Bruno Haible  <bruno@clisp.org>
24139
24140         Avoid valgrind error reports from libunistring.
24141         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24142         * modules/libunistring (Files): Add it.
24143         * modules/libunistring-optional (Files): Likewise.
24144
24145 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24146             Bruno Haible  <bruno@clisp.org>
24147
24148         New module 'libunistring-optional'.
24149         * modules/libunistring-optional: New file.
24150         * m4/libunistring-base.m4: New file.
24151         * m4/libunistring-optional.m4: New file.
24152         * lib/unicase.in.h: Renamed from lib/unicase.h.
24153         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24154         * lib/unictype.in.h: Renamed from lib/unictype.h.
24155         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24156         * lib/uniname.in.h: Renamed from lib/uniname.h.
24157         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24158         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24159         * lib/unistr.in.h: Renamed from lib/unistr.h.
24160         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24161         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24162         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24163         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24164         gl_LIBUNISTRING. If the library was found, determine the installed
24165         version and set LIBUNISTRING_VERSION.
24166         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24167         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24168         handle a configuration option --with-included-libunistring.
24169         * modules/libunistring (Files): Add m4/absolute-header.m4.
24170         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24171         Add m4/libunistring-base.m4.
24172         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24173         (Makefile.am): Build unicase.h from unicase.in.h.
24174         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24175         Add m4/libunistring-base.m4.
24176         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24177         (Makefile.am): Build uniconv.h from uniconv.in.h.
24178         * modules/unictype/base (Files): Use unictype.in.h instead of
24179         unictype.h. Add m4/libunistring-base.m4.
24180         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24181         (Makefile.am): Build unictype.h from unictype.in.h.
24182         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24183         Add m4/libunistring-base.m4.
24184         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24185         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24186         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24187         Add m4/libunistring-base.m4.
24188         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24189         (Makefile.am): Build uniname.h from uniname.in.h.
24190         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24191         Add m4/libunistring-base.m4.
24192         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24193         (Makefile.am): Build uninorm.h from uninorm.in.h.
24194         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24195         unistdio.h. Add m4/libunistring-base.m4.
24196         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24197         (Makefile.am): Build unistdio.h from unistdio.in.h.
24198         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24199         Add m4/libunistring-base.m4.
24200         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24201         (Makefile.am): Build unistr.h from unistr.in.h.
24202         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24203         Add m4/libunistring-base.m4.
24204         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24205         (Makefile.am): Build unitypes.h from unitypes.in.h.
24206         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24207         Add m4/libunistring-base.m4.
24208         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24209         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24210         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24211         uniwidth.h. Add m4/libunistring-base.m4.
24212         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24213         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24214         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24215         instead of augmenting lib_SOURCES.
24216         * modules/unicase/empty-suffix-context: Likewise.
24217         * modules/unicase/locale-language: Likewise.
24218         * modules/unicase/tolower: Likewise.
24219         * modules/unicase/totitle: Likewise.
24220         * modules/unicase/toupper: Likewise.
24221         * modules/unicase/u8-casecmp: Likewise.
24222         * modules/unicase/u8-casecoll: Likewise.
24223         * modules/unicase/u8-casefold: Likewise.
24224         * modules/unicase/u8-casexfrm: Likewise.
24225         * modules/unicase/u8-ct-casefold: Likewise.
24226         * modules/unicase/u8-ct-tolower: Likewise.
24227         * modules/unicase/u8-ct-totitle: Likewise.
24228         * modules/unicase/u8-ct-toupper: Likewise.
24229         * modules/unicase/u8-is-cased: Likewise.
24230         * modules/unicase/u8-is-casefolded: Likewise.
24231         * modules/unicase/u8-is-lowercase: Likewise.
24232         * modules/unicase/u8-is-titlecase: Likewise.
24233         * modules/unicase/u8-is-uppercase: Likewise.
24234         * modules/unicase/u8-prefix-context: Likewise.
24235         * modules/unicase/u8-suffix-context: Likewise.
24236         * modules/unicase/u8-tolower: Likewise.
24237         * modules/unicase/u8-totitle: Likewise.
24238         * modules/unicase/u8-toupper: Likewise.
24239         * modules/unicase/u16-casecmp: Likewise.
24240         * modules/unicase/u16-casecoll: Likewise.
24241         * modules/unicase/u16-casefold: Likewise.
24242         * modules/unicase/u16-casexfrm: Likewise.
24243         * modules/unicase/u16-ct-casefold: Likewise.
24244         * modules/unicase/u16-ct-tolower: Likewise.
24245         * modules/unicase/u16-ct-totitle: Likewise.
24246         * modules/unicase/u16-ct-toupper: Likewise.
24247         * modules/unicase/u16-is-cased: Likewise.
24248         * modules/unicase/u16-is-casefolded: Likewise.
24249         * modules/unicase/u16-is-lowercase: Likewise.
24250         * modules/unicase/u16-is-titlecase: Likewise.
24251         * modules/unicase/u16-is-uppercase: Likewise.
24252         * modules/unicase/u16-prefix-context: Likewise.
24253         * modules/unicase/u16-suffix-context: Likewise.
24254         * modules/unicase/u16-tolower: Likewise.
24255         * modules/unicase/u16-totitle: Likewise.
24256         * modules/unicase/u16-toupper: Likewise.
24257         * modules/unicase/u32-casecmp: Likewise.
24258         * modules/unicase/u32-casecoll: Likewise.
24259         * modules/unicase/u32-casefold: Likewise.
24260         * modules/unicase/u32-casexfrm: Likewise.
24261         * modules/unicase/u32-ct-casefold: Likewise.
24262         * modules/unicase/u32-ct-tolower: Likewise.
24263         * modules/unicase/u32-ct-totitle: Likewise.
24264         * modules/unicase/u32-ct-toupper: Likewise.
24265         * modules/unicase/u32-is-cased: Likewise.
24266         * modules/unicase/u32-is-casefolded: Likewise.
24267         * modules/unicase/u32-is-lowercase: Likewise.
24268         * modules/unicase/u32-is-titlecase: Likewise.
24269         * modules/unicase/u32-is-uppercase: Likewise.
24270         * modules/unicase/u32-prefix-context: Likewise.
24271         * modules/unicase/u32-suffix-context: Likewise.
24272         * modules/unicase/u32-tolower: Likewise.
24273         * modules/unicase/u32-totitle: Likewise.
24274         * modules/unicase/u32-toupper: Likewise.
24275         * modules/unicase/ulc-casecmp: Likewise.
24276         * modules/unicase/ulc-casecoll: Likewise.
24277         * modules/unicase/ulc-casexfrm: Likewise.
24278         * modules/uniconv/u8-conv-from-enc: Likewise.
24279         * modules/uniconv/u8-conv-to-enc: Likewise.
24280         * modules/uniconv/u8-strconv-from-enc: Likewise.
24281         * modules/uniconv/u8-strconv-from-locale: Likewise.
24282         * modules/uniconv/u8-strconv-to-enc: Likewise.
24283         * modules/uniconv/u8-strconv-to-locale: Likewise.
24284         * modules/uniconv/u16-conv-from-enc: Likewise.
24285         * modules/uniconv/u16-conv-to-enc: Likewise.
24286         * modules/uniconv/u16-strconv-from-enc: Likewise.
24287         * modules/uniconv/u16-strconv-from-locale: Likewise.
24288         * modules/uniconv/u16-strconv-to-enc: Likewise.
24289         * modules/uniconv/u16-strconv-to-locale: Likewise.
24290         * modules/uniconv/u32-conv-from-enc: Likewise.
24291         * modules/uniconv/u32-conv-to-enc: Likewise.
24292         * modules/uniconv/u32-strconv-from-enc: Likewise.
24293         * modules/uniconv/u32-strconv-from-locale: Likewise.
24294         * modules/uniconv/u32-strconv-to-enc: Likewise.
24295         * modules/uniconv/u32-strconv-to-locale: Likewise.
24296         * modules/unictype/bidicategory-byname: Likewise.
24297         * modules/unictype/bidicategory-name: Likewise.
24298         * modules/unictype/bidicategory-of: Likewise.
24299         * modules/unictype/bidicategory-test: Likewise.
24300         * modules/unictype/block-list: Likewise.
24301         * modules/unictype/block-test: Likewise.
24302         * modules/unictype/category-C: Likewise.
24303         * modules/unictype/category-Cc: Likewise.
24304         * modules/unictype/category-Cf: Likewise.
24305         * modules/unictype/category-Cn: Likewise.
24306         * modules/unictype/category-Co: Likewise.
24307         * modules/unictype/category-Cs: Likewise.
24308         * modules/unictype/category-L: Likewise.
24309         * modules/unictype/category-Ll: Likewise.
24310         * modules/unictype/category-Lm: Likewise.
24311         * modules/unictype/category-Lo: Likewise.
24312         * modules/unictype/category-Lt: Likewise.
24313         * modules/unictype/category-Lu: Likewise.
24314         * modules/unictype/category-M: Likewise.
24315         * modules/unictype/category-Mc: Likewise.
24316         * modules/unictype/category-Me: Likewise.
24317         * modules/unictype/category-Mn: Likewise.
24318         * modules/unictype/category-N: Likewise.
24319         * modules/unictype/category-Nd: Likewise.
24320         * modules/unictype/category-Nl: Likewise.
24321         * modules/unictype/category-No: Likewise.
24322         * modules/unictype/category-P: Likewise.
24323         * modules/unictype/category-Pc: Likewise.
24324         * modules/unictype/category-Pd: Likewise.
24325         * modules/unictype/category-Pe: Likewise.
24326         * modules/unictype/category-Pf: Likewise.
24327         * modules/unictype/category-Pi: Likewise.
24328         * modules/unictype/category-Po: Likewise.
24329         * modules/unictype/category-Ps: Likewise.
24330         * modules/unictype/category-S: Likewise.
24331         * modules/unictype/category-Sc: Likewise.
24332         * modules/unictype/category-Sk: Likewise.
24333         * modules/unictype/category-Sm: Likewise.
24334         * modules/unictype/category-So: Likewise.
24335         * modules/unictype/category-Z: Likewise.
24336         * modules/unictype/category-Zl: Likewise.
24337         * modules/unictype/category-Zp: Likewise.
24338         * modules/unictype/category-Zs: Likewise.
24339         * modules/unictype/category-and: Likewise.
24340         * modules/unictype/category-and-not: Likewise.
24341         * modules/unictype/category-byname: Likewise.
24342         * modules/unictype/category-name: Likewise.
24343         * modules/unictype/category-none: Likewise.
24344         * modules/unictype/category-of: Likewise.
24345         * modules/unictype/category-or: Likewise.
24346         * modules/unictype/category-test: Likewise.
24347         * modules/unictype/combining-class: Likewise.
24348         * modules/unictype/ctype-alnum: Likewise.
24349         * modules/unictype/ctype-alpha: Likewise.
24350         * modules/unictype/ctype-blank: Likewise.
24351         * modules/unictype/ctype-cntrl: Likewise.
24352         * modules/unictype/ctype-digit: Likewise.
24353         * modules/unictype/ctype-graph: Likewise.
24354         * modules/unictype/ctype-lower: Likewise.
24355         * modules/unictype/ctype-print: Likewise.
24356         * modules/unictype/ctype-punct: Likewise.
24357         * modules/unictype/ctype-space: Likewise.
24358         * modules/unictype/ctype-upper: Likewise.
24359         * modules/unictype/ctype-xdigit: Likewise.
24360         * modules/unictype/decimal-digit: Likewise.
24361         * modules/unictype/digit: Likewise.
24362         * modules/unictype/mirror: Likewise.
24363         * modules/unictype/numeric: Likewise.
24364         * modules/unictype/property-alphabetic: Likewise.
24365         * modules/unictype/property-ascii-hex-digit: Likewise.
24366         * modules/unictype/property-bidi-arabic-digit: Likewise.
24367         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24368         * modules/unictype/property-bidi-block-separator: Likewise.
24369         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24370         * modules/unictype/property-bidi-common-separator: Likewise.
24371         * modules/unictype/property-bidi-control: Likewise.
24372         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24373         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24374         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24375         * modules/unictype/property-bidi-european-digit: Likewise.
24376         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24377         * modules/unictype/property-bidi-left-to-right: Likewise.
24378         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24379         * modules/unictype/property-bidi-other-neutral: Likewise.
24380         * modules/unictype/property-bidi-pdf: Likewise.
24381         * modules/unictype/property-bidi-segment-separator: Likewise.
24382         * modules/unictype/property-bidi-whitespace: Likewise.
24383         * modules/unictype/property-byname: Likewise.
24384         * modules/unictype/property-combining: Likewise.
24385         * modules/unictype/property-composite: Likewise.
24386         * modules/unictype/property-currency-symbol: Likewise.
24387         * modules/unictype/property-dash: Likewise.
24388         * modules/unictype/property-decimal-digit: Likewise.
24389         * modules/unictype/property-default-ignorable-code-point: Likewise.
24390         * modules/unictype/property-deprecated: Likewise.
24391         * modules/unictype/property-diacritic: Likewise.
24392         * modules/unictype/property-extender: Likewise.
24393         * modules/unictype/property-format-control: Likewise.
24394         * modules/unictype/property-grapheme-base: Likewise.
24395         * modules/unictype/property-grapheme-extend: Likewise.
24396         * modules/unictype/property-grapheme-link: Likewise.
24397         * modules/unictype/property-hex-digit: Likewise.
24398         * modules/unictype/property-hyphen: Likewise.
24399         * modules/unictype/property-id-continue: Likewise.
24400         * modules/unictype/property-id-start: Likewise.
24401         * modules/unictype/property-ideographic: Likewise.
24402         * modules/unictype/property-ids-binary-operator: Likewise.
24403         * modules/unictype/property-ids-trinary-operator: Likewise.
24404         * modules/unictype/property-ignorable-control: Likewise.
24405         * modules/unictype/property-iso-control: Likewise.
24406         * modules/unictype/property-join-control: Likewise.
24407         * modules/unictype/property-left-of-pair: Likewise.
24408         * modules/unictype/property-line-separator: Likewise.
24409         * modules/unictype/property-logical-order-exception: Likewise.
24410         * modules/unictype/property-lowercase: Likewise.
24411         * modules/unictype/property-math: Likewise.
24412         * modules/unictype/property-non-break: Likewise.
24413         * modules/unictype/property-not-a-character: Likewise.
24414         * modules/unictype/property-numeric: Likewise.
24415         * modules/unictype/property-other-alphabetic: Likewise.
24416         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24417         * modules/unictype/property-other-grapheme-extend: Likewise.
24418         * modules/unictype/property-other-id-continue: Likewise.
24419         * modules/unictype/property-other-id-start: Likewise.
24420         * modules/unictype/property-other-lowercase: Likewise.
24421         * modules/unictype/property-other-math: Likewise.
24422         * modules/unictype/property-other-uppercase: Likewise.
24423         * modules/unictype/property-paired-punctuation: Likewise.
24424         * modules/unictype/property-paragraph-separator: Likewise.
24425         * modules/unictype/property-pattern-syntax: Likewise.
24426         * modules/unictype/property-pattern-white-space: Likewise.
24427         * modules/unictype/property-private-use: Likewise.
24428         * modules/unictype/property-punctuation: Likewise.
24429         * modules/unictype/property-quotation-mark: Likewise.
24430         * modules/unictype/property-radical: Likewise.
24431         * modules/unictype/property-sentence-terminal: Likewise.
24432         * modules/unictype/property-soft-dotted: Likewise.
24433         * modules/unictype/property-space: Likewise.
24434         * modules/unictype/property-terminal-punctuation: Likewise.
24435         * modules/unictype/property-test: Likewise.
24436         * modules/unictype/property-titlecase: Likewise.
24437         * modules/unictype/property-unassigned-code-value: Likewise.
24438         * modules/unictype/property-unified-ideograph: Likewise.
24439         * modules/unictype/property-uppercase: Likewise.
24440         * modules/unictype/property-variation-selector: Likewise.
24441         * modules/unictype/property-white-space: Likewise.
24442         * modules/unictype/property-xid-continue: Likewise.
24443         * modules/unictype/property-xid-start: Likewise.
24444         * modules/unictype/property-zero-width: Likewise.
24445         * modules/unictype/scripts: Likewise.
24446         * modules/unictype/syntax-c-ident: Likewise.
24447         * modules/unictype/syntax-c-whitespace: Likewise.
24448         * modules/unictype/syntax-java-ident: Likewise.
24449         * modules/unictype/syntax-java-whitespace: Likewise.
24450         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24451         * modules/unilbrk/u8-width-linebreaks: Likewise.
24452         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24453         * modules/unilbrk/u16-width-linebreaks: Likewise.
24454         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24455         * modules/unilbrk/u32-width-linebreaks: Likewise.
24456         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24457         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24458         * modules/uniname/uniname: Likewise.
24459         * modules/uninorm/canonical-decomposition: Likewise.
24460         * modules/uninorm/composition: Likewise.
24461         * modules/uninorm/decomposing-form: Likewise.
24462         * modules/uninorm/decomposition: Likewise.
24463         * modules/uninorm/filter: Likewise.
24464         * modules/uninorm/nfc: Likewise.
24465         * modules/uninorm/nfd: Likewise.
24466         * modules/uninorm/nfkc: Likewise.
24467         * modules/uninorm/nfkd: Likewise.
24468         * modules/uninorm/u8-normalize: Likewise.
24469         * modules/uninorm/u8-normcmp: Likewise.
24470         * modules/uninorm/u8-normcoll: Likewise.
24471         * modules/uninorm/u8-normxfrm: Likewise.
24472         * modules/uninorm/u16-normalize: Likewise.
24473         * modules/uninorm/u16-normcmp: Likewise.
24474         * modules/uninorm/u16-normcoll: Likewise.
24475         * modules/uninorm/u16-normxfrm: Likewise.
24476         * modules/uninorm/u32-normalize: Likewise.
24477         * modules/uninorm/u32-normcmp: Likewise.
24478         * modules/uninorm/u32-normcoll: Likewise.
24479         * modules/uninorm/u32-normxfrm: Likewise.
24480         * modules/unistdio/u8-asnprintf: Likewise.
24481         * modules/unistdio/u8-asprintf: Likewise.
24482         * modules/unistdio/u8-snprintf: Likewise.
24483         * modules/unistdio/u8-sprintf: Likewise.
24484         * modules/unistdio/u8-u8-asnprintf: Likewise.
24485         * modules/unistdio/u8-u8-asprintf: Likewise.
24486         * modules/unistdio/u8-u8-snprintf: Likewise.
24487         * modules/unistdio/u8-u8-sprintf: Likewise.
24488         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24489         * modules/unistdio/u8-u8-vasprintf: Likewise.
24490         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24491         * modules/unistdio/u8-u8-vsprintf: Likewise.
24492         * modules/unistdio/u8-vasnprintf: Likewise.
24493         * modules/unistdio/u8-vasprintf: Likewise.
24494         * modules/unistdio/u8-vsnprintf: Likewise.
24495         * modules/unistdio/u8-vsprintf: Likewise.
24496         * modules/unistdio/u16-asnprintf: Likewise.
24497         * modules/unistdio/u16-asprintf: Likewise.
24498         * modules/unistdio/u16-snprintf: Likewise.
24499         * modules/unistdio/u16-sprintf: Likewise.
24500         * modules/unistdio/u16-u16-asnprintf: Likewise.
24501         * modules/unistdio/u16-u16-asprintf: Likewise.
24502         * modules/unistdio/u16-u16-snprintf: Likewise.
24503         * modules/unistdio/u16-u16-sprintf: Likewise.
24504         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24505         * modules/unistdio/u16-u16-vasprintf: Likewise.
24506         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24507         * modules/unistdio/u16-u16-vsprintf: Likewise.
24508         * modules/unistdio/u16-vasnprintf: Likewise.
24509         * modules/unistdio/u16-vasprintf: Likewise.
24510         * modules/unistdio/u16-vsnprintf: Likewise.
24511         * modules/unistdio/u16-vsprintf: Likewise.
24512         * modules/unistdio/u32-asnprintf: Likewise.
24513         * modules/unistdio/u32-asprintf: Likewise.
24514         * modules/unistdio/u32-snprintf: Likewise.
24515         * modules/unistdio/u32-sprintf: Likewise.
24516         * modules/unistdio/u32-u32-asnprintf: Likewise.
24517         * modules/unistdio/u32-u32-asprintf: Likewise.
24518         * modules/unistdio/u32-u32-snprintf: Likewise.
24519         * modules/unistdio/u32-u32-sprintf: Likewise.
24520         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24521         * modules/unistdio/u32-u32-vasprintf: Likewise.
24522         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24523         * modules/unistdio/u32-u32-vsprintf: Likewise.
24524         * modules/unistdio/u32-vasnprintf: Likewise.
24525         * modules/unistdio/u32-vasprintf: Likewise.
24526         * modules/unistdio/u32-vsnprintf: Likewise.
24527         * modules/unistdio/u32-vsprintf: Likewise.
24528         * modules/unistdio/ulc-asnprintf: Likewise.
24529         * modules/unistdio/ulc-asprintf: Likewise.
24530         * modules/unistdio/ulc-fprintf: Likewise.
24531         * modules/unistdio/ulc-snprintf: Likewise.
24532         * modules/unistdio/ulc-sprintf: Likewise.
24533         * modules/unistdio/ulc-vasnprintf: Likewise.
24534         * modules/unistdio/ulc-vasprintf: Likewise.
24535         * modules/unistdio/ulc-vfprintf: Likewise.
24536         * modules/unistdio/ulc-vsnprintf: Likewise.
24537         * modules/unistdio/ulc-vsprintf: Likewise.
24538         * modules/unistr/u8-check: Likewise.
24539         * modules/unistr/u8-chr: Likewise.
24540         * modules/unistr/u8-cmp: Likewise.
24541         * modules/unistr/u8-cmp2: Likewise.
24542         * modules/unistr/u8-cpy: Likewise.
24543         * modules/unistr/u8-cpy-alloc: Likewise.
24544         * modules/unistr/u8-endswith: Likewise.
24545         * modules/unistr/u8-mblen: Likewise.
24546         * modules/unistr/u8-mbsnlen: Likewise.
24547         * modules/unistr/u8-mbtouc: Likewise.
24548         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24549         * modules/unistr/u8-mbtoucr: Likewise.
24550         * modules/unistr/u8-move: Likewise.
24551         * modules/unistr/u8-next: Likewise.
24552         * modules/unistr/u8-prev: Likewise.
24553         * modules/unistr/u8-set: Likewise.
24554         * modules/unistr/u8-startswith: Likewise.
24555         * modules/unistr/u8-stpcpy: Likewise.
24556         * modules/unistr/u8-stpncpy: Likewise.
24557         * modules/unistr/u8-strcat: Likewise.
24558         * modules/unistr/u8-strchr: Likewise.
24559         * modules/unistr/u8-strcmp: Likewise.
24560         * modules/unistr/u8-strcoll: Likewise.
24561         * modules/unistr/u8-strcpy: Likewise.
24562         * modules/unistr/u8-strcspn: Likewise.
24563         * modules/unistr/u8-strdup: Likewise.
24564         * modules/unistr/u8-strlen: Likewise.
24565         * modules/unistr/u8-strmblen: Likewise.
24566         * modules/unistr/u8-strmbtouc: Likewise.
24567         * modules/unistr/u8-strncat: Likewise.
24568         * modules/unistr/u8-strncmp: Likewise.
24569         * modules/unistr/u8-strncpy: Likewise.
24570         * modules/unistr/u8-strnlen: Likewise.
24571         * modules/unistr/u8-strpbrk: Likewise.
24572         * modules/unistr/u8-strrchr: Likewise.
24573         * modules/unistr/u8-strspn: Likewise.
24574         * modules/unistr/u8-strstr: Likewise.
24575         * modules/unistr/u8-strtok: Likewise.
24576         * modules/unistr/u8-to-u16: Likewise.
24577         * modules/unistr/u8-to-u32: Likewise.
24578         * modules/unistr/u8-uctomb: Likewise.
24579         * modules/unistr/u16-check: Likewise.
24580         * modules/unistr/u16-chr: Likewise.
24581         * modules/unistr/u16-cmp: Likewise.
24582         * modules/unistr/u16-cmp2: Likewise.
24583         * modules/unistr/u16-cpy: Likewise.
24584         * modules/unistr/u16-cpy-alloc: Likewise.
24585         * modules/unistr/u16-endswith: Likewise.
24586         * modules/unistr/u16-mblen: Likewise.
24587         * modules/unistr/u16-mbsnlen: Likewise.
24588         * modules/unistr/u16-mbtouc: Likewise.
24589         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24590         * modules/unistr/u16-mbtoucr: Likewise.
24591         * modules/unistr/u16-move: Likewise.
24592         * modules/unistr/u16-next: Likewise.
24593         * modules/unistr/u16-prev: Likewise.
24594         * modules/unistr/u16-set: Likewise.
24595         * modules/unistr/u16-startswith: Likewise.
24596         * modules/unistr/u16-stpcpy: Likewise.
24597         * modules/unistr/u16-stpncpy: Likewise.
24598         * modules/unistr/u16-strcat: Likewise.
24599         * modules/unistr/u16-strchr: Likewise.
24600         * modules/unistr/u16-strcmp: Likewise.
24601         * modules/unistr/u16-strcoll: Likewise.
24602         * modules/unistr/u16-strcpy: Likewise.
24603         * modules/unistr/u16-strcspn: Likewise.
24604         * modules/unistr/u16-strdup: Likewise.
24605         * modules/unistr/u16-strlen: Likewise.
24606         * modules/unistr/u16-strmblen: Likewise.
24607         * modules/unistr/u16-strmbtouc: Likewise.
24608         * modules/unistr/u16-strncat: Likewise.
24609         * modules/unistr/u16-strncmp: Likewise.
24610         * modules/unistr/u16-strncpy: Likewise.
24611         * modules/unistr/u16-strnlen: Likewise.
24612         * modules/unistr/u16-strpbrk: Likewise.
24613         * modules/unistr/u16-strrchr: Likewise.
24614         * modules/unistr/u16-strspn: Likewise.
24615         * modules/unistr/u16-strstr: Likewise.
24616         * modules/unistr/u16-strtok: Likewise.
24617         * modules/unistr/u16-to-u32: Likewise.
24618         * modules/unistr/u16-to-u8: Likewise.
24619         * modules/unistr/u16-uctomb: Likewise.
24620         * modules/unistr/u32-check: Likewise.
24621         * modules/unistr/u32-chr: Likewise.
24622         * modules/unistr/u32-cmp: Likewise.
24623         * modules/unistr/u32-cmp2: Likewise.
24624         * modules/unistr/u32-cpy: Likewise.
24625         * modules/unistr/u32-cpy-alloc: Likewise.
24626         * modules/unistr/u32-endswith: Likewise.
24627         * modules/unistr/u32-mblen: Likewise.
24628         * modules/unistr/u32-mbsnlen: Likewise.
24629         * modules/unistr/u32-mbtouc: Likewise.
24630         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24631         * modules/unistr/u32-mbtoucr: Likewise.
24632         * modules/unistr/u32-move: Likewise.
24633         * modules/unistr/u32-next: Likewise.
24634         * modules/unistr/u32-prev: Likewise.
24635         * modules/unistr/u32-set: Likewise.
24636         * modules/unistr/u32-startswith: Likewise.
24637         * modules/unistr/u32-stpcpy: Likewise.
24638         * modules/unistr/u32-stpncpy: Likewise.
24639         * modules/unistr/u32-strcat: Likewise.
24640         * modules/unistr/u32-strchr: Likewise.
24641         * modules/unistr/u32-strcmp: Likewise.
24642         * modules/unistr/u32-strcoll: Likewise.
24643         * modules/unistr/u32-strcpy: Likewise.
24644         * modules/unistr/u32-strcspn: Likewise.
24645         * modules/unistr/u32-strdup: Likewise.
24646         * modules/unistr/u32-strlen: Likewise.
24647         * modules/unistr/u32-strmblen: Likewise.
24648         * modules/unistr/u32-strmbtouc: Likewise.
24649         * modules/unistr/u32-strncat: Likewise.
24650         * modules/unistr/u32-strncmp: Likewise.
24651         * modules/unistr/u32-strncpy: Likewise.
24652         * modules/unistr/u32-strnlen: Likewise.
24653         * modules/unistr/u32-strpbrk: Likewise.
24654         * modules/unistr/u32-strrchr: Likewise.
24655         * modules/unistr/u32-strspn: Likewise.
24656         * modules/unistr/u32-strstr: Likewise.
24657         * modules/unistr/u32-strtok: Likewise.
24658         * modules/unistr/u32-to-u16: Likewise.
24659         * modules/unistr/u32-to-u8: Likewise.
24660         * modules/unistr/u32-uctomb: Likewise.
24661         * modules/uniwbrk/u8-wordbreaks: Likewise.
24662         * modules/uniwbrk/u16-wordbreaks: Likewise.
24663         * modules/uniwbrk/u32-wordbreaks: Likewise.
24664         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24665         * modules/uniwbrk/wordbreak-property: Likewise.
24666         * modules/uniwidth/u8-strwidth: Likewise.
24667         * modules/uniwidth/u8-width: Likewise.
24668         * modules/uniwidth/u16-strwidth: Likewise.
24669         * modules/uniwidth/u16-width: Likewise.
24670         * modules/uniwidth/u32-strwidth: Likewise.
24671         * modules/uniwidth/u32-width: Likewise.
24672         * modules/uniwidth/width: Likewise.
24673         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24674         with $(LIBUNISTRING).
24675         * modules/unicase/ignorable-tests: Likewise.
24676         * modules/unicase/locale-language-tests: Likewise.
24677         * modules/unicase/tolower-tests: Likewise.
24678         * modules/unicase/totitle-tests: Likewise.
24679         * modules/unicase/toupper-tests: Likewise.
24680         * modules/unicase/u8-casecmp-tests: Likewise.
24681         * modules/unicase/u8-casecoll-tests: Likewise.
24682         * modules/unicase/u8-casefold-tests: Likewise.
24683         * modules/unicase/u8-is-cased-tests: Likewise.
24684         * modules/unicase/u8-is-casefolded-tests: Likewise.
24685         * modules/unicase/u8-is-lowercase-tests: Likewise.
24686         * modules/unicase/u8-is-titlecase-tests: Likewise.
24687         * modules/unicase/u8-is-uppercase-tests: Likewise.
24688         * modules/unicase/u8-tolower-tests: Likewise.
24689         * modules/unicase/u8-totitle-tests: Likewise.
24690         * modules/unicase/u8-toupper-tests: Likewise.
24691         * modules/unicase/u16-casecmp-tests: Likewise.
24692         * modules/unicase/u16-casecoll-tests: Likewise.
24693         * modules/unicase/u16-casefold-tests: Likewise.
24694         * modules/unicase/u16-is-cased-tests: Likewise.
24695         * modules/unicase/u16-is-casefolded-tests: Likewise.
24696         * modules/unicase/u16-is-lowercase-tests: Likewise.
24697         * modules/unicase/u16-is-titlecase-tests: Likewise.
24698         * modules/unicase/u16-is-uppercase-tests: Likewise.
24699         * modules/unicase/u16-tolower-tests: Likewise.
24700         * modules/unicase/u16-totitle-tests: Likewise.
24701         * modules/unicase/u16-toupper-tests: Likewise.
24702         * modules/unicase/u32-casecmp-tests: Likewise.
24703         * modules/unicase/u32-casecoll-tests: Likewise.
24704         * modules/unicase/u32-casefold-tests: Likewise.
24705         * modules/unicase/u32-is-cased-tests: Likewise.
24706         * modules/unicase/u32-is-casefolded-tests: Likewise.
24707         * modules/unicase/u32-is-lowercase-tests: Likewise.
24708         * modules/unicase/u32-is-titlecase-tests: Likewise.
24709         * modules/unicase/u32-is-uppercase-tests: Likewise.
24710         * modules/unicase/u32-tolower-tests: Likewise.
24711         * modules/unicase/u32-totitle-tests: Likewise.
24712         * modules/unicase/u32-toupper-tests: Likewise.
24713         * modules/unicase/ulc-casecmp-tests: Likewise.
24714         * modules/unicase/ulc-casecoll-tests: Likewise.
24715         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24716         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24717         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24718         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24719         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24720         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24721         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24722         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24723         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24724         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24725         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24726         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24727         * modules/unictype/bidicategory-byname-tests: Likewise.
24728         * modules/unictype/bidicategory-name-tests: Likewise.
24729         * modules/unictype/bidicategory-of-tests: Likewise.
24730         * modules/unictype/bidicategory-test-tests: Likewise.
24731         * modules/unictype/block-list-tests: Likewise.
24732         * modules/unictype/block-of-tests: Likewise.
24733         * modules/unictype/block-test-tests: Likewise.
24734         * modules/unictype/category-C-tests: Likewise.
24735         * modules/unictype/category-Cc-tests: Likewise.
24736         * modules/unictype/category-Cf-tests: Likewise.
24737         * modules/unictype/category-Cn-tests: Likewise.
24738         * modules/unictype/category-Co-tests: Likewise.
24739         * modules/unictype/category-Cs-tests: Likewise.
24740         * modules/unictype/category-L-tests: Likewise.
24741         * modules/unictype/category-Ll-tests: Likewise.
24742         * modules/unictype/category-Lm-tests: Likewise.
24743         * modules/unictype/category-Lo-tests: Likewise.
24744         * modules/unictype/category-Lt-tests: Likewise.
24745         * modules/unictype/category-Lu-tests: Likewise.
24746         * modules/unictype/category-M-tests: Likewise.
24747         * modules/unictype/category-Mc-tests: Likewise.
24748         * modules/unictype/category-Me-tests: Likewise.
24749         * modules/unictype/category-Mn-tests: Likewise.
24750         * modules/unictype/category-N-tests: Likewise.
24751         * modules/unictype/category-Nd-tests: Likewise.
24752         * modules/unictype/category-Nl-tests: Likewise.
24753         * modules/unictype/category-No-tests: Likewise.
24754         * modules/unictype/category-P-tests: Likewise.
24755         * modules/unictype/category-Pc-tests: Likewise.
24756         * modules/unictype/category-Pd-tests: Likewise.
24757         * modules/unictype/category-Pe-tests: Likewise.
24758         * modules/unictype/category-Pf-tests: Likewise.
24759         * modules/unictype/category-Pi-tests: Likewise.
24760         * modules/unictype/category-Po-tests: Likewise.
24761         * modules/unictype/category-Ps-tests: Likewise.
24762         * modules/unictype/category-S-tests: Likewise.
24763         * modules/unictype/category-Sc-tests: Likewise.
24764         * modules/unictype/category-Sk-tests: Likewise.
24765         * modules/unictype/category-Sm-tests: Likewise.
24766         * modules/unictype/category-So-tests: Likewise.
24767         * modules/unictype/category-Z-tests: Likewise.
24768         * modules/unictype/category-Zl-tests: Likewise.
24769         * modules/unictype/category-Zp-tests: Likewise.
24770         * modules/unictype/category-Zs-tests: Likewise.
24771         * modules/unictype/category-and-not-tests: Likewise.
24772         * modules/unictype/category-and-tests: Likewise.
24773         * modules/unictype/category-byname-tests: Likewise.
24774         * modules/unictype/category-name-tests: Likewise.
24775         * modules/unictype/category-none-tests: Likewise.
24776         * modules/unictype/category-of-tests: Likewise.
24777         * modules/unictype/category-or-tests: Likewise.
24778         * modules/unictype/category-test-withtable-tests: Likewise.
24779         * modules/unictype/combining-class-tests: Likewise.
24780         * modules/unictype/ctype-alnum-tests: Likewise.
24781         * modules/unictype/ctype-alpha-tests: Likewise.
24782         * modules/unictype/ctype-blank-tests: Likewise.
24783         * modules/unictype/ctype-cntrl-tests: Likewise.
24784         * modules/unictype/ctype-digit-tests: Likewise.
24785         * modules/unictype/ctype-graph-tests: Likewise.
24786         * modules/unictype/ctype-lower-tests: Likewise.
24787         * modules/unictype/ctype-print-tests: Likewise.
24788         * modules/unictype/ctype-punct-tests: Likewise.
24789         * modules/unictype/ctype-space-tests: Likewise.
24790         * modules/unictype/ctype-upper-tests: Likewise.
24791         * modules/unictype/ctype-xdigit-tests: Likewise.
24792         * modules/unictype/decimal-digit-tests: Likewise.
24793         * modules/unictype/digit-tests: Likewise.
24794         * modules/unictype/mirror-tests: Likewise.
24795         * modules/unictype/numeric-tests: Likewise.
24796         * modules/unictype/property-alphabetic-tests: Likewise.
24797         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24798         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24799         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24800         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24801         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24802         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24803         * modules/unictype/property-bidi-control-tests: Likewise.
24804         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24805         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24806         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24807         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24808         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24809         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24810         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24811         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24812         * modules/unictype/property-bidi-pdf-tests: Likewise.
24813         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24814         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24815         * modules/unictype/property-byname-tests: Likewise.
24816         * modules/unictype/property-combining-tests: Likewise.
24817         * modules/unictype/property-composite-tests: Likewise.
24818         * modules/unictype/property-currency-symbol-tests: Likewise.
24819         * modules/unictype/property-dash-tests: Likewise.
24820         * modules/unictype/property-decimal-digit-tests: Likewise.
24821         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24822         * modules/unictype/property-deprecated-tests: Likewise.
24823         * modules/unictype/property-diacritic-tests: Likewise.
24824         * modules/unictype/property-extender-tests: Likewise.
24825         * modules/unictype/property-format-control-tests: Likewise.
24826         * modules/unictype/property-grapheme-base-tests: Likewise.
24827         * modules/unictype/property-grapheme-extend-tests: Likewise.
24828         * modules/unictype/property-grapheme-link-tests: Likewise.
24829         * modules/unictype/property-hex-digit-tests: Likewise.
24830         * modules/unictype/property-hyphen-tests: Likewise.
24831         * modules/unictype/property-id-continue-tests: Likewise.
24832         * modules/unictype/property-id-start-tests: Likewise.
24833         * modules/unictype/property-ideographic-tests: Likewise.
24834         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24835         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24836         * modules/unictype/property-ignorable-control-tests: Likewise.
24837         * modules/unictype/property-iso-control-tests: Likewise.
24838         * modules/unictype/property-join-control-tests: Likewise.
24839         * modules/unictype/property-left-of-pair-tests: Likewise.
24840         * modules/unictype/property-line-separator-tests: Likewise.
24841         * modules/unictype/property-logical-order-exception-tests: Likewise.
24842         * modules/unictype/property-lowercase-tests: Likewise.
24843         * modules/unictype/property-math-tests: Likewise.
24844         * modules/unictype/property-non-break-tests: Likewise.
24845         * modules/unictype/property-not-a-character-tests: Likewise.
24846         * modules/unictype/property-numeric-tests: Likewise.
24847         * modules/unictype/property-other-alphabetic-tests: Likewise.
24848         * modules/unictype/property-other-default-ignorable-code-point-tests:
24849         Likewise.
24850         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24851         * modules/unictype/property-other-id-continue-tests: Likewise.
24852         * modules/unictype/property-other-id-start-tests: Likewise.
24853         * modules/unictype/property-other-lowercase-tests: Likewise.
24854         * modules/unictype/property-other-math-tests: Likewise.
24855         * modules/unictype/property-other-uppercase-tests: Likewise.
24856         * modules/unictype/property-paired-punctuation-tests: Likewise.
24857         * modules/unictype/property-paragraph-separator-tests: Likewise.
24858         * modules/unictype/property-pattern-syntax-tests: Likewise.
24859         * modules/unictype/property-pattern-white-space-tests: Likewise.
24860         * modules/unictype/property-private-use-tests: Likewise.
24861         * modules/unictype/property-punctuation-tests: Likewise.
24862         * modules/unictype/property-quotation-mark-tests: Likewise.
24863         * modules/unictype/property-radical-tests: Likewise.
24864         * modules/unictype/property-sentence-terminal-tests: Likewise.
24865         * modules/unictype/property-soft-dotted-tests: Likewise.
24866         * modules/unictype/property-space-tests: Likewise.
24867         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24868         * modules/unictype/property-test-tests: Likewise.
24869         * modules/unictype/property-titlecase-tests: Likewise.
24870         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24871         * modules/unictype/property-unified-ideograph-tests: Likewise.
24872         * modules/unictype/property-uppercase-tests: Likewise.
24873         * modules/unictype/property-variation-selector-tests: Likewise.
24874         * modules/unictype/property-white-space-tests: Likewise.
24875         * modules/unictype/property-xid-continue-tests: Likewise.
24876         * modules/unictype/property-xid-start-tests: Likewise.
24877         * modules/unictype/property-zero-width-tests: Likewise.
24878         * modules/unictype/scripts-tests: Likewise.
24879         * modules/unictype/syntax-c-ident-tests: Likewise.
24880         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24881         * modules/unictype/syntax-java-ident-tests: Likewise.
24882         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24883         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24884         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24885         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24886         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24887         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24888         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24889         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24890         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24891         * modules/uniname/uniname-tests: Likewise.
24892         * modules/uninorm/canonical-decomposition-tests: Likewise.
24893         * modules/uninorm/compat-decomposition-tests: Likewise.
24894         * modules/uninorm/composition-tests: Likewise.
24895         * modules/uninorm/decomposing-form-tests: Likewise.
24896         * modules/uninorm/decomposition-tests: Likewise.
24897         * modules/uninorm/filter-tests: Likewise.
24898         * modules/uninorm/nfc-tests: Likewise.
24899         * modules/uninorm/nfd-tests: Likewise.
24900         * modules/uninorm/nfkc-tests: Likewise.
24901         * modules/uninorm/nfkd-tests: Likewise.
24902         * modules/uninorm/u8-normcmp-tests: Likewise.
24903         * modules/uninorm/u8-normcoll-tests: Likewise.
24904         * modules/uninorm/u16-normcmp-tests: Likewise.
24905         * modules/uninorm/u16-normcoll-tests: Likewise.
24906         * modules/uninorm/u32-normcmp-tests: Likewise.
24907         * modules/uninorm/u32-normcoll-tests: Likewise.
24908         * modules/unistdio/u8-asnprintf-tests: Likewise.
24909         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24910         * modules/unistdio/u8-vasprintf-tests: Likewise.
24911         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24912         * modules/unistdio/u8-vsprintf-tests: Likewise.
24913         * modules/unistdio/u16-asnprintf-tests: Likewise.
24914         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24915         * modules/unistdio/u16-vasprintf-tests: Likewise.
24916         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24917         * modules/unistdio/u16-vsprintf-tests: Likewise.
24918         * modules/unistdio/u32-asnprintf-tests: Likewise.
24919         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24920         * modules/unistdio/u32-vasprintf-tests: Likewise.
24921         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24922         * modules/unistdio/u32-vsprintf-tests: Likewise.
24923         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24924         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24925         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24926         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24927         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24928         * modules/unistr/u8-check-tests: Likewise.
24929         * modules/unistr/u8-chr-tests: Likewise.
24930         * modules/unistr/u8-cmp-tests: Likewise.
24931         * modules/unistr/u8-cmp2-tests: Likewise.
24932         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24933         * modules/unistr/u8-cpy-tests: Likewise.
24934         * modules/unistr/u8-mblen-tests: Likewise.
24935         * modules/unistr/u8-mbsnlen-tests: Likewise.
24936         * modules/unistr/u8-mbtouc-tests: Likewise.
24937         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24938         * modules/unistr/u8-mbtoucr-tests: Likewise.
24939         * modules/unistr/u8-move-tests: Likewise.
24940         * modules/unistr/u8-next-tests: Likewise.
24941         * modules/unistr/u8-prev-tests: Likewise.
24942         * modules/unistr/u8-set-tests: Likewise.
24943         * modules/unistr/u8-stpcpy-tests: Likewise.
24944         * modules/unistr/u8-stpncpy-tests: Likewise.
24945         * modules/unistr/u8-strcat-tests: Likewise.
24946         * modules/unistr/u8-strcmp-tests: Likewise.
24947         * modules/unistr/u8-strcoll-tests: Likewise.
24948         * modules/unistr/u8-strcpy-tests: Likewise.
24949         * modules/unistr/u8-strdup-tests: Likewise.
24950         * modules/unistr/u8-strlen-tests: Likewise.
24951         * modules/unistr/u8-strmblen-tests: Likewise.
24952         * modules/unistr/u8-strmbtouc-tests: Likewise.
24953         * modules/unistr/u8-strncat-tests: Likewise.
24954         * modules/unistr/u8-strncmp-tests: Likewise.
24955         * modules/unistr/u8-strncpy-tests: Likewise.
24956         * modules/unistr/u8-strnlen-tests: Likewise.
24957         * modules/unistr/u8-to-u16-tests: Likewise.
24958         * modules/unistr/u8-to-u32-tests: Likewise.
24959         * modules/unistr/u8-uctomb-tests: Likewise.
24960         * modules/unistr/u16-check-tests: Likewise.
24961         * modules/unistr/u16-chr-tests: Likewise.
24962         * modules/unistr/u16-cmp-tests: Likewise.
24963         * modules/unistr/u16-cmp2-tests: Likewise.
24964         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24965         * modules/unistr/u16-cpy-tests: Likewise.
24966         * modules/unistr/u16-mblen-tests: Likewise.
24967         * modules/unistr/u16-mbsnlen-tests: Likewise.
24968         * modules/unistr/u16-mbtouc-tests: Likewise.
24969         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24970         * modules/unistr/u16-mbtoucr-tests: Likewise.
24971         * modules/unistr/u16-move-tests: Likewise.
24972         * modules/unistr/u16-next-tests: Likewise.
24973         * modules/unistr/u16-prev-tests: Likewise.
24974         * modules/unistr/u16-set-tests: Likewise.
24975         * modules/unistr/u16-stpcpy-tests: Likewise.
24976         * modules/unistr/u16-stpncpy-tests: Likewise.
24977         * modules/unistr/u16-strcat-tests: Likewise.
24978         * modules/unistr/u16-strcmp-tests: Likewise.
24979         * modules/unistr/u16-strcoll-tests: Likewise.
24980         * modules/unistr/u16-strcpy-tests: Likewise.
24981         * modules/unistr/u16-strdup-tests: Likewise.
24982         * modules/unistr/u16-strlen-tests: Likewise.
24983         * modules/unistr/u16-strmblen-tests: Likewise.
24984         * modules/unistr/u16-strmbtouc-tests: Likewise.
24985         * modules/unistr/u16-strncat-tests: Likewise.
24986         * modules/unistr/u16-strncmp-tests: Likewise.
24987         * modules/unistr/u16-strncpy-tests: Likewise.
24988         * modules/unistr/u16-strnlen-tests: Likewise.
24989         * modules/unistr/u16-to-u32-tests: Likewise.
24990         * modules/unistr/u16-to-u8-tests: Likewise.
24991         * modules/unistr/u16-uctomb-tests: Likewise.
24992         * modules/unistr/u32-check-tests: Likewise.
24993         * modules/unistr/u32-chr-tests: Likewise.
24994         * modules/unistr/u32-cmp-tests: Likewise.
24995         * modules/unistr/u32-cmp2-tests: Likewise.
24996         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24997         * modules/unistr/u32-cpy-tests: Likewise.
24998         * modules/unistr/u32-mblen-tests: Likewise.
24999         * modules/unistr/u32-mbsnlen-tests: Likewise.
25000         * modules/unistr/u32-mbtouc-tests: Likewise.
25001         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25002         * modules/unistr/u32-mbtoucr-tests: Likewise.
25003         * modules/unistr/u32-move-tests: Likewise.
25004         * modules/unistr/u32-next-tests: Likewise.
25005         * modules/unistr/u32-prev-tests: Likewise.
25006         * modules/unistr/u32-set-tests: Likewise.
25007         * modules/unistr/u32-stpcpy-tests: Likewise.
25008         * modules/unistr/u32-stpncpy-tests: Likewise.
25009         * modules/unistr/u32-strcat-tests: Likewise.
25010         * modules/unistr/u32-strcmp-tests: Likewise.
25011         * modules/unistr/u32-strcoll-tests: Likewise.
25012         * modules/unistr/u32-strcpy-tests: Likewise.
25013         * modules/unistr/u32-strdup-tests: Likewise.
25014         * modules/unistr/u32-strlen-tests: Likewise.
25015         * modules/unistr/u32-strmblen-tests: Likewise.
25016         * modules/unistr/u32-strmbtouc-tests: Likewise.
25017         * modules/unistr/u32-strncat-tests: Likewise.
25018         * modules/unistr/u32-strncmp-tests: Likewise.
25019         * modules/unistr/u32-strncpy-tests: Likewise.
25020         * modules/unistr/u32-strnlen-tests: Likewise.
25021         * modules/unistr/u32-to-u16-tests: Likewise.
25022         * modules/unistr/u32-to-u8-tests: Likewise.
25023         * modules/unistr/u32-uctomb-tests: Likewise.
25024         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25025         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25026         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25027         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25028         * modules/uniwidth/u8-strwidth-tests: Likewise.
25029         * modules/uniwidth/u8-width-tests: Likewise.
25030         * modules/uniwidth/u16-strwidth-tests: Likewise.
25031         * modules/uniwidth/u16-width-tests: Likewise.
25032         * modules/uniwidth/u32-strwidth-tests: Likewise.
25033         * modules/uniwidth/u32-width-tests: Likewise.
25034         * modules/uniwidth/width-tests: Likewise.
25035
25036 2010-05-18  Richard Jones  <rjones@redhat.com>
25037
25038         doc: users.txt: list hivex
25039         * users.txt: Add hivex.
25040
25041 2010-05-18  Richard Jones  <rjones@redhat.com>
25042
25043         doc: users.txt: list febootstrap
25044         * users.txt: Add febootstrap.
25045
25046 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25047
25048         bootstrap: fix an error when gnulib is not used as a git submodule
25049         * build-aux/bootstrap (gnulib_path): If its length is zero then
25050         assign "gnulib" to it.
25051         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25052
25053 2010-05-16  Bruno Haible  <bruno@clisp.org>
25054
25055         Avoid autoconf warnings about AM_ICONV.
25056         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25057         2.64.
25058
25059 2010-05-16  Bruno Haible  <bruno@clisp.org>
25060
25061         absolute-header: Make the macro usable in more situations.
25062         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25063         from gl_ABSOLUTE_HEADER.
25064         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25065
25066 2010-05-16  James Youngman  <jay@gnu.org>
25067
25068         doc: update users.txt
25069         * users.txt: Add CSSC.
25070
25071 2010-05-16  Jim Meyering  <meyering@redhat.com>
25072
25073         init.sh: fix an error in the previous change; add more comments
25074         * tests/init.sh: Compare exit code in loop against 9, not 2.
25075         Patch by Bruno Haible.
25076         Make the two tests more similar by adding an empty "then" clause.
25077         Add comments.
25078
25079         init.sh: avoid unnecessary shell re-exec
25080         * tests/init.sh: Improve the re-exec-required check to first test the
25081         current shell.  If it passes the test, do not search for a shell that
25082         does pass, and do not re-exec.  This test is particularly contorted to
25083         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25084         of $(...) evokes a syntax error and causes immediate shell exit with
25085         status 2.  Bruno Haible reported that the re-exec made it impossible
25086         to single-step through any init.sh-using script.
25087
25088 2010-05-16  Bruno Haible  <bruno@clisp.org>
25089
25090         Fix collision between gnulib's and libintl's printf replacements.
25091         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25092         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25093         (printf): When using GNU C, map the __printf__ function to rpl_printf
25094         via __asm__. When not using GNU C, define rpl_printf instead of
25095         __printf__.
25096         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25097         commit.
25098         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25099         commit.
25100         * m4/asm-underscore.m4: New file.
25101         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25102         * modules/stdio (Files): Add m4/asm-underscore.m4.
25103         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25104         Reported by Ben Pfaff.
25105
25106 2010-05-16  Bruno Haible  <bruno@clisp.org>
25107
25108         verify: Avoid skipping the test on openSUSE 11.0.
25109         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25110
25111 2010-05-13  Bruno Haible  <bruno@clisp.org>
25112
25113         Avoid useless warnings from G++.
25114         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25115         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25116         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25117
25118 2010-05-11  Jim Meyering  <meyering@redhat.com>
25119
25120         maint.mk: tweak preceding change
25121         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25122         regexps tighter by anchoring at EOL, and make the new group "shy"
25123         for slightly decreased overhead.
25124
25125 2010-05-11  Eric Blake  <eblake@redhat.com>
25126
25127         maint.mk: gnulib doesn't guarantee NSIG
25128         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25129
25130 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25131
25132         test-pwrite.c: Remove unused variable declaration.
25133         * tests/test-pwrite.c (main): Remove read_buf declaration.
25134
25135         Remove useless test-pwrite.sh file.
25136         * tests/test-pwrite.sh: Delete file.
25137         * modules/pwrite-tests: Remove references.
25138         Reported by Bruno Haible.
25139
25140 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25141
25142         init.sh: fix a typo
25143         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25144
25145 2010-05-10  Jim Meyering  <meyering@redhat.com>
25146
25147         maint.mk: avoid using a temporary file in the always-defined-macros check
25148         * top/maint.mk (.re-defmac): Remove rule.
25149         (gl_trap_): Remove definition.
25150         (sc_prohibit_always-defined_macros): Rewrite not to create and
25151         depend on a temporary file.  Instead, depend on GNU grep's ability
25152         to read a list of regular expressions from stdin when given "-f -".
25153
25154 2010-05-09  Bruno Haible  <bruno@clisp.org>
25155
25156         Update to GNU gettext 0.18, part 1.
25157         * m4/gettext.m4: Update to GNU gettext 0.18.
25158         * m4/intl.m4: Likewise.
25159         * m4/po.m4: Likewise.
25160         * modules/gettext (Files): Add m4/fcntl-o.m4.
25161         (configure.ac): Require gettext infrastructure from version 0.18.
25162
25163 2010-05-09  Jim Meyering  <meyering@redhat.com>
25164
25165         init.sh: enable MALLOC_PERTURB_
25166         * tests/init.sh: Enable glibc's malloc-perturbing option.
25167
25168         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25169         With my recent change in init.sh from the two-line form:
25170             -#   : ${srcdir=.}
25171             -#   . "$srcdir/init.sh"; path_prepend_ .
25172             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25173         I noticed that using the one-line form would cause this test
25174         to fail with a false-positive, or to stop working altogether,
25175         depending on whether help-version changed or all the tests did.
25176         * top/maint.mk (_hv_regex): Remove this definition.
25177         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25178         (_hv_regex_strong): Use a stronger regex to check for conformance.
25179         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25180         Give a separate diagnostic for lack of conforming use.
25181
25182         maint.mk: prohibit definition of symbols defined by gnulib
25183         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25184         definition of symbols defined by gnulib.
25185
25186 2010-05-09  Bruno Haible  <bruno@clisp.org>
25187
25188         acl: Avoid test failure on Cygwin-hosted mingw.
25189         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25190
25191 2010-05-09  Bruno Haible  <bruno@clisp.org>
25192
25193         error: Use system's fcntl function.
25194         * lib/error.c (fcntl): Undefine.
25195
25196 2010-05-09  Jim Meyering  <meyering@redhat.com>
25197
25198         verify: adjust formatting to be more consistent
25199         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25200         argument-list '('s, and after one comma.
25201
25202 2010-05-09  Bruno Haible  <bruno@clisp.org>
25203
25204         error: More reliable output on mingw.
25205         * lib/error.c: Include <windows.h>.
25206         (is_open): New function.
25207         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25208         defined.
25209
25210 2010-05-09  Bruno Haible  <bruno@clisp.org>
25211
25212         vasnprintf: Fix syntax errors in libintl build on mingw.
25213         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25214         pad_ourselves and prec_ourselves after use.
25215
25216 2010-05-08  Bruno Haible  <bruno@clisp.org>
25217
25218         * lib/config.charset: Update comments for Cygwin 1.7.
25219         * lib/localcharset.c: Likewise.
25220
25221 2010-05-07  Jim Meyering  <meyering@redhat.com>
25222
25223         init.sh: improve comments
25224         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25225         . "${srcdir=.}/init.sh"; path_prepend_ .
25226         Add a note about path_prepend_ and the alternative of using
25227         TESTS_ENVIRONMENT.
25228
25229 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25230
25231         exclude: Unescape hashed patterns in wildcard mode.
25232         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25233         to the hash list.
25234         * tests/test-exclude8.sh: New test case.
25235         * modules/exclude-tests: Add new test.
25236
25237 2010-05-05  Eric Blake  <eblake@redhat.com>
25238
25239         verify: automate tests
25240         * modules/verify-tests: New module.
25241         * tests/test-verify.sh: New file.
25242         * tests/test-verify.c: Guard each negative test with a unique id.
25243         Also avoid warning about unused left hand of comma expressions.
25244
25245 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25246
25247         Further improvements to verify.h, suggested by Eric Blake.
25248         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
25249         the GL_* versions, to avoid collision with OpenGL.
25250         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
25251         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
25252         than testing merely whether it's defined.
25253
25254         Modify verify.h to pacify gcc -Wredundant_decls.
25255         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
25256         These use the prefix "GL_" since they're likely to be useful elsewhere.
25257         We may need to break them out into a different .h file.
25258         (__COUNTER__): Define to 0 if the compiler doesn't support it.
25259         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
25260         of verify_function__.
25261
25262 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25263
25264         Tests for module pwrite.
25265         * modules/pwrite-tests: New file.
25266         * tests/test-pwrite.sh: New file.
25267         * tests/test-pwrite.c: New file.
25268
25269         New module pwrite.
25270         * lib/unistd.in.h (pwrite): New declaration.
25271         * lib/pwrite.c: New file, from glibc with modifications.
25272         * m4/pwrite.m4: New file.
25273         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
25274         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
25275         REPLACE_PWRITE.
25276         * modules/pwrite: New file.
25277         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
25278         REPLACE_PWRITE.
25279         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
25280         * doc/posix-functions/pwrite.texi: Mention the new module.
25281
25282 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25283
25284         pread: Update documentation.
25285         * doc/posix-functions/pread.texi: Mention the 'pread' module.
25286
25287 2010-05-04  Eric Blake  <eblake@redhat.com>
25288
25289         docs: update cygwin progress
25290         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
25291         this bug.
25292         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
25293         Added in cygwin 1.7.2.
25294         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
25295         Likewise.
25296         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
25297         Likewise.
25298         * doc/glibc-functions/dup3.texi (dup3): Likewise.
25299         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
25300         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25301         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
25302         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
25303         Mention nproc module.
25304         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
25305         bug in cygwin 1.7.5 addition.
25306         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
25307         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
25308         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
25309         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
25310         1.7.5.
25311         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
25312         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
25313         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
25314         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
25315         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
25316         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
25317         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
25318         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
25319         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
25320         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
25321         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
25322         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
25323         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
25324         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
25325         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
25326         Likewise.
25327         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
25328         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
25329         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
25330         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
25331         Likewise.
25332         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
25333         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
25334         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
25335         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
25336         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
25337         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
25338         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
25339         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
25340         Likewise.
25341         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
25342         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
25343         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
25344         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
25345         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
25346         Likewise.
25347         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
25348         Likewise.
25349         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
25350         Likewise.
25351         * doc/glibc-functions/xdrrec_endofrecord.texi
25352         (xdrrec_endofrecord): Likewise.
25353         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
25354         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
25355         Likewise.
25356         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
25357         Likewise.
25358
25359 2010-05-04  Jim Meyering  <meyering@redhat.com>
25360
25361         gendocs.sh: make its "-s FILE" option more useful
25362         * build-aux/gendocs.sh: When honoring the -s FILE option, update
25363         $PACKAGE to reflect the probably-different basename of "FILE".
25364
25365 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25366
25367         bootstrap: don't ignore download_po_files failure
25368         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25369         failure.
25370
25371 2010-05-03  Jim Meyering  <meyering@redhat.com>
25372
25373         maint.mk: allow to pass options to gendocs.sh
25374         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25375         (gendocs_options_): New overridable variable.
25376
25377         gnu-web-doc-update: don't ignore configure or build failure
25378         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25379
25380         announce-gen: backslash-escape '@'s in --help output
25381         * build-aux/announce-gen: Fix syntax errors.
25382
25383         maint.mk, announce-gen: allow project-specific announcement mail headers
25384         * top/maint.mk (translation_project_): Define default.
25385         (announcement_Cc_, announcement_mail_headers_): Likewise.
25386         (announcement): Invoke announce-gen with new --mail-headers option.
25387         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
25388
25389         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25390         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25391         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25392         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25393         line in the "err2" output file when running "make check" in verbose
25394         mode (i.e., with set -x enabled).
25395
25396 2010-05-03  Bruno Haible  <bruno@clisp.org>
25397
25398         wctob: Fix for weird platforms.
25399         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25400         argument value.
25401
25402 2010-05-03  Jim Meyering  <meyering@redhat.com>
25403
25404         maint.mk: prohibit unwarranted use of <strings.h>
25405         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25406         strings.h in a file that does not also use strcasecmp, strncasecmp,
25407         ffs or ffsll.
25408
25409         maint.mk: remove obsolete comments
25410         * top/maint.mk: Remove stale, commented-out rules.
25411
25412 2010-05-02  Bruno Haible  <bruno@clisp.org>
25413
25414         wcwidth: Declare also when it's aliased.
25415         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25416         macro.
25417
25418 2010-05-02  Bruno Haible  <bruno@clisp.org>
25419
25420         Fix regression from 2010-04-25.
25421         * gnulib-tool (func_modules_transitive_closure): Check the status of
25422         all modules, not only of the tests that are of the form foo-tests where
25423         foo is a module.
25424
25425 2010-05-02  Bruno Haible  <bruno@clisp.org>
25426
25427         wctob: Work around nasty Cygwin 1.7.2 bug.
25428         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25429         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25430
25431 2010-05-01  Bruno Haible  <bruno@clisp.org>
25432
25433         fpurge: Sharper test.
25434         * tests/test-fpurge.c (main): Add one more ftell check.
25435         * modules/fpurge-tests (Depends-on): Add ftell.
25436         Suggested by Eric Blake.
25437
25438 2010-05-01  Bruno Haible  <bruno@clisp.org>
25439
25440         ftello: Another test.
25441         * tests/test-ftello3.c: New file.
25442         * modules/ftello-tests (Files): Add it.
25443         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25444         MOSTLYCLEANFILES.
25445
25446         ftell: Another test.
25447         * tests/test-ftell3.c: New file.
25448         * modules/ftell-tests (Files): Add it.
25449         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25450         MOSTLYCLEANFILES.
25451
25452 2010-05-01  Bruno Haible  <bruno@clisp.org>
25453
25454         ftell, ftello: Work around Solaris bug.
25455         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25456         * lib/ftello.c: Include stdio-impl.h.
25457         (ftello): On Solaris, when _IOWRT is set, compute the result without
25458         looking at _IOREAD.
25459         * modules/ftello (Files): Add lib/stdio-impl.h.
25460         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25461         * doc/posix-functions/ftello.texi: Likewise.
25462         Reported by Eric Blake.
25463
25464 2010-05-01  Bruno Haible  <bruno@clisp.org>
25465
25466         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25467         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25468         the _IOWRT flag is also set.
25469
25470 2010-05-01  Bruno Haible  <bruno@clisp.org>
25471
25472         Fix doc about a HP-UX stdio bug.
25473         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25474         * doc/posix-functions/ftello.texi: Likewise.
25475
25476 2010-05-01  Bruno Haible  <bruno@clisp.org>
25477
25478         lseek test: Fix failure on Solaris.
25479         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25480         output.
25481
25482 2010-04-30  Jim Meyering  <meyering@redhat.com>
25483
25484         bootstrap: don't ignore failure to generate po*/Makevars
25485         * build-aux/bootstrap (with_gettext): Don't ignore failure
25486         to create po/Makevars or runtime-po/Makevars.
25487
25488 2010-04-29  Eric Blake  <eblake@redhat.com>
25489
25490         headers: relax license to LGPLv2+
25491         * modules/fcntl-h (License): Relax license.
25492         * modules/getopt-posix (License): Likewise.
25493         * modules/locale (License): Likewise.
25494         * modules/math (License): Likewise.
25495         * modules/pty (License): Likewise.
25496         * modules/sched (License): Likewise.
25497         * modules/search (License): Likewise.
25498         * modules/spawn (License): Likewise.
25499         * modules/stdarg (License): Likewise.
25500         * modules/sysexits (License): Likewise.
25501
25502 2010-04-29  Jim Meyering  <meyering@redhat.com>
25503
25504         inttypes: relax license to LGPLv2+
25505         * modules/inttypes (License): Relax license.
25506
25507 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25508
25509         * top/maint.mk (indent): Run twice to produce idempotent results.
25510
25511 2010-04-28  Bruno Haible  <bruno@clisp.org>
25512
25513         getdate: Generate getdate.c in the source directory.
25514         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25515         MOSTLYCLEANFILES.
25516         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25517
25518 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25519
25520         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25521         is not declared as a const *; avoid warnings in that case.
25522
25523 2010-04-28  Eric Blake  <eblake@redhat.com>
25524
25525         canonicalize-lgpl: avoid compiler warning
25526         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25527         declaration' / 'extraneous semicolon' warning with some compilers.
25528         Reported by Andreas Gruenbacher.
25529
25530 2010-04-28  Jim Meyering  <meyering@redhat.com>
25531
25532         init.sh: ensure a more reliable exit status when exiting via trap
25533         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25534         Inspired by patches from Dmitry V. Levin.
25535         Also trap on signal 3 (SIGQUIT).
25536
25537 2010-04-27  Bruno Haible  <bruno@clisp.org>
25538
25539         Update doc about utimes().
25540         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25541         'utimens' module.
25542         Reported by Andreas Gruenbacher <agruen@suse.de>.
25543
25544 2010-04-27  Eric Blake  <eblake@redhat.com>
25545
25546         full-read, full-write: relax license
25547         * modules/full-read (License): Drop to LGPLv2+.
25548         * modules/full-write (License): Likewise.
25549         * modules/safe-read (License): Likewise.
25550         * modules/safe-write (License): Likewise.
25551
25552         pthread: mention library for linking
25553         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25554
25555 2010-04-27  Jim Meyering  <meyering@redhat.com>
25556
25557         maint.mk: fix a bug introduced in last change
25558         * top/maint.mk (gl_assured_headers_): Now that all names are on
25559         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25560         is not anchored to end of word, it should be adequate.
25561
25562         maint.mk: avoid side-effect in latest syntax-check
25563         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25564         to run commands via $(shell...), and hence to incur cost only when
25565         the new rule is actually run.
25566
25567         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25568         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25569         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25570         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25571         (gl_assured_headers_, az_, AZ_): Define.
25572         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25573
25574 2010-04-26  Jim Meyering  <jim@meyering.net>
25575             Bruno Haible  <bruno@clisp.org>
25576
25577         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25578         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25579         Prompted by an exchange with Gilles Espinasse.
25580
25581 2010-04-26  Jim Meyering  <meyering@redhat.com>
25582
25583         git-version-gen: aesthetic tweak
25584         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25585         so that the command remains on a single line.
25586
25587 2010-04-26  Eric Blake  <eblake@redhat.com>
25588
25589         git-version-gen: allow use on EBCDIC hosts
25590         * build-aux/git-version-gen (dirty): Use literal rather than tying
25591         ourselves to ascii.
25592         Reported by Steve Goetze.
25593
25594 2010-04-25  Bruno Haible  <bruno@clisp.org>
25595
25596         netdb: Add support for GNULIB_POSIXCHECK.
25597         * lib/netdb.in.h: Include warn-on-use.h.
25598         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25599         functions are used when GNULIB_POSIXCHECK is defined and the
25600         getaddrinfo module is not in use.
25601         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25602         freeaddrinfo, gai_strerror, getnameinfo are declared.
25603         * modules/netdb (Depends-on): Add warn-on-use.
25604         (Makefile.am): Include warn-on-use.h in netdb.h.
25605
25606 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25607
25608         build: avoid "make check" failure without .git/ directory
25609         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25610         there is no .git/ directory.
25611
25612 2010-04-25  Bruno Haible  <bruno@clisp.org>
25613
25614         ptsname: Fix misuse of ttyname_r.
25615         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25616         of errno.
25617
25618 2010-04-25  Bruno Haible  <bruno@clisp.org>
25619
25620         ttyname_r: Make it work on Solaris 10.
25621         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25622         if the system function has the POSIX declaration. Test whether the
25623         function fails if the buffer is less than 128 bytes large.
25624         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25625         system's ttyname_r function. Provide a reasonably large buffer.
25626         * modules/ttyname_r (Depends-on): Add extensions.
25627         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25628
25629 2010-04-25  Bruno Haible  <bruno@clisp.org>
25630
25631         Use the 'extensions' module for some more functions on Solaris.
25632         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25633         module.
25634         * doc/posix-functions/ctime_r.texi: Likewise.
25635         * doc/posix-functions/getgrgid_r.texi: Likewise.
25636         * doc/posix-functions/getgrnam_r.texi: Likewise.
25637         * doc/posix-functions/getpwnam_r.texi: Likewise.
25638         * doc/posix-functions/getpwuid_r.texi: Likewise.
25639         * doc/posix-functions/readdir_r.texi: Likewise.
25640         * doc/posix-functions/sigwait.texi: Likewise.
25641         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25642         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25643
25644 2010-04-25  Bruno Haible  <bruno@clisp.org>
25645
25646         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25647         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25648         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25649         * lib/ttyname_r.c: Include <limits.h>.
25650         (ttyname_r): Define using the system's ttyname_r function, if it exists
25651         and not on Solaris.
25652         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25653         set.
25654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25655         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25656         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25657         Reported by Simon Josefsson.
25658
25659 2010-04-25  Bruno Haible  <bruno@clisp.org>
25660
25661         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25662         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25663         * doc/posix-functions/ctime_r.texi: Likewise.
25664         * doc/posix-functions/getgrgid_r.texi: Likewise.
25665         * doc/posix-functions/getgrnam_r.texi: Likewise.
25666         * doc/posix-functions/getlogin_r.texi: Likewise.
25667         * doc/posix-functions/getpwnam_r.texi: Likewise.
25668         * doc/posix-functions/getpwuid_r.texi: Likewise.
25669         * doc/posix-functions/readdir_r.texi: Likewise.
25670         * doc/posix-functions/sigwait.texi: Likewise.
25671         * doc/posix-functions/ttyname_r.texi: Likewise.
25672         Reported by Simon Josefsson.
25673
25674 2010-04-25  Bruno Haible  <bruno@clisp.org>
25675
25676         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25677         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25678         also to --create-testdir.
25679         (func_acceptable): Don't consider the status of *-tests modules here.
25680         (func_modules_transitive_closure): Consider it here, before including a
25681         test module.
25682         (func_import, func_create_testdir): Set inc_all_direct_tests,
25683         inc_all_indirect_tests.
25684         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25685         --create-testdir and --create-megatestdir.
25686
25687 2010-04-25  Bruno Haible  <bruno@clisp.org>
25688
25689         gnulib-tool: Add --without-*-tests options.
25690         * gnulib-tool (func_usage): Document the --without-*-tests options.
25691         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25692         excl_unportable_tests): New variables.
25693         Fail if they are specified with --import or --update.
25694         (func_acceptable): Respect the excl_*_tests variables.
25695         (func_import): Set the excl_*_tests variables to empty.
25696
25697 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25698             Bruno Haible  <bruno@clisp.org>
25699
25700         Work around a MacOS X 10.4 bug with openpty.
25701         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25702         * tests/test-openpty.c (main): Close the master side explicitly.
25703
25704 2010-04-25  Bruno Haible  <bruno@clisp.org>
25705
25706         strnlen: Fix a C++ test error on MacOS X and Solaris.
25707         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25708         the function is not declared.
25709         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25710         Simon Josefsson.
25711
25712 2010-04-24  Bruno Haible  <bruno@clisp.org>
25713
25714         Avoid a gcc warning.
25715         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25716         of correct type for %08lx directive.
25717         Reported by Eric Blake.
25718
25719 2010-04-24  Bruno Haible  <bruno@clisp.org>
25720
25721         vasnprintf: Correct errno value in case of out-of-memory.
25722         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25723         or sprintf. Use the errno value from SNPRINTF or sprintf.
25724         Reported by Ian Beckwith <ianb@erislabs.net>.
25725
25726 2010-04-24  Bruno Haible  <bruno@clisp.org>
25727
25728         ansi-c++-opt: Find correct compiler when cross-compiling.
25729         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25730         AC_CHECK_PROGS.
25731         Reported by Simon Josefsson.
25732
25733 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25734
25735         vc-list-files: Add support for subversion
25736         * build-aux/vc-list-files: Use "svn list" to generate the list of
25737         files controlled by subversion.
25738
25739 2010-04-23  Jim Meyering  <meyering@redhat.com>
25740
25741         vc-list-files tests: convert to use init.sh
25742         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25743         path_prepend_.
25744         Use Exit, not exit.
25745         Use skip_ rather than open coding it.
25746         Remove trap set-up and compare definitions.
25747         * tests/test-vc-list-files-git.sh: Likewise.
25748         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25749
25750 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25751
25752         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25753         backup files.
25754
25755 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25756
25757         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25758
25759 2010-04-20  Eric Blake  <eblake@redhat.com>
25760
25761         tests: be robust to ignored SIGPIPE
25762         * tests/test-select-in.sh: Consume all output.
25763         * tests/test-lseek.sh: Check correct exit status, while avoiding
25764         EPIPE.
25765
25766 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25767             Bruno Haible  <bruno@clisp.org>
25768
25769         visibility: Don't use -fvisibility if it leads to a warning.
25770         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25771         yes, don't pretend that visibility works if it leads to a warning.
25772         Reported by Mike Gran <spk121@yahoo.com>.
25773
25774 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25775
25776         * build-aux/bootstrap: Use "git -h" for testing for supported options
25777         instead of "git --help".  The short-form option only shows a summary,
25778         and doesn't layout the full man page.  Grep for the full option name
25779         in the summary, too.
25780
25781 2010-04-19  Bruno Haible  <bruno@clisp.org>
25782
25783         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25784         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25785         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25786         mention of RELOCATABLE_STRIP.
25787         Reported by Sylvain Beucler <beuc@beuc.net>.
25788
25789 2010-04-19  Bruno Haible  <bruno@clisp.org>
25790
25791         * lib/diffseq.h: Fix typo in comment.
25792         Reported by Eric Blake.
25793
25794 2010-04-19  Bruno Haible  <bruno@clisp.org>
25795
25796         ioctl: Move autoconf macro to a .m4 file.
25797         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25798         * modules/ioctl (Files): Add it.
25799         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25800         Reported by Ian Beckwith <ianb@erislabs.net>.
25801
25802 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25803             Bruno Haible  <bruno@clisp.org>
25804
25805         diffseq: Accommodate use-case with abstract arrays.
25806         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25807         is not defined.
25808         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25809         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25810
25811 2010-04-18  Bruno Haible  <bruno@clisp.org>
25812
25813         * doc/posix-headers/stdbool.texi: More precise wording.
25814
25815 2010-04-17  Jim Meyering  <meyering@redhat.com>
25816
25817         maint.mk: use gnu-style indentation in an embedded perl script
25818         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25819         Rename variable: s/two/last_two_bytes/
25820
25821 2010-04-16  Eric Blake  <eblake@redhat.com>
25822
25823         test-stdbool: skip test that fails with Solaris CC
25824         * tests/test-stdbool.c (f): Skip test that causes compilation
25825         error under buggy C++ compiler.
25826         * lib/stdbool.in.h: Document the limitation.
25827         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25828
25829         setenv: allow compilation with C++
25830         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25831         register keyword.
25832
25833         stdint: allow test to pass with C++
25834         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25835
25836         getopt: allow compilation with C++
25837         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25838         struct.
25839         * lib/getopt.c (_getopt_internal_r): Use correct type.
25840         Reported by Dagobert Michelson, via Joel E. Denny.
25841
25842 2010-04-16  Bruno Haible  <bruno@clisp.org>
25843
25844         Override netdb.h always.
25845         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25846         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25847         Reported by Ludovic Courtès <ludo@gnu.org>.
25848
25849 2010-04-15  Bruno Haible  <bruno@clisp.org>
25850
25851         openpty: Fix mistake from 2010-03-21.
25852         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25853         Reported by Simon Josefsson.
25854
25855 2010-04-15  Eric Blake  <eblake@redhat.com>
25856
25857         test-forkpty: fix expected signature
25858         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25859         Reported by Simon Josefsson.
25860
25861 2010-04-15  Jim Meyering  <meyering@redhat.com>
25862
25863         maint.mk: texinfo_suffix_re_: correct the default regexp
25864         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25865
25866         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25867         make it configurable via texinfo_suffix_re_.
25868
25869 2010-04-14  Eric Blake  <eblake@redhat.com>
25870
25871         strtok_r: relax license to LGPLv2+
25872         * modules/strtok_r (License): Relax license.
25873         Reported by Matthias Bolte.
25874
25875 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25876
25877         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25878         version 1.4.4 by default instead of requiring the libgcrypt
25879         version used during build.  This makes it possible to use the
25880         application with older but still binary compatible libgcrypt
25881         versions.
25882
25883 2010-04-13  Eric Blake  <eblake@redhat.com>
25884
25885         getopt-gnu: match recent glibc fixes and posix ruling
25886         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25887         '+' handling, when requesting extensions.
25888         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25889         'W;' handling.
25890         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25891         * doc/posix-functions/getopt.texi (getopt): Document this.
25892         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25893         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25894         Likewise.
25895
25896         getopt: merge bug fixes from glibc
25897         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25898         diagnostics.  Honor '+:' correctly.  Reject ';'.
25899
25900         getopt-posix: detect MacOS bug
25901         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25902         optind when missing a required argument.
25903         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25904         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25905         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25906         Likewise.
25907
25908         getopt-posix: avoid spurious failure on Solaris
25909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25910         an indicator that setting optind=1 is sufficient for reset.
25911
25912         getopt-posix: avoid spurious failure on FreeBSD
25913         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25914         in POSIX mode, since the m4 test uses it.
25915
25916         gnulib-tool: silence warning on BSD sh
25917         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25918
25919 2010-04-13  Jim Meyering  <meyering@redhat.com>
25920
25921         doc: users.txt: GNU patch now uses gnulib
25922         * users.txt: Add patch.
25923
25924 2010-04-12  Jim Meyering  <meyering@redhat.com>
25925
25926         maint.mk: generate more concise timing data for syntax-check rules
25927         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25928         " done" from each line that reports a syntax-check test duration.
25929
25930 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25931
25932         git-version-gen: use "git update-index..." rather than "git status"
25933         * build-aux/git-version-gen: Use git update-index --refresh, not
25934         "git status".  With some versions of git, "git status" would fail
25935         to update the index and result in an unwarranted "-dirty" suffix.
25936
25937 2010-04-11  Jim Meyering  <meyering@redhat.com>
25938
25939         openat: correct formatting (no semantic change)
25940         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25941         Suggested by Bruno Haible.
25942
25943 2010-04-11  Bruno Haible  <bruno@clisp.org>
25944
25945         Stricter declaration checking in testdirs.
25946         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25947         If for_tests is true, augment AM_CPPFLAGS to define
25948         GNULIB_STRICT_CHECKING.
25949         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25950         GNULIB_STRICT_CHECKING is defined, verify that the function is
25951         declared.
25952
25953 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25954             Bruno Haible  <bruno@clisp.org>
25955
25956         libunistring: Improve configure output.
25957         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25958         Don't say "consider installing GNU libunistring" when checking again
25959         with libiconv.
25960
25961 2010-04-11  Bruno Haible  <bruno@clisp.org>
25962
25963         libunistring: Correct value of $LTLIBUNISTRING.
25964         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25965         correct the value of $LTLIBUNISTRING.
25966
25967 2010-04-11  Bruno Haible  <bruno@clisp.org>
25968
25969         havelib: Add static libraries to LIBS in the right order.
25970         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25971         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25972
25973 2010-04-11  Bruno Haible  <bruno@clisp.org>
25974
25975         libunistring: Detect libunistring also when it depends on libiconv.
25976         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25977         the second AC_LIB_HAVE_LINKFLAGS invocation.
25978
25979 2010-04-11  James Youngman  <jay@gnu.org>
25980
25981         close-stream: declare local scalars to be "const"
25982         * lib/close-stream.c (close_stream): Make boolean variables const
25983         to document the fact that we set but do not change them.
25984
25985 2010-04-11  Bruno Haible  <bruno@clisp.org>
25986
25987         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25988
25989 2010-04-11  Jim Meyering  <meyering@redhat.com>
25990
25991         maint.mk: don't include dist-check.mk
25992         * top/maint.mk: Remove bogus include directive.
25993
25994         maint.mk: improve empty-line-at-EOF check
25995         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25996         solution, rather than tail+Perl-based one.  The latter would read
25997         a few kilobytes from the end of each file, and did not handle empty
25998         files properly.
25999
26000         maint.mk: print the elapsed time for each syntax-check rule
26001         * top/maint.mk (sc_m_rules_): Save start time in a file.
26002         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26003         (local-check): Interpose the .z rules
26004
26005 2010-04-11  Jim Meyering  <meyering@redhat.com>
26006
26007         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26008         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26009         empty file with one that ends in an empty line.
26010
26011 2010-04-10  Bruno Haible  <bruno@clisp.org>
26012
26013         mkdir: Make it work on mingw64.
26014         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26015         * lib/mkdir.c: Update comment.
26016         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
26017
26018 2010-04-10  Bruno Haible  <bruno@clisp.org>
26019
26020         Don't override improved macro from newer autoconf.
26021         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26022         autoconf >= 2.62.
26023         Reported by Joel E. Denny <jdenny@clemson.edu>.
26024
26025 2010-04-10  Jim Meyering  <meyering@redhat.com>
26026
26027         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26028         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26029
26030         maint.mk: correct a diagnostic
26031         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26032         in diagnostic; now use $prohibit.
26033
26034 2010-04-10  Bruno Haible  <address@hidden>
26035
26036         fchownat: Fix a C++ test error on Solaris 8.
26037         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26038         the function does not exist.
26039
26040 2010-04-10  Bruno Haible  <bruno@clisp.org>
26041
26042         vasnprintf: Add more tests.
26043         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26044         (test_function): Test converting an invalid wide string.
26045
26046         vasnprintf: Correct handling of unconvertible wide string arguments.
26047         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26048         VASNPRINTF.
26049         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26050         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26051         smaller than the expected maximum need for the directive. Set errno to
26052         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26053         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26055         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26056         * modules/vasnprintf (Files): Add m4/printf.m4.
26057         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26058
26059 2010-04-10  Bruno Haible  <bruno@clisp.org>
26060
26061         vasnprintf: Fix crash in %ls directive.
26062         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26063         string is passed as argument to %ls, with no precision and no width.
26064         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26065
26066 2010-04-10  Bruno Haible  <bruno@clisp.org>
26067
26068         vasnprintf: Fix multiple test failures on mingw.
26069         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26070         _snprintf, or snwprintf, not _snwprintf.
26071
26072 2010-04-10  Bruno Haible  <bruno@clisp.org>
26073
26074         write: Fix a C++ test error on mingw.
26075         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26076
26077 2010-04-10  Bruno Haible  <bruno@clisp.org>
26078
26079         vasnprintf test: Reduce code duplication.
26080         * tests/test-vasnprintf.c (test_function): New function, extracted from
26081         test_vasnprintf.
26082         (test_vasnprintf, test_asnprintf): Invoke it.
26083
26084 2010-04-10  Bruno Haible  <bruno@clisp.org>
26085
26086         strnlen: Fix warning in C++ mode on MacOS X.
26087         * lib/string.in.h (strnlen): Use the modern idiom.
26088         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26089         defining strnlen as a macro already in <config.h>.
26090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26091         REPLACE_STRNLEN.
26092         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26093         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26094
26095 2010-04-08  James Youngman  <jay@gnu.org>
26096
26097         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26098         the example.
26099
26100 2010-04-09  Jim Meyering  <meyering@redhat.com>
26101
26102         maint.mk: print better diagnostic when there is no $(_hv_file)
26103         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26104         announce that when $(_hv_file) (aka help-version) does not exist.
26105
26106         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26107         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26108         not try to interpret its random input bytes.  Jarno Rajahalme reported
26109         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26110         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26111         (mktempd_): Likewise, just in case.
26112
26113         ftruncate: add two years to projected module removal date: 2012
26114         * m4/ftruncate.m4: Adjust comments.
26115
26116         ftruncate: mark module as obsolete; even MinGW provides it, now
26117         * modules/ftruncate (Status): Obsolete.
26118         (Notice): Say that.
26119         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26120         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26121
26122 2010-04-08  Bruno Haible  <bruno@clisp.org>
26123
26124         Fix side effects from tests-related modules.
26125         * modules/dprintf-posix (Comment): New section.
26126         * modules/fprintf-posix (Comment): Likewise.
26127         * modules/obstack-printf-posix (Comment): Likewise.
26128         * modules/printf-posix (Comment): Likewise.
26129         * modules/snprintf-posix (Comment): Likewise.
26130         * modules/sprintf-posix (Comment): Likewise.
26131         * modules/vasnprintf-posix (Comment): Likewise.
26132         * modules/vasprintf-posix (Comment): Likewise.
26133         * modules/vdprintf-posix (Comment): Likewise.
26134         * modules/vfprintf-posix (Comment): Likewise.
26135         * modules/vprintf-posix (Comment): Likewise.
26136         * modules/vsnprintf-posix (Comment): Likewise.
26137         * modules/vsprintf-posix (Comment): Likewise.
26138         * modules/xprintf-posix (Comment): Likewise.
26139         * modules/xvasprintf-posix (Comment): Likewise.
26140         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26141         * modules/floorf-tests (Depends-on): Likewise.
26142         * modules/round-tests (Depends-on): Likewise.
26143         * modules/roundf-tests (Depends-on): Likewise.
26144         * modules/trunc-tests (Depends-on): Likewise.
26145         * modules/truncf-tests (Depends-on): Likewise.
26146         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26147         'fprintf-posix' module is not present.
26148         * tests/test-floorf2.c (check): Likewise.
26149         * tests/test-trunc2.c (check): Likewise.
26150         * tests/test-truncf2.c (check): Likewise.
26151         * tests/test-round2.c (equal): Likewise.
26152         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26153
26154 2010-04-07  Karl Berry  <karl@gnu.org>
26155
26156         * config/srclist.txt,
26157         * config/srclistvars.sh,
26158         * config/srclist-update: doc fixes.
26159
26160 2010-04-07  Jim Meyering  <meyering@redhat.com>
26161
26162         maint.mk: add a PATH crosschecking syntax-check rule
26163         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26164         Useful if you use a test like the one in help-version (coreutils,
26165         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26166         printed by prog --version.
26167
26168 2010-04-06  Bruno Haible  <bruno@clisp.org>
26169
26170         Fix link error on mingw.
26171         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26172         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26173
26174 2010-04-06  Bruno Haible  <bruno@clisp.org>
26175
26176         Assume rmdir exists.
26177         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26178
26179 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26180
26181         doc: update users.txt
26182         * users.txt: Add gcal.
26183
26184 2010-04-06  Jim Meyering  <meyering@redhat.com>
26185
26186         init.sh: simply unset TMPDIR rather than risking env -i
26187         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26188         although it probably works fine on all Unix-based systems, some
26189         systems (Cygwin?) cannot tolerate a totally cleared environment.
26190         Suggestion from Eric Blake.
26191
26192 2010-04-06  Jim Meyering  <meyering@redhat.com>
26193
26194         init.sh: portability fix: use env's POSIX-specified -i option not -u
26195         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26196         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26197
26198 2010-04-05  Bruno Haible  <bruno@clisp.org>
26199
26200         btowc: Work around Cygwin 1.7.2 bug.
26201         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26202         does not map NUL to 0.
26203         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26204
26205 2010-04-05  Bruno Haible  <bruno@clisp.org>
26206
26207         Make the multithread modules work on Cygwin 1.7.2.
26208         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26209         imported symbols can be declared weak, so that it returns "no" on
26210         Cygwin 1.7.2.
26211
26212 2010-04-05  Bruno Haible  <bruno@clisp.org>
26213
26214         Use the module 'strncat'.
26215         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26216
26217         Tests for module 'strncat'.
26218         * modules/strncat-tests: New file.
26219         * tests/test-strncat.c: New file.
26220
26221         New module 'strncat'.
26222         * lib/string.in.h (strncat): New declaration.
26223         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26224         * m4/strncat.m4: New file, based on m4/memchr.m4.
26225         * modules/strncat: New file.
26226         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26227         is declared.
26228         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26229         REPLACE_STRNCAT.
26230         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26231         REPLACE_STRNCAT.
26232         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26233         module.
26234         * tests/test-string-c++.cc: Check signature of strncat.
26235
26236 2010-04-05  Jim Meyering  <meyering@redhat.com>
26237
26238         xstrtoumax-tests: convert to use init.sh
26239         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
26240         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26241         Use Exit, not exit.
26242         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26243
26244         xstrtoimax-tests: convert to use init.sh
26245         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
26246         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26247         Use Exit, not exit.
26248         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26249
26250 2010-04-05  Bruno Haible  <bruno@clisp.org>
26251
26252         sys_socket: Avoid #define replacements in C++ mode.
26253         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
26254         warning to the function if possible, rather than #defining the symbol
26255         to a dysfunctional alias.
26256
26257 2010-04-05  Bruno Haible  <bruno@clisp.org>
26258
26259         fseeko: Fix C++ test error on mingw.
26260         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
26261         gl_FUNC_FSEEKO.
26262         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
26263         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
26264         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
26265         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
26266
26267 2010-04-05  Bruno Haible  <bruno@clisp.org>
26268
26269         duplocale: Improve test output.
26270         * tests/test-duplocale.c (main): Print reason for skipped test.
26271
26272 2010-04-05  Bruno Haible  <bruno@clisp.org>
26273
26274         Assume rmdir exists.
26275         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
26276         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
26277
26278 2010-04-05  Bruno Haible  <bruno@clisp.org>
26279
26280         Fix link error on Solaris 8 with cc.
26281         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
26282
26283 2010-04-05  Bruno Haible  <bruno@clisp.org>
26284
26285         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26286         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
26287
26288 2010-04-05  Bruno Haible  <bruno@clisp.org>
26289
26290         vasprintf: Update documentation.
26291         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
26292
26293 2010-04-05  Bruno Haible  <bruno@clisp.org>
26294
26295         ptsname: Improve test.
26296         * tests/test-ptsname.c (main): Also try the various master names of BSD
26297         systems.
26298
26299 2010-04-05  Bruno Haible  <bruno@clisp.org>
26300
26301         memchr: Avoid a possible C++ test error.
26302         * lib/string.in.h (memchr): Provide declaration if function is missing.
26303         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
26304         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
26305         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
26306         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
26307
26308 2010-04-05  Bruno Haible  <bruno@clisp.org>
26309
26310         strtok_r: Improve idiom.
26311         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
26312         AC_LIBOBJ is used.
26313
26314 2010-04-05  Bruno Haible  <bruno@clisp.org>
26315
26316         strdup: Improve idiom.
26317         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
26318         AC_LIBOBJ is used.
26319         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
26320         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
26321         when AC_LIBOBJ is used.
26322
26323 2010-04-05  Bruno Haible  <bruno@clisp.org>
26324
26325         mbsinit, mbrtowc, wcrtomb: Improve idioms.
26326         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
26327         don't set REPLACE_MBSINIT to 1.
26328         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
26329         don't set REPLACE_MBRTOWC to 1.
26330         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
26331         exist, don't set REPLACE_MBSRTOWCS to 1.
26332         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
26333         exist, don't set REPLACE_MBSNRTOWCS to 1.
26334         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
26335         don't set REPLACE_WCRTOMB to 1.
26336         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
26337         exist, don't set REPLACE_WCSRTOMBS to 1.
26338         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26339         exist, don't set REPLACE_WCSNRTOMBS to 1.
26340
26341 2010-04-05  Bruno Haible  <bruno@clisp.org>
26342
26343         ldexpl: Improve idiom.
26344         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
26345         make sure to set HAVE_DECL_LDEXPL to 0.
26346
26347 2010-04-05  Jim Meyering  <meyering@redhat.com>
26348
26349         xstrtol-tests: convert to use init.sh
26350         * modules/xstrtol-tests (Files): Add tests/init.sh.
26351         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26352         Use Exit, not exit.
26353         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26354
26355         atexit-tests: convert to use init.sh
26356         * modules/atexit-tests (Files): Add tests/init.sh.
26357         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26358         Use Exit, not exit.
26359         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26360
26361         init.sh: fix typo
26362         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
26363
26364         init.sh: make it easier for a test script to write to the tty, ...
26365         when using automake's parallel-tests mode.
26366         * tests/init.sh (stderr_fileno_): Define overridable variable.
26367         (warn_): New function, to use it.
26368         (fail_, skip_, framework_failure_): Use warn_.
26369
26370 2010-04-04  Bruno Haible  <bruno@clisp.org>
26371
26372         btowc: Avoid warning.
26373         * lib/btowc.c: Include <stdlib.h>.
26374         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26375
26376 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26377             Bruno Haible  <bruno@clisp.org>
26378
26379         wchar: Port to NetBSD 1.5.
26380         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26381         * lib/wctype.in.h (WEOF): Likewise.
26382
26383 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26384             Bruno Haible  <bruno@clisp.org>
26385
26386         Port extended stdio to NetBSD 1.5.
26387         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
26388         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26389         older.
26390
26391 2010-04-04  Bruno Haible  <bruno@clisp.org>
26392
26393         string: Remove unused substitution.
26394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26395         HAVE_DECL_STRERROR.
26396         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26397
26398 2010-04-04  Bruno Haible  <bruno@clisp.org>
26399
26400         strtod: Avoid a possible C++ test error.
26401         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26402         set REPLACE_STRTOD.
26403
26404 2010-04-04  Bruno Haible  <bruno@clisp.org>
26405
26406         strerror: Update documentation.
26407         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26408
26409 2010-04-04  Bruno Haible  <bruno@clisp.org>
26410
26411         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26412         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26413         _GL_CXXALIAS_SYS_CAST.
26414
26415 2010-04-04  Bruno Haible  <bruno@clisp.org>
26416
26417         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26418         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26419         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26420         REPLACE_FREXPL to 1.
26421         * doc/posix-functions/frexpl.texi: Update documentation.
26422
26423 2010-04-04  Bruno Haible  <bruno@clisp.org>
26424
26425         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26426         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26427
26428 2010-04-04  Bruno Haible  <bruno@clisp.org>
26429
26430         Implement nanosleep for native Windows.
26431         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26432
26433 2010-04-04  Bruno Haible  <bruno@clisp.org>
26434
26435         math: Fix some C++ test errors on Solaris 8.
26436         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26437
26438 2010-04-04  Bruno Haible  <bruno@clisp.org>
26439
26440         math: Fix some C++ test errors on Cygwin.
26441         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26442         truncl): Provide declaration if the system does not have it.
26443         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26444         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26445         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26446         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26447         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26448         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26449         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26450         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26451         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26452         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26453         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26454         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26455         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26456         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26457         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26458         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26460         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26461         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26462         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26463         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26464         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26465
26466 2010-04-04  Bruno Haible  <bruno@clisp.org>
26467
26468         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26469         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26470         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26471         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26472         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26473         * m4/isinf.m4 (gl_ISINF): Likewise.
26474         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26475
26476 2010-04-04  Bruno Haible  <bruno@clisp.org>
26477
26478         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26479         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26480
26481 2010-04-04  Bruno Haible  <bruno@clisp.org>
26482
26483         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26484         * modules/tmpfile (configure.ac): Update.
26485
26486         tmpfile: Fix C++ test error on mingw.
26487         * lib/stdio.in.h (tmpfile): New declaration.
26488         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26489         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26490         * modules/tmpfile (Depends-on): Add stdio.
26491         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26492         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26493         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26494         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26495         REPLACE_TMPFILE.
26496         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26497
26498 2010-04-04  Bruno Haible  <bruno@clisp.org>
26499
26500         ioctl: Fix C++ test error on mingw.
26501         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26502         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26503         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26504
26505 2010-04-03  Bruno Haible  <bruno@clisp.org>
26506
26507         wcwidth: Fix C++ test error on mingw.
26508         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26510         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26511
26512 2010-04-03  Bruno Haible  <bruno@clisp.org>
26513
26514         nanosleep: Fix C++ test error on mingw.
26515         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26516         * lib/time.in.h (nanosleep): Use modern idiom.
26517         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26518         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26519         REPLACE_NANOSLEEP to 1.
26520         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26521         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26522
26523 2010-04-03  Bruno Haible  <bruno@clisp.org>
26524
26525         strptime: Fix C++ test error on mingw.
26526         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26527         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26528         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26529         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26530         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26531         not REPLACE_STRPTIME.
26532         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26533         REPLACE_STRPTIME.
26534
26535 2010-04-03  Bruno Haible  <bruno@clisp.org>
26536
26537         timegm: Fix C++ test error on mingw.
26538         * lib/time.in.h (timegm): Use modern idiom.
26539         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26540         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26541         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26542         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26543
26544 2010-04-03  Bruno Haible  <bruno@clisp.org>
26545
26546         timegm: Assume declaration if function exists.
26547         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26548         if it exists. Don't clobber ac_cv_func_timegm.
26549
26550 2010-04-03  Bruno Haible  <bruno@clisp.org>
26551
26552         time_r: Fix C++ test error on mingw.
26553         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26554         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26555         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26556         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26557         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26558
26559 2010-04-03  Bruno Haible  <bruno@clisp.org>
26560
26561         time_r: Minor updates.
26562         * modules/time_r (Description): Mention the provided functions.
26563         * lib/time_r.c: Don't include <string.h>.
26564         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26565         * doc/posix-functions/localtime_r.texi: Likewise.
26566
26567 2010-04-03  Bruno Haible  <bruno@clisp.org>
26568
26569         time: Fix regression introduced on 2010-03-08.
26570         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26571         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26572
26573 2010-04-03  Jim Meyering  <meyering@redhat.com>
26574
26575         maint.mk: don't silently disable project-specific syntax-check rules
26576         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26577         that they need to convert their project-specific syntax-check rules
26578         to use the new _sc_search_regexp.
26579
26580 2010-04-03  Bruno Haible  <bruno@clisp.org>
26581
26582         fchdir: Fix regression introduced on 2010-03-08.
26583         * lib/unistd.in.h (fchdir): Fix declaration.
26584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26586         REPLACE_FCHDIR.
26587         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26588         REPLACE_FCHDIR.
26589
26590 2010-04-03  Bruno Haible  <bruno@clisp.org>
26591
26592         getpagesize: Fix C++ test error on mingw.
26593         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26594         system does not declare the function.
26595         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26596         declared.
26597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26598         HAVE_DECL_GETPAGESIZE.
26599         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26600
26601 2010-04-03  Bruno Haible  <bruno@clisp.org>
26602
26603         stdio: Make C++ tests work on mingw.
26604         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26605         does not declare the function.
26606
26607 2010-04-03  Bruno Haible  <bruno@clisp.org>
26608
26609         ftello: Fix C++ test error on mingw.
26610         * lib/stdio.in.h (ftello): Use modern idiom.
26611         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26612         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26613         is missing and that it needs to be replaced.
26614         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26616         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26617
26618 2010-04-03  Bruno Haible  <bruno@clisp.org>
26619
26620         fseeko: Fix C++ test error on mingw.
26621         * lib/stdio.in.h (fseeko): Use modern idiom.
26622         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26623         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26624         is missing and that it needs to be replaced.
26625         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26627         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26628
26629 2010-04-03  Bruno Haible  <bruno@clisp.org>
26630
26631         mkstemp: Fix C++ test error on mingw.
26632         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26633         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26634         function is missing and that it needs to be replaced.
26635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26636         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26637
26638 2010-04-03  Bruno Haible  <bruno@clisp.org>
26639
26640         stpncpy: Fix C++ test error on mingw.
26641         * lib/string.in.h (stpncpy): Use modern idiom.
26642         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26643         function is missing and that it needs to be replaced.
26644         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26645         REPLACE_STPNCPY.
26646         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26647
26648 2010-04-03  Bruno Haible  <bruno@clisp.org>
26649
26650         sys_stat: Fix C++ test error on mingw.
26651         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26652         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26653
26654 2010-04-03  Bruno Haible  <bruno@clisp.org>
26655
26656         pty: Update doc.
26657         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26658
26659 2010-04-03  Bruno Haible  <bruno@clisp.org>
26660
26661         unistd: Fix C++ test error on mingw.
26662         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26663
26664 2010-04-03  Bruno Haible  <bruno@clisp.org>
26665
26666         Update doc regarding mingw.
26667         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26668         * doc/glibc-functions/login_tty.texi: Likewise.
26669         * doc/glibc-functions/forkpty.texi: Likewise.
26670
26671 2010-04-03  Bruno Haible  <bruno@clisp.org>
26672
26673         stdlib: Avoid compilation failure of c-strtold on mingw.
26674         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26675
26676 2010-04-03  Bruno Haible  <bruno@clisp.org>
26677
26678         locale: Make C++ tests work on Cygwin and mingw.
26679         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26680         cannot provide the function.
26681         Reported by Simon Josefsson.
26682
26683 2010-04-03  Bruno Haible  <bruno@clisp.org>
26684
26685         localename: Port to MacOS X 10.6.
26686         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26687         memory layout of the locales in MacOS X 10.6 as well.
26688         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26689
26690 2010-04-02  Bruno Haible  <bruno@clisp.org>
26691
26692         gnulib-tool: Ensure that long-running tests are executed last.
26693         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26694         running tests after the one for the other tests.
26695
26696 2010-04-02  Bruno Haible  <bruno@clisp.org>
26697
26698         gnulib-tool: Ensure the tests in the main directory are executed first.
26699         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26700         start with the current directory.
26701
26702 2010-04-02  Bruno Haible  <bruno@clisp.org>
26703
26704         Tests for module 'havelib', moved here from GNU gettext.
26705         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26706         modifications.
26707         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26708         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26709         with modifications.
26710         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26711         modifications.
26712         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26713         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26714         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26715         with modifications.
26716         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26717         with modifications.
26718         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26719         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26720         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26721         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26722         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26723         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26724         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26725         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26726         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26727         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26728         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26729         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26730         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26731         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26732         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26733         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26734         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26735         with modifications.
26736         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26737         with modifications.
26738         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26739         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26740         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26741         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26742         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26743         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26744         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26745         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26746         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26747         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26748         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26749         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26750         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26751         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26752         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26753         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26754         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26755         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26756         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26757         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26758         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26759         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26760         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26761         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26762         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26763         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26764         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26765         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26766         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26767         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26768         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26769         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26770         * tests/havelib/rpathx/rpathx.c: New file, from
26771         gettext/autoconf-lib-link.
26772         * tests/havelib/rpathx/Makefile.am: New file, from
26773         gettext/autoconf-lib-link.
26774         * tests/havelib/rpathx/configure.ac: New file, from
26775         gettext/autoconf-lib-link with modifications.
26776         * tests/havelib/rpathy/rpathy.c: New file, from
26777         gettext/autoconf-lib-link.
26778         * tests/havelib/rpathy/Makefile.am: New file, from
26779         gettext/autoconf-lib-link.
26780         * tests/havelib/rpathy/configure.ac: New file, from
26781         gettext/autoconf-lib-link with modifications.
26782         * tests/havelib/rpathz/rpathz.c: New file, from
26783         gettext/autoconf-lib-link.
26784         * tests/havelib/rpathz/Makefile.am: New file, from
26785         gettext/autoconf-lib-link.
26786         * tests/havelib/rpathz/configure.ac: New file, from
26787         gettext/autoconf-lib-link with modifications.
26788         * tests/havelib/rpathlx/usex.c: New file, from
26789         gettext/autoconf-lib-link.
26790         * tests/havelib/rpathlx/Makefile.am: New file, from
26791         gettext/autoconf-lib-link.
26792         * tests/havelib/rpathlx/configure.ac: New file, from
26793         gettext/autoconf-lib-link with modifications.
26794         * tests/havelib/rpathly/usey.c: New file, from
26795         gettext/autoconf-lib-link.
26796         * tests/havelib/rpathly/Makefile.am: New file, from
26797         gettext/autoconf-lib-link.
26798         * tests/havelib/rpathly/configure.ac: New file, from
26799         gettext/autoconf-lib-link with modifications.
26800         * tests/havelib/rpathlz/usez.c: New file, from
26801         gettext/autoconf-lib-link.
26802         * tests/havelib/rpathlz/Makefile.am: New file, from
26803         gettext/autoconf-lib-link.
26804         * tests/havelib/rpathlz/configure.ac: New file, from
26805         gettext/autoconf-lib-link with modifications.
26806         * tests/havelib/rpathlyx/usey.c: New file, from
26807         gettext/autoconf-lib-link.
26808         * tests/havelib/rpathlyx/Makefile.am: New file, from
26809         gettext/autoconf-lib-link.
26810         * tests/havelib/rpathlyx/configure.ac: New file, from
26811         gettext/autoconf-lib-link with modifications.
26812         * tests/havelib/rpathlzyx/usez.c: New file, from
26813         gettext/autoconf-lib-link.
26814         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26815         gettext/autoconf-lib-link.
26816         * tests/havelib/rpathlzyx/configure.ac: New file, from
26817         gettext/autoconf-lib-link with modifications.
26818         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26819         with modifications.
26820
26821 2010-04-02  Bruno Haible  <bruno@clisp.org>
26822
26823         gnulib-tool: Create distributed built sources also for the tests.
26824         * gnulib-tool (func_create_testdir): Also generate distributed built
26825         sources in the tests directory.
26826
26827 2010-04-02  Bruno Haible  <bruno@clisp.org>
26828
26829         gnulib-tool: Obey user's environment variables.
26830         * gnulib-tool (func_create_testdir): When creating built sources,
26831         respect the environment variables for autoconf, automake, etc. given by
26832         the user.
26833
26834 2010-04-02  Bruno Haible  <bruno@clisp.org>
26835
26836         gnulib-tool: Provide the value of --m4-base to modules.
26837         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26838         of gl_m4_base.
26839
26840 2010-04-02  Eric Blake  <eblake@redhat.com>
26841
26842         maint.mk: fix some fallout
26843         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26844         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26845
26846 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26847
26848         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26849         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26850         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26851         (sc_cast_of_x_alloc_return_value): Likewise.
26852         (sc_cast_of_alloca_return_value): Likewise.
26853         (sc_space_tab): Likewise.
26854         (sc_prohibit_atoi_atof): Likewise.
26855         (sc_prohibit_magic_number_exit): Likewise.
26856         (sc_error_exit_success): Likewise.
26857         (sc_file_system): Likewise.
26858         (sc_prohibit_have_config_h): Likewise.
26859         (sc_require_config_h): Likewise.
26860         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26861         (sc_obsolete_symbols): Likewise.
26862         (sc_changelog): Likewise.
26863         (sc_program_name): Likewise.
26864         (sc_the_the): Likewise.
26865         (sc_trailing_blank): Likewise.
26866         (sc_two_space_separator_in_usage): Likewise.
26867         (sc_useless_cpp_parens): Likewise.
26868         (sc_GPL_version): Likewise.
26869         (sc_GFDL_version): Likewise.
26870         (sc_texinfo_acronym): Likewise.
26871         (sc_prohibit_cvs_keyword): Likewise.
26872         (sc_prohibit_stat_st_blocks): Likewise.
26873         (sc_prohibit_S_IS_definition): Likewise.
26874         (sc_redundant_const): Likewise.
26875         (sc_makefile_TAB_only_indentation): Likewise.
26876         (sc_m4_quote_check): Likewise.
26877         (sc_makefile_path_separator_check): Likewise.
26878         (sc_copyright_check): Likewise.
26879         (sc_Wundef_boolean): Likewise.
26880         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26881
26882         maint.mk: match 0 or more whitespace-before-function-call '('
26883         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26884         that have zero or two-and-more spaces between the function name
26885         and the open parenthesis.
26886         (sc_error_message_warn_fatal): Likewise.
26887         (sc_error_message_uppercase): Likewise.
26888         (sc_error_message_period): Likewise.
26889
26890 2010-03-31  Eric Blake  <eblake@redhat.com>
26891
26892         maint.mk: check for [ as well as test
26893         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26894         Based on a libvirt report by Matthias Bolte.
26895
26896         gnumakefile: don't squelch _version output
26897         * top/GNUmakefile (_version): Create one-shot dependency rather
26898         than using $(shell) when version must be regenerated.
26899         (_autoreconf): Run verbosely, by default.
26900
26901         sys_time: avoid compiler warnings
26902         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26903         unconditional, fixing regression from 2010-03-29.
26904         Reported by Simon Josefsson.
26905
26906 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26907
26908         maint.mk: s/_header_without_use/_sc_header_without_use/
26909         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26910         (sc_prohibit_assert_without_use): Use the new name.
26911         (sc_prohibit_close_stream_without_use): Likewise.
26912         (sc_prohibit_getopt_without_use): Likewise.
26913         (sc_prohibit_quotearg_without_use): Likewise.
26914         (sc_prohibit_quote_without_use): Likewise.
26915         (sc_prohibit_long_options_without_use): Likewise.
26916         (sc_prohibit_inttostr_without_use): Likewise.
26917         (sc_prohibit_ignore_value_without_use): Likewise.
26918         (sc_prohibit_error_without_use): Likewise.
26919         (sc_prohibit_xalloc_without_use): Likewise.
26920         (sc_prohibit_hash_without_use): Likewise.
26921         (sc_prohibit_hash_pjw_without_use): Likewise.
26922         (sc_prohibit_safe_read_without_use): Likewise.
26923         (sc_prohibit_argmatch_without_use): Likewise.
26924         (sc_prohibit_canonicalize_without_use): Likewise.
26925         (sc_prohibit_root_dev_ino_without_use): Likewise.
26926         (sc_prohibit_openat_without_use): Likewise.
26927         (sc_prohibit_c_ctype_without_use): Likewise.
26928         (sc_prohibit_signal_without_use): Likewise.
26929         (sc_prohibit_intprops_without_use): Likewise.
26930
26931 2010-03-30  Eric Blake  <eblake@redhat.com>
26932
26933         maint: improve module indicators
26934         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26935         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26936         columns, and avoid extra macro expansion.
26937
26938         fdopendir: work around FreeBSD bug
26939         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26940         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26941         * modules/dirent (Makefile.am): Substitute it.
26942         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26943         declaration.
26944         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26945         fix.
26946         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26947
26948 2010-03-29  Bruno Haible  <bruno@clisp.org>
26949
26950         Emit #pragma system_header after the inclusion guard, not before.
26951         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26952         guard that spans the entire file, not before. This enables an
26953         optimization in GCC's preprocessor.
26954         * lib/ctype.in.h: Likewise.
26955         * lib/dirent.in.h: Likewise.
26956         * lib/errno.in.h: Likewise.
26957         * lib/float.in.h: Likewise.
26958         * lib/getopt.in.h: Likewise.
26959         * lib/iconv.in.h: Likewise.
26960         * lib/langinfo.in.h: Likewise.
26961         * lib/locale.in.h: Likewise.
26962         * lib/math.in.h: Likewise.
26963         * lib/netdb.in.h: Likewise.
26964         * lib/netinet_in.in.h: Likewise.
26965         * lib/pty.in.h: Likewise.
26966         * lib/sched.in.h: Likewise.
26967         * lib/se-selinux.in.h: Likewise.
26968         * lib/search.in.h: Likewise.
26969         * lib/spawn.in.h: Likewise.
26970         * lib/stdarg.in.h: Likewise.
26971         * lib/stdint.in.h: Likewise.
26972         * lib/string.in.h: Likewise.
26973         * lib/strings.in.h: Likewise.
26974         * lib/sys_file.in.h: Likewise.
26975         * lib/sys_ioctl.in.h: Likewise.
26976         * lib/sys_time.in.h: Likewise.
26977         * lib/sys_times.in.h: Likewise.
26978         * lib/sys_utsname.in.h: Likewise.
26979         * lib/sys_wait.in.h: Likewise.
26980         * lib/sysexits.in.h: Likewise.
26981         * lib/wctype.in.h: Likewise.
26982
26983 2010-03-28  James Youngman  <jay@gnu.org>
26984
26985         save-cwd: don't leak a file descriptor when the caller execs.
26986         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26987         saved file descriptor.
26988         * modules/save-cwd (Depends-on): Depend on cloexec.
26989
26990 2010-03-29  Bruno Haible  <bruno@clisp.org>
26991
26992         Remove vestiges of fts-lgpl module.
26993         * lib/fts_.h: Assume GNULIB_FTS is 1.
26994         * lib/fts.c: Likewise.
26995         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26996
26997 2010-03-28  Bruno Haible  <bruno@clisp.org>
26998
26999         Fix definition of tests witness macro.
27000         * gnulib-tool (func_import): Fix definition of witness macro.
27001
27002 2010-03-28  Bruno Haible  <bruno@clisp.org>
27003
27004         Fix ioctl's protoype on glibc systems.
27005         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27006         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27007         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27008         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27009         signature. If not, arrange to replace the ioctl function.
27010         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27011         REPLACE_IOCTL.
27012         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27013         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27014         Reported by Ludovic Courtès <ludo@gnu.org>.
27015
27016 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27017
27018         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27019         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27020         made it so grep -r --include=GLOB* ... did not work.
27021
27022 2010-03-26  Jim Meyering  <meyering@redhat.com>
27023             Eric Blake  <eblake@redhat.com>
27024
27025         maint.mk: prohibit use of test's -o and -a operators
27026         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27027
27028 2010-03-28  Bruno Haible  <bruno@clisp.org>
27029
27030         Remove unused GNULIB_XYZ macro definitions.
27031         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27032         invocation.
27033
27034 2010-03-28  Bruno Haible  <bruno@clisp.org>
27035
27036         Mark privileged tests modules.
27037         * modules/idpriv-drop-tests (Status): New section.
27038         * modules/idpriv-droptemp-tests (Status): New section.
27039
27040 2010-03-28  Bruno Haible  <bruno@clisp.org>
27041
27042         Split C++ tests into separate tests modules.
27043         * modules/dirent-c++-tests: New file, extracted from
27044         modules/dirent-tests.
27045         * modules/dirent-tests: Depend on it.
27046         * modules/fcntl-h-c++-tests: New file, extracted from
27047         modules/fcntl-h-tests.
27048         * modules/fcntl-h-tests: Depend on it.
27049         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27050         * modules/glob-tests: Depend on it.
27051         * modules/iconv-h-c++-tests: New file, extracted from
27052         modules/iconv-h-tests.
27053         * modules/iconv-h-tests: Depend on it.
27054         * modules/langinfo-c++-tests: New file, extracted from
27055         modules/langinfo-tests.
27056         * modules/langinfo-tests: Depend on it.
27057         * modules/locale-c++-tests: New file, extracted from
27058         modules/locale-tests.
27059         * modules/locale-tests: Depend on it.
27060         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27061         * modules/math-tests: Depend on it.
27062         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27063         * modules/pty-tests: Depend on it.
27064         * modules/search-c++-tests: New file, extracted from
27065         modules/search-tests.
27066         * modules/search-tests: Depend on it.
27067         * modules/signal-c++-tests: New file, extracted from
27068         modules/signal-tests.
27069         * modules/signal-tests: Depend on it.
27070         * modules/spawn-c++-tests: New file, extracted from
27071         modules/spawn-tests.
27072         * modules/spawn-tests: Depend on it.
27073         * modules/stdio-c++-tests: New file, extracted from
27074         modules/stdio-tests.
27075         * modules/stdio-tests: Depend on it.
27076         * modules/stdlib-c++-tests: New file, extracted from
27077         modules/stdlib-tests.
27078         * modules/stdlib-tests: Depend on it.
27079         * modules/string-c++-tests: New file, extracted from
27080         modules/string-tests.
27081         * modules/string-tests: Depend on it.
27082         * modules/sys_ioctl-c++-tests: New file, extracted from
27083         modules/sys_ioctl-tests.
27084         * modules/sys_ioctl-tests: Depend on it.
27085         * modules/sys_select-c++-tests: New file, extracted from
27086         modules/sys_select-tests.
27087         * modules/sys_select-tests: Depend on it.
27088         * modules/sys_socket-c++-tests: New file, extracted from
27089         modules/sys_socket-tests.
27090         * modules/sys_socket-tests: Depend on it.
27091         * modules/sys_stat-c++-tests: New file, extracted from
27092         modules/sys_stat-tests.
27093         * modules/sys_stat-tests: Depend on it.
27094         * modules/sys_time-c++-tests: New file, extracted from
27095         modules/sys_time-tests.
27096         * modules/sys_time-tests: Depend on it.
27097         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27098         * modules/time-tests: Depend on it.
27099         * modules/unistd-c++-tests: New file, extracted from
27100         modules/unistd-tests.
27101         * modules/unistd-tests: Depend on it.
27102         * modules/wchar-c++-tests: New file, extracted from
27103         modules/wchar-tests.
27104         * modules/wchar-tests: Depend on it.
27105         * modules/wctype-c++-tests: New file, extracted from
27106         modules/wctype-tests.
27107         * modules/wctype-tests: Depend on it.
27108         Reported by Simon Josefsson.
27109
27110 2010-03-28  Bruno Haible  <bruno@clisp.org>
27111
27112         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27113         * gnulib-tool (func_exists_module): New function, extracted from
27114         func_verify_module.
27115         (func_verify_module): Use it.
27116         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27117         'foo' only if 'foo' exists.
27118         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27119         module.
27120
27121 2010-03-28  Bruno Haible  <bruno@clisp.org>
27122
27123         gnulib-tool: Add support for special categories of tests.
27124         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27125         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27126         (func_usage): Document them.
27127         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27128         inc_unportable_tests, inc_all_tests): New variables.
27129         (func_acceptable): Consider these variables.
27130         (func_modules_transitive_closure): Make it work when the 'Status' field
27131         consists of multiple words.
27132         (func_import): Store and restore the values of inc_cxx_tests,
27133         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27134         inc_all_tests in gnulib-comp.m4.
27135         (func_create_testdir): Set inc_all_tests to true.
27136         * doc/gnulib.texi (Extra tests modules): New section.
27137         Suggested by Jim Meyering.
27138
27139 2010-03-28  Bruno Haible  <bruno@clisp.org>
27140
27141         ansi-c++-opt: Allow turning off the C++ build by default.
27142         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27143         gl_CXX_CHOICE_DEFAULT_NO is defined.
27144         Requested by Eric Blake.
27145
27146 2010-03-28  Bruno Haible  <bruno@clisp.org>
27147
27148         unistd: Avoid #define replacements in C++ mode.
27149         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27150         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27151         setsockopt, shutdown, select): In C++, attach a warning to the function
27152         if possible, rather than #defining the symbol to a dysfunctional alias.
27153         Reported by John W. Eaton <jwe@gnu.org>.
27154
27155 2010-03-28  Bruno Haible  <bruno@clisp.org>
27156
27157         Fix link errors on mingw.
27158         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27159         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27160         $(LIBSOCKET).
27161         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27162         $(LIBSOCKET).
27163
27164 2010-03-28  Bruno Haible  <bruno@clisp.org>
27165             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27166
27167         lib-ignore: Determine different options for different compilers.
27168         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27169         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27170         Add comments.
27171         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27172         * NEWS: Mention the change.
27173
27174 2010-03-27  Bruno Haible  <bruno@clisp.org>
27175
27176         Remove unused GNULIB_XYZ macro definitions.
27177         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27178         * modules/fseek (configure.ac): Likewise.
27179         * modules/ioctl (configure.ac): Likewise.
27180         * modules/open (configure.ac): Likewise.
27181         * modules/stdlib-safer (configure.ac): Likewise.
27182
27183 2010-03-27  Bruno Haible  <bruno@clisp.org>
27184
27185         Add a remark about certain modules.
27186         * modules/malloc (Comment): New section.
27187         * modules/realloc (Comment): Likewise.
27188         * modules/sigpipe (Comment): Likewise.
27189
27190 2010-03-27  Bruno Haible  <bruno@clisp.org>
27191
27192         Resolve conflict between the two kinds of module indicators.
27193         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27194         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27195         * modules/canonicalize (configure.ac): Invoke
27196         gl_MODULE_INDICATOR_FOR_TESTS.
27197         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27198         GNULIB_XYZ.
27199         * tests/test-dirent-c++.cc: Likewise.
27200         * tests/test-dirent-safer.c: Likewise.
27201         * tests/test-dup2.c: Likewise.
27202         * tests/test-fchdir.c: Likewise.
27203         * tests/test-fcntl-h-c++.cc: Likewise.
27204         * tests/test-getopt.c: Likewise.
27205         * tests/test-getopt.h: Likewise.
27206         * tests/test-langinfo-c++.cc: Likewise.
27207         * tests/test-locale-c++.cc: Likewise.
27208         * tests/test-math-c++.cc: Likewise.
27209         * tests/test-pty-c++.cc: Likewise.
27210         * tests/test-search-c++.cc: Likewise.
27211         * tests/test-signal-c++.cc: Likewise.
27212         * tests/test-spawn-c++.cc: Likewise.
27213         * tests/test-stdio-c++.cc: Likewise.
27214         * tests/test-stdlib-c++.cc: Likewise.
27215         * tests/test-string-c++.cc: Likewise.
27216         * tests/test-sys_ioctl-c++.cc: Likewise.
27217         * tests/test-sys_select-c++.cc: Likewise.
27218         * tests/test-sys_socket-c++.cc: Likewise.
27219         * tests/test-sys_stat-c++.cc: Likewise.
27220         * tests/test-sys_time-c++.cc: Likewise.
27221         * tests/test-time-c++.cc: Likewise.
27222         * tests/test-unistd-c++.cc: Likewise.
27223         * tests/test-wchar-c++.cc: Likewise.
27224         * tests/uninorm/test-u8-nfc.c: Likewise.
27225         * tests/uninorm/test-u8-nfd.c: Likewise.
27226         * tests/uninorm/test-u8-nfkc.c: Likewise.
27227         * tests/uninorm/test-u8-nfkd.c: Likewise.
27228         * tests/uninorm/test-u16-nfc.c: Likewise.
27229         * tests/uninorm/test-u16-nfd.c: Likewise.
27230         * tests/uninorm/test-u16-nfkc.c: Likewise.
27231         * tests/uninorm/test-u16-nfkd.c: Likewise.
27232         * tests/uninorm/test-u32-nfc.c: Likewise.
27233         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27234         * tests/uninorm/test-u32-nfd.c: Likewise.
27235         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27236         * tests/uninorm/test-u32-nfkc.c: Likewise.
27237         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27238         * tests/uninorm/test-u32-nfkd.c: Likewise.
27239         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27240         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27241
27242 2010-03-27  Bruno Haible  <bruno@clisp.org>
27243
27244         Distinguish two kinds of module indicators.
27245         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
27246         gl_MODULE_INDICATOR.
27247         (gl_MODULE_INDICATOR): New macro.
27248         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27249         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
27250         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27251         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27252         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27253         * m4/math_h.m4 (gl_MATH_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/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27259         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27261         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27262         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27263         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27264         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27265         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27266         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27267         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27268         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27269         * modules/cloexec (configure.ac): Likewise.
27270         * modules/getopt-gnu (configure.ac): Likewise.
27271         * modules/uninorm/u8-normalize (configure.ac): Likewise.
27272         * modules/uninorm/u16-normalize (configure.ac): Likewise.
27273         * modules/uninorm/u32-normalize (configure.ac): Likewise.
27274         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
27275
27276 2010-03-27  Bruno Haible  <bruno@clisp.org>
27277
27278         New module description field 'Comment'.
27279         * gnulib-tool: New option --extract-comment.
27280         (func_usage): Document it.
27281         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
27282         (func_get_comment): New function.
27283         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
27284
27285 2010-03-27  Bruno Haible  <bruno@clisp.org>
27286
27287         Addendum to 2010-02-07 commit.
27288         * gnulib-tool (func_usage): Document --extract-applicability option.
27289
27290 2010-03-27  Bruno Haible  <bruno@clisp.org>
27291
27292         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
27293         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
27294         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
27295         rather than link errors.
27296
27297 2010-03-27  Bruno Haible  <bruno@clisp.org>
27298
27299         Avoid side effects from tests-related modules on the compilation of lib.
27300         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
27301         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
27302         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
27303         parameter. Emit into AM_CPPFLAGS a definition of the designated C
27304         macro.
27305         (func_import): Define a witness macro. Assign it a value that depends
27306         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
27307         tests-related modules.
27308         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
27309         Reported by Jim Meyering.
27310
27311 2010-03-27  Bruno Haible  <bruno@clisp.org>
27312
27313         Factorize common .m4 code.
27314         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
27315         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
27316         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
27317         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
27318         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27319         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
27320         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
27321         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27322         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27323         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27324         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
27325         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27326         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27327         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27328         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27329         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
27330         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27331         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27332         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27333         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
27334         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
27335         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27336         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27337         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27338         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27339         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27340         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
27341         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
27342         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
27343         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27344         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27345         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27346
27347 2010-03-27  Bruno Haible  <bruno@clisp.org>
27348
27349         Fix a compilation error on Cygwin with g++ >= 4.3.
27350         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
27351         if it is undefined or if we alias it to chmod.
27352         (lstat): Don't warn about the use of this function if it is undefined
27353         or if we alias it to stat.
27354         Reported by Simon Josefsson.
27355
27356 2010-03-27  Bruno Haible  <bruno@clisp.org>
27357
27358         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
27359         * modules/getlogin (configure.ac): Update.
27360
27361         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
27362         * modules/getlogin_r (configure.ac): Update.
27363
27364         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
27365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
27366         * modules/inet_ntop (configure.ac): Update.
27367
27368         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27369         * modules/inet_pton (configure.ac): Update.
27370
27371         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27372         * modules/mbslen (configure.ac): Update.
27373
27374         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27375         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27376         * modules/forkpty (configure.ac): Update.
27377         * modules/openpty (configure.ac): Update.
27378
27379 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27380
27381         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27382         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27383
27384 2010-03-25  Eric Blake  <eblake@redhat.com>
27385
27386         maint: use pragma consistently across replacement headers
27387         * lib/ctype.in.h (system_header): Hoist for consistent placement.
27388         * lib/dirent.in.h (system_header): Likewise.
27389         * lib/errno.in.h (system_header): Likewise.
27390         * lib/float.in.h (system_header): Likewise.
27391         * lib/getopt.in.h (system_header): Likewise.
27392         * lib/iconv.in.h (system_header): Likewise.
27393         * lib/inttypes.in.h (system_header): Likewise.
27394         * lib/langinfo.in.h (system_header): Likewise.
27395         * lib/locale.in.h (system_header): Likewise.
27396         * lib/math.in.h (system_header): Likewise.
27397         * lib/netdb.in.h (system_header): Likewise.
27398         * lib/netinet_in.in.h (system_header): Likewise.
27399         * lib/pty.in.h (system_header): Likewise.
27400         * lib/sched.in.h (system_header): Likewise.
27401         * lib/se-selinux.in.h (system_header): Likewise.
27402         * lib/search.in.h (system_header): Likewise.
27403         * lib/spawn.in.h (system_header): Likewise.
27404         * lib/stdarg.in.h (system_header): Likewise.
27405         * lib/stdint.in.h (system_header): Likewise.
27406         * lib/string.in.h (system_header): Likewise.
27407         * lib/strings.in.h (system_header): Likewise.
27408         * lib/sys_file.in.h (system_header): Likewise.
27409         * lib/sys_ioctl.in.h (system_header): Likewise.
27410         * lib/sys_socket.in.h (system_header): Likewise.
27411         * lib/sys_times.in.h (system_header): Likewise.
27412         * lib/sys_utsname.in.h (system_header): Likewise.
27413         * lib/sys_wait.in.h (system_header): Likewise.
27414         * lib/sysexits.in.h (system_header): Likewise.
27415         * lib/unistd.in.h (system_header): Likewise.
27416         * lib/wctype.in.h (system_header): Likewise.
27417
27418         arpa/inet: fix mingw compilation warning
27419         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27420         Reported by Matthew Bolte.
27421
27422 2010-03-25  Bruno Haible  <bruno@clisp.org>
27423
27424         Avoid collision between gnulib wrapper and libintl wrapper.
27425         * lib/printf.c (printf): Don't define if a printf wrapper is already
27426         defined in intl/printf.c.
27427         Reported by Michel Boaventura <michel@michelboaventura.com>.
27428
27429 2010-03-25  Bruno Haible  <bruno@clisp.org>
27430
27431         Use ANSI C.
27432         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27433
27434 2010-03-25  Bruno Haible  <bruno@clisp.org>
27435
27436         Minor formatting changes.
27437         * lib/acosl.c: Insert space before function argument list.
27438         * lib/argz.c: Likewise.
27439         * lib/asinl.c: Likewise.
27440         * lib/expl.c: Likewise.
27441         * lib/gen-uni-tables.c: Likewise.
27442         * lib/gettext.h: Likewise.
27443         * lib/glthread/lock.h: Likewise.
27444         * lib/tanl.c: Likewise.
27445         * lib/uniname/uniname.c: Likewise.
27446         * tests/test-idpriv-drop.c: Likewise.
27447         * tests/test-idpriv-droptemp.c: Likewise.
27448         * tests/test-lock.c: Likewise.
27449         * tests/test-tls.c: Likewise.
27450         * lib/argp-help.c: Insert space before function-like macro argument
27451         list.
27452         * lib/memcmp.c: Likewise.
27453         * tests/test-base64.c: Likewise.
27454         * lib/localename.c: Insert space before sizeof's argument list.
27455         * lib/safe-alloc.h: Likewise.
27456         * lib/file-set.h: Insert space before macro argument list.
27457         * tests/test-argp.c: Likewise.
27458         * lib/argp-namefrob.h: Insert space before function parameter list.
27459         * lib/getaddrinfo.c: Likewise.
27460         * lib/netdb.in.h: Likewise.
27461         * lib/parse-duration.h: Likewise.
27462         * lib/parse-duration.c: Likewise.
27463         * lib/poll.c: Likewise.
27464         * lib/select.c: Likewise.
27465         * lib/trim.h: Likewise.
27466         * tests/test-usleep.c: Likewise.
27467         * lib/ldexpl.c: Insert space before function parameter list and before
27468         function argument list.
27469         * lib/logl.c: Likewise.
27470         * lib/sqrtl.c: Likewise.
27471         * lib/trim.c: Likewise.
27472         * lib/cosl.c: Use GNU style indentation. Insert space before function
27473         argument list.
27474         * lib/sinl.c: Likewise.
27475         * lib/tsearch.c: Insert space after 'for'.
27476         Reported by Jim Meyering.
27477
27478 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27479
27480         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27481         config header before grepping, as it's not present before
27482         autoreconf/configure are run.  Reported by Simon Josefsson.
27483
27484 2010-03-23  Bruno Haible  <bruno@clisp.org>
27485
27486         pt_chown: Make it work with automake < 1.11.
27487         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27488         Reported by Simon Josefsson.
27489
27490 2010-03-23  Bruno Haible  <bruno@clisp.org>
27491
27492         pt_chown: Don't depend on GPLed modules.
27493         * lib/pt_chown.c: Don't include idpriv.h.
27494         (main): Don't drop privileges.
27495         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27496         Reported by Simon Josefsson.
27497
27498 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27499
27500         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27501         suggestions from karl@freefriends.org (Karl Berry).
27502
27503 2010-03-22  Eric Blake  <eblake@redhat.com>
27504
27505         gethostname: further tweaks
27506         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27507         are overriding gethostname.
27508         Suggested by Bruno Haible.
27509
27510 2010-03-21  Bruno Haible  <bruno@clisp.org>
27511
27512         Fix comments.
27513         * lib/forkpty.c (rpl_forkpty): Fix comment.
27514         * lib/openpty.c (rpl_openpty): Likewise.
27515         Reported by Eric Blake.
27516
27517 2010-03-22  Eric Blake  <eblake@redhat.com>
27518
27519         gethostname: fix build on mingw
27520         * lib/unistd.in.h (includes): Work around fact that mingw
27521         <winsock2.h> re-includes <unistd.h>, by avoiding any
27522         redeclarations if we are being included by <winsock2.h>.
27523         Reported by Matthias Bolte.
27524
27525 2010-03-21  Bruno Haible  <bruno@clisp.org>
27526
27527         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27528         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27529         modifications.
27530         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27531         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27532         provide the replacement.
27533         * modules/forkpty (Depends-on): Add openpty, login_tty.
27534         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27535         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27536         * doc/glibc-functions/forkpty.texi: More supported platforms.
27537         * config/srclist.txt: Add forkpty.c (commented).
27538
27539 2010-03-21  Bruno Haible  <bruno@clisp.org>
27540
27541         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27542         (Makefile.am): Verify that PTY_LIB is defined.
27543
27544         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27545
27546 2010-03-21  Bruno Haible  <bruno@clisp.org>
27547
27548         Tests for module 'login_tty'.
27549         * modules/login_tty-tests: New file.
27550         * tests/test-login_tty.c: New file.
27551
27552         New module 'login_tty'.
27553         * lib/login_tty.c: New file.
27554         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27555         * modules/login_tty: New file.
27556         * doc/glibc-functions/login_tty.texi: Mention the new module.
27557
27558 2010-03-21  Bruno Haible  <bruno@clisp.org>
27559
27560         login_tty: Documentation.
27561         * doc/glibc-functions/login_tty.texi: New file.
27562         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27563
27564 2010-03-21  Bruno Haible  <bruno@clisp.org>
27565
27566         pty: Consistent macro naming.
27567         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27568         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27569         * modules/pty (configure.ac): Update.
27570
27571 2010-03-21  Bruno Haible  <bruno@clisp.org>
27572
27573         Tests for openpty: Make stricter.
27574         * tests/test-openpty.c (main): Add test of canonical processing and
27575         erase.
27576         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27577
27578         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27579         * lib/openpty.c (openpty): New replacement function.
27580         * lib/pty.in.h: Include <termios.h>.
27581         (openpty): Update declaration. Add comments.
27582         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27583         is not declared, arrange to provide the replacement. Check for _getpty
27584         and posix_openpt.
27585         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27586         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27587         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27588         * modules/pty-tests (test_pty_c___LDADD): New variable.
27589         * doc/glibc-functions/openpty.texi: More supported platforms.
27590
27591 2010-03-21  Bruno Haible  <bruno@clisp.org>
27592
27593         setenv: Tweaks.
27594         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27595         the test program.
27596         * doc/posix-functions/setenv.texi: Update platforms list.
27597
27598 2010-03-21  Bruno Haible  <bruno@clisp.org>
27599
27600         New module 'unlockpt'.
27601         * lib/unlockpt.c: New file, from glibc with modifications.
27602         * m4/unlockpt.m4: New file.
27603         * modules/unlockpt: New file.
27604         * lib/stdlib.in.h (unlockpt): New declaration.
27605         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27606         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27607         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27608         HAVE_UNLOCKPT.
27609         * doc/posix-functions/unlockpt.texi: Mention the new module.
27610         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27611         * config/srclist.txt: Add unlockpt.c (commented).
27612
27613 2010-03-21  Jim Meyering  <meyering@redhat.com>
27614
27615         maint.mk: prohibit inclusion of "intprops.h" without use
27616         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27617
27618 2010-03-21  Bruno Haible  <bruno@clisp.org>
27619
27620         New module 'grantpt'.
27621         * lib/grantpt.c: New file, from glibc with modifications.
27622         * m4/grantpt.m4: New file.
27623         * modules/grantpt: New file.
27624         * lib/stdlib.in.h (grantpt): New declaration.
27625         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27626         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27627         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27628         HAVE_GRANTPT.
27629         * doc/posix-functions/grantpt.texi: Mention the new module.
27630         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27631         * config/srclist.txt: Add grantpt.c (commented).
27632
27633 2010-03-21  Bruno Haible  <bruno@clisp.org>
27634
27635         New module 'pt_chown'.
27636         * lib/pt_chown.c: New file, from glibc with modifications.
27637         * lib/pty-private.h: New file, from glibc with modifications.
27638         * modules/pt_chown: New file.
27639         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27640
27641 2010-03-21  Bruno Haible  <bruno@clisp.org>
27642
27643         Tests for module 'ptsname'.
27644         * modules/ptsname-tests: New file.
27645         * tests/test-ptsname.c: New file.
27646
27647         New module 'ptsname'.
27648         * lib/ptsname.c: New file, from glibc with modifications.
27649         * m4/ptsname.m4: New file.
27650         * modules/ptsname: New file.
27651         * lib/stdlib.in.h (ptsname): New declaration.
27652         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27653         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27654         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27655         HAVE_PTSNAME.
27656         * doc/posix-functions/ptsname.texi: Mention the new module.
27657         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27658         * config/srclist.txt: Add ptsname.c (commented).
27659
27660 2010-03-21  Bruno Haible  <bruno@clisp.org>
27661
27662         Tests for module 'ttyname_r'.
27663         * modules/ttyname_r-tests: New file.
27664         * tests/test-ttyname_r.c: New file.
27665
27666         New module 'ttyname_r'.
27667         * lib/ttyname_r.c: New file.
27668         * m4/ttyname_r.m4: New file.
27669         * modules/ttyname_r: New file.
27670         * lib/unistd.in.h (ttyname_r): New declaration.
27671         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27672         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27673         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27674         HAVE_TTYNAME_R.
27675         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27676         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27677
27678 2010-03-20  Bruno Haible  <bruno@clisp.org>
27679
27680         signal: Undefine macro definitions in C++ mode.
27681         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27682         sigfillset): Undefine macro definitions from the system header in C++
27683         mode.
27684         Reported by John W. Eaton <jwe@gnu.org>.
27685
27686 2010-03-20  Bruno Haible  <bruno@clisp.org>
27687
27688         Ensure no #include statements inside extern "C" { ... }.
27689         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27690         contain #include statements.
27691         * lib/time.in.h: Likewise.
27692
27693 2010-03-20  Bruno Haible  <bruno@clisp.org>
27694
27695         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27696         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27697         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27698         Reported by John W. Eaton <jwe@gnu.org>.
27699
27700 2010-03-20  Bruno Haible  <bruno@clisp.org>
27701
27702         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27703         Reported by Jim Meyering.
27704
27705 2010-03-20  Bruno Haible  <bruno@clisp.org>
27706
27707         pipe: Set errno upon failure.
27708         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27709         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27710         errno value in error message.
27711
27712 2010-03-20  Bruno Haible  <bruno@clisp.org>
27713             Jim Meyering  <meyering@redhat.com>
27714
27715         lchown: Avoid "unused variable" warning.
27716         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27717
27718 2010-03-20  Bruno Haible  <bruno@clisp.org>
27719
27720         Work around unlink() bug on MacOS X 10.5.6.
27721         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27722         attempting to unlink a parent directory.
27723         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27724         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27725         activate for the replacement function.
27726         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27727
27728 2010-03-20  Bruno Haible  <bruno@clisp.org>
27729
27730         Fix link errors on Solaris 8.
27731         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27732         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27733
27734 2010-03-19  Jim Meyering  <meyering@redhat.com>
27735
27736         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27737         The _LIBC implementation of build_range_exp correctly honors the
27738         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27739         However, the non-_LIBC implementation would ignore that syntax-bit
27740         flag and return REG_ERANGE unconditionally.
27741         This change makes it honor that flag.
27742         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27743         Make two pointer parameters "const".
27744         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27745         (parse_bracket_exp): Update caller.
27746
27747         regex.m4: correct the reversed range endpoint ([b-a]) test
27748         * m4/regex.m4: When requiring that [b-a] evoke failure,
27749         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27750         test pass once again for x86-based systems.
27751
27752 2010-03-19  Bruno Haible  <bruno@clisp.org>
27753
27754         scandir: Fix link error on Solaris 8.
27755         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27756         macros.
27757
27758 2010-03-19  Bruno Haible  <bruno@clisp.org>
27759
27760         getusershell: Fix documentation.
27761         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27762         module.
27763         * doc/glibc-functions/setusershell.texi: Likewise.
27764
27765         getusershell: Provide declaration, missing on Solaris 9.
27766         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27767         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27768         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27769         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27771         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27772         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27773         HAVE_GETUSERSHELL.
27774         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27775
27776 2010-03-19  Bruno Haible  <bruno@clisp.org>
27777
27778         wctype: Provide iswblank function.
27779         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27780         exists and is fine.
27781         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27782         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27783         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27784         * doc/posix-functions/iswblank.texi: Update.
27785
27786 2010-03-19  Bruno Haible  <bruno@clisp.org>
27787
27788         Tests of module 'pty' in C++ mode.
27789         * modules/pty-tests: New file.
27790         * tests/test-pty-c++.cc: New file.
27791         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27792
27793 2010-03-19  Eric Blake  <eblake@redhat.com>
27794
27795         logb: fix documentation
27796         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27797         1.5 declaration bug.
27798
27799         forkpty, openpty: prefer glibc's const-safe prototype
27800         * lib/forkpty.c (rpl_forkpty): New file.
27801         * lib/openpty.c (rpl_openpty): Likewise.
27802         * modules/forkpty (Files): Distribute it.
27803         * modules/openpty (Files): Likewise.
27804         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27805         check...
27806         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27807         replacement for for non-const BSD signature.
27808         * modules/pty (Makefile.am): Substitute witnesses.
27809         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27810         * tests/test-forkpty.c: Update signature check.
27811         * tests/test-openpty.c: Likewise.
27812         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27813         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27814
27815         forkpty, openpty: split functions into new modules
27816         * modules/pty (Makefile.am): Substitute new witnesses.
27817         (Libraries): Move library detection...
27818         * modules/forkpty: ...into new module.
27819         * modules/openpty: Another new module.
27820         * modules/pty-tests: Rename and split...
27821         * modules/forkpty-tests: ...to this...
27822         * modules/openpty-tests: ...and this.
27823         * tests/test-pty.c: Rename and split...
27824         * tests/test-forkpty.c: ...to this...
27825         * tests/test-openpty.c: ...and this.
27826         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27827         (gl_PTY): Split library searching...
27828         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27829         (gl_FORKPTY, gl_OPENPTY): New macros.
27830         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27831         * NEWS: Mention the split.
27832         * MODULES.html.sh (Misc): Document the modules.
27833         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27834         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27835
27836         pty: improve replacement header
27837         * lib/pty.in.h: New file.
27838         * modules/pty (Files): Ship it.
27839         (Makefile.am): Always build replacement.
27840         * m4/pty.m4: Rename...
27841         * m4/pty_h.m4: ...to this.
27842         (gl_PTY): Modernize setting of witness macros; update check of
27843         forkpty to take proper advantage of cache.
27844         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27845
27846         getopt: avoid compiler warning
27847         * lib/getopt.c (attribute_hidden): Remove unused macro.
27848
27849 2010-03-18  Bruno Haible  <bruno@clisp.org>
27850
27851         Fix link errors on Solaris 8.
27852         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27853         * modules/search-tests (test_search_c___LDADD): Likewise.
27854         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27855         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27856         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27857         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27858         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27859         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27860         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27861
27862 2010-03-18  Bruno Haible  <bruno@clisp.org>
27863
27864         Fix bug introduced on 2010-03-14.
27865         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27866         (gl_SPAWN_H): Require it.
27867         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27868         Reported by Simon Josefsson.
27869
27870 2010-03-18  Bruno Haible  <bruno@clisp.org>
27871
27872         Fix typo introduced on 2009-12-31.
27873         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27874         posix_spawn_file_actions_adddup2.
27875
27876 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27877         and Eric Blake  <eblake@redhat.com>
27878
27879         test-vc-list-files-git: make more robust
27880         * tests/test-vc-list-files-git.sh: Unset problematic environment
27881         variables.  Chain commands together.
27882
27883 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27884
27885         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27886         `AC_CHECK_DECL' invocation.
27887
27888 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27889
27890         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27891         appears before executable statements. Suggested by Petr Sumbera
27892         <Petr.Sumbera@Sun.COM>.
27893
27894 2010-03-14  Bruno Haible  <bruno@clisp.org>
27895
27896         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27897         portability problems. Instead use a simpler test.
27898         (main): Check that invalid arguments are rejected only on Linux.
27899
27900 2010-03-14  Bruno Haible  <bruno@clisp.org>
27901
27902         Fix bug introduced on 2009-12-31.
27903         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27904         gl_PREREQ_SYS_H_WINSOCK2 always.
27905         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27906         SYS_SOCKET_H variable.
27907         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27908         Update comments.
27909         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27910         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27911         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27912         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27913         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27914
27915 2010-03-14  Bruno Haible  <bruno@clisp.org>
27916
27917         Fix values returned by sinl, cosl.
27918         * lib/trigl.h: Add specification comments.
27919         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27920         that combines the values from the precomputed table with the values of
27921         the Chebyshev polynomials.
27922
27923 2010-03-14  Bruno Haible  <bruno@clisp.org>
27924
27925         Fix compilation error when modules 'posix_spawn[p]' are not used.
27926         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27927         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27928
27929 2010-03-14  Bruno Haible  <bruno@clisp.org>
27930
27931         Fix compilation error on mingw when module 'time_r' is not used.
27932         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27933         is 1.
27934         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27935         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27936         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27937         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27938
27939 2010-03-14  Bruno Haible  <bruno@clisp.org>
27940
27941         Fix compilation error with Sun C.
27942         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27943         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27944         instead of GCC specific ULONG_LONG_MAX.
27945         * lib/xstrtoll.c: Likewise.
27946         * lib/xstrtoull.c: Likewise.
27947
27948 2010-03-13  Bruno Haible  <bruno@clisp.org>
27949
27950         Allow the user to disable C++ code and tests.
27951         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27952         (gl_PROG_ANSI_CXX): Require it.
27953
27954 2010-03-13  Bruno Haible  <bruno@clisp.org>
27955
27956         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27957         cases.
27958
27959 2010-03-13  Bruno Haible  <bruno@clisp.org>
27960
27961         Test that gnulib does not break the standard C++ headers.
27962         * tests/test-locale-c++2.cc: New file.
27963         * modules/locale-tests (Files): Add it.
27964         (Makefile.am): Compile it for test-locale-c++.
27965         * tests/test-math-c++2.cc: New file.
27966         * modules/math-tests (Files): Add it.
27967         (Makefile.am): Compile it for test-math-c++.
27968         * tests/test-signal-c++2.cc: New file.
27969         * modules/signal-tests (Files): Add it.
27970         (Makefile.am): Compile it for test-signal-c++.
27971         * tests/test-stdio-c++2.cc: New file.
27972         * modules/stdio-tests (Files): Add it.
27973         (Makefile.am): Compile it for test-stdio-c++.
27974         * tests/test-stdlib-c++2.cc: New file.
27975         * modules/stdlib-tests (Files): Add it.
27976         (Makefile.am): Compile it for test-stdlib-c++.
27977         * tests/test-string-c++2.cc: New file.
27978         * modules/string-tests (Files): Add it.
27979         (Makefile.am): Compile it for test-string-c++.
27980         * tests/test-time-c++2.cc: New file.
27981         * modules/time-tests (Files): Add it.
27982         (Makefile.am): Compile it for test-time-c++.
27983         Reported by John W. Eaton <jwe@gnu.org>.
27984
27985 2010-03-13  Bruno Haible  <bruno@clisp.org>
27986
27987         * gnulib-tool (func_usage): Clarify which options are available for
27988         --create-testdir and --create-megatestdir.
27989
27990 2010-03-13  Bruno Haible  <bruno@clisp.org>
27991
27992         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27993         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27994         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27995         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27996         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27997         when appropriate.
27998         Reported by Jim Meyering.
27999
28000 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28001
28002         * gnulib-tool (func_import): Explain origin of code.
28003
28004 2010-03-12  Bruno Haible  <bruno@clisp.org>
28005
28006         Fix problem with automake's definition of CXXLINK.
28007         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28008         Reported by Simon Josefsson and Ludovic Courtès.
28009
28010 2010-03-12  Bruno Haible  <bruno@clisp.org>
28011
28012         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28013         stable releases.
28014
28015 2010-03-11  Bruno Haible  <bruno@clisp.org>
28016
28017         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28018         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28019         whether the system provides one variant or multiple variants of the
28020         function.
28021         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28022         C++ compilers.
28023         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28024         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28025         Reported by Jim Meyering.
28026
28027 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28028
28029         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28030
28031 2010-03-08  Bruno Haible  <bruno@clisp.org>
28032
28033         gnulib-tool: Add support for --libtool in --create-testdir.
28034         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28035         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28036
28037 2010-03-08  Eric Blake  <eblake@redhat.com>
28038
28039         gnulib-tool.texi: mention possibility of git submodule
28040         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28041         submodules.
28042         * doc/.gitignore: Ignore another generated file.
28043
28044 2010-03-08  Karl Berry  <karl@gnu.org>
28045
28046         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28047         of committing gnulib files while skipping others.
28048
28049 2010-03-07  Bruno Haible  <bruno@clisp.org>
28050
28051         Tests of module 'wctype' in C++ mode.
28052         * tests/test-wctype-c++.cc: New file.
28053         * modules/wctype-tests (Files): Add it and tests/signature.h.
28054         (Depends-on): Add ansi-c++-opt.
28055         (Makefile.am): Arrange to compile and run test-wctype-c++.
28056
28057         Tests of module 'wchar' in C++ mode.
28058         * tests/test-wchar-c++.cc: New file.
28059         * modules/wchar-tests (Files): Add it and tests/signature.h.
28060         (Depends-on): Add ansi-c++-opt.
28061         (Makefile.am): Arrange to compile and run test-wchar-c++.
28062         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28063         gl_MODULE_INDICATOR.
28064
28065         Tests of module 'unistd' in C++ mode.
28066         * tests/test-unistd-c++.cc: New file.
28067         * modules/unistd-tests (Files): Add it and tests/signature.h.
28068         (Depends-on): Add ansi-c++-opt.
28069         (Makefile.am): Arrange to compile and run test-unistd-c++.
28070         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28071         gl_MODULE_INDICATOR.
28072
28073         Tests of module 'time' in C++ mode.
28074         * tests/test-time-c++.cc: New file.
28075         * modules/time-tests (Files): Add it and tests/signature.h.
28076         (Depends-on): Add ansi-c++-opt.
28077         (Makefile.am): Arrange to compile and run test-time-c++.
28078         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28079
28080         Tests of module 'sys_time' in C++ mode.
28081         * tests/test-sys_time-c++.cc: New file.
28082         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28083         (Depends-on): Add ansi-c++-opt.
28084         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28085         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28086         gl_MODULE_INDICATOR.
28087
28088         Tests of module 'sys_stat' in C++ mode.
28089         * tests/test-sys_stat-c++.cc: New file.
28090         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28091         (Depends-on): Add ansi-c++-opt.
28092         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28093         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28094         gl_MODULE_INDICATOR.
28095
28096         Tests of module 'sys_socket' in C++ mode.
28097         * tests/test-sys_socket-c++.cc: New file.
28098         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28099         (Depends-on): Add ansi-c++-opt.
28100         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28101         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28102         gl_MODULE_INDICATOR.
28103
28104         Tests of module 'sys_select' in C++ mode.
28105         * tests/test-sys_select-c++.cc: New file.
28106         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28107         (Depends-on): Add ansi-c++-opt.
28108         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28109         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28110         gl_MODULE_INDICATOR.
28111
28112         Tests of module 'sys_ioctl' in C++ mode.
28113         * tests/test-sys_ioctl-c++.cc: New file.
28114         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28115         (Depends-on): Add ansi-c++-opt.
28116         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28117         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28118         gl_MODULE_INDICATOR.
28119
28120         Tests of module 'string' in C++ mode.
28121         * tests/test-string-c++.cc: New file.
28122         * modules/string-tests (Files): Add it and tests/signature.h.
28123         (Depends-on): Add ansi-c++-opt.
28124         (Makefile.am): Arrange to compile and run test-string-c++.
28125         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28126         gl_MODULE_INDICATOR.
28127
28128         Tests of module 'stdlib' in C++ mode.
28129         * tests/test-stdlib-c++.cc: New file.
28130         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28131         (Depends-on): Add ansi-c++-opt.
28132         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28133         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28134         gl_MODULE_INDICATOR.
28135
28136         Tests of module 'stdio' in C++ mode.
28137         * tests/test-stdio-c++.cc: New file.
28138         * modules/stdio-tests (Files): Add it and tests/signature.h.
28139         (Depends-on): Add ansi-c++-opt.
28140         (Makefile.am): Arrange to compile and run test-stdio-c++.
28141         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28142         gl_MODULE_INDICATOR.
28143
28144         Tests of module 'spawn' in C++ mode.
28145         * tests/test-spawn-c++.cc: New file.
28146         * modules/spawn-tests (Files): Add it and tests/signature.h.
28147         (Depends-on): Add ansi-c++-opt.
28148         (Makefile.am): Arrange to compile and run test-spawn-c++.
28149         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28150         gl_MODULE_INDICATOR.
28151
28152         Tests of module 'signal' in C++ mode.
28153         * tests/test-signal-c++.cc: New file.
28154         * modules/signal-tests (Files): Add it and tests/signature.h.
28155         (Depends-on): Add ansi-c++-opt.
28156         (Makefile.am): Arrange to compile and run test-signal-c++.
28157         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28158         gl_MODULE_INDICATOR.
28159
28160         Tests of module 'search' in C++ mode.
28161         * tests/test-search-c++.cc: New file.
28162         * modules/search-tests (Files): Add it and tests/signature.h.
28163         (Depends-on): Add ansi-c++-opt.
28164         (Makefile.am): Arrange to compile and run test-search-c++.
28165         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28166         gl_MODULE_INDICATOR.
28167
28168         Tests of module 'math' in C++ mode.
28169         * tests/test-math-c++.cc: New file.
28170         * modules/math-tests (Files): Add it and tests/signature.h.
28171         (Depends-on): Add ansi-c++-opt.
28172         (Makefile.am): Arrange to compile and run test-math-c++.
28173         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28174
28175         Tests of module 'locale' in C++ mode.
28176         * tests/test-locale-c++.cc: New file.
28177         * modules/locale-tests (Files): Add it and tests/signature.h.
28178         (Depends-on): Add ansi-c++-opt.
28179         (Makefile.am): Arrange to compile and run test-locale-c++.
28180         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28181         gl_MODULE_INDICATOR.
28182
28183         Tests of module 'langinfo' in C++ mode.
28184         * tests/test-langinfo-c++.cc: New file.
28185         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28186         (Depends-on): Add ansi-c++-opt.
28187         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28188         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28189         gl_MODULE_INDICATOR.
28190
28191         Tests of module 'iconv-h' in C++ mode.
28192         * tests/test-iconv-h-c++.cc: New file.
28193         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28194         (Depends-on): Add ansi-c++-opt.
28195         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28196
28197         Tests of module 'glob' in C++ mode.
28198         * tests/test-glob-c++.cc: New file.
28199         * modules/glob-tests (Files): Add it.
28200         (Depends-on): Add ansi-c++-opt.
28201         (Makefile.am): Arrange to compile and run test-glob-c++.
28202
28203         Tests of module 'fcntl-h' in C++ mode.
28204         * tests/test-fcntl-h-c++.cc: New file.
28205         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28206         (Depends-on): Add ansi-c++-opt.
28207         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28208         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28209         gl_MODULE_INDICATOR.
28210
28211         Tests of module 'dirent' in C++ mode.
28212         * tests/test-dirent-c++.cc: New file.
28213         * modules/dirent-tests (Files): Add it and tests/signature.h.
28214         (Depends-on): Add ansi-c++-opt.
28215         (Makefile.am): Arrange to compile and run test-dirent-c++.
28216         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28217         gl_MODULE_INDICATOR.
28218
28219         New module 'ansi-c++-opt'.
28220         * modules/ansi-c++-opt: New file.
28221         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28222
28223         Document C++ namespace mode.
28224         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28225
28226         wctype: Avoid #define replacements in C++ mode.
28227         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28228         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28229         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28230         In C++, define a namespaced alias symbol.
28231         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28232         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28233         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28234         rule.
28235
28236         wchar: Avoid #define replacements in C++ mode.
28237         * lib/wchar.in.h: Include c++defs.h.
28238         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
28239         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
28240         symbol.
28241         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
28242         * modules/wchar (Depends-on): Add c++defs.
28243         (Makefile.am): Update wchar.h rule.
28244
28245         unistd: Avoid #define replacements in C++ mode.
28246         * lib/unistd.in.h: Include c++defs.h.
28247         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
28248         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
28249         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
28250         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
28251         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
28252         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
28253         symbol.
28254         (environ): Update.
28255         * modules/unistd (Depends-on): Add c++defs.
28256         (Makefile.am): Update unistd.h rule.
28257
28258         time: Avoid #define replacements in C++ mode.
28259         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
28260         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
28261         define a namespaced alias symbol.
28262         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
28263         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
28264         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
28265         * modules/time (Depends-on): Add c++defs, warn-on-use.
28266         (Makefile.am): Update time.h rule.
28267         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28268         * modules/nanosleep (configure.ac): Likewise.
28269         * modules/strptime (configure.ac): Likewise.
28270         * modules/timegm (configure.ac): Likewise.
28271
28272         sys_time: Avoid #define replacements in C++ mode.
28273         * lib/sys_time.in.h: Include c++defs.h.
28274         (gettimeofday): In C++, define a namespaced alias symbol.
28275         * modules/sys_time (Depends-on): Add c++defs.
28276         (Makefile.am): Update sys/time.h rule.
28277
28278         sys_stat: Avoid #define replacements in C++ mode.
28279         * lib/sys_stat.in.h: Include c++defs.h.
28280         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
28281         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
28282         namespaced alias symbol.
28283         In C++, define a namespaced alias symbol.
28284         * modules/sys_stat (Depends-on): Add c++defs.
28285         (Makefile.am): Update sys/stat.h rule.
28286
28287         sys_socket: Avoid #define replacements in C++ mode.
28288         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
28289         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
28290         definitions also when the system has a <sys/socket.h>.
28291         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28292         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
28293         In C++, define a namespaced alias symbol.
28294         * modules/sys_socket (Depends-on): Add c++defs.
28295         (Makefile.am): Update sys/socket.h rule.
28296
28297         sys_select: Avoid #define replacements in C++ mode.
28298         * lib/sys_select.in.h: Include c++defs.h. Enable the function
28299         definitions also when the system has a <sys/select.h>.
28300         (select): In C++, define a namespaced alias symbol.
28301         * modules/sys_select (Depends-on): Add c++defs.
28302         (Makefile.am): Update sys/select.h rule.
28303
28304         sys_ioctl: Avoid #define replacements in C++ mode.
28305         * lib/sys_ioctl.in.h: Include c++defs.h.
28306         (ioctl): In C++, define a namespaced alias symbol.
28307         * modules/sys_ioctl (Depends-on): Add c++defs.
28308         (Makefile.am): Update sys/ioctl.h rule.
28309
28310         string: Avoid #define replacements in C++ mode.
28311         * lib/string.in.h: Include c++defs.h.
28312         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
28313         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28314         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28315         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
28316         strsignal, strverscmp): In C++, define a namespaced alias symbol.
28317         * modules/string (Depends-on): Add c++defs.
28318         (Makefile.am): Update string.h rule.
28319
28320         stdlib: Avoid #define replacements in C++ mode.
28321         * lib/stdlib.in.h: Include c++defs.h.
28322         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
28323         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
28324         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
28325         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
28326         symbol.
28327         * modules/stdlib (Depends-on): Add c++defs.
28328         (Makefile.am): Update stdlib.h rule.
28329
28330         stdio: Avoid #define replacements in C++ mode.
28331         * lib/stdio.in.h: Include c++defs.h.
28332         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
28333         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
28334         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
28335         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
28336         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
28337         namespaced alias symbol.
28338         * modules/stdio (Depends-on): Add c++defs.
28339         (Makefile.am): Update stdio.h rule.
28340
28341         spawn: Avoid #define replacements in C++ mode.
28342         * lib/spawn.in.h: Include c++defs.h.
28343         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28344         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28345         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28346         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28347         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28348         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28349         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28350         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28351         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28352         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28353         In C++, define a namespaced alias symbol.
28354         * modules/spawn (Depends-on): Add c++defs.
28355         (Makefile.am): Update spawn.h rule.
28356
28357         signal: Avoid #define replacements in C++ mode.
28358         * lib/signal.in.h: Include c++defs.h.
28359         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28360         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
28361         namespaced alias symbol.
28362         * modules/signal (Depends-on): Add c++defs.
28363         (Makefile.am): Update signal.h rule.
28364
28365         search: Avoid #define replacements in C++ mode.
28366         * lib/search.in.h: Include c++defs.h.
28367         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28368         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28369         symbol.
28370         * modules/search (Depends-on): Add c++defs.
28371         (Makefile.am): Update search.h rule.
28372
28373         math: Avoid #define replacements in C++ mode.
28374         * lib/math.in.h: Include c++defs.h.
28375         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28376         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28377         trunc, truncl): In C++, define a namespaced alias symbol.
28378         * modules/math (Depends-on): Add c++defs.
28379         (Makefile.am): Update math.h rule.
28380
28381         locale: Avoid #define replacements in C++ mode.
28382         * lib/locale.in.h: Include c++defs.h.
28383         (duplocale): In C++, define a namespaced alias symbol.
28384         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
28385         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
28386         * modules/locale (Depends-on): Add c++defs.
28387         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
28388
28389         langinfo: Avoid #define replacements in C++ mode.
28390         * lib/langinfo.in.h: Include c++defs.h.
28391         (nl_langinfo): In C++, define a namespaced alias symbol.
28392         * modules/langinfo (Depends-on): Add c++defs.
28393         (Makefile.am): Update langinfo.h rule.
28394
28395         iconv-h: Avoid #define replacements in C++ mode.
28396         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28397         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28398         symbol.
28399         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28400         whenever iconv is present.
28401         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28402         (Makefile.am): Update iconv.h rule.
28403
28404         glob: Avoid #define replacements in C++ mode.
28405         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28406         (_gl_glob_errfunc_fn): New type.
28407         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28408         symbol.
28409         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28410         (Makefile.am): Update glob.h rule.
28411
28412         fcntl-h: Avoid #define replacements in C++ mode.
28413         * lib/fcntl.in.h: Include c++defs.h.
28414         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28415         * modules/fcntl-h (Depends-on): Add c++defs.
28416         (Makefile.am): Update fcntl.h rule.
28417
28418         dirent: Avoid #define replacements in C++ mode.
28419         * lib/dirent.in.h: Include c++defs.h.
28420         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28421         namespaced alias symbol.
28422         (dirfd): Update declaration.
28423         * modules/dirent (Depends-on): Add c++defs.
28424         (Makefile.am): Update dirent.h rule.
28425
28426         ctype: Make it usable in C++ code.
28427         * lib/ctype.in.h: Include c++defs.h.
28428         (isblank): Declare as extern "C".
28429         * modules/ctype (Depends-on): Add c++defs.
28430         (Makefile.am): Update ctype.h rule.
28431
28432         New module 'c++defs'.
28433         * modules/c++defs: New file.
28434         * build-aux/c++defs.h: New file.
28435         Reported by John W. Eaton <jwe@gnu.org>.
28436
28437 2010-03-07  Bruno Haible  <bruno@clisp.org>
28438
28439         logb: Provide missing declaration for Cygwin.
28440         * lib/math.in.h (logb): New declaration.
28441         * m4/logb.m4: New file.
28442         * modules/logb (Files): Add m4/logb.m4.
28443         (Depends-on): Add math.
28444         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28445         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28447         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28448         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28449
28450 2010-03-07  Bruno Haible  <bruno@clisp.org>
28451
28452         Fix test-cond link error.
28453         * tests/test-cond.c: Include <stdio.h>.
28454
28455 2010-03-07  Bruno Haible  <bruno@clisp.org>
28456
28457         Fix test-dirent-safer link error.
28458         * modules/dirent-safer-tests (Makefile.am): Define
28459         test_dirent_safer_LDADD.
28460
28461 2010-03-07  Bruno Haible  <bruno@clisp.org>
28462
28463         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28464         among default module list.
28465
28466 2010-03-07  Bruno Haible  <bruno@clisp.org>
28467
28468         Fix link error on platforms with GNU libiconv.
28469         * modules/unistr/u8-strcoll-tests (Makefile): Define
28470         test_u8_strcoll_LDADD.
28471         * modules/unistr/u16-strcoll-tests (Makefile): Define
28472         test_u16_strcoll_LDADD.
28473         * modules/unistr/u32-strcoll-tests (Makefile): Define
28474         test_u32_strcoll_LDADD.
28475
28476 2010-03-07  Bruno Haible  <bruno@clisp.org>
28477
28478         Use POSIX declarations for socket functions.
28479         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28480         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28481         rpl_sendto): Change declaration to match POSIX.
28482         * lib/connect.c (rpl_connect): Likewise.
28483         * lib/accept.c (rpl_accept): Likewise.
28484         * lib/bind.c (rpl_bind): Likewise.
28485         * lib/getpeername.c (rpl_getpeername): Likewise.
28486         * lib/getsockname.c (rpl_getsockname): Likewise.
28487         * lib/recv.c (rpl_recv): Likewise.
28488         * lib/send.c (rpl_send): Likewise.
28489         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28490         * lib/sendto.c (rpl_sendto): Likewise.
28491
28492 2010-03-06  Bruno Haible  <bruno@clisp.org>
28493
28494         Clarify access, euidaccess, faccessat.
28495         * doc/posix-functions/faccessat.texi: Mention security problem under
28496         "Other problems", not "Portability problems".
28497         * doc/posix-functions/access.texi: Likewise. Mention a related security
28498         problem.
28499         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28500         * lib/euidaccess.c: Add comments about platforms.
28501         * lib/unistd.in.h (access, euidaccess): Add warnings.
28502
28503 2010-03-07  Bruno Haible  <bruno@clisp.org>
28504
28505         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28506         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28507         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28508         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28509         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28510         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28511         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28512         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28513         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28514         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28515         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28516         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28517         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28518         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28519         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28520         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28521         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28522         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28523         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28524         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28525         Likewise.
28526         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28527         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28528         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28529         Likewise.
28530         * tests/test-spawn.c (main): Make it work when
28531         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28532
28533 2010-03-07  Bruno Haible  <bruno@clisp.org>
28534
28535         Fix incorrect Makefile.am generation in German locale.
28536         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28537         Execute sed command with character range in C locale.
28538
28539 2010-03-06  Bruno Haible  <bruno@clisp.org>
28540
28541         Tests for module 'iconv-h'.
28542         * modules/iconv-h-tests: New file.
28543         * tests/test-iconv-h.c: New file.
28544
28545         New module 'iconv-h'.
28546         * modules/iconv-h: New file.
28547         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28548         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28549         (configure.ac): Remove gl_ICONV_H.
28550         (Makefile.am): Remove rule for iconv.h.
28551
28552 2010-03-06  Bruno Haible  <bruno@clisp.org>
28553
28554         More consistent naming of *.m4 files.
28555         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28556         * modules/wctype (Files): Update.
28557
28558         More consistent naming of *.m4 files.
28559         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28560         * modules/wchar (Files): Update.
28561
28562 2010-03-06  Jim Meyering  <meyering@redhat.com>
28563
28564         euidaccess: relax license to LGPLv2+
28565         * modules/euidaccess (License): Relax to LGPLv2+.
28566
28567 2010-03-06  Bruno Haible  <bruno@clisp.org>
28568
28569         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28570         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28571         (Makefile.am): Augment lib_SOURCES instead.
28572
28573 2010-03-04  Jim Meyering  <meyering@redhat.com>
28574
28575         utime: remove obsolete module
28576         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28577         unnecessary for years, and has been marked as obsolete for 10 months.
28578         * modules/utime: Remove file.
28579         * lib/utime.c: Remove file.
28580         * m4/utime.m4: Remove file.
28581         * m4/utimes-null.m4: Remove file.
28582         * doc/posix-functions/utime.texi (utime): Remove reference to
28583         the module.  Move the sole "fixed by gnulib" item into the
28584         "problems not fixed by Gnulib" list.
28585         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28586
28587 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28588
28589         * modules/exit (License): Relax license to LGPLv2+.
28590         (Status): Mark as obsolete.
28591         * NEWS: Mention deprecated 'exit' module.
28592         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28593         of now obsolete 'exit'.
28594
28595 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28596
28597         fts-lgpl: remove unused module
28598         * modules/fts-lgpl: Remove.
28599         * MODULES.html.sh (func_all_modules): Adjust.
28600         * check-module (find_included_lib_files): Adjust.
28601         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28602
28603 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28604
28605         copy-acl: enhance Solaris ACL error handling
28606         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28607         * lib/set-mode-acl.c (qset_acl): Likewise.
28608
28609 2010-03-02  Bruno Haible  <bruno@clisp.org>
28610
28611         spawn: Don't override the system defined values on FreeBSD 8.
28612         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28613         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28614         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28615         if HAVE_POSIX_SPAWN is 1.
28616         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28617
28618 2010-03-01  Bruno Haible  <bruno@clisp.org>
28619
28620         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28621         regarding Automake.
28622
28623 2010-02-25  Bruno Haible  <bruno@clisp.org>
28624
28625         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28626         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28627         setting, not afterwards.
28628         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28629
28630 2010-02-24  Eric Blake  <eblake@redhat.com>
28631
28632         bootstrap, git-version-gen: use timestamp
28633         * build-aux/git-version-gen (scriptversion): Force UTC.
28634         * build-aux/bootstrap (scriptversion): New variable.
28635
28636         bootstrap: allow older git
28637         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28638         older than 1.6.4.  Requested by the libvirt project.
28639
28640 2010-02-23  Eric Blake  <eblake@redhat.com>
28641
28642         warn-on-use: work with old autoconf
28643         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28644         AS_VAR semantics of autoconf 2.60.
28645         Reported by Bruno Haible.
28646
28647         bootstrap: improve some comments
28648         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28649         clarification comments.
28650
28651         gettimeofday: provide correct function
28652         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28653         when replacement is declared, otherwise provide gettimeofday.
28654         Reported by Michael Goffioul.
28655
28656 2010-02-23  Jim Meyering  <meyering@redhat.com>
28657
28658         lib-ignore: relax license to "unlimited", not LGPLv2+
28659         * modules/lib-ignore (License): Relax to "unlimited".
28660
28661 2010-02-23  Jim Meyering  <meyering@redhat.com>
28662
28663         lib-ignore: relax license to LGPLv2+
28664         * modules/lib-ignore (License): Relax to LGPLv2+.
28665
28666 2010-02-22  Eric Blake  <eblake@redhat.com>
28667
28668         lseek: avoid bash 3.2 broken pipe bug
28669         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28670         warning from bash 3.2.
28671         Reported by Ben Pfaff, with analysis from Bruno Haible.
28672
28673         bootstrap: support non-FSF copyright holder
28674         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28675         bootstrap.conf override of COPYRIGHT_HOLDER.
28676         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28677
28678         bootstrap: interoperate with gettext 0.14.1
28679         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28680
28681         bootstrap: allow for alternate submodule location
28682         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28683         hardcoding submodule location.
28684         (gnulib_mk): Allow direct use of Makefile.am.
28685
28686         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28687         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28688         rather than reconfiguring where the submodule points.
28689
28690         gettimeofday: restore support for platforms that lack function
28691         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28692         replacement if function is missing.
28693         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28694         * modules/sys_time (Makefile.am): Substitute it.
28695         * lib/sys_time.in.h (gettimeofday): Check it.
28696         Reported by Michael Goffioul.
28697
28698 2010-02-21  Bruno Haible  <bruno@clisp.org>
28699
28700         * lib/stdio.in.h (obstack_printf): Fix typo.
28701
28702 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28703
28704         vc-list-files: use bzr ls's -R option
28705         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28706         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28707
28708 2010-02-21  Jim Meyering  <meyering@redhat.com>
28709
28710         init.sh: fix EXEEXT shims to work also for names like test-prog
28711         * tests/init.sh: Re-exec a better shell, when needed.
28712         If the current shell lacks support for posix $(...), an init.sh-using
28713         test will now try to find a shell that supports that.  If EXEEXT is
28714         nonempty, we also require support for hyphen-in-alias-name and shell
28715         substitutions like ${var#glob}.  Failure to find such a shell results
28716         in a skipped test.
28717
28718 2010-02-21  Bruno Haible  <bruno@clisp.org>
28719
28720         Really work around around "broken pipe" error message from bash 3.2.
28721         * gnulib-tool (func_reset_sigpipe): Remove function.
28722         (echo): In bash 3.2, define to a function that uses printf.
28723         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28724
28725 2010-02-20  Bruno Haible  <bruno@clisp.org>
28726
28727         Restore support for automake 1.9.6 with autoconf 2.61.
28728         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28729         Reported by James Youngman <jay@gnu.org>.
28730
28731 2010-02-20  Bruno Haible  <bruno@clisp.org>
28732
28733         Improve *printf warning condition.
28734         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28735         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28736         and the function is overridden due to SIGPIPE emulation.
28737
28738 2010-02-20  Bruno Haible  <bruno@clisp.org>
28739
28740         * lib/stdio.in.h: Tweak comments.
28741
28742 2010-02-19  Bruno Haible  <bruno@clisp.org>
28743
28744         Make it easier to find modules. New gnulib-tool option '--find'.
28745         * gnulib-tool: New option --find.
28746         (func_usage): Document it.
28747         (func_sanitize_modulelist): New function, extracted from
28748         func_all_modules.
28749         (func_all_modules): Invoke it.
28750         * doc/gnulib-tool.texi (Which modules?): New node.
28751
28752 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28753
28754         * lib/sys_select.in.h: Provide select replacement even if
28755         sys/select.h exists on a system, for Interix.
28756
28757 2010-02-18  Jim Meyering  <meyering@redhat.com>
28758
28759         init.sh: don't use $(...) just yet
28760         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28761         to accommodate e.g., Solaris' /bin/sh.
28762
28763 2010-02-17  Bruno Haible  <bruno@clisp.org>
28764
28765         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28766         Reported by Ludovic Courtès <ludo@gnu.org>.
28767
28768 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28769
28770         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28771         linking with -lintl.
28772
28773 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28774
28775         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28776         if not provided by the system's netdb.h.  Reported by
28777         ludo@gnu.org (Ludovic Courtès).
28778
28779 2010-02-15  Jim Meyering  <meyering@redhat.com>
28780
28781         init.sh: improve portability and efficiency
28782         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28783         "dummy" in a for loop.
28784         Use '!', not '^' to select the complement of a character set used
28785         in a "case" statement.
28786         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28787         Suggestions from Eric Blake.
28788
28789         init.sh: automatically accommodate programs with the .exe suffix
28790         Automatically arrange for an invocation of "prog" to execute the
28791         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28792         may use the simpler "prog", yet still work when built on a system
28793         that requires specifying the added suffix.
28794         Do this by constructing a function named "prog" that invokes
28795         "prog.exe" for each .exe file in selected directories.
28796         * tests/init.sh (find_exe_basenames_): New function.
28797         (create_exe_shim_functions_): New function.
28798         (path_prepend_): Use it.
28799
28800         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28801         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28802         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28803
28804 2010-02-14  Jim Meyering  <meyering@redhat.com>
28805
28806         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28807         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28808         (sc_prohibit_hash_pjw_without_use): New rule.
28809
28810         maint.mk: allow the default upload destination dir to be overridden
28811         * top/maint.mk (upload_dest_dir_): Define with a default that
28812         preserves the status quo.
28813         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28814         Reported by Peter Simons.
28815
28816         maint.mk: prohibit inclusion of "hash.h" without_use
28817         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28818
28819 2010-02-10  Jim Meyering  <meyering@redhat.com>
28820
28821         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28822         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28823
28824 2010-02-09  Eric Blake  <ebb9@byu.net>
28825         and Bruno Haible  <bruno@clisp.org>
28826
28827         obstack-printf-posix: ensure declaration
28828         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28829         extracted from gl_FUNC_OBSTACK_PRINTF.
28830         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28831         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28832         Likewise.
28833         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28834         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28835         0.
28836
28837 2010-02-08  Bruno Haible  <bruno@clisp.org>
28838
28839         gnulib-tool: Fix typo in 2010-02-07 commit.
28840         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28841         Reported by Eric Blake.
28842
28843 2010-02-07  Bruno Haible  <bruno@clisp.org>
28844
28845         gnulib-tool: Fix up caching patches.
28846         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28847         option --no-cache. Use associative arrays when supported by the shell.
28848         (sed_comments): New variable.
28849         (modcache): Renamed from do_cache.
28850         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28851         abbreviate unnecessarily.
28852         (have_associative): New variable.
28853         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28854         way also for ksh and zsh.
28855         (func_init_sed_convert_to_cache_statements): New function, extracted
28856         from func_cache_lookup_module. Add support for associative arrays.
28857         Don't set the c_MODULE_cached variable here. Ignore all lines before
28858         the first field header. Remove only the final newline, not all trailing
28859         newlines. Support empty fields correctly. Limit the use of 'eval' to
28860         assignments.
28861         (func_get_description, func_get_status, func_get_notice,
28862         func_get_applicability, func_get_filelist, func_get_dependencies,
28863         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28864         func_get_automake_snippet, func_get_include_directive,
28865         func_get_link_directive, func_get_license, func_get_maintainer):
28866         Update documentation. List the unoptimized code first. Add support for
28867         associative arrays. Limit the use of 'eval' to assignments.
28868         (func_get_applicability): Undo stylistic pessimisations.
28869         (func_get_automake_snippet, func_get_include_directive): Reduce code
28870         duplication.
28871         (func_modules_transitive_closure, func_modules_add_dummy,
28872         func_modules_notice, func_modules_to_filelist, func_add_file,
28873         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28874         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28875         func_create_testdir, func_create_megatestdir): Update documentation.
28876
28877 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28878
28879         * gnulib-tool (func_cache_lookup_module): Store the module name
28880         belonging to the cache variable; error out if two different
28881         module names map to the same cache variable name.
28882
28883 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28884
28885         gnulib-tool: Make caching optional.
28886         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28887         Update matching short versions of --no-changelog.
28888         (func_usage): Update.
28889         (sed_extract_cache_prog): Renamed from ...
28890         (sed_extract_prog): ... this; revert to old extraction script.
28891         (func_get_description, func_get_status)
28892         (func_get_notice, func_get_applicability, func_get_filelist)
28893         (func_get_dependencies, func_get_autoconf_early_snippet)
28894         (func_get_autoconf_snippet, func_get_automake_snippet)
28895         (func_get_include_directive, func_get_link_directive)
28896         (func_get_license, func_get_maintainer): If $do_cache is false,
28897         use old, non-caching extraction scripts.
28898         Suggestion by Bruno Haible.
28899
28900 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28901
28902         gnulib-tool: cache module metainformation.
28903         * gnulib-tool (sed_extract_prog): Match newline before each
28904         header, and rewrite header to a shell variable suffix.
28905         (func_cache_var, func_cache_lookup_module): New functions,
28906         to turn a module name into a cache variable prefix, and to
28907         look up and cache module metainformation.
28908         (func_get_description, func_get_status)
28909         (func_get_notice, func_get_applicability, func_get_filelist)
28910         (func_get_dependencies, func_get_autoconf_early_snippet)
28911         (func_get_autoconf_snippet, func_get_automake_snippet)
28912         (func_get_include_directive, func_get_link_directive)
28913         (func_get_license, func_get_maintainer): Use
28914         func_cache_lookup_module.
28915
28916 2010-02-07  Bruno Haible  <bruno@clisp.org>
28917
28918         fnctl: Fix missing dependency.
28919         * modules/fcntl (Depends-on): Add getdtablesize.
28920         Reported by John W. Eaton <jwe@gnu.org>.
28921
28922 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28923
28924         Argp: fix recognition of short alias options.
28925
28926         * lib/argp-parse.c (convert_options): Fix improper use of
28927         `|' between character values.
28928         * tests/test-argp.c (group1_option): New alias option
28929         --read (-r).
28930         (group1_parser): Special handling for 'r'.
28931         (test15): New test case.
28932         (test_fun): Add test15.
28933         * tests/test-argp-2.sh: Update expected --help and --usage
28934         outputs.
28935
28936 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28937
28938         * tests/test-argp.c: Fix indentation.
28939
28940 2010-02-04  Eric Blake  <ebb9@byu.net>
28941
28942         gettimeofday: expose type of second argument
28943         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28944         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28945         * tests/test-gettimeofday.c: Use it to silence warning.
28946         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28947         the issue.
28948
28949 2010-02-03  Jim Meyering  <meyering@redhat.com>
28950
28951         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28952         * lib/regcomp.c (TYPE_SIGNED): Define.
28953         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28954
28955         regcomp.c: avoid a new -Wshadow warning
28956         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28957
28958 2010-02-01  Jim Meyering  <meyering@redhat.com>
28959
28960         removing useless parentheses in cpp #define directives
28961         For motivation, see commit c0221df4, "define STREQ(a,b)
28962         consistently, removing useless parentheses"
28963         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28964         * lib/mountlist.c (MNT_IGNORE): Likewise.
28965         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28966
28967 2010-02-01  Eric Blake  <ebb9@byu.net>
28968
28969         sys_time: use link-warning
28970         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28971         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28972         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28973         * modules/sys_time (Depends-on): Add warn-on-use.
28974         (Makefile.am): Always build replacement.
28975         (configure.ac): Update substitutions.
28976         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28977         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28978         bother with SYS_TIME_H.
28979         * modules/gettimeofday (configure.ac): Declare indicator.
28980         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28981         in use.
28982
28983         closein-tests: silence compiler warning
28984         * tests/test-closein.c (main): Ignore fread result.
28985         * modules/closein-tests (Depends-on): Add ignore-value.
28986
28987         tests: silence warning about system return
28988         * tests/test-areadlink-with-size.c (main): Ignore system result.
28989         * tests/test-areadlink.c (main): Likewise.
28990         * tests/test-areadlinkat-with-size.c (main): Likewise.
28991         * tests/test-areadlinkat.c (main): Likewise.
28992         * tests/test-canonicalize-lgpl.c (main): Likewise.
28993         * tests/test-canonicalize.c (main): Likewise.
28994         * tests/test-chown.c (main): Likewise.
28995         * tests/test-fchownat.c (main): Likewise.
28996         * tests/test-fdutimensat.c (main): Likewise.
28997         * tests/test-fstatat.c (main): Likewise.
28998         * tests/test-futimens.c (main): Likewise.
28999         * tests/test-lchown.c (main): Likewise.
29000         * tests/test-link.c (main): Likewise.
29001         * tests/test-linkat.c (main): Likewise.
29002         * tests/test-lstat.c (main): Likewise.
29003         * tests/test-mkdir.c (main): Likewise.
29004         * tests/test-mkdirat.c (main): Likewise.
29005         * tests/test-mkfifo.c (main): Likewise.
29006         * tests/test-mkfifoat.c (main): Likewise.
29007         * tests/test-mknod.c (main): Likewise.
29008         * tests/test-readlink.c (main): Likewise.
29009         * tests/test-remove.c (main): Likewise.
29010         * tests/test-rename.c (main): Likewise.
29011         * tests/test-renameat.c (main): Likewise.
29012         * tests/test-rmdir.c (main): Likewise.
29013         * tests/test-symlink.c (main): Likewise.
29014         * tests/test-symlinkat.c (main): Likewise.
29015         * tests/test-unlink.c (main): Likewise.
29016         * tests/test-unlinkat.c (main): Likewise.
29017         * tests/test-utimens.c (main): Likewise.
29018         * tests/test-utimensat.c (main): Likewise.
29019         * modules/areadlink-tests (Depends-on): Add ignore-value.
29020         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29021         * modules/areadlinkat-tests (Depends-on): Likewise.
29022         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29023         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29024         * modules/canonicalize-tests (Depends-on): Likewise.
29025         * modules/chown-tests (Depends-on): Likewise.
29026         * modules/fdutimensat-tests (Depends-on): Likewise.
29027         * modules/futimens-tests (Depends-on): Likewise.
29028         * modules/lchown-tests (Depends-on): Likewise.
29029         * modules/link-tests (Depends-on): Likewise.
29030         * modules/linkat-tests (Depends-on): Likewise.
29031         * modules/lstat-tests (Depends-on): Likewise.
29032         * modules/mkdir-tests (Depends-on): Likewise.
29033         * modules/mkfifo-tests (Depends-on): Likewise.
29034         * modules/mkfifoat-tests (Depends-on): Likewise.
29035         * modules/mknod-tests (Depends-on): Likewise.
29036         * modules/openat-tests (Depends-on): Likewise.
29037         * modules/readlink-tests (Depends-on): Likewise.
29038         * modules/remove-tests (Depends-on): Likewise.
29039         * modules/rename-tests (Depends-on): Likewise.
29040         * modules/renameat-tests (Depends-on): Likewise.
29041         * modules/rmdir-tests (Depends-on): Likewise.
29042         * modules/symlink-tests (Depends-on): Likewise.
29043         * modules/symlinkat-tests (Depends-on): Likewise.
29044         * modules/unlink-tests (Depends-on): Likewise.
29045         * modules/utimens-tests (Depends-on): Likewise.
29046         * modules/utimensat-tests (Depends-on): Likewise.
29047
29048 2010-01-31  Bruno Haible  <bruno@clisp.org>
29049
29050         Perform the same test for many <math.h> functions.
29051         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29052         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29053         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29054         of gl_MATHFUNC.
29055         * modules/acos (configure.ac): Likewise.
29056         * modules/asin (configure.ac): Likewise.
29057         * modules/atan (configure.ac): Likewise.
29058         * modules/atan2 (configure.ac): Likewise.
29059         * modules/cbrt (configure.ac): Likewise.
29060         * modules/copysign (configure.ac): Likewise.
29061         * modules/cos (configure.ac): Likewise.
29062         * modules/cosh (configure.ac): Likewise.
29063         * modules/erf (configure.ac): Likewise.
29064         * modules/erfc (configure.ac): Likewise.
29065         * modules/exp (configure.ac): Likewise.
29066         * modules/fmod (configure.ac): Likewise.
29067         * modules/hypot (configure.ac): Likewise.
29068         * modules/j0 (configure.ac): Likewise.
29069         * modules/j1 (configure.ac): Likewise.
29070         * modules/jn (configure.ac): Likewise.
29071         * modules/lgamma (configure.ac): Likewise.
29072         * modules/log (configure.ac): Likewise.
29073         * modules/log10 (configure.ac): Likewise.
29074         * modules/log1p (configure.ac): Likewise.
29075         * modules/pow (configure.ac): Likewise.
29076         * modules/remainder (configure.ac): Likewise.
29077         * modules/sin (configure.ac): Likewise.
29078         * modules/sinh (configure.ac): Likewise.
29079         * modules/tan (configure.ac): Likewise.
29080         * modules/tanh (configure.ac): Likewise.
29081         * modules/y0 (configure.ac): Likewise.
29082         * modules/y1 (configure.ac): Likewise.
29083         * modules/yn (configure.ac): Likewise.
29084         Suggested by Paolo Bonzini.
29085
29086 2010-01-31  Bruno Haible  <bruno@clisp.org>
29087
29088         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29089
29090 2010-01-31  Bruno Haible  <bruno@clisp.org>
29091
29092         Work around getdelim() bug on FreeBSD 8.0.
29093         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29094         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29095         not work.
29096         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29097         is 1.
29098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29099         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29100         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29101         a non-zero size.
29102         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29103
29104 2010-01-31  Bruno Haible  <bruno@clisp.org>
29105
29106         Work around getline() bug on FreeBSD 8.0.
29107         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29108         and a non-zero size.
29109         * tests/test-getline.c (main): Likewise.
29110         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29111         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29112
29113 2010-01-28  Eric Blake  <ebb9@byu.net>
29114
29115         regex: fix build failure
29116         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29117         platforms.
29118
29119 2010-01-28  Jim Meyering  <meyering@redhat.com>
29120
29121         regex: do not ignore memory allocation failure
29122         * lib/regex_internal.c (create_cd_newstate): Detect
29123         re_node_set_init_copy failure.   Extracted from glibc commit
29124         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29125
29126         regex: sync more white-space changes from libc
29127         * lib/regex_internal.c: White-space only changes.
29128         * lib/regexec.c: Likewise.
29129
29130         regex: add many uses of __attribute_warn_unused_result__
29131         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29132         * lib/regexec.c: Likewise.
29133         Extracted from a messy glibc commit.
29134
29135         regcomp.c: spelling and merge-artifact from glibc
29136         * lib/regcomp.c: Merge remainder of glibc's
29137         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29138
29139         regcomp.c: sync white-space changes from glibc
29140         * lib/regcomp.c: Merge to accommodate white space
29141         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29142
29143         regcomp.c: do not ignore internal return values
29144         * lib/regcomp.c: Do not ignore internal return values.
29145         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29146         but without its white-space changes and spelling fixes.
29147
29148         regex_internal.h: define __attribute_warn_unused_result__
29149         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29150
29151         maint: add a syntax-check rule to check for vulnerable Makefile.in
29152         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29153
29154 2010-01-27  Jim Meyering  <meyering@redhat.com>
29155
29156         ncftpput-ftp: clean up spaces
29157         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29158         Remove trailing blanks.
29159
29160 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29161
29162         * build-aux/git-version-gen: Fix copyright statement.
29163         * build-aux/gnupload: Likewise.
29164         * tests/test-arcfour.c: Likewise.
29165         * tests/test-arctwo.c: Likewise.
29166         * tests/test-count-one-bits.c: Likewise.
29167         * tests/test-crc.c: Likewise.
29168         * tests/test-des.c: Likewise.
29169         * tests/test-gc-arcfour.c: Likewise.
29170         * tests/test-gc-arctwo.c: Likewise.
29171         * tests/test-gc-des.c: Likewise.
29172         * tests/test-gc-hmac-md5.c: Likewise.
29173         * tests/test-gc-hmac-sha1.c: Likewise.
29174         * tests/test-gc-md2.c: Likewise.
29175         * tests/test-gc-md4.c: Likewise.
29176         * tests/test-gc-md5.c: Likewise.
29177         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29178         * tests/test-gc-rijndael.c: Likewise.
29179         * tests/test-gc-sha1.c: Likewise.
29180         * tests/test-gc.c: Likewise.
29181         * tests/test-gethostname.c: Likewise.
29182         * tests/test-gettimeofday.c: Likewise.
29183         * tests/test-hash.c: Likewise.
29184         * tests/test-hmac-md5.c: Likewise.
29185         * tests/test-hmac-sha1.c: Likewise.
29186         * tests/test-md2.c: Likewise.
29187         * tests/test-md4.c: Likewise.
29188         * tests/test-md5.c: Likewise.
29189         * tests/test-memchr.c: Likewise.
29190         * tests/test-memchr2.c: Likewise.
29191         * tests/test-memcmp.c: Likewise.
29192         * tests/test-memmem.c: Likewise.
29193         * tests/test-memrchr.c: Likewise.
29194         * tests/test-rawmemchr.c: Likewise.
29195         * tests/test-read-file.c: Likewise.
29196         * tests/test-rijndael.c: Likewise.
29197         * tests/test-sockets.c: Likewise.
29198         * tests/test-strchrnul.c: Likewise.
29199         * tests/test-strstr.c: Likewise.
29200         * tests/test-strtod.c: Likewise.
29201         * build-aux/ncftpput-ftp: Likewise.
29202
29203 2010-01-26  Eric Blake  <ebb9@byu.net>
29204
29205         ignore-value: update recommended header name
29206         * modules/ignore-value (Include): Only use <> for headers that
29207         exist in glibc.
29208
29209 2010-01-26  Jim Meyering  <meyering@redhat.com>
29210
29211         test-userspec.c: avoid compiler warnings
29212         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29213         and "initialization discards qualifiers..." warnings.
29214         Put the first "uid" in its own scope, and make char* members "const".
29215
29216 2010-01-25  Bruno Haible  <bruno@clisp.org>
29217
29218         gnulib-tool: Make warning diagnostics consistent.
29219         * gnulib-tool (func_warning): New function.
29220         Use it everywhere where gnulib-tool produces output to stderr and it is
29221         not a fatal error.
29222
29223 2010-01-25  Bruno Haible  <bruno@clisp.org>
29224
29225         Fix test dependencies.
29226         * modules/xstrtol-tests (Depends-on): Add inttypes.
29227         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29228
29229 2010-01-25 Pádraig Brady <P@draigBrady.com>
29230
29231         syntax-check: detect incorrect boolean macro values in config.h
29232         * modules/maintainer-makefile (configure.ac): Parameterize the location
29233         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29234         The logic is from Eric Blake and the location indicated by Jim Meyering.
29235         Note the more natural CONFIG_HEADER name is prohibited by automake
29236         for backwards compatibility reasons.
29237         * top/maint.mk (sc_Wundef_boolean): New rule.
29238
29239 2010-01-25  Jim Meyering  <meyering@redhat.com>
29240
29241         bootstrap: detect MacOS 10.6's shasum, too
29242         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
29243         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
29244
29245 2010-01-23  Jim Meyering  <meyering@redhat.com>
29246
29247         xstrtoll: new module
29248         * modules/xstrtoll: New file.
29249         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
29250         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
29251         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
29252         ./configure fails if you use this module and lack "long long".
29253         * modules/xstrtoll-tests: New module.
29254         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
29255         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
29256         new init.sh-based test framework.
29257
29258 2010-01-24  Bruno Haible  <bruno@clisp.org>
29259
29260         Tests for module 'yn'.
29261         * modules/yn-tests: New file.
29262         * tests/test-yn.c: New file.
29263
29264         Tests for module 'y1'.
29265         * modules/y1-tests: New file.
29266         * tests/test-y1.c: New file.
29267
29268         Tests for module 'y0'.
29269         * modules/y0-tests: New file.
29270         * tests/test-y0.c: New file.
29271
29272         Tests for module 'tanh'.
29273         * modules/tanh-tests: New file.
29274         * tests/test-tanh.c: New file.
29275
29276         Tests for module 'tan'.
29277         * modules/tan-tests: New file.
29278         * tests/test-tan.c: New file.
29279
29280         Tests for module 'sqrt'.
29281         * modules/sqrt-tests: New file.
29282         * tests/test-sqrt.c: New file.
29283
29284         Tests for module 'sinh'.
29285         * modules/sinh-tests: New file.
29286         * tests/test-sinh.c: New file.
29287
29288         Tests for module 'sin'.
29289         * modules/sin-tests: New file.
29290         * tests/test-sin.c: New file.
29291
29292         Tests for module 'rint'.
29293         * modules/rint-tests: New file.
29294         * tests/test-rint.c: New file.
29295
29296         Tests for module 'remainder'.
29297         * modules/remainder-tests: New file.
29298         * tests/test-remainder.c: New file.
29299
29300         Tests for module 'pow'.
29301         * modules/pow-tests: New file.
29302         * tests/test-pow.c: New file.
29303
29304         Tests for module 'nextafter'.
29305         * modules/nextafter-tests: New file.
29306         * tests/test-nextafter.c: New file.
29307
29308         Tests for module 'modf'.
29309         * modules/modf-tests: New file.
29310         * tests/test-modf.c: New file.
29311
29312         Tests for module 'logb'.
29313         * modules/logb-tests: New file.
29314         * tests/test-logb.c: New file.
29315
29316         Tests for module 'log1p'.
29317         * modules/log1p-tests: New file.
29318         * tests/test-log1p.c: New file.
29319
29320         Tests for module 'log10'.
29321         * modules/log10-tests: New file.
29322         * tests/test-log10.c: New file.
29323
29324         Tests for module 'log'.
29325         * modules/log-tests: New file.
29326         * tests/test-log.c: New file.
29327
29328         Tests for module 'lgamma'.
29329         * modules/lgamma-tests: New file.
29330         * tests/test-lgamma.c: New file.
29331
29332         Tests for module 'ldexp'.
29333         * modules/ldexp-tests: New file.
29334         * tests/test-ldexp.c: New file.
29335
29336         Tests for module 'jn'.
29337         * modules/jn-tests: New file.
29338         * tests/test-jn.c: New file.
29339
29340         Tests for module 'j1'.
29341         * modules/j1-tests: New file.
29342         * tests/test-j1.c: New file.
29343
29344         Tests for module 'j0'.
29345         * modules/j0-tests: New file.
29346         * tests/test-j0.c: New file.
29347
29348         Tests for module 'hypot'.
29349         * modules/hypot-tests: New file.
29350         * tests/test-hypot.c: New file.
29351
29352         Tests for module 'fmod'.
29353         * modules/fmod-tests: New file.
29354         * tests/test-fmod.c: New file.
29355
29356         Tests for module 'fabs'.
29357         * modules/fabs-tests: New file.
29358         * tests/test-fabs.c: New file.
29359
29360         Tests for module 'exp'.
29361         * modules/exp-tests: New file.
29362         * tests/test-exp.c: New file.
29363
29364         Tests for module 'erfc'.
29365         * modules/erfc-tests: New file.
29366         * tests/test-erfc.c: New file.
29367
29368         Tests for module 'erf'.
29369         * modules/erf-tests: New file.
29370         * tests/test-erf.c: New file.
29371
29372         Tests for module 'cosh'.
29373         * modules/cosh-tests: New file.
29374         * tests/test-cosh.c: New file.
29375
29376         Tests for module 'cos'.
29377         * modules/cos-tests: New file.
29378         * tests/test-cos.c: New file.
29379
29380         Tests for module 'copysign'.
29381         * modules/copysign-tests: New file.
29382         * tests/test-copysign.c: New file.
29383
29384         Tests for module 'cbrt'.
29385         * modules/cbrt-tests: New file.
29386         * tests/test-cbrt.c: New file.
29387
29388         Tests for module 'atan2'.
29389         * modules/atan2-tests: New file.
29390         * tests/test-atan2.c: New file.
29391
29392         Tests for module 'atan'.
29393         * modules/atan-tests: New file.
29394         * tests/test-atan.c: New file.
29395
29396         Tests for module 'asin'.
29397         * modules/asin-tests: New file.
29398         * tests/test-asin.c: New file.
29399
29400         Tests for module 'acos'.
29401         * modules/acos-tests: New file.
29402         * tests/test-acos.c: New file.
29403
29404 2010-01-24  Bruno Haible  <bruno@clisp.org>
29405
29406         Fix tests for common <math.h> functions.
29407         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29408         code snippet that references the function pointer, rather than merely
29409         calling the function. Substitute the FUNC_LIBM variable.
29410         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29411         * modules/acos (configure.ac): Likewise.
29412         * modules/asin (configure.ac): Likewise.
29413         * modules/atan (configure.ac): Likewise.
29414         * modules/atan2 (configure.ac): Likewise.
29415         * modules/cbrt (configure.ac): Likewise.
29416         * modules/copysign (configure.ac): Likewise.
29417         * modules/cos (configure.ac): Likewise.
29418         * modules/cosh (configure.ac): Likewise.
29419         * modules/erf (configure.ac): Likewise.
29420         * modules/erfc (configure.ac): Likewise.
29421         * modules/exp (configure.ac): Likewise.
29422         * modules/fabs (configure.ac): Likewise.
29423         * modules/fmod (configure.ac): Likewise.
29424         * modules/hypot (configure.ac): Likewise.
29425         * modules/j0 (configure.ac): Likewise.
29426         * modules/j1 (configure.ac): Likewise.
29427         * modules/jn (configure.ac): Likewise.
29428         * modules/ldexp (configure.ac): Likewise.
29429         * modules/lgamma (configure.ac): Likewise.
29430         * modules/log (configure.ac): Likewise.
29431         * modules/log10 (configure.ac): Likewise.
29432         * modules/log1p (configure.ac): Likewise.
29433         * modules/logb (configure.ac): Likewise.
29434         * modules/modf (configure.ac): Likewise.
29435         * modules/nextafter (configure.ac): Likewise.
29436         * modules/pow (configure.ac): Likewise.
29437         * modules/remainder (configure.ac): Likewise.
29438         * modules/rint (configure.ac): Likewise.
29439         * modules/sin (configure.ac): Likewise.
29440         * modules/sinh (configure.ac): Likewise.
29441         * modules/tan (configure.ac): Likewise.
29442         * modules/tanh (configure.ac): Likewise.
29443         * modules/y0 (configure.ac): Likewise.
29444         * modules/y1 (configure.ac): Likewise.
29445         * modules/yn (configure.ac): Likewise.
29446
29447 2010-01-24  Bruno Haible  <bruno@clisp.org>
29448
29449         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29450         * tests/test-acosl.c (x): New variable.
29451         (main): Store argument in x and fetch it from x.
29452         * tests/test-asinl.c (x): New variable.
29453         (main): Store argument in x and fetch it from x.
29454         * tests/test-atanl.c (x): New variable.
29455         (main): Store argument in x and fetch it from x.
29456         * tests/test-cosl.c (x): New variable.
29457         (main): Store argument in x and fetch it from x.
29458         * tests/test-expl.c (x): New variable.
29459         (main): Store argument in x and fetch it from x.
29460         * tests/test-logl.c (x): New variable.
29461         (main): Store argument in x and fetch it from x.
29462         * tests/test-sinl.c (x): New variable.
29463         (main): Store argument in x and fetch it from x.
29464         * tests/test-sqrtl.c (x): New variable.
29465         (main): Store argument in x and fetch it from x.
29466         * tests/test-tanl.c (x): New variable.
29467         (main): Store argument in x and fetch it from x.
29468
29469 2010-01-24  Bruno Haible  <bruno@clisp.org>
29470
29471         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29472         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29473         assignments to the initial TESTS_ENVIRONMENT.
29474         * doc/gnulib.texi (Unit test modules): Document it.
29475         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29476         TESTS_ENVIRONMENT.
29477         * modules/btowc-tests (Makefile.am): Likewise.
29478         * modules/c-stack-tests (Makefile.am): Likewise.
29479         * modules/c-strcase-tests (Makefile.am): Likewise.
29480         * modules/copy-file-tests (Makefile.am): Likewise.
29481         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29482         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29483         * modules/mbrtowc-tests (Makefile.am): Likewise.
29484         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29485         * modules/mbscasestr-tests (Makefile.am): Likewise.
29486         * modules/mbschr-tests (Makefile.am): Likewise.
29487         * modules/mbscspn-tests (Makefile.am): Likewise.
29488         * modules/mbsinit-tests (Makefile.am): Likewise.
29489         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29490         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29491         * modules/mbspbrk-tests (Makefile.am): Likewise.
29492         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29493         * modules/mbsrchr-tests (Makefile.am): Likewise.
29494         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29495         * modules/mbsspn-tests (Makefile.am): Likewise.
29496         * modules/mbsstr-tests (Makefile.am): Likewise.
29497         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29498         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29499         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29500         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29501         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29502         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29503         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29504         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29505         * modules/wcrtomb-tests (Makefile.am): Likewise.
29506         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29507         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29508         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29509         assignments from TESTS_ENVIRONMENT.
29510         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29511         augmentation.
29512         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29513         * modules/atexit-tests (Makefile.am): Likewise.
29514         * modules/binary-io-tests (Makefile.am): Likewise.
29515         * modules/closein-tests (Makefile.am): Likewise.
29516         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29517         * modules/exclude-tests (Makefile.am): Likewise.
29518         * modules/fflush-tests (Makefile.am): Likewise.
29519         * modules/fpending-tests (Makefile.am): Likewise.
29520         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29521         * modules/freadahead-tests (Makefile.am): Likewise.
29522         * modules/freadptr-tests (Makefile.am): Likewise.
29523         * modules/freadseek-tests (Makefile.am): Likewise.
29524         * modules/fseek-tests (Makefile.am): Likewise.
29525         * modules/fseeko-tests (Makefile.am): Likewise.
29526         * modules/ftell-tests (Makefile.am): Likewise.
29527         * modules/ftello-tests (Makefile.am): Likewise.
29528         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29529         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29530         * modules/lseek-tests (Makefile.am): Likewise.
29531         * modules/parse-duration-tests (Makefile.am): Likewise.
29532         * modules/perror-tests (Makefile.am): Likewise.
29533         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29534         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29535         * modules/pipe-tests (Makefile.am): Likewise.
29536         * modules/pread-tests (Makefile.am): Likewise.
29537         * modules/printf-posix-tests (Makefile.am): Likewise.
29538         * modules/select-tests (Makefile.am): Likewise.
29539         * modules/sigpipe-tests (Makefile.am): Likewise.
29540         * modules/tsearch-tests (Makefile.am): Likewise.
29541         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29542         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29543         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29544         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29545         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29546         * modules/version-etc-tests (Makefile.am): Likewise.
29547         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29548         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29549         * modules/xalloc-die-tests (Makefile.am): Likewise.
29550         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29551         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29552         * modules/xstrtol-tests (Makefile.am): Likewise.
29553         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29554         * modules/yesno-tests (Makefile.am): Likewise.
29555         Suggested by Jim Meyering.
29556
29557 2010-01-24  Bruno Haible  <bruno@clisp.org>
29558
29559         More documentation.
29560         * doc/gnulib.texi (Writing modules): New chapter.
29561         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29562         the new chapter.
29563
29564 2010-01-24  Jim Meyering  <meyering@redhat.com>
29565
29566         maint.mk: do not prepend "./" after filtering
29567         * top/maint.mk (_prepend_srcdir_prefix): New variable
29568         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29569         "./" when $(srcdir) is ".".
29570
29571         define STREQ(a,b) consistently, removing useless parentheses
29572         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29573         since the only risk is that "a" or "b" contains an unparenthesized
29574         comma, but if either did that, STREQ would have 3 or more arguments.
29575         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29576         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29577         * lib/hash-triple.c (STREQ): Likewise.
29578         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29579         * lib/getugroups.c (STREQ): Likewise.
29580
29581 2010-01-23  Jim Meyering  <meyering@redhat.com>
29582
29583         maint.mk: fix syntax-check in a non-srcdir build directory
29584         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29585         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29586
29587 2010-01-22  Jim Meyering  <meyering@redhat.com>
29588
29589         userspec: add unit tests
29590         * tests/test-userspec.c: New file.
29591         * modules/userspec-tests: Likewise.
29592
29593 2010-01-21  Jim Meyering  <meyering@redhat.com>
29594
29595         maint.mk: handle source file names containing "." robustly
29596         * top/maint.mk (_dot_escaped_srcdir): Define.
29597         (VC_LIST): Use it in LHS of sed substitution.
29598
29599 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29600
29601         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29602         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29603         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29604         from a non-srcdir build.
29605
29606 2010-01-20  Eric Blake  <ebb9@byu.net>
29607
29608         warn-on-use: use instead of link-warning
29609         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29610         * modules/unistd (Depends-on, Makefile.am): Likewise.
29611         * modules/arpa_inet (Depends-on): Replace link-warning with
29612         warn-on-use.
29613         (Makefile.am): Update rules accordingly.
29614         * modules/ctype (Depends-on, Makefile.am): Likewise.
29615         * modules/dirent (Depends-on, Makefile.am): Likewise.
29616         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29617         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29618         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29619         * modules/locale (Depends-on, Makefile.am): Likewise.
29620         * modules/math (Depends-on, Makefile.am): Likewise.
29621         * modules/search (Depends-on, Makefile.am): Likewise.
29622         * modules/signal (Depends-on, Makefile.am): Likewise.
29623         * modules/spawn (Depends-on, Makefile.am): Likewise.
29624         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29625         * modules/string (Depends-on, Makefile.am): Likewise.
29626         * modules/strings (Depends-on, Makefile.am): Likewise.
29627         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29628         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29629         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29630         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29631         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29632         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29633         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29634         * modules/wchar (Depends-on, Makefile.am): Likewise.
29635         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29636         should be poisoned.
29637         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29638         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29639         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29640         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29641         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29642         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29643         * m4/math_h.m4 (gl_MATH_H): Likewise.
29644         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29645         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29646         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29647         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29648         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29649         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29650         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29651         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29652         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29653         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29654         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29656         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29657         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29658         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29659         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29660         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29661         GL_LINK_WARNING.
29662         * lib/ctype.in.h: Likewise.
29663         * lib/dirent.in.h: Likewise.
29664         * lib/fcntl.in.h: Likewise.
29665         * lib/inttypes.in.h: Likewise.
29666         * lib/langinfo.in.h: Likewise.
29667         * lib/locale.in.h: Likewise.
29668         * lib/math.in.h: Likewise.
29669         * lib/search.in.h: Likewise.
29670         * lib/signal.in.h: Likewise.
29671         * lib/spawn.in.h: Likewise.
29672         * lib/stdio.in.h: Likewise.
29673         * lib/stdlib.in.h: Likewise.
29674         * lib/string.in.h: Likewise.
29675         * lib/strings.in.h: Likewise.
29676         * lib/sys_file.in.h: Likewise.
29677         * lib/sys_ioctl.in.h: Likewise.
29678         * lib/sys_select.in.h: Likewise.
29679         * lib/sys_socket.in.h: Likewise.
29680         * lib/sys_stat.in.h: Likewise.
29681         * lib/sys_times.in.h: Likewise.
29682         * lib/sys_utsname.in.h: Likewise.
29683         * lib/unistd.in.h: Likewise.
29684         * lib/wchar.in.h: Likewise.
29685
29686 2010-01-20  Bruno Haible  <bruno@clisp.org>
29687
29688         Avoid duplicate -lm.
29689         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29690         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29691         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29692         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29693         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29694         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29695         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29696         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29697         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29698         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29699         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29700         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29701         Reported by Paolo Bonzini.
29702
29703 2010-01-19  Bruno Haible  <bruno@clisp.org>
29704
29705         langinfo, nl_langinfo: Relicense under LGPLv2+.
29706         * modules/langinfo (License): Change to LGPLv2+.
29707         * modules/nl_langinfo (License): Likewise.
29708         Patch by David Lutterkort <lutter@redhat.com>.
29709
29710 2010-01-19  Bruno Haible  <bruno@clisp.org>
29711
29712         Avoid compilation error with cc on OSF/1 5.1.
29713         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29714         statement, not before.
29715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29716
29717 2010-01-18  Bruno Haible  <bruno@clisp.org>
29718
29719         Avoid a link error due to the __printf__ symbol.
29720         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29721         and 2.6.x.
29722         (__format__, __printf__): Remove definitions.
29723         * lib/argp-fmtstream.h: Likewise.
29724         * lib/argp.h: Likewise.
29725         * lib/error.h: Likewise.
29726         * lib/vasnprintf.h: Likewise.
29727         * lib/xprintf.h: Likewise.
29728         * lib/xvasprintf.h: Likewise.
29729         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29730
29731 2010-01-18  Bruno Haible  <bruno@clisp.org>
29732
29733         Tests for module 'tanl'.
29734         * modules/tanl-tests: New file.
29735         * tests/test-tanl.c: New file.
29736
29737         Tests for module 'sqrtl'.
29738         * modules/sqrtl-tests: New file.
29739         * tests/test-sqrtl.c: New file.
29740
29741         Tests for module 'sinl'.
29742         * modules/sinl-tests: New file.
29743         * tests/test-sinl.c: New file.
29744
29745         Tests for module 'logl'.
29746         * modules/logl-tests: New file.
29747         * tests/test-logl.c: New file.
29748
29749         Tests for module 'expl'.
29750         * modules/expl-tests: New file.
29751         * tests/test-expl.c: New file.
29752
29753         Tests for module 'cosl'.
29754         * modules/cosl-tests: New file.
29755         * tests/test-cosl.c: New file.
29756
29757         Tests for module 'atanl'.
29758         * modules/atanl-tests: New file.
29759         * tests/test-atanl.c: New file.
29760
29761         Tests for module 'asinl'.
29762         * modules/asinl-tests: New file.
29763         * tests/test-asinl.c: New file.
29764
29765         Tests for module 'acosl'.
29766         * modules/acosl-tests: New file.
29767         * tests/test-acosl.c: New file.
29768
29769         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29770         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29771         tanl): Use the standard gnulib idiom.
29772         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29773         * lib/sinl.c: Likewise.
29774         * lib/tanl.c: Don't include trigl.c.
29775         (kernel_tanl): Make static.
29776         * lib/sincosl.c: Include trigl.h first.
29777         * lib/trigl.c: Likewise.
29778         * m4/acosl.m4: New file.
29779         * m4/asinl.m4: New file.
29780         * m4/atanl.m4: New file.
29781         * m4/cosl.m4: New file.
29782         * m4/expl.m4: New file.
29783         * m4/logl.m4: New file.
29784         * m4/sinl.m4: New file.
29785         * m4/sqrtl.m4: New file.
29786         * m4/tanl.m4: New file.
29787         * m4/mathl.m4: Remove file.
29788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29789         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29790         Don't initialize GNULIB_MATHL.
29791         * modules/acosl: New file.
29792         * modules/asinl: New file.
29793         * modules/atanl: New file.
29794         * modules/cosl: New file.
29795         * modules/expl: New file.
29796         * modules/logl: New file.
29797         * modules/sinl: New file.
29798         * modules/sqrtl: New file.
29799         * modules/tanl: New file.
29800         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29801         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29802         substitute GNULIB_MATHL.
29803         * modules/mathl: Rewritten.
29804         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29805         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29806         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29807         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29808         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29809         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29810         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29811         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29812         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29813
29814 2010-01-18  Bruno Haible  <bruno@clisp.org>
29815
29816         sqrt: Make gl_FUNC_SQRT requirable.
29817         * m4/sqrt.m4: New file.
29818         * modules/sqrt (Files): Add it.
29819         (configure.ac): Invoke gl_FUNC_SQRT.
29820
29821 2010-01-18  Bruno Haible  <bruno@clisp.org>
29822
29823         New modules for common <math.h> functions.
29824         * m4/mathfunc.m4: New file.
29825         * modules/acos: New file.
29826         * modules/asin: New file.
29827         * modules/atan: New file.
29828         * modules/atan2: New file.
29829         * modules/cbrt: New file.
29830         * modules/copysign: New file.
29831         * modules/cos: New file.
29832         * modules/cosh: New file.
29833         * modules/erf: New file.
29834         * modules/erfc: New file.
29835         * modules/exp: New file.
29836         * modules/fabs: New file.
29837         * modules/fmod: New file.
29838         * modules/hypot: New file.
29839         * modules/j0: New file.
29840         * modules/j1: New file.
29841         * modules/jn: New file.
29842         * modules/ldexp: New file.
29843         * modules/lgamma: New file.
29844         * modules/log: New file.
29845         * modules/log10: New file.
29846         * modules/log1p: New file.
29847         * modules/logb: New file.
29848         * modules/modf: New file.
29849         * modules/nextafter: New file.
29850         * modules/pow: New file.
29851         * modules/remainder: New file.
29852         * modules/rint: New file.
29853         * modules/sin: New file.
29854         * modules/sinh: New file.
29855         * modules/sqrt: New file.
29856         * modules/tan: New file.
29857         * modules/tanh: New file.
29858         * modules/y0: New file.
29859         * modules/y1: New file.
29860         * modules/yn: New file.
29861         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29862         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29863         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29864         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29865         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29866         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29867         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29868         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29869         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29870         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29871         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29872         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29873         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29874         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29875         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29876         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29877         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29878         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29879         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29880         * doc/posix-functions/log.texi: Mention the 'log' module.
29881         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29882         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29883         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29884         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29885         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29886         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29887         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29888         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29889         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29890         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29891         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29892         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29893         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29894         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29895         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29896         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29897
29898 2010-01-18  Jim Meyering  <meyering@redhat.com>
29899
29900         ignore-value: relax license to LGPLv2+
29901         * modules/ignore-value (License): Relax to LGPLv2+.
29902
29903         getdate: don't leak when TZ contains two or more '"'s
29904         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29905         double quote in TZ after the first one.
29906
29907         readtokens: do not leak internal token_lengths buffer
29908         * lib/readtokens.c (readtokens): Free the local, lengths,
29909         when the supplied "token_lengths" parameter is NULL.
29910
29911 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29912
29913         Fix a couple of missing LIBTHREAD link failures on AIX.
29914         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29915         $(LIBTHREAD).
29916         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29917
29918         Link test-poll against INET_PTON_LIB.
29919         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29920         for inet_pton on Solaris 10.
29921
29922 2010-01-17  Bruno Haible  <bruno@clisp.org>
29923
29924         unistdio/*-sprintf: Fix typo in module description.
29925         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29926         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29927         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29928         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29929         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29930         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29931         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29932         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29933
29934 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29935
29936         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29937         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29938         variables in shell case patterns, for AIX and HP-UX ksh.
29939
29940         Split large sed scripts, for HP-UX sed.
29941         * modules/stdio: Split sed scripts around 50 sed commands,
29942         to avoid HP-UX limit of 99 commands, in the near future.
29943         * modules/string: Likewise.
29944         * modules/unistd: Likewise.
29945
29946         gnulib-tool: avoid writing in the current directory.
29947         * gnulib-tool (func_emit_lib_Makefile_am)
29948         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29949         not in the current directory, so concurrent gnulib-tool
29950         instances do not interfere.
29951
29952 2010-01-16  Jim Meyering  <meyering@redhat.com>
29953
29954         doc: update users.txt
29955         * users.txt: Add grep.
29956         (diffutils, gzip): Update URLs.
29957
29958 2010-01-12  Bruno Haible  <bruno@clisp.org>
29959
29960         posix_spawn: Avoid test failure on Cygwin.
29961         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29962         characters.
29963         Reported by Simon Josefsson.
29964
29965 2010-01-12  Bruno Haible  <bruno@clisp.org>
29966
29967         * tests/test-cond.c (main): When skipping the test, show the reason.
29968
29969 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29970
29971         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29972
29973 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29974
29975         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29976         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29977
29978 2010-01-12  Eric Blake  <ebb9@byu.net>
29979
29980         build: guarantee AS_VAR_IF
29981         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29982         (gl_AS_VAR_IF): Move...
29983         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29984         Reported by Simon Josefsson.
29985
29986 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29987
29988         * lib/stdio.in.h: Fix typo.
29989
29990 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29991
29992         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29993         libgpg-error.
29994
29995 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29996
29997         * tests/test-xalloc-die.sh: Use $EXEEXT.
29998
29999 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30000             Bruno Haible  <bruno@clisp.org>
30001
30002         getlogin, getlogin_r: Avoid test failure.
30003         * tests/test-getlogin.c: Include <stdio.h>.
30004         (main): Skip the test when the function fails because stdin is not a
30005         tty.
30006         * tests/test-getlogin_r.c: Include <stdio.h>.
30007         (main): Skip the test when the function fails because stdin is not a
30008         tty.
30009
30010 2010-01-11  Eric Blake  <ebb9@byu.net>
30011
30012         tests: avoid more large file warnings
30013         * tests/test-fflush.c: Avoid warning about ftell use.
30014         * tests/test-fseek.c: Avoid warning about fseek use.
30015
30016 2010-01-10  Bruno Haible  <bruno@clisp.org>
30017
30018         nproc: Work better on Linux when /proc and /sys are not mounted.
30019         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30020         as lower bound when, on glibc/Linux systems,
30021         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30022         Suggested by Pádraig Brady <P@draigbrady.com>.
30023         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30024
30025         nproc: Refactor.
30026         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30027         extracted from num_processors.
30028         (num_processors): Call it.
30029
30030 2010-01-11  Jim Meyering  <meyering@redhat.com>
30031
30032         utimecmp: avoid new warning from upcoming gcc-4.5.0
30033         * lib/utimecmp.c (BILLION): Define using #define rather than an
30034         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30035
30036 2010-01-11  Eric Blake  <ebb9@byu.net>
30037
30038         math: add portability warnings for classification macros
30039         * modules/math (Depends-on): Add warn-on-use.
30040         (Makefile.am): Provide new substitutions.
30041         * m4/math_h.m4 (gl_MATH_H): Require inline.
30042         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30043         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30044         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30045         implement warnings.
30046
30047         unistd: warn on use of environ without module
30048         * modules/unistd (Depends-on): Add warn-on-use.
30049         (Makefile.am): Provide new substitutions.
30050         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30051         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30052
30053         stdio: warn on suspicious uses
30054         * modules/stdio (Depends-on): Add warn-on-use.
30055         (Makefile.am): Provide new substitutions.
30056         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30057         fseeko.
30058         * lib/stdio.in.h (gets): Always warn on use.
30059         (fseek, ftell): Adjust when warnings are issued, and honor
30060         _GL_NO_LARGE_FILES as a way to silence the warning.
30061         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30062         any warning about large file offsets.
30063         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30064         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30065         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30066         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30067         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30068         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30069         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30070         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30071
30072         warn-on-use: new module
30073         * modules/warn-on-use: New file.
30074         * build-aux/warn-on-use.h: Likewise.
30075         * m4/warn-on-use.m4: Likewise.
30076         * MODULES.html.sh (Support for building): Mention it.
30077
30078 2010-01-10  Bruno Haible  <bruno@clisp.org>
30079
30080         Tests for module 'unistr/u32-strdup'.
30081         * modules/unistr/u32-strdup-tests: New file.
30082         * tests/unistr/test-u32-strdup.c: New file.
30083
30084         Tests for module 'unistr/u16-strdup'.
30085         * modules/unistr/u16-strdup-tests: New file.
30086         * tests/unistr/test-u16-strdup.c: New file.
30087
30088         Tests for module 'unistr/u8-strdup'.
30089         * modules/unistr/u8-strdup-tests: New file.
30090         * tests/unistr/test-u8-strdup.c: New file.
30091         * tests/unistr/test-strdup.h: New file.
30092
30093         Tests for module 'unistr/u32-strncmp'.
30094         * modules/unistr/u32-strncmp-tests: New file.
30095         * tests/unistr/test-u32-strncmp.c: New file.
30096
30097         Tests for module 'unistr/u16-strncmp'.
30098         * modules/unistr/u16-strncmp-tests: New file.
30099         * tests/unistr/test-u16-strncmp.c: New file.
30100
30101         Tests for module 'unistr/u8-strncmp'.
30102         * modules/unistr/u8-strncmp-tests: New file.
30103         * tests/unistr/test-u8-strncmp.c: New file.
30104         * tests/unistr/test-strncmp.h: New file.
30105
30106         Tests for module 'unistr/u32-strcoll'.
30107         * modules/unistr/u32-strcoll-tests: New file.
30108         * tests/unistr/test-u32-strcoll.c: New file.
30109
30110         Tests for module 'unistr/u16-strcoll'.
30111         * modules/unistr/u16-strcoll-tests: New file.
30112         * tests/unistr/test-u16-strcoll.c: New file.
30113
30114         Tests for module 'unistr/u8-strcoll'.
30115         * modules/unistr/u8-strcoll-tests: New file.
30116         * tests/unistr/test-u8-strcoll.c: New file.
30117
30118         Tests for module 'unistr/u32-strcmp'.
30119         * modules/unistr/u32-strcmp-tests: New file.
30120         * tests/unistr/test-u32-strcmp.c: New file.
30121         * tests/unistr/test-u32-strcmp.h: New file.
30122
30123         Tests for module 'unistr/u16-strcmp'.
30124         * modules/unistr/u16-strcmp-tests: New file.
30125         * tests/unistr/test-u16-strcmp.c: New file.
30126         * tests/unistr/test-u16-strcmp.h: New file.
30127
30128         Tests for module 'unistr/u8-strcmp'.
30129         * modules/unistr/u8-strcmp-tests: New file.
30130         * tests/unistr/test-u8-strcmp.c: New file.
30131         * tests/unistr/test-u8-strcmp.h: New file.
30132         * tests/unistr/test-strcmp.h: New file.
30133
30134         Tests for module 'unistr/u32-strncat'.
30135         * modules/unistr/u32-strncat-tests: New file.
30136         * tests/unistr/test-u32-strncat.c: New file.
30137
30138         Tests for module 'unistr/u16-strncat'.
30139         * modules/unistr/u16-strncat-tests: New file.
30140         * tests/unistr/test-u16-strncat.c: New file.
30141
30142         Tests for module 'unistr/u8-strncat'.
30143         * modules/unistr/u8-strncat-tests: New file.
30144         * tests/unistr/test-u8-strncat.c: New file.
30145         * tests/unistr/test-strncat.h: New file.
30146
30147         Tests for module 'unistr/u32-strcat'.
30148         * modules/unistr/u32-strcat-tests: New file.
30149         * tests/unistr/test-u32-strcat.c: New file.
30150
30151         Tests for module 'unistr/u16-strcat'.
30152         * modules/unistr/u16-strcat-tests: New file.
30153         * tests/unistr/test-u16-strcat.c: New file.
30154
30155         Tests for module 'unistr/u8-strcat'.
30156         * modules/unistr/u8-strcat-tests: New file.
30157         * tests/unistr/test-u8-strcat.c: New file.
30158         * tests/unistr/test-strcat.h: New file.
30159
30160         Tests for module 'unistr/u32-stpncpy'.
30161         * modules/unistr/u32-stpncpy-tests: New file.
30162         * tests/unistr/test-u32-stpncpy.c: New file.
30163
30164         Tests for module 'unistr/u16-stpncpy'.
30165         * modules/unistr/u16-stpncpy-tests: New file.
30166         * tests/unistr/test-u16-stpncpy.c: New file.
30167
30168         Tests for module 'unistr/u8-stpncpy'.
30169         * modules/unistr/u8-stpncpy-tests: New file.
30170         * tests/unistr/test-u8-stpncpy.c: New file.
30171         * tests/unistr/test-stpncpy.h: New file.
30172
30173         Tests for module 'unistr/u32-strncpy'.
30174         * modules/unistr/u32-strncpy-tests: New file.
30175         * tests/unistr/test-u32-strncpy.c: New file.
30176
30177         Tests for module 'unistr/u16-strncpy'.
30178         * modules/unistr/u16-strncpy-tests: New file.
30179         * tests/unistr/test-u16-strncpy.c: New file.
30180
30181         Tests for module 'unistr/u8-strncpy'.
30182         * modules/unistr/u8-strncpy-tests: New file.
30183         * tests/unistr/test-u8-strncpy.c: New file.
30184         * tests/unistr/test-strncpy.h: New file.
30185
30186         Tests for module 'unistr/u32-stpcpy'.
30187         * modules/unistr/u32-stpcpy-tests: New file.
30188         * tests/unistr/test-u32-stpcpy.c: New file.
30189
30190         Tests for module 'unistr/u16-stpcpy'.
30191         * modules/unistr/u16-stpcpy-tests: New file.
30192         * tests/unistr/test-u16-stpcpy.c: New file.
30193
30194         Tests for module 'unistr/u8-stpcpy'.
30195         * modules/unistr/u8-stpcpy-tests: New file.
30196         * tests/unistr/test-u8-stpcpy.c: New file.
30197         * tests/unistr/test-stpcpy.h: New file.
30198
30199         Tests for module 'unistr/u32-strcpy'.
30200         * modules/unistr/u32-strcpy-tests: New file.
30201         * tests/unistr/test-u32-strcpy.c: New file.
30202
30203         Tests for module 'unistr/u16-strcpy'.
30204         * modules/unistr/u16-strcpy-tests: New file.
30205         * tests/unistr/test-u16-strcpy.c: New file.
30206
30207         Tests for module 'unistr/u8-strcpy'.
30208         * modules/unistr/u8-strcpy-tests: New file.
30209         * tests/unistr/test-u8-strcpy.c: New file.
30210         * tests/unistr/test-strcpy.h: New file.
30211
30212         Tests for module 'unistr/u32-strnlen'.
30213         * modules/unistr/u32-strnlen-tests: New file.
30214         * tests/unistr/test-u32-strnlen.c: New file.
30215
30216         Tests for module 'unistr/u16-strnlen'.
30217         * modules/unistr/u16-strnlen-tests: New file.
30218         * tests/unistr/test-u16-strnlen.c: New file.
30219
30220         Tests for module 'unistr/u8-strnlen'.
30221         * modules/unistr/u8-strnlen-tests: New file.
30222         * tests/unistr/test-u8-strnlen.c: New file.
30223         * tests/unistr/test-strnlen.h: New file.
30224
30225         Tests for module 'unistr/u32-strlen'.
30226         * modules/unistr/u32-strlen-tests: New file.
30227         * tests/unistr/test-u32-strlen.c: New file.
30228
30229         Tests for module 'unistr/u16-strlen'.
30230         * modules/unistr/u16-strlen-tests: New file.
30231         * tests/unistr/test-u16-strlen.c: New file.
30232
30233         Tests for module 'unistr/u8-strlen'.
30234         * modules/unistr/u8-strlen-tests: New file.
30235         * tests/unistr/test-u8-strlen.c: New file.
30236
30237         Tests for module 'unistr/u32-prev'.
30238         * modules/unistr/u32-prev-tests: New file.
30239         * tests/unistr/test-u32-prev.c: New file.
30240
30241         Tests for module 'unistr/u16-prev'.
30242         * modules/unistr/u16-prev-tests: New file.
30243         * tests/unistr/test-u16-prev.c: New file.
30244
30245         Tests for module 'unistr/u8-prev'.
30246         * modules/unistr/u8-prev-tests: New file.
30247         * tests/unistr/test-u8-prev.c: New file.
30248
30249         Tests for module 'unistr/u32-next'.
30250         * modules/unistr/u32-next-tests: New file.
30251         * tests/unistr/test-u32-next.c: New file.
30252
30253         Tests for module 'unistr/u16-next'.
30254         * modules/unistr/u16-next-tests: New file.
30255         * tests/unistr/test-u16-next.c: New file.
30256
30257         Tests for module 'unistr/u8-next'.
30258         * modules/unistr/u8-next-tests: New file.
30259         * tests/unistr/test-u8-next.c: New file.
30260
30261         Tests for module 'unistr/u32-strmbtouc'.
30262         * modules/unistr/u32-strmbtouc-tests: New file.
30263         * tests/unistr/test-u32-strmbtouc.c: New file.
30264
30265         Tests for module 'unistr/u16-strmbtouc'.
30266         * modules/unistr/u16-strmbtouc-tests: New file.
30267         * tests/unistr/test-u16-strmbtouc.c: New file.
30268
30269         Tests for module 'unistr/u8-strmbtouc'.
30270         * modules/unistr/u8-strmbtouc-tests: New file.
30271         * tests/unistr/test-u8-strmbtouc.c: New file.
30272
30273         Tests for module 'unistr/u32-strmblen'.
30274         * modules/unistr/u32-strmblen-tests: New file.
30275         * tests/unistr/test-u32-strmblen.c: New file.
30276
30277         Tests for module 'unistr/u16-strmblen'.
30278         * modules/unistr/u16-strmblen-tests: New file.
30279         * tests/unistr/test-u16-strmblen.c: New file.
30280
30281         Tests for module 'unistr/u8-strmblen'.
30282         * modules/unistr/u8-strmblen-tests: New file.
30283         * tests/unistr/test-u8-strmblen.c: New file.
30284
30285         Tests for module 'unistr/u32-cpy-alloc'.
30286         * modules/unistr/u32-cpy-alloc-tests: New file.
30287         * tests/unistr/test-u32-cpy-alloc.c: New file.
30288
30289         Tests for module 'unistr/u16-cpy-alloc'.
30290         * modules/unistr/u16-cpy-alloc-tests: New file.
30291         * tests/unistr/test-u16-cpy-alloc.c: New file.
30292
30293         Tests for module 'unistr/u8-cpy-alloc'.
30294         * modules/unistr/u8-cpy-alloc-tests: New file.
30295         * tests/unistr/test-u8-cpy-alloc.c: New file.
30296         * tests/unistr/test-cpy-alloc.h: New file.
30297
30298         Tests for module 'unistr/u32-mbsnlen'.
30299         * modules/unistr/u32-mbsnlen-tests: New file.
30300         * tests/unistr/test-u32-mbsnlen.c: New file.
30301
30302         Tests for module 'unistr/u16-mbsnlen'.
30303         * modules/unistr/u16-mbsnlen-tests: New file.
30304         * tests/unistr/test-u16-mbsnlen.c: New file.
30305
30306         Tests for module 'unistr/u8-mbsnlen'.
30307         * modules/unistr/u8-mbsnlen-tests: New file.
30308         * tests/unistr/test-u8-mbsnlen.c: New file.
30309
30310         Tests for module 'unistr/u32-chr'.
30311         * modules/unistr/u32-chr-tests: New file.
30312         * tests/unistr/test-u32-chr.c: New file.
30313
30314         Tests for module 'unistr/u16-chr'.
30315         * modules/unistr/u16-chr-tests: New file.
30316         * tests/unistr/test-u16-chr.c: New file.
30317
30318         Tests for module 'unistr/u8-chr'.
30319         * modules/unistr/u8-chr-tests: New file.
30320         * tests/unistr/test-u8-chr.c: New file.
30321         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
30322
30323         Tests for module 'unistr/u32-cmp2'.
30324         * modules/unistr/u32-cmp2-tests: New file.
30325         * tests/unistr/test-u32-cmp2.c: New file.
30326
30327         Tests for module 'unistr/u16-cmp2'.
30328         * modules/unistr/u16-cmp2-tests: New file.
30329         * tests/unistr/test-u16-cmp2.c: New file.
30330
30331         Tests for module 'unistr/u8-cmp2'.
30332         * modules/unistr/u8-cmp2-tests: New file.
30333         * tests/unistr/test-u8-cmp2.c: New file.
30334         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
30335
30336         Tests for module 'unistr/u32-cmp'.
30337         * modules/unistr/u32-cmp-tests: New file.
30338         * tests/unistr/test-u32-cmp.c: New file.
30339
30340         Tests for module 'unistr/u16-cmp'.
30341         * modules/unistr/u16-cmp-tests: New file.
30342         * tests/unistr/test-u16-cmp.c: New file.
30343
30344         Tests for module 'unistr/u8-cmp'.
30345         * modules/unistr/u8-cmp-tests: New file.
30346         * tests/unistr/test-u8-cmp.c: New file.
30347         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
30348
30349         Tests for module 'unistr/u32-set'.
30350         * modules/unistr/u32-set-tests: New file.
30351         * tests/unistr/test-u32-set.c: New file.
30352
30353         Tests for module 'unistr/u16-set'.
30354         * modules/unistr/u16-set-tests: New file.
30355         * tests/unistr/test-u16-set.c: New file.
30356
30357         Tests for module 'unistr/u8-set'.
30358         * modules/unistr/u8-set-tests: New file.
30359         * tests/unistr/test-u8-set.c: New file.
30360         * tests/unistr/test-set.h: New file.
30361
30362         Tests for module 'unistr/u32-move'.
30363         * modules/unistr/u32-move-tests: New file.
30364         * tests/unistr/test-u32-move.c: New file.
30365
30366         Tests for module 'unistr/u16-move'.
30367         * modules/unistr/u16-move-tests: New file.
30368         * tests/unistr/test-u16-move.c: New file.
30369
30370         Tests for module 'unistr/u8-move'.
30371         * modules/unistr/u8-move-tests: New file.
30372         * tests/unistr/test-u8-move.c: New file.
30373         * tests/unistr/test-move.h: New file.
30374
30375         Tests for module 'unistr/u32-cpy'.
30376         * modules/unistr/u32-cpy-tests: New file.
30377         * tests/unistr/test-u32-cpy.c: New file.
30378
30379         Tests for module 'unistr/u16-cpy'.
30380         * modules/unistr/u16-cpy-tests: New file.
30381         * tests/unistr/test-u16-cpy.c: New file.
30382
30383         Tests for module 'unistr/u8-cpy'.
30384         * modules/unistr/u8-cpy-tests: New file.
30385         * tests/unistr/test-u8-cpy.c: New file.
30386         * tests/unistr/test-cpy.h: New file.
30387
30388 2010-01-09  Bruno Haible  <bruno@clisp.org>
30389
30390         Tests for module 'unistr/u32-uctomb'.
30391         * modules/unistr/u32-uctomb-tests: New file.
30392         * tests/unistr/test-u32-uctomb.c: New file.
30393
30394         Tests for module 'unistr/u16-uctomb'.
30395         * modules/unistr/u16-uctomb-tests: New file.
30396         * tests/unistr/test-u16-uctomb.c: New file.
30397
30398         Tests for module 'unistr/u8-uctomb'.
30399         * modules/unistr/u8-uctomb-tests: New file.
30400         * tests/unistr/test-u8-uctomb.c: New file.
30401
30402         Tests for module 'unistr/u32-mbtoucr'.
30403         * modules/unistr/u32-mbtoucr-tests: New file.
30404         * tests/unistr/test-u32-mbtoucr.c: New file.
30405
30406         Tests for module 'unistr/u16-mbtoucr'.
30407         * modules/unistr/u16-mbtoucr-tests: New file.
30408         * tests/unistr/test-u16-mbtoucr.c: New file.
30409
30410         Tests for module 'unistr/u8-mbtoucr'.
30411         * modules/unistr/u8-mbtoucr-tests: New file.
30412         * tests/unistr/test-u8-mbtoucr.c: New file.
30413
30414         Tests for module 'unistr/u32-mbtouc'.
30415         * modules/unistr/u32-mbtouc-tests: New file.
30416         * tests/unistr/test-u32-mbtouc.c: New file.
30417
30418         Tests for module 'unistr/u16-mbtouc'.
30419         * modules/unistr/u16-mbtouc-tests: New file.
30420         * tests/unistr/test-u16-mbtouc.c: New file.
30421
30422         Tests for module 'unistr/u8-mbtouc'.
30423         * modules/unistr/u8-mbtouc-tests: New file.
30424         * tests/unistr/test-u8-mbtouc.c: New file.
30425
30426         Tests for module 'unistr/u32-mbtouc-unsafe'.
30427         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30428         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30429         * tests/unistr/test-u32-mbtouc.h: New file.
30430
30431         Tests for module 'unistr/u16-mbtouc-unsafe'.
30432         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30433         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30434         * tests/unistr/test-u16-mbtouc.h: New file.
30435
30436         Tests for module 'unistr/u8-mbtouc-unsafe'.
30437         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30438         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30439         * tests/unistr/test-u8-mbtouc.h: New file.
30440
30441         Tests for module 'unistr/u32-mblen'.
30442         * modules/unistr/u32-mblen-tests: New file.
30443         * tests/unistr/test-u32-mblen.c: New file.
30444
30445         Tests for module 'unistr/u16-mblen'.
30446         * modules/unistr/u16-mblen-tests: New file.
30447         * tests/unistr/test-u16-mblen.c: New file.
30448
30449         Tests for module 'unistr/u8-mblen'.
30450         * modules/unistr/u8-mblen-tests: New file.
30451         * tests/unistr/test-u8-mblen.c: New file.
30452
30453         Tests for module 'unistr/u32-to-u16'.
30454         * modules/unistr/u32-to-u16-tests: New file.
30455         * tests/unistr/test-u32-to-u16.c: New file.
30456
30457         Tests for module 'unistr/u32-to-u8'.
30458         * modules/unistr/u32-to-u8-tests: New file.
30459         * tests/unistr/test-u32-to-u8.c: New file.
30460
30461         Tests for module 'unistr/u16-to-u32'.
30462         * modules/unistr/u16-to-u32-tests: New file.
30463         * tests/unistr/test-u16-to-u32.c: New file.
30464
30465         Tests for module 'unistr/u16-to-u8'.
30466         * modules/unistr/u16-to-u8-tests: New file.
30467         * tests/unistr/test-u16-to-u8.c: New file.
30468
30469         Tests for module 'unistr/u8-to-u32'.
30470         * modules/unistr/u8-to-u32-tests: New file.
30471         * tests/unistr/test-u8-to-u32.c: New file.
30472
30473         Tests for module 'unistr/u8-to-u16'.
30474         * modules/unistr/u8-to-u16-tests: New file.
30475         * tests/unistr/test-u8-to-u16.c: New file.
30476
30477         Tests for module 'unistr/u32-check'.
30478         * modules/unistr/u32-check-tests: New file.
30479         * tests/unistr/test-u32-check.c: New file.
30480
30481         Tests for module 'unistr/u16-check'.
30482         * modules/unistr/u16-check-tests: New file.
30483         * tests/unistr/test-u16-check.c: New file.
30484
30485         Tests for module 'unistr/u8-check'.
30486         * modules/unistr/u8-check-tests: New file.
30487         * tests/unistr/test-u8-check.c: New file.
30488
30489         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30490         (category_equals): New function.
30491         (main): Add more tests.
30492         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30493
30494         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30495
30496 2010-01-10  Bruno Haible  <bruno@clisp.org>
30497
30498         unistr/u*-strcoll: Try harder to distinguish different strings.
30499         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30500         compare s1 and s2 to see if they are different.
30501
30502 2010-01-10  Bruno Haible  <bruno@clisp.org>
30503
30504         unistr/u*-stpncpy: Fix the return value.
30505         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30506         description of the return value consistent with stpncpy in glibc.
30507         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30508         written non-NUL unit.
30509
30510 2010-01-10  Bruno Haible  <bruno@clisp.org>
30511
30512         unistr/u*-next: Add missing dependencies.
30513         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30514         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30515         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30516
30517 2010-01-10  Bruno Haible  <bruno@clisp.org>
30518
30519         unistr/u8-mbsnlen: Fix return value for incomplete character.
30520         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30521         u8_mblen.
30522         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30523         Remove unistr/u8-mblen.
30524         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30525         u16_mblen.
30526         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30527         Remove unistr/u16-mblen.
30528
30529 2010-01-10  Bruno Haible  <bruno@clisp.org>
30530
30531         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30532         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30533         Reported by Brian Gough <bjg@gnu.org> and
30534         Chris Clayton <chris2553@googlemail.com> via
30535         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30536
30537 2010-01-09  Bruno Haible  <bruno@clisp.org>
30538
30539         unistr/u16-to-u32: Reject invalid input.
30540         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30541         u16_mbtouc.
30542         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30543         Remove unistr/u16-mbtouc.
30544
30545         unistr/u16-to-u8: Reject invalid input.
30546         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30547         u16_mbtouc.
30548         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30549         Remove unistr/u16-mbtouc.
30550
30551         unistr/u8-to-u32: Reject invalid input.
30552         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30553         u8_mbtouc.
30554         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30555         Remove unistr/u8-mbtouc.
30556
30557         unistr/u8-to-u16: Reject invalid input.
30558         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30559         u8_mbtouc.
30560         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30561         Remove unistr/u8-mbtouc.
30562
30563 2010-01-09  Bruno Haible  <bruno@clisp.org>
30564
30565         Tests for module 'getlogin'.
30566         * modules/getlogin-tests: New file.
30567         * tests/test-getlogin.c: New file.
30568
30569         New module 'getlogin'.
30570         * lib/unistd.in.h (getlogin): New declaration.
30571         * lib/getlogin.c: New file.
30572         * m4/getlogin.m4: New file.
30573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30574         HAVE_GETLOGIN.
30575         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30576         HAVE_GETLOGIN.
30577         * modules/getlogin: New file.
30578         * doc/posix-functions/getlogin.texi: Mention the new module.
30579         Reported by John W. Eaton <jwe@gnu.org>.
30580
30581 2010-01-09  Bruno Haible  <bruno@clisp.org>
30582
30583         getlogin_r: Support for native Windows.
30584         * lib/getlogin_r.c: Include <windows.h>
30585         (getlogin_r): Implement for native Windows.
30586         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30587         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30588         via John W. Eaton <jwe@gnu.org>.
30589
30590 2010-01-09  Bruno Haible  <bruno@clisp.org>
30591
30592         getlogin_r: Small fixes.
30593         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30594         succeeds.
30595         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30596         before testing whether getlogin_r is declared. No need to set
30597         HAVE_DECL_GETLOGIN_R to 1.
30598         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30599
30600 2010-01-09  Bruno Haible  <bruno@clisp.org>
30601
30602         * lib/unistd.in.h (getlogin_r): Add comment.
30603
30604 2010-01-09  Bruno Haible  <bruno@clisp.org>
30605
30606         Tests for module 'getlogin_r'.
30607         * modules/getlogin_r-tests: New file.
30608         * tests/test-getlogin_r.c: New file.
30609
30610 2010-01-09  Jim Meyering  <meyering@redhat.com>
30611
30612         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30613         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30614         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30615
30616 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30617
30618         * lib/dup2.c (rpl_dup2): Improve comment.
30619
30620 2010-01-08  Eric Blake  <ebb9@byu.net>
30621
30622         maint.mk: allow packages to add makefile @@ exceptions
30623         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30624         (sc_makefile_check): Rename...
30625         (sc_makefile_at_at_check): ...to this, and use hook.
30626
30627         dup2: work around mingw bug
30628         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30629         Reported by Simon Josefsson.
30630
30631 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30632
30633         glob: Fix C++ compilation.
30634         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30635         C++.
30636
30637 2010-01-07  Bruno Haible  <bruno@clisp.org>
30638
30639         Fix indentation of wctype.in.h, broken since 2007-01-06.
30640         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30641
30642 2010-01-07  Bruno Haible  <bruno@clisp.org>
30643
30644         mbslen: Avoid collision with system function.
30645         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30646         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30647         * m4/mbslen.m4: New file.
30648         * modules/mbslen (Files): Add it.
30649         (configure.ac): Invoke gl_MBSLEN.
30650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30651         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30652         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30653         via Ian Beckwith <ianb@erislabs.net>.
30654
30655 2010-01-07  Bruno Haible  <bruno@clisp.org>
30656
30657         dirent: Document the last fix.
30658         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30659
30660 2010-01-07  Bruno Haible  <bruno@clisp.org>
30661
30662         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30663         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30664         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30665         va_list are defined.
30666         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30667         Reported by Eric Blake.
30668
30669 2010-01-07  Bruno Haible  <bruno@clisp.org>
30670
30671         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30672         * modules/xlist (Depends-on): Add 'list',
30673         * modules/xoset (Depends-on): Add 'oset'.
30674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30675
30676 2010-01-07  Bruno Haible  <bruno@clisp.org>
30677
30678         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30679         * doc/posix-functions/strncasecmp.texi: Likewise.
30680
30681 2010-01-07  Bruno Haible  <bruno@clisp.org>
30682
30683         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30684
30685 2010-01-07  John W. Eaton  <jwe@octave.org>
30686
30687         wctype: allow C++ use
30688         * lib/wctype.in.h: Add extern "C" block for C++.
30689
30690 2010-01-06  Eric Blake  <ebb9@byu.net>
30691
30692         maint.mk: detect incorrect GFDL usage
30693         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30694
30695 2010-01-06  Jim Meyering  <meyering@redhat.com>
30696         and Eric Blake  <ebb9@byu.net>
30697
30698         maint.mk: ignore multi-line copyright in NEWS
30699         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30700
30701 2010-01-06  Eric Blake  <ebb9@byu.net>
30702
30703         select: add missing dependency
30704         * modules/select-tests (Depends-on): Move sockets dependency...
30705         * modules/select (Depends-on): ...here.
30706         Reported by Ian Beckwith.
30707
30708         doc: regenerate INSTALL
30709         * doc/INSTALL: Reflect recent autoconf update.
30710         * doc/INSTALL.ISO: Likewise.
30711         * doc/INSTALL.UTF-8: Likewise.
30712
30713         pread: fix compilation on glibc
30714         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30715         Reported by Ralf Wildenhues.
30716
30717         dirent: fix test failure
30718         * lib/dirent.in.h (includes): Guarantee ino_t.
30719         Reported by Ralf Wildenhues.
30720
30721 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30722
30723         linkat, renameat: avoid bad free
30724         * lib/at-func2.c (at_func2): Fix typo.
30725         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30726
30727 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30728
30729         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30730         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30731         to avoid failure of symlink test later.
30732
30733 2010-01-06  Eric Blake  <ebb9@byu.net>
30734
30735         stdio, unistd: guarantee ssize_t
30736         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30737         2008 are exposed when needed.
30738         * lib/stdio.in.h (includes): Likewise.
30739         Reported by Ralf Wildenhues.
30740
30741 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30742
30743         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30744         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30745         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30746
30747 2010-01-06  Jim Meyering  <meyering@redhat.com>
30748
30749         readtokens: this module *does* require xalloc.h
30750         It uses only functions that were omitted by the old syntax-check rule.
30751         * lib/readtokens.c: Include "xalloc.h" once again.
30752         * modules/readtokens (Depends-on): Add xalloc.
30753         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30754
30755 2010-01-05  Eric Blake  <ebb9@byu.net>
30756
30757         maint: support 'make announcement' from a VPATH build
30758         * top/maint.mk (announcement): Look for correct NEWS file.
30759
30760 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30761
30762         utimens (fdutimens): ignore a negative FD, per contract
30763         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30764         when we have a valid file descriptor.  Otherwise, using a brand
30765         new glibc (with just-patched futimens that now fails with EBADF)
30766         would cause this function to fail with ENOSYS.
30767         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30768         See also http://bugzilla.redhat.com/552320.
30769
30770 2010-01-05  Eric Blake  <ebb9@byu.net>
30771
30772         strcase: document what it provides
30773         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30774         gnulib module.
30775         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30776         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30777
30778 2010-01-05  Jim Meyering  <meyering@redhat.com>
30779
30780         maint: remove useless inclusions of "xalloc.h"
30781         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30782         * lib/readtokens.c: Likewise.
30783         * lib/same.c: Likewise.
30784         * modules/getloadavg (Depends-on): Remove xalloc.
30785         * modules/readtokens: Likewise.
30786         * modules/same: Likewise.
30787
30788         maint.mk: include 4 more function names in alloca.h-checking regexp
30789         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30790         regexp.  Before, we would give a false-positive (saying alloca.h
30791         is included unnecessarily) when the only uses involved omitted symbols.
30792
30793         xalloc.h: use consistent formatting
30794         * lib/xalloc.h: Move declarations to start in the first column.
30795
30796 2010-01-05  Eric Blake  <ebb9@byu.net>
30797
30798         mkdir: avoid xalloc
30799         * lib/mkdir.c (includes): Drop unused header.
30800         Reported by John W. Eaton.
30801
30802 2010-01-04  Jim Meyering  <meyering@redhat.com>
30803
30804         nl_langinfo: avoid configure-time syntax error
30805         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30806         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30807         the empty string.  Don't let that provoke a shell syntax error.
30808
30809         regcomp, regexec, fnmatch: avoid array bounds read error
30810         * lib/regcomp.c (build_equiv_class): From glibc:
30811         Use only the low 24 bits of a findidx return value as an index
30812         into the weights array.  Patch by Ulrich Drepper:
30813         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30814         * lib/regexec.c (check_node_accept_bytes): Likewise.
30815         * lib/fnmatch_loop.c (FCT): Likewise.
30816
30817         regcomp: skip collseq lookup when there are no rules
30818         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30819         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30820
30821         regcomp: recognize ill-formed { } expressions
30822         * lib/regcomp.c (parse_dup_op): From glibc:
30823         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30824
30825         regcomp: fix typo in comment
30826         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30827         s/satisfy/satisfies/.
30828
30829         regcomp: sync from glibc: remove dead store
30830         * lib/regcomp.c (duplicate_node_closure): Remove useless
30831         search_duplicated_node call and dead store.
30832
30833         regcomp: sync from glibc; always use nl_langinfo
30834         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30835         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30836         * modules/regex (Depends-on): Add nl_langinfo.
30837
30838 2010-01-04  Eric Blake  <ebb9@byu.net>
30839
30840         fdopendir: fix configure test
30841         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30842
30843 2010-01-01  Bruno Haible  <bruno@clisp.org>
30844
30845         wchar: Remove unused configure check.
30846         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30847
30848 2010-01-01  Eric Blake  <ebb9@byu.net>
30849
30850         headers: make check of system header explicit
30851         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30852         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30853         ourselves.
30854         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30855         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30856         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30857         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30858         internals.
30859         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30860         missing.
30861         Suggested by Bruno Haible.
30862
30863 2010-01-01  Jim Meyering  <meyering@redhat.com>
30864
30865         ChangeLog: tweak to eliminate unnecessary copyright line
30866         * ChangeLog: Remove a copyright line that was mistakenly updated
30867         by today's update-copyright run.  Reported by Eric Blake.
30868
30869         test-update-copyright: don't let envvar setting cause test failure
30870         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30871
30872 2010-01-01  Bruno Haible  <bruno@clisp.org>
30873
30874         localename: Avoid gcc warning.
30875         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30876         function if it is not used.
30877
30878 2010-01-01  Jim Meyering  <meyering@redhat.com>
30879
30880         update nearly all FSF copyright year lists to include 2010
30881         Use the same procedure as for 2009, outlined in
30882         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30883
30884         version-etc: set COPYRIGHT_YEAR to 2010
30885         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30886
30887 2009-12-31  Eric Blake  <ebb9@byu.net>
30888
30889         doc: correct availability of cygwin 1.5.x getopt
30890         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30891         variables.
30892         * doc/posix-functions/opterr.texi (opterr): Likewise.
30893         * doc/posix-functions/optind.texi (optind): Likewise.
30894         * doc/posix-functions/optopt.texi (optopt): Likewise.
30895         * doc/posix-functions/tzname.texi (tzname): Likewise.
30896
30897         openat: update maintainer
30898         * modules/openat (Maintainer): Add myself.
30899
30900         utimens: avoid shadowing warning
30901         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30902         buffers into one, to avoid shadowing, as well as avoiding a
30903         redundant stat.
30904         Reported by Jim Meyering.
30905
30906         test-dup2: avoid compiler warning
30907         * tests/test-dup2.c (is_inheritable): Only define if used.
30908
30909 2010-01-01  Bruno Haible  <bruno@clisp.org>
30910
30911         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30912         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30913         defined, use wctomb instead of wcrtomb.
30914
30915 2010-01-01  Bruno Haible  <bruno@clisp.org>
30916
30917         iconv: Reject native Solaris iconv.
30918         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30919         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30920
30921 2009-12-31  Bruno Haible  <bruno@clisp.org>
30922
30923         * tests/test-signal.c (main): Remove test of 'SIG'.
30924
30925 2009-12-31  Bruno Haible  <bruno@clisp.org>
30926
30927         spawn: Fix incomplete fix.
30928         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30929         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30930         warnings for GNULIB_POSIXCHECK again.
30931         Reported by Eric Blake.
30932
30933 2009-12-31  Bruno Haible  <bruno@clisp.org>
30934
30935         Avoid namespace pollution on glibc systems.
30936         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30937         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30938         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30939         glibc systems.
30940
30941 2009-12-31  Bruno Haible  <bruno@clisp.org>
30942
30943         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30944         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30945         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30946         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30947         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30948         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30949         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30950
30951 2009-12-31  Bruno Haible  <bruno@clisp.org>
30952
30953         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30954         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30955         afterwards.
30956
30957 2009-12-31  Bruno Haible  <bruno@clisp.org>
30958
30959         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30960         SYS_UTSNAME_H.
30961
30962 2009-12-31  Bruno Haible  <bruno@clisp.org>
30963
30964         spawn: Fix misapplied patch.
30965         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30966         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30967         warnings for GNULIB_POSIXCHECK.
30968
30969 2009-12-31  Bruno Haible  <bruno@clisp.org>
30970
30971         times: Update after sys_times changed.
30972         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30973         * modules/times (Files): Add it.
30974         (configure.ac): Invoke gl_FUNC_TIMES.
30975
30976 2009-12-31  Bruno Haible  <bruno@clisp.org>
30977
30978         Use AC_C_INLINE where necessary.
30979         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30980         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30982         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30983         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30984         * m4/mbiter.m4 (gl_MBITER): Likewise.
30985         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30986         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30987         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30988         * modules/u64 (configure.ac): Likewise.
30989
30990 2009-12-31  Bruno Haible  <bruno@clisp.org>
30991
30992         Use AC_C_INLINE instead of module 'inline' where possible.
30993         * modules/inline (Description): Clarify purpose.
30994         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30995         * modules/count-one-bits (Depends-on): Remove inline.
30996         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30997         * modules/openat (Depends-on): Remove inline.
30998         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30999         instead of depending on module 'inline'.
31000         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31001         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31002         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31003         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31004         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31005         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31006         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31007         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31008         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31009         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31010         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31011         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31012         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31013         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31014         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31015         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31016         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31017         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31018         Likewise.
31019         * modules/unictype/property-ascii-hex-digit (Depends-on,
31020         configure.ac): Likewise.
31021         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31022         configure.ac): Likewise.
31023         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31024         configure.ac): Likewise.
31025         * modules/unictype/property-bidi-block-separator (Depends-on,
31026         configure.ac): Likewise.
31027         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31028         configure.ac): Likewise.
31029         * modules/unictype/property-bidi-common-separator (Depends-on,
31030         configure.ac): Likewise.
31031         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31032         Likewise.
31033         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31034         configure.ac): Likewise.
31035         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31036         configure.ac): Likewise.
31037         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31038         configure.ac): Likewise.
31039         * modules/unictype/property-bidi-european-digit (Depends-on,
31040         configure.ac): Likewise.
31041         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31042         configure.ac): Likewise.
31043         * modules/unictype/property-bidi-left-to-right (Depends-on,
31044         configure.ac): Likewise.
31045         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31046         configure.ac): Likewise.
31047         * modules/unictype/property-bidi-other-neutral (Depends-on,
31048         configure.ac): Likewise.
31049         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31050         Likewise.
31051         * modules/unictype/property-bidi-segment-separator (Depends-on,
31052         configure.ac): Likewise.
31053         * modules/unictype/property-bidi-whitespace (Depends-on,
31054         configure.ac): Likewise.
31055         * modules/unictype/property-combining (Depends-on, configure.ac):
31056         Likewise.
31057         * modules/unictype/property-composite (Depends-on, configure.ac):
31058         Likewise.
31059         * modules/unictype/property-currency-symbol (Depends-on,
31060         configure.ac): Likewise.
31061         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31062         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31063         Likewise.
31064         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31065         configure.ac): Likewise.
31066         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31067         Likewise.
31068         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31069         Likewise.
31070         * modules/unictype/property-extender (Depends-on, configure.ac):
31071         Likewise.
31072         * modules/unictype/property-format-control (Depends-on, configure.ac):
31073         Likewise.
31074         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31075         Likewise.
31076         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31077         Likewise.
31078         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31079         Likewise.
31080         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31081         Likewise.
31082         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31083         Likewise.
31084         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31085         Likewise.
31086         * modules/unictype/property-id-start (Depends-on, configure.ac):
31087         Likewise.
31088         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31089         Likewise.
31090         * modules/unictype/property-ids-binary-operator (Depends-on,
31091         configure.ac): Likewise.
31092         * modules/unictype/property-ids-trinary-operator (Depends-on,
31093         configure.ac): Likewise.
31094         * modules/unictype/property-ignorable-control (Depends-on,
31095         configure.ac): Likewise.
31096         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31097         Likewise.
31098         * modules/unictype/property-join-control (Depends-on, configure.ac):
31099         Likewise.
31100         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31101         Likewise.
31102         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31103         Likewise.
31104         * modules/unictype/property-logical-order-exception (Depends-on,
31105         configure.ac): Likewise.
31106         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31107         Likewise.
31108         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31109         * modules/unictype/property-non-break (Depends-on, configure.ac):
31110         Likewise.
31111         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31112         Likewise.
31113         * modules/unictype/property-numeric (Depends-on, configure.ac):
31114         Likewise.
31115         * modules/unictype/property-other-alphabetic (Depends-on,
31116         configure.ac): Likewise.
31117         * modules/unictype/property-other-default-ignorable-code-point
31118         (Depends-on, configure.ac): Likewise.
31119         * modules/unictype/property-other-grapheme-extend (Depends-on,
31120         configure.ac): Likewise.
31121         * modules/unictype/property-other-id-continue (Depends-on,
31122         configure.ac): Likewise.
31123         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31124         Likewise.
31125         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31126         Likewise.
31127         * modules/unictype/property-other-math (Depends-on, configure.ac):
31128         Likewise.
31129         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31130         Likewise.
31131         * modules/unictype/property-paired-punctuation (Depends-on,
31132         configure.ac): Likewise.
31133         * modules/unictype/property-paragraph-separator (Depends-on,
31134         configure.ac): Likewise.
31135         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31136         Likewise.
31137         * modules/unictype/property-pattern-white-space (Depends-on,
31138         configure.ac): Likewise.
31139         * modules/unictype/property-private-use (Depends-on, configure.ac):
31140         Likewise.
31141         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31142         Likewise.
31143         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31144         Likewise.
31145         * modules/unictype/property-radical (Depends-on, configure.ac):
31146         Likewise.
31147         * modules/unictype/property-sentence-terminal (Depends-on,
31148         configure.ac): Likewise.
31149         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31150         Likewise.
31151         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31152         * modules/unictype/property-terminal-punctuation (Depends-on,
31153         configure.ac): Likewise.
31154         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31155         Likewise.
31156         * modules/unictype/property-unassigned-code-value (Depends-on,
31157         configure.ac): Likewise.
31158         * modules/unictype/property-unified-ideograph (Depends-on,
31159         configure.ac): Likewise.
31160         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31161         Likewise.
31162         * modules/unictype/property-variation-selector (Depends-on,
31163         configure.ac): Likewise.
31164         * modules/unictype/property-white-space (Depends-on, configure.ac):
31165         Likewise.
31166         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31167         Likewise.
31168         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31169         Likewise.
31170         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31171         Likewise.
31172         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31173         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31174         Likewise.
31175
31176 2009-12-31  Bruno Haible  <bruno@clisp.org>
31177
31178         Remove unnecessary AC_C_INLINE invocation.
31179         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31180         since 2009-08-21.
31181
31182 2009-12-31  Jim Meyering  <meyering@redhat.com>
31183
31184         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31185         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31186         With this change, we can all remove the gpg_key_ID = ... definition
31187         from our respective cfg.mk files.
31188
31189         maint.mk: create announcement template in ~/, not in /tmp
31190         * top/maint.mk (emit_upload_commands): Adjust.
31191         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31192         Remove temporary file, .ci-msg.
31193
31194 2009-12-31  Eric Blake  <ebb9@byu.net>
31195
31196         link-warning: always build headers with link warnings
31197         * modules/arpa_inet (Makefile.am): Always build replacement
31198         header.
31199         * modules/ctype (Makefile.am): Likewise.
31200         * modules/dirent (Makefile.am): Likewise.
31201         * modules/inttypes (Makefile.am): Likewise.
31202         * modules/langinfo (Makefile.am): Likewise.
31203         * modules/locale (Makefile.am): Likewise.
31204         * modules/spawn (Makefile.am): Likewise.
31205         * modules/sys_file (Makefile.am): Likewise.
31206         * modules/sys_ioctl (Makefile.am): Likewise.
31207         * modules/sys_select (Makefile.am): Likewise.
31208         * modules/sys_socket (Makefile.am): Likewise.
31209         * modules/sys_times (Makefile.am): Likewise.
31210         * modules/sys_utsname (Makefile.am): Likewise.
31211         * modules/sys_wait (Makefile.am): Likewise.
31212         * modules/wchar (Makefile.am): Likewise.
31213         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31214         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31215         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31216         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31217         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31218         Likewise.
31219         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31220         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31221         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31222         Likewise.
31223         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31224         Likewise.
31225         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31226         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31227         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31229         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31230         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31231         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31232         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31233         (gl_WCHAR_H_DEFAULTS): Likewise.
31234
31235 2009-12-31  Eric Blake  <ebb9@byu.net>
31236
31237         signal, spawn: use link warnings
31238         * lib/signal.in.h (sigset_t): Make unconditional.
31239         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
31240         (sigpending, sigprocmask, sigaction): Add link warnings.
31241         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
31242         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
31243         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
31244         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
31245         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
31246         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
31247         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
31248         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
31249         (posix_spawn_file_actions_destroy)
31250         (posix_spawn_file_actions_addopen)
31251         (posix_spawn_file_actions_addclose)
31252         (posix_spawn_file_actions_adddup2): Likewise.
31253         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
31254         * tests/test-signal.c (main): Enhance test.
31255
31256         spawn: improve wrapper support
31257         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
31258         (gl_SPAWN_H_DEFAULTS): New defaults.
31259         * modules/spawn (Makefile.am): Substitute them.
31260         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
31261         Only declare if missing or broken.
31262
31263         sys_times, sys_utsname: use include_next
31264         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
31265         header.
31266         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
31267         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31268         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31269         * modules/sys_times (Depends-on): Add include_next.
31270         (Makefile.am): Substitute additional values.
31271         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31272         * lib/sys_times.in.h (includes): Include native header, if
31273         available.
31274         * lib/sys_utsname.in.h (includes): Likewise.
31275         * tests/test-sys_times.c (main): Enhance test.
31276
31277         fdutimensat: revert prior patch
31278         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
31279         utimens.h.
31280         Reported by Bruno Haible.
31281
31282 2009-12-30  Eric Blake  <ebb9@byu.net>
31283
31284         sys_wait: drop link-warning dependency
31285         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
31286         link-warning efforts.
31287         * lib/sys_wait.in.h: Likewise.
31288
31289         fdutimensat: remove bogus dependency
31290         * modules/fdutimensat (Depends-on): Drop inline.
31291
31292         unistd: fix typo
31293         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
31294
31295 2009-12-30  Bruno Haible  <bruno@clisp.org>
31296
31297         Fix compilation error with Solaris cc.
31298         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
31299         * lib/unicase/u16-is-invariant.c: Likewise.
31300         * lib/unicase/u32-is-invariant.c: Likewise.
31301         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31302
31303 2009-12-30  Bruno Haible  <bruno@clisp.org>
31304
31305         Fix test crash.
31306         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
31307         locales.
31308         Reported by Simon Josefsson <simon@josefsson.org>.
31309
31310 2009-12-30  Bruno Haible  <bruno@clisp.org>
31311
31312         Fix compilation error on most platforms.
31313         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
31314         Reported by Simon Josefsson <simon@josefsson.org>
31315         and Nelson H. F. Beebe <beebe@math.utah.edu>.
31316
31317 2009-12-30  Eric Blake  <ebb9@byu.net>
31318
31319         futimens, utimensat: work around ntfs-3g bug
31320         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
31321         a ctime bug is present, and expand workaround to cover ntfs-3g.
31322         * lib/utimens.c (fdutimens, lutimens): Likewise.
31323         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
31324         (validate_timespec): Adjust return value.
31325         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
31326         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31327         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
31328
31329 2009-12-29  Eric Blake  <ebb9@byu.net>
31330
31331         link-warning: make usage consistent
31332         * modules/ctype (Depends-on): Add link-warning.
31333         (Makefile.am): Update rules accordingly.
31334         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31335         * modules/locale (Depends-on, Makefile.am): Likewise.
31336         * modules/sys_file (Makefile.am): Likewise.
31337         * modules/getopt-posix (Makefile.am): Delete unused link warning
31338         efforts.
31339         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
31340         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
31341         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
31342         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
31343
31344         stdio: remove unused variables
31345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
31346         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
31347         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31348
31349         tests: test more substitute headers
31350         * modules/ctype-tests: New file.
31351         * modules/dirent-tests: Likewise.
31352         * modules/spawn-tests: Likewise.
31353         * modules/sys_file-tests: Likewise.
31354         * modules/sys_ioctl-tests: Likewise.
31355         * modules/sys_wait-tests: Likewise.
31356         * tests/test-ctype.c: Likewise.
31357         * tests/test-dirent.c: Likewise.
31358         * tests/test-spawn.c: Likewise.
31359         * tests/test-sys_file.c: Likewise.
31360         * tests/test-sys_ioctl.c: Likewise.
31361         * tests/test-sys_wait.c: Likewise.
31362         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
31363         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
31364         whether or not flock is in use.
31365
31366         tests: remove License section from module
31367         * modules/arpa_inet-tests: Remove unneeded section.
31368         * modules/byteswap-tests: Likewise.
31369         * modules/ceilf-tests: Likewise.
31370         * modules/ceill-tests: Likewise.
31371         * modules/crypto/des-tests: Likewise.
31372         * modules/crypto/gc-arcfour-tests: Likewise.
31373         * modules/crypto/gc-arctwo-tests: Likewise.
31374         * modules/crypto/gc-des-tests: Likewise.
31375         * modules/crypto/gc-hmac-md5-tests: Likewise.
31376         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31377         * modules/crypto/gc-md2-tests: Likewise.
31378         * modules/crypto/gc-md4-tests: Likewise.
31379         * modules/crypto/gc-md5-tests: Likewise.
31380         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31381         * modules/crypto/gc-rijndael-tests: Likewise.
31382         * modules/crypto/gc-sha1-tests: Likewise.
31383         * modules/crypto/gc-tests: Likewise.
31384         * modules/crypto/md2-tests: Likewise.
31385         * modules/crypto/md4-tests: Likewise.
31386         * modules/fcntl-h-tests: Likewise.
31387         * modules/floorf-tests: Likewise.
31388         * modules/floorl-tests: Likewise.
31389         * modules/frexp-nolibm-tests: Likewise.
31390         * modules/frexp-tests: Likewise.
31391         * modules/frexpl-nolibm-tests: Likewise.
31392         * modules/frexpl-tests: Likewise.
31393         * modules/getaddrinfo-tests: Likewise.
31394         * modules/inttypes-tests: Likewise.
31395         * modules/isfinite-tests: Likewise.
31396         * modules/isinf-tests: Likewise.
31397         * modules/ldexpl-tests: Likewise.
31398         * modules/locale-tests: Likewise.
31399         * modules/math-tests: Likewise.
31400         * modules/netdb-tests: Likewise.
31401         * modules/netinet_in-tests: Likewise.
31402         * modules/printf-frexp-tests: Likewise.
31403         * modules/printf-frexpl-tests: Likewise.
31404         * modules/priv-set-tests: Likewise.
31405         * modules/random_r-tests: Likewise.
31406         * modules/round-tests: Likewise.
31407         * modules/roundf-tests: Likewise.
31408         * modules/roundl-tests: Likewise.
31409         * modules/search-tests: Likewise.
31410         * modules/select-tests: Likewise.
31411         * modules/signal-tests: Likewise.
31412         * modules/stdbool-tests: Likewise.
31413         * modules/stddef-tests: Likewise.
31414         * modules/stdint-tests: Likewise.
31415         * modules/stdio-tests: Likewise.
31416         * modules/stdlib-tests: Likewise.
31417         * modules/string-tests: Likewise.
31418         * modules/strings-tests: Likewise.
31419         * modules/sys_select-tests: Likewise.
31420         * modules/sys_socket-tests: Likewise.
31421         * modules/sys_stat-tests: Likewise.
31422         * modules/sys_time-tests: Likewise.
31423         * modules/sys_utsname-tests: Likewise.
31424         * modules/sysexits-tests: Likewise.
31425         * modules/time-tests: Likewise.
31426         * modules/trunc-tests: Likewise.
31427         * modules/truncf-tests: Likewise.
31428         * modules/truncl-tests: Likewise.
31429         * modules/tsearch-tests: Likewise.
31430         * modules/unistd-tests: Likewise.
31431         * modules/wchar-tests: Likewise.
31432         * modules/wctype-tests: Likewise.
31433
31434         tests: fix license on several tests
31435         * tests/test-des.c: Update to GPLv3+.
31436         * tests/test-flock.c: Likewise.
31437         * tests/test-fsync.c: Likewise.
31438         * tests/test-futimens.h: Likewise.
31439         * tests/test-gc-arcfour.c: Likewise.
31440         * tests/test-gc-arctwo.c: Likewise.
31441         * tests/test-gc-des.c: Likewise.
31442         * tests/test-gc-hmac-md5.c: Likewise.
31443         * tests/test-gc-hmac-sha1.c: Likewise.
31444         * tests/test-gc-md2.c: Likewise.
31445         * tests/test-gc-md4.c: Likewise.
31446         * tests/test-gc-md5.c: Likewise.
31447         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31448         * tests/test-gc-rijndael.c: Likewise.
31449         * tests/test-gc-sha1.c: Likewise.
31450         * tests/test-gc.c: Likewise.
31451         * tests/test-getcwd.c: Likewise.
31452         * tests/test-link.c: Likewise.
31453         * tests/test-link.h: Likewise.
31454         * tests/test-lutimens.h: Likewise.
31455         * tests/test-md2.c: Likewise.
31456         * tests/test-md4.c: Likewise.
31457         * tests/test-mkdir.h: Likewise.
31458         * tests/test-rename.c: Likewise.
31459         * tests/test-rename.h: Likewise.
31460         * tests/test-safe-alloc.c: Likewise.
31461         * tests/test-utimens-common.h: Likewise.
31462         * tests/test-utimens.h: Likewise.
31463
31464         maint: sync license texts
31465         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31466         * doc/gpl-3.0.texi: Revert copyright year update.
31467         * doc/lgpl-3.0.texi: Likewise.
31468
31469 2009-12-29  Jim Meyering  <meyering@redhat.com>
31470
31471         update nearly all FSF copyright year lists to include 2009
31472         The files named by the following are exempted:
31473             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31474               test -f "$dst" && { echo "$dst"; continue; }
31475               test -d "$dst" || continue
31476               echo "$dst"/$(basename "$src")
31477             done > exempt
31478             git ls-files tests/unictype >> exempt
31479         In the remaining files, convert to all-interval notation if
31480         - there is already at least one year interval like 2000-2003
31481         - the file is maintained by me
31482         - the file is in lib/uni*/, where that style already prevails
31483         Otherwise, use update-copyright's default.
31484
31485 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31486         and Eric Blake  <ebb9@byu.net>
31487
31488         tests: don't require debug system() to pass
31489         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31490         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31491         * tests/test-unlink.h (test_unlink_func): Likewise.
31492         * tests/test-fstatat.c (main): ...into callers.
31493         * tests/test-lstat.c (main): Likewise.
31494         * tests/test-rmdir.c (main): Likewise.
31495         * tests/test-unlink.c (main): Likewise.
31496         * tests/test-unlinkat.c (main): Likewise.
31497         * tests/test-areadlink-with-size.c (main): Don't require a
31498         debug-only system call to pass, aiding cross-testing to mingw.
31499         * tests/test-areadlink.c (main): Likewise.
31500         * tests/test-areadlinkat-with-size.c (main): Likewise.
31501         * tests/test-areadlinkat.c (main): Likewise.
31502         * tests/test-canonicalize-lgpl.c (main): Likewise.
31503         * tests/test-canonicalize.c (main): Likewise.
31504         * tests/test-chown.c (main): Likewise.
31505         * tests/test-fchownat.c (main): Likewise.
31506         * tests/test-lchown.c (main): Likewise.
31507         * tests/test-fdutimensat.c (main): Likewise.
31508         * tests/test-futimens.c (main): Likewise.
31509         * tests/test-link.c (main): Likewise.
31510         * tests/test-linkat.c (main): Likewise.
31511         * tests/test-mkdir.c (main): Likewise.
31512         * tests/test-mkdirat.c (main): Likewise.
31513         * tests/test-mkfifo.c (main): Likewise.
31514         * tests/test-mkfifoat.c (main): Likewise.
31515         * tests/test-mknod.c (main): Likewise.
31516         * tests/test-readlink.c (main): Likewise.
31517         * tests/test-remove.c (main): Likewise.
31518         * tests/test-rename.c (main): Likewise.
31519         * tests/test-renameat.c (main): Likewise.
31520         * tests/test-symlink.c (main): Likewise.
31521         * tests/test-symlinkat.c (main): Likewise.
31522         * tests/test-utimens.c (main): Likewise.
31523         * tests/test-utimensat.c (main): Likewise.
31524
31525 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31526
31527         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31528         on $(UNUSED_PARAMETER_H) to avoid build failure.
31529
31530 2009-12-28  Jim Meyering  <meyering@redhat.com>
31531
31532         update-copyright: you may specify a max. line length other than 72
31533         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31534
31535         maint: use consistent FSF copyright line syntax
31536         * lib/posixtm.c: Add missing comma in FSF copyright line.
31537         * lib/posixtm.h: Likewise.
31538         * lib/getugroups.c: Add missing ", Inc.".
31539
31540         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31541         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31542         FSF copyright line.  Remove trailing blanks.
31543
31544 2009-12-28  Eric Blake  <ebb9@byu.net>
31545
31546         test-dup2: reduce dependencies
31547         * modules/cloexec (Configure.ac): Set witness.
31548         * modules/dup2-tests (Depends-on): Drop cloexec.
31549         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31550         not present.
31551         Suggested by Bruno Haible.
31552
31553 2009-12-26  Bruno Haible  <bruno@clisp.org>
31554
31555         Remove an unneeded dependency.
31556         * modules/fseterr (Depends-on): Remove dup2.
31557
31558 2009-12-26  Eric Blake  <ebb9@byu.net>
31559
31560         tests: use macros.h in more places
31561         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31562         (ASSERT_STREAM): Provide default of stderr.
31563         * tests/test-dirent-safer.c: Include macros.h, using alternate
31564         stream for assertions.
31565         * tests/test-dup-safer.c: Likewise.
31566         * tests/test-freopen-safer.c: Likewise.
31567         * tests/test-getopt.c: Likewise.
31568         * tests/test-openat-safer.c: Likewise.
31569         * tests/test-pipe.c: Likewise.
31570         * tests/test-popen-safer.c: Likewise.
31571         * modules/dirent-safer-tests (Files): Include macros.h.
31572         * modules/unistd-safer-tests (Files): Likewise.
31573         * modules/freopen-safer-tests (Files): Likewise.
31574         * modules/getopt-posix-tests (Files): Likewise.
31575         * modules/openat-safer-tests (Files): Likewise.
31576         * modules/pipe-tests (Files): Likewise.
31577
31578 2009-12-26  Bruno Haible  <bruno@clisp.org>
31579
31580         javacomp: Portability fix.
31581         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31582         that it also works on Solaris.
31583
31584 2009-12-26  Bruno Haible  <bruno@clisp.org>
31585
31586         localename: Fix storage allocation of gl_locale_name_thread's result.
31587         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31588         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31589         all platforms that have 'uselocale'.
31590         (gl_locale_name_thread_unsafe): New function, extracted from
31591         gl_locale_name_thread.
31592         (gl_locale_name_thread): Call struniq on all platforms that have
31593         'uselocale'.
31594         * tests/test-localename.c (test_locale_name_thread): Check that the
31595         resulting strings are permanently allocated.
31596         * modules/localename-tests (Depends-on): Add strdup.
31597
31598 2009-12-26  Bruno Haible  <bruno@clisp.org>
31599
31600         * tests/test-localename.c (categories): Fill in the strings.
31601
31602 2009-12-26  Jim Meyering  <meyering@redhat.com>
31603
31604         isdir: complete the removal of m4/isdir.m4
31605         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31606
31607         isdir: clean up, since at least grep still uses it
31608         * lib/isdir.c: Include "isdir.h".
31609         (S_ISDIR): Remove now-unneeded definition.
31610         * modules/isdir (Files): Add lib/isdir.h.
31611         * lib/isdir.h: New file, with declaration.
31612         * m4/isdir.m4: Remove file -- unneeded.
31613
31614 2009-12-25  Bruno Haible  <bruno@clisp.org>
31615
31616         selinux-h: Make generated .h files standalone.
31617         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31618         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31619         * lib/se-selinux.in.h: Likewise.
31620         * modules/selinux-h (Depends-on): Add unused-parameter.
31621         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31622         selinux/selinux.h and selinux/context.h.
31623         Suggested by Eric Blake.
31624
31625 2009-12-25  Bruno Haible  <bruno@clisp.org>
31626
31627         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31628         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31629         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31630         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31631         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31632
31633 2009-12-24  Bruno Haible  <bruno@clisp.org>
31634
31635         openat: Fix warning.
31636         * lib/openat-proc.c: Include <unistd.h>.
31637
31638 2009-12-24  Bruno Haible  <bruno@clisp.org>
31639
31640         New module 'unused-parameter'.
31641         * build-aux/unused-parameter.h: New file, extracted from earlier
31642         gnulib-common.m4.
31643         * modules/unused-parameter: New file.
31644         * lib/unistr.h: Include unused-parameter.h.
31645         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31646         _GL_UNUSED.
31647         * modules/unistr/base (Depends-on): Add unused-parameter.
31648
31649 2009-12-24  Bruno Haible  <bruno@clisp.org>
31650
31651         Add missing dependencies to 'extensions' module.
31652         * m4/extensions.m4: Add comment.
31653         * modules/accept4 (Depends-on): Add extensions.
31654         * modules/dup3 (Depends-on): Likewise.
31655         * modules/fcntl (Depends-on): Likewise.
31656         * modules/futimens (Depends-on): Likewise.
31657         * modules/mknod (Depends-on): Likewise.
31658         * modules/pipe2 (Depends-on): Likewise.
31659         * modules/stat-time (Depends-on): Likewise.
31660         * modules/strcasestr-simple (Depends-on): Likewise.
31661         * modules/strsignal (Depends-on): Likewise.
31662         * modules/utimensat (Depends-on): Likewise.
31663         * modules/localcharset (Depends-on): Likewise. Needed because of
31664         gl_FCNTL_O_FLAGS.
31665         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31666         AC_TYPE_MBSTATE_T.
31667         * modules/wcsnrtombs (Depends-on): Likewise.
31668         * modules/wcsrtombs (Depends-on): Likewise.
31669
31670 2009-12-24  Bruno Haible  <bruno@clisp.org>
31671
31672         binary-io: Avoid gcc warning due to SET_BINARY.
31673         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31674         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31675
31676 2009-12-24  Bruno Haible  <bruno@clisp.org>
31677
31678         Avoid future namespace pollution on glibc systems.
31679         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31680         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31681         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31682         glibc systems.
31683
31684 2009-12-24  Bruno Haible  <bruno@clisp.org>
31685
31686         Refactor common macros used in tests.
31687         * tests/macros.h: New file.
31688         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31689         and/or <stdlib.h>, if appropriate.
31690         (ASSERT, SIZEOF): Remove macros.
31691         * tests/test-areadlink-with-size.c: Likewise.
31692         * tests/test-areadlinkat.c: Likewise.
31693         * tests/test-areadlinkat-with-size.c: Likewise.
31694         * tests/test-argmatch.c: Likewise.
31695         * tests/test-argv-iter.c: Likewise.
31696         * tests/test-array-mergesort.c: Likewise.
31697         * tests/test-array_list.c: Likewise.
31698         * tests/test-array_oset.c: Likewise.
31699         * tests/test-avltree_list.c: Likewise.
31700         * tests/test-avltree_oset.c: Likewise.
31701         * tests/test-avltreehash_list.c: Likewise.
31702         * tests/test-base64.c: Likewise.
31703         * tests/test-binary-io.c: Likewise.
31704         * tests/test-bitrotate.c: Likewise.
31705         * tests/test-btowc.c: Likewise.
31706         * tests/test-byteswap.c: Likewise.
31707         * tests/test-c-ctype.c: Likewise.
31708         * tests/test-c-stack.c: Likewise.
31709         * tests/test-c-strcasecmp.c: Likewise.
31710         * tests/test-c-strcasestr.c: Likewise.
31711         * tests/test-c-strncasecmp.c: Likewise.
31712         * tests/test-c-strstr.c: Likewise.
31713         * tests/test-canonicalize-lgpl.c: Likewise.
31714         * tests/test-canonicalize.c: Likewise.
31715         * tests/test-carray_list.c: Likewise.
31716         * tests/test-ceilf1.c: Likewise.
31717         * tests/test-ceilf2.c: Likewise.
31718         * tests/test-ceill.c: Likewise.
31719         * tests/test-chown.c: Likewise.
31720         * tests/test-cloexec.c: Likewise.
31721         * tests/test-copy-acl.c: Likewise.
31722         * tests/test-copy-file.c: Likewise.
31723         * tests/test-count-one-bits.c: Likewise.
31724         * tests/test-dprintf-posix.c: Likewise.
31725         * tests/test-dup2.c: Likewise.
31726         * tests/test-dup3.c: Likewise.
31727         * tests/test-duplocale.c: Likewise.
31728         * tests/test-fbufmode.c: Likewise.
31729         * tests/test-fchdir.c: Likewise.
31730         * tests/test-fchownat.c: Likewise.
31731         * tests/test-fcntl-safer.c: Likewise.
31732         * tests/test-fcntl.c: Likewise.
31733         * tests/test-fdopendir.c: Likewise.
31734         * tests/test-fdutimensat.c: Likewise.
31735         * tests/test-fflush2.c: Likewise.
31736         * tests/test-file-has-acl.c: Likewise.
31737         * tests/test-filevercmp.c: Likewise.
31738         * tests/test-flock.c: Likewise.
31739         * tests/test-floorf1.c: Likewise.
31740         * tests/test-floorf2.c: Likewise.
31741         * tests/test-floorl.c: Likewise.
31742         * tests/test-fnmatch.c: Likewise.
31743         * tests/test-fopen.h: Likewise.
31744         * tests/test-fpending.c: Likewise.
31745         * tests/test-fprintf-posix.c: Likewise.
31746         * tests/test-fpurge.c: Likewise.
31747         * tests/test-freadable.c: Likewise.
31748         * tests/test-freadahead.c: Likewise.
31749         * tests/test-freading.c: Likewise.
31750         * tests/test-freadptr.c: Likewise.
31751         * tests/test-freadptr2.c: Likewise.
31752         * tests/test-freadseek.c: Likewise.
31753         * tests/test-freopen.c: Likewise.
31754         * tests/test-frexp.c: Likewise.
31755         * tests/test-frexpl.c: Likewise.
31756         * tests/test-fseek.c: Likewise.
31757         * tests/test-fseeko.c: Likewise.
31758         * tests/test-fstatat.c: Likewise.
31759         * tests/test-fstrcmp.c: Likewise.
31760         * tests/test-fsync.c: Likewise.
31761         * tests/test-ftell.c: Likewise.
31762         * tests/test-ftello.c: Likewise.
31763         * tests/test-func.c: Likewise.
31764         * tests/test-futimens.c: Likewise.
31765         * tests/test-fwritable.c: Likewise.
31766         * tests/test-fwriting.c: Likewise.
31767         * tests/test-getcwd.c: Likewise.
31768         * tests/test-getdate.c: Likewise.
31769         * tests/test-getdelim.c: Likewise.
31770         * tests/test-getdtablesize.c: Likewise.
31771         * tests/test-getgroups.c: Likewise.
31772         * tests/test-getline.c: Likewise.
31773         * tests/test-getndelim2.c: Likewise.
31774         * tests/test-glob.c: Likewise.
31775         * tests/test-hash.c: Likewise.
31776         * tests/test-i-ring.c: Likewise.
31777         * tests/test-iconv-utf.c: Likewise.
31778         * tests/test-iconv.c: Likewise.
31779         * tests/test-idpriv-drop.c: Likewise.
31780         * tests/test-idpriv-droptemp.c: Likewise.
31781         * tests/test-inet_ntop.c: Likewise.
31782         * tests/test-inet_pton.c: Likewise.
31783         * tests/test-isblank.c: Likewise.
31784         * tests/test-isfinite.c: Likewise.
31785         * tests/test-isinf.c: Likewise.
31786         * tests/test-isnan.c: Likewise.
31787         * tests/test-isnand.h: Likewise.
31788         * tests/test-isnanf.h: Likewise.
31789         * tests/test-isnanl.h: Likewise.
31790         * tests/test-lchown.c: Likewise.
31791         * tests/test-ldexpl.c: Likewise.
31792         * tests/test-link.c: Likewise.
31793         * tests/test-linkat.c: Likewise.
31794         * tests/test-linked_list.c: Likewise.
31795         * tests/test-linkedhash_list.c: Likewise.
31796         * tests/test-localename.c: Likewise.
31797         * tests/test-lseek.c: Likewise.
31798         * tests/test-lstat.c: Likewise.
31799         * tests/test-mbmemcasecmp.c: Likewise.
31800         * tests/test-mbmemcasecoll.c: Likewise.
31801         * tests/test-mbrtowc.c: Likewise.
31802         * tests/test-mbscasecmp.c: Likewise.
31803         * tests/test-mbscasestr1.c: Likewise.
31804         * tests/test-mbscasestr2.c: Likewise.
31805         * tests/test-mbscasestr3.c: Likewise.
31806         * tests/test-mbscasestr4.c: Likewise.
31807         * tests/test-mbschr.c: Likewise.
31808         * tests/test-mbscspn.c: Likewise.
31809         * tests/test-mbsinit.c: Likewise.
31810         * tests/test-mbsncasecmp.c: Likewise.
31811         * tests/test-mbsnrtowcs.c: Likewise.
31812         * tests/test-mbspbrk.c: Likewise.
31813         * tests/test-mbspcasecmp.c: Likewise.
31814         * tests/test-mbsrchr.c: Likewise.
31815         * tests/test-mbsrtowcs.c: Likewise.
31816         * tests/test-mbsspn.c: Likewise.
31817         * tests/test-mbsstr1.c: Likewise.
31818         * tests/test-mbsstr2.c: Likewise.
31819         * tests/test-mbsstr3.c: Likewise.
31820         * tests/test-memchr.c: Likewise.
31821         * tests/test-memchr2.c: Likewise.
31822         * tests/test-memcmp.c: Likewise.
31823         * tests/test-memmem.c: Likewise.
31824         * tests/test-memrchr.c: Likewise.
31825         * tests/test-mkdir.c: Likewise.
31826         * tests/test-mkdirat.c: Likewise.
31827         * tests/test-mkfifo.c: Likewise.
31828         * tests/test-mkfifoat.c: Likewise.
31829         * tests/test-mknod.c: Likewise.
31830         * tests/test-nanosleep.c: Likewise.
31831         * tests/test-nl_langinfo.c: Likewise.
31832         * tests/test-obstack-printf.c: Likewise.
31833         * tests/test-open.c: Likewise.
31834         * tests/test-openat.c: Likewise.
31835         * tests/test-pipe-filter-gi1.c: Likewise.
31836         * tests/test-pipe-filter-gi2-main.c: Likewise.
31837         * tests/test-pipe-filter-ii1.c: Likewise.
31838         * tests/test-pipe-filter-ii2-main.c: Likewise.
31839         * tests/test-pipe2.c: Likewise.
31840         * tests/test-popen.h: Likewise.
31841         * tests/test-posixtm.c: Likewise.
31842         * tests/test-pread.c: Likewise.
31843         * tests/test-printf-frexp.c: Likewise.
31844         * tests/test-printf-frexpl.c: Likewise.
31845         * tests/test-printf-posix.c: Likewise.
31846         * tests/test-priv-set.c: Likewise.
31847         * tests/test-quotearg.c: Likewise.
31848         * tests/test-random_r.c: Likewise.
31849         * tests/test-rawmemchr.c: Likewise.
31850         * tests/test-rbtree_list.c: Likewise.
31851         * tests/test-rbtree_oset.c: Likewise.
31852         * tests/test-rbtreehash_list.c: Likewise.
31853         * tests/test-readlink.c: Likewise.
31854         * tests/test-remove.c: Likewise.
31855         * tests/test-rename.c: Likewise.
31856         * tests/test-renameat.c: Likewise.
31857         * tests/test-rmdir.c: Likewise.
31858         * tests/test-round1.c: Likewise.
31859         * tests/test-roundf1.c: Likewise.
31860         * tests/test-roundl.c: Likewise.
31861         * tests/test-safe-alloc.c: Likewise.
31862         * tests/test-sameacls.c: Likewise.
31863         * tests/test-set-mode-acl.c: Likewise.
31864         * tests/test-setenv.c: Likewise.
31865         * tests/test-sigaction.c: Likewise.
31866         * tests/test-signbit.c: Likewise.
31867         * tests/test-sleep.c: Likewise.
31868         * tests/test-snprintf-posix.c: Likewise.
31869         * tests/test-snprintf.c: Likewise.
31870         * tests/test-sprintf-posix.c: Likewise.
31871         * tests/test-stat-time.c: Likewise.
31872         * tests/test-stat.c: Likewise.
31873         * tests/test-strcasestr.c: Likewise.
31874         * tests/test-strchrnul.c: Likewise.
31875         * tests/test-strerror.c: Likewise.
31876         * tests/test-striconv.c: Likewise.
31877         * tests/test-striconveh.c: Likewise.
31878         * tests/test-striconveha.c: Likewise.
31879         * tests/test-strsignal.c: Likewise.
31880         * tests/test-strstr.c: Likewise.
31881         * tests/test-strtod.c: Likewise.
31882         * tests/test-strverscmp.c: Likewise.
31883         * tests/test-symlink.c: Likewise.
31884         * tests/test-symlinkat.c: Likewise.
31885         * tests/test-trunc1.c: Likewise.
31886         * tests/test-trunc2.c: Likewise.
31887         * tests/test-truncf1.c: Likewise.
31888         * tests/test-truncf2.c: Likewise.
31889         * tests/test-truncl.c: Likewise.
31890         * tests/test-uname.c: Likewise.
31891         * tests/test-unlink.c: Likewise.
31892         * tests/test-unlinkat.c: Likewise.
31893         * tests/test-unsetenv.c: Likewise.
31894         * tests/test-usleep.c: Likewise.
31895         * tests/test-utimens.c: Likewise.
31896         * tests/test-utimensat.c: Likewise.
31897         * tests/test-vasnprintf-posix.c: Likewise.
31898         * tests/test-vasnprintf-posix2.c: Likewise.
31899         * tests/test-vasnprintf.c: Likewise.
31900         * tests/test-vasprintf-posix.c: Likewise.
31901         * tests/test-vasprintf.c: Likewise.
31902         * tests/test-vdprintf-posix.c: Likewise.
31903         * tests/test-vfprintf-posix.c: Likewise.
31904         * tests/test-vprintf-posix.c: Likewise.
31905         * tests/test-vsnprintf-posix.c: Likewise.
31906         * tests/test-vsnprintf.c: Likewise.
31907         * tests/test-vsprintf-posix.c: Likewise.
31908         * tests/test-wcrtomb.c: Likewise.
31909         * tests/test-wcsnrtombs.c: Likewise.
31910         * tests/test-wcsrtombs.c: Likewise.
31911         * tests/test-wctype.c: Likewise.
31912         * tests/test-wcwidth.c: Likewise.
31913         * tests/test-xfprintf-posix.c: Likewise.
31914         * tests/test-xmemdup0.c: Likewise.
31915         * tests/test-xprintf-posix.c: Likewise.
31916         * tests/test-xvasprintf.c: Likewise.
31917         * tests/unicase/test-locale-language.c: Likewise.
31918         * tests/unicase/test-mapping-part1.h: Likewise.
31919         * tests/unicase/test-predicate-part1.h: Likewise.
31920         * tests/unicase/test-u8-casecmp.c: Likewise.
31921         * tests/unicase/test-u8-casecoll.c: Likewise.
31922         * tests/unicase/test-u8-casefold.c: Likewise.
31923         * tests/unicase/test-u8-is-cased.c: Likewise.
31924         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31925         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31926         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31927         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31928         * tests/unicase/test-u8-tolower.c: Likewise.
31929         * tests/unicase/test-u8-totitle.c: Likewise.
31930         * tests/unicase/test-u8-toupper.c: Likewise.
31931         * tests/unicase/test-u16-casecmp.c: Likewise.
31932         * tests/unicase/test-u16-casecoll.c: Likewise.
31933         * tests/unicase/test-u16-casefold.c: Likewise.
31934         * tests/unicase/test-u16-is-cased.c: Likewise.
31935         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31936         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31937         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31938         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31939         * tests/unicase/test-u16-tolower.c: Likewise.
31940         * tests/unicase/test-u16-totitle.c: Likewise.
31941         * tests/unicase/test-u16-toupper.c: Likewise.
31942         * tests/unicase/test-u32-casecmp.c: Likewise.
31943         * tests/unicase/test-u32-casecoll.c: Likewise.
31944         * tests/unicase/test-u32-casefold.c: Likewise.
31945         * tests/unicase/test-u32-is-cased.c: Likewise.
31946         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31947         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31948         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31949         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31950         * tests/unicase/test-u32-tolower.c: Likewise.
31951         * tests/unicase/test-u32-totitle.c: Likewise.
31952         * tests/unicase/test-u32-toupper.c: Likewise.
31953         * tests/unicase/test-ulc-casecmp.c: Likewise.
31954         * tests/unicase/test-ulc-casecoll.c: Likewise.
31955         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31956         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31957         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31958         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31959         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31960         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31961         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31962         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31963         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31964         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31965         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31966         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31967         * tests/unictype/test-bidi_byname.c: Likewise.
31968         * tests/unictype/test-bidi_name.c: Likewise.
31969         * tests/unictype/test-bidi_of.c: Likewise.
31970         * tests/unictype/test-bidi_test.c: Likewise.
31971         * tests/unictype/test-block_list.c: Likewise.
31972         * tests/unictype/test-block_of.c: Likewise.
31973         * tests/unictype/test-block_test.c: Likewise.
31974         * tests/unictype/test-categ_and.c: Likewise.
31975         * tests/unictype/test-categ_and_not.c: Likewise.
31976         * tests/unictype/test-categ_byname.c: Likewise.
31977         * tests/unictype/test-categ_name.c: Likewise.
31978         * tests/unictype/test-categ_none.c: Likewise.
31979         * tests/unictype/test-categ_of.c: Likewise.
31980         * tests/unictype/test-categ_or.c: Likewise.
31981         * tests/unictype/test-categ_test_withtable.c: Likewise.
31982         * tests/unictype/test-combining.c: Likewise.
31983         * tests/unictype/test-decdigit.c: Likewise.
31984         * tests/unictype/test-digit.c: Likewise.
31985         * tests/unictype/test-mirror.c: Likewise.
31986         * tests/unictype/test-numeric.c: Likewise.
31987         * tests/unictype/test-pr_byname.c: Likewise.
31988         * tests/unictype/test-pr_test.c: Likewise.
31989         * tests/unictype/test-predicate-part1.h: Likewise.
31990         * tests/unictype/test-scripts.c: Likewise.
31991         * tests/unictype/test-sy_c_ident.c: Likewise.
31992         * tests/unictype/test-sy_java_ident.c: Likewise.
31993         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31994         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31995         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31996         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31997         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31998         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31999         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32000         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32001         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32002         * tests/uninorm/test-compat-decomposition.c: Likewise.
32003         * tests/uninorm/test-composition.c: Likewise.
32004         * tests/uninorm/test-decomposing-form.c: Likewise.
32005         * tests/uninorm/test-decomposition.c: Likewise.
32006         * tests/uninorm/test-u8-nfc.c: Likewise.
32007         * tests/uninorm/test-u8-nfd.c: Likewise.
32008         * tests/uninorm/test-u8-nfkc.c: Likewise.
32009         * tests/uninorm/test-u8-nfkd.c: Likewise.
32010         * tests/uninorm/test-u8-normcmp.c: Likewise.
32011         * tests/uninorm/test-u8-normcoll.c: Likewise.
32012         * tests/uninorm/test-u16-nfc.c: Likewise.
32013         * tests/uninorm/test-u16-nfd.c: Likewise.
32014         * tests/uninorm/test-u16-nfkc.c: Likewise.
32015         * tests/uninorm/test-u16-nfkd.c: Likewise.
32016         * tests/uninorm/test-u16-normcmp.c: Likewise.
32017         * tests/uninorm/test-u16-normcoll.c: Likewise.
32018         * tests/uninorm/test-u32-nfc.c: Likewise.
32019         * tests/uninorm/test-u32-nfd.c: Likewise.
32020         * tests/uninorm/test-u32-nfkc.c: Likewise.
32021         * tests/uninorm/test-u32-nfkd.c: Likewise.
32022         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32023         * tests/uninorm/test-u32-normcmp.c: Likewise.
32024         * tests/uninorm/test-u32-normcoll.c: Likewise.
32025         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32026         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32027         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32028         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32029         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32030         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32031         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32032         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32033         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32034         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32035         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32036         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32037         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32038         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32039         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32040         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32041         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32042         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32043         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32044         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32045         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32046         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32047         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32048         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32049         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32050         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32051         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32052         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32053         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32054         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32055         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32056         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32057         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32058         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32059         * tests/uniwidth/test-u8-width.c: Likewise.
32060         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32061         * tests/uniwidth/test-u16-width.c: Likewise.
32062         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32063         * tests/uniwidth/test-u32-width.c: Likewise.
32064         * tests/uniwidth/test-uc_width.c: Likewise.
32065         * tests/uniwidth/test-uc_width2.c: Likewise.
32066         * modules/acl-tests (Files): Add tests/macros.h.
32067         * modules/areadlink-tests (Files): Likewise.
32068         * modules/areadlink-with-size-tests (Files): Likewise.
32069         * modules/areadlinkat-tests (Files): Likewise.
32070         * modules/areadlinkat-with-size-tests (Files): Likewise.
32071         * modules/argmatch-tests (Files): Likewise.
32072         * modules/argv-iter-tests (Files): Likewise.
32073         * modules/array-list-tests (Files): Likewise.
32074         * modules/array-mergesort-tests (Files): Likewise.
32075         * modules/array-oset-tests (Files): Likewise.
32076         * modules/avltree-list-tests (Files): Likewise.
32077         * modules/avltree-oset-tests (Files): Likewise.
32078         * modules/avltreehash-list-tests (Files): Likewise.
32079         * modules/base64-tests (Files): Likewise.
32080         * modules/binary-io-tests (Files): Likewise.
32081         * modules/bitrotate-tests (Files): Likewise.
32082         * modules/btowc-tests (Files): Likewise.
32083         * modules/byteswap-tests (Files): Likewise.
32084         * modules/c-ctype-tests (Files): Likewise.
32085         * modules/c-stack-tests (Files): Likewise.
32086         * modules/c-strcase-tests (Files): Likewise.
32087         * modules/c-strcasestr-tests (Files): Likewise.
32088         * modules/c-strstr-tests (Files): Likewise.
32089         * modules/canonicalize-lgpl-tests (Files): Likewise.
32090         * modules/canonicalize-tests (Files): Likewise.
32091         * modules/carray-list-tests (Files): Likewise.
32092         * modules/ceilf-tests (Files): Likewise.
32093         * modules/ceill-tests (Files): Likewise.
32094         * modules/chown-tests (Files): Likewise.
32095         * modules/cloexec-tests (Files): Likewise.
32096         * modules/copy-file-tests (Files): Likewise.
32097         * modules/count-one-bits-tests (Files): Likewise.
32098         * modules/dprintf-posix-tests (Files): Likewise.
32099         * modules/dup2-tests (Files): Likewise.
32100         * modules/dup3-tests (Files): Likewise.
32101         * modules/duplocale-tests (Files): Likewise.
32102         * modules/fbufmode-tests (Files): Likewise.
32103         * modules/fchdir-tests (Files): Likewise.
32104         * modules/fcntl-safer-tests (Files): Likewise.
32105         * modules/fcntl-tests (Files): Likewise.
32106         * modules/fdopendir-tests (Files): Likewise.
32107         * modules/fdutimensat-tests (Files): Likewise.
32108         * modules/fflush-tests (Files): Likewise.
32109         * modules/filevercmp-tests (Files): Likewise.
32110         * modules/flock-tests (Files): Likewise.
32111         * modules/floorf-tests (Files): Likewise.
32112         * modules/floorl-tests (Files): Likewise.
32113         * modules/fnmatch-tests (Files): Likewise.
32114         * modules/fopen-safer-tests (Files): Likewise.
32115         * modules/fopen-tests (Files): Likewise.
32116         * modules/fpending-tests (Files): Likewise.
32117         * modules/fprintf-posix-tests (Files): Likewise.
32118         * modules/fpurge-tests (Files): Likewise.
32119         * modules/freadable-tests (Files): Likewise.
32120         * modules/freadahead-tests (Files): Likewise.
32121         * modules/freading-tests (Files): Likewise.
32122         * modules/freadptr-tests (Files): Likewise.
32123         * modules/freadseek-tests (Files): Likewise.
32124         * modules/freopen-tests (Files): Likewise.
32125         * modules/frexp-nolibm-tests (Files): Likewise.
32126         * modules/frexp-tests (Files): Likewise.
32127         * modules/frexpl-nolibm-tests (Files): Likewise.
32128         * modules/frexpl-tests (Files): Likewise.
32129         * modules/fseek-tests (Files): Likewise.
32130         * modules/fseeko-tests (Files): Likewise.
32131         * modules/fstrcmp-tests (Files): Likewise.
32132         * modules/fsync-tests (Files): Likewise.
32133         * modules/ftell-tests (Files): Likewise.
32134         * modules/ftello-tests (Files): Likewise.
32135         * modules/func-tests (Files): Likewise.
32136         * modules/futimens-tests (Files): Likewise.
32137         * modules/fwritable-tests (Files): Likewise.
32138         * modules/fwriting-tests (Files): Likewise.
32139         * modules/getcwd-tests (Files): Likewise.
32140         * modules/getdate-tests (Files): Likewise.
32141         * modules/getdelim-tests (Files): Likewise.
32142         * modules/getdtablesize-tests (Files): Likewise.
32143         * modules/getgroups-tests (Files): Likewise.
32144         * modules/getline-tests (Files): Likewise.
32145         * modules/getndelim2-tests (Files): Likewise.
32146         * modules/glob-tests (Files): Likewise.
32147         * modules/hash-tests (Files): Likewise.
32148         * modules/i-ring-tests (Files): Likewise.
32149         * modules/iconv-tests (Files): Likewise.
32150         * modules/iconv_open-utf-tests (Files): Likewise.
32151         * modules/idpriv-drop-tests (Files): Likewise.
32152         * modules/idpriv-droptemp-tests (Files): Likewise.
32153         * modules/inet_ntop-tests (Files): Likewise.
32154         * modules/inet_pton-tests (Files): Likewise.
32155         * modules/isblank-tests (Files): Likewise.
32156         * modules/isfinite-tests (Files): Likewise.
32157         * modules/isinf-tests (Files): Likewise.
32158         * modules/isnan-tests (Files): Likewise.
32159         * modules/isnand-nolibm-tests (Files): Likewise.
32160         * modules/isnand-tests (Files): Likewise.
32161         * modules/isnanf-nolibm-tests (Files): Likewise.
32162         * modules/isnanf-tests (Files): Likewise.
32163         * modules/isnanl-nolibm-tests (Files): Likewise.
32164         * modules/isnanl-tests (Files): Likewise.
32165         * modules/lchown-tests (Files): Likewise.
32166         * modules/ldexpl-tests (Files): Likewise.
32167         * modules/link-tests (Files): Likewise.
32168         * modules/linkat-tests (Files): Likewise.
32169         * modules/linked-list-tests (Files): Likewise.
32170         * modules/linkedhash-list-tests (Files): Likewise.
32171         * modules/localename-tests (Files): Likewise.
32172         * modules/lseek-tests (Files): Likewise.
32173         * modules/lstat-tests (Files): Likewise.
32174         * modules/mbmemcasecmp-tests (Files): Likewise.
32175         * modules/mbmemcasecoll-tests (Files): Likewise.
32176         * modules/mbrtowc-tests (Files): Likewise.
32177         * modules/mbscasecmp-tests (Files): Likewise.
32178         * modules/mbscasestr-tests (Files): Likewise.
32179         * modules/mbschr-tests (Files): Likewise.
32180         * modules/mbscspn-tests (Files): Likewise.
32181         * modules/mbsinit-tests (Files): Likewise.
32182         * modules/mbsncasecmp-tests (Files): Likewise.
32183         * modules/mbsnrtowcs-tests (Files): Likewise.
32184         * modules/mbspbrk-tests (Files): Likewise.
32185         * modules/mbspcasecmp-tests (Files): Likewise.
32186         * modules/mbsrchr-tests (Files): Likewise.
32187         * modules/mbsrtowcs-tests (Files): Likewise.
32188         * modules/mbsspn-tests (Files): Likewise.
32189         * modules/mbsstr-tests (Files): Likewise.
32190         * modules/memchr-tests (Files): Likewise.
32191         * modules/memchr2-tests (Files): Likewise.
32192         * modules/memcmp-tests (Files): Likewise.
32193         * modules/memmem-tests (Files): Likewise.
32194         * modules/memrchr-tests (Files): Likewise.
32195         * modules/mkdir-tests (Files): Likewise.
32196         * modules/mkfifo-tests (Files): Likewise.
32197         * modules/mkfifoat-tests (Files): Likewise.
32198         * modules/mknod-tests (Files): Likewise.
32199         * modules/nanosleep-tests (Files): Likewise.
32200         * modules/nl_langinfo-tests (Files): Likewise.
32201         * modules/obstack-printf-tests (Files): Likewise.
32202         * modules/open-tests (Files): Likewise.
32203         * modules/openat-tests (Files): Likewise.
32204         * modules/pipe-filter-gi-tests (Files): Likewise.
32205         * modules/pipe-filter-ii-tests (Files): Likewise.
32206         * modules/pipe2-tests (Files): Likewise.
32207         * modules/popen-safer-tests (Files): Likewise.
32208         * modules/popen-tests (Files): Likewise.
32209         * modules/posixtm-tests (Files): Likewise.
32210         * modules/pread-tests (Files): Likewise.
32211         * modules/printf-frexp-tests (Files): Likewise.
32212         * modules/printf-frexpl-tests (Files): Likewise.
32213         * modules/printf-posix-tests (Files): Likewise.
32214         * modules/priv-set-tests (Files): Likewise.
32215         * modules/quotearg-tests (Files): Likewise.
32216         * modules/random_r-tests (Files): Likewise.
32217         * modules/rawmemchr-tests (Files): Likewise.
32218         * modules/rbtree-list-tests (Files): Likewise.
32219         * modules/rbtree-oset-tests (Files): Likewise.
32220         * modules/rbtreehash-list-tests (Files): Likewise.
32221         * modules/readlink-tests (Files): Likewise.
32222         * modules/remove-tests (Files): Likewise.
32223         * modules/rename-tests (Files): Likewise.
32224         * modules/renameat-tests (Files): Likewise.
32225         * modules/rmdir-tests (Files): Likewise.
32226         * modules/round-tests (Files): Likewise.
32227         * modules/roundf-tests (Files): Likewise.
32228         * modules/roundl-tests (Files): Likewise.
32229         * modules/safe-alloc-tests (Files): Likewise.
32230         * modules/setenv-tests (Files): Likewise.
32231         * modules/sigaction-tests (Files): Likewise.
32232         * modules/signbit-tests (Files): Likewise.
32233         * modules/sleep-tests (Files): Likewise.
32234         * modules/snprintf-posix-tests (Files): Likewise.
32235         * modules/snprintf-tests (Files): Likewise.
32236         * modules/sprintf-posix-tests (Files): Likewise.
32237         * modules/stat-tests (Files): Likewise.
32238         * modules/stat-time-tests (Files): Likewise.
32239         * modules/strcasestr-tests (Files): Likewise.
32240         * modules/strchrnul-tests (Files): Likewise.
32241         * modules/strerror-tests (Files): Likewise.
32242         * modules/striconv-tests (Files): Likewise.
32243         * modules/striconveh-tests (Files): Likewise.
32244         * modules/striconveha-tests (Files): Likewise.
32245         * modules/strsignal-tests (Files): Likewise.
32246         * modules/strstr-tests (Files): Likewise.
32247         * modules/strtod-tests (Files): Likewise.
32248         * modules/strverscmp-tests (Files): Likewise.
32249         * modules/symlink-tests (Files): Likewise.
32250         * modules/symlinkat-tests (Files): Likewise.
32251         * modules/trunc-tests (Files): Likewise.
32252         * modules/truncf-tests (Files): Likewise.
32253         * modules/truncl-tests (Files): Likewise.
32254         * modules/uname-tests (Files): Likewise.
32255         * modules/unicase/cased-tests (Files): Likewise.
32256         * modules/unicase/ignorable-tests (Files): Likewise.
32257         * modules/unicase/locale-language-tests (Files): Likewise.
32258         * modules/unicase/tolower-tests (Files): Likewise.
32259         * modules/unicase/totitle-tests (Files): Likewise.
32260         * modules/unicase/toupper-tests (Files): Likewise.
32261         * modules/unicase/u8-casecmp-tests (Files): Likewise.
32262         * modules/unicase/u8-casecoll-tests (Files): Likewise.
32263         * modules/unicase/u8-casefold-tests (Files): Likewise.
32264         * modules/unicase/u8-is-cased-tests (Files): Likewise.
32265         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
32266         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
32267         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
32268         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
32269         * modules/unicase/u8-tolower-tests (Files): Likewise.
32270         * modules/unicase/u8-totitle-tests (Files): Likewise.
32271         * modules/unicase/u8-toupper-tests (Files): Likewise.
32272         * modules/unicase/u16-casecmp-tests (Files): Likewise.
32273         * modules/unicase/u16-casecoll-tests (Files): Likewise.
32274         * modules/unicase/u16-casefold-tests (Files): Likewise.
32275         * modules/unicase/u16-is-cased-tests (Files): Likewise.
32276         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
32277         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
32278         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
32279         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
32280         * modules/unicase/u16-tolower-tests (Files): Likewise.
32281         * modules/unicase/u16-totitle-tests (Files): Likewise.
32282         * modules/unicase/u16-toupper-tests (Files): Likewise.
32283         * modules/unicase/u32-casecmp-tests (Files): Likewise.
32284         * modules/unicase/u32-casecoll-tests (Files): Likewise.
32285         * modules/unicase/u32-casefold-tests (Files): Likewise.
32286         * modules/unicase/u32-is-cased-tests (Files): Likewise.
32287         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
32288         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
32289         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
32290         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
32291         * modules/unicase/u32-tolower-tests (Files): Likewise.
32292         * modules/unicase/u32-totitle-tests (Files): Likewise.
32293         * modules/unicase/u32-toupper-tests (Files): Likewise.
32294         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
32295         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
32296         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
32297         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
32298         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
32299         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
32300         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
32301         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
32302         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
32303         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
32304         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
32305         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
32306         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
32307         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
32308         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
32309         * modules/unictype/bidicategory-name-tests (Files): Likewise.
32310         * modules/unictype/bidicategory-of-tests (Files): Likewise.
32311         * modules/unictype/bidicategory-test-tests (Files): Likewise.
32312         * modules/unictype/block-list-tests (Files): Likewise.
32313         * modules/unictype/block-of-tests (Files): Likewise.
32314         * modules/unictype/block-test-tests (Files): Likewise.
32315         * modules/unictype/category-C-tests (Files): Likewise.
32316         * modules/unictype/category-Cc-tests (Files): Likewise.
32317         * modules/unictype/category-Cf-tests (Files): Likewise.
32318         * modules/unictype/category-Cn-tests (Files): Likewise.
32319         * modules/unictype/category-Co-tests (Files): Likewise.
32320         * modules/unictype/category-Cs-tests (Files): Likewise.
32321         * modules/unictype/category-L-tests (Files): Likewise.
32322         * modules/unictype/category-Ll-tests (Files): Likewise.
32323         * modules/unictype/category-Lm-tests (Files): Likewise.
32324         * modules/unictype/category-Lo-tests (Files): Likewise.
32325         * modules/unictype/category-Lt-tests (Files): Likewise.
32326         * modules/unictype/category-Lu-tests (Files): Likewise.
32327         * modules/unictype/category-M-tests (Files): Likewise.
32328         * modules/unictype/category-Mc-tests (Files): Likewise.
32329         * modules/unictype/category-Me-tests (Files): Likewise.
32330         * modules/unictype/category-Mn-tests (Files): Likewise.
32331         * modules/unictype/category-N-tests (Files): Likewise.
32332         * modules/unictype/category-Nd-tests (Files): Likewise.
32333         * modules/unictype/category-Nl-tests (Files): Likewise.
32334         * modules/unictype/category-No-tests (Files): Likewise.
32335         * modules/unictype/category-P-tests (Files): Likewise.
32336         * modules/unictype/category-Pc-tests (Files): Likewise.
32337         * modules/unictype/category-Pd-tests (Files): Likewise.
32338         * modules/unictype/category-Pe-tests (Files): Likewise.
32339         * modules/unictype/category-Pf-tests (Files): Likewise.
32340         * modules/unictype/category-Pi-tests (Files): Likewise.
32341         * modules/unictype/category-Po-tests (Files): Likewise.
32342         * modules/unictype/category-Ps-tests (Files): Likewise.
32343         * modules/unictype/category-S-tests (Files): Likewise.
32344         * modules/unictype/category-Sc-tests (Files): Likewise.
32345         * modules/unictype/category-Sk-tests (Files): Likewise.
32346         * modules/unictype/category-Sm-tests (Files): Likewise.
32347         * modules/unictype/category-So-tests (Files): Likewise.
32348         * modules/unictype/category-Z-tests (Files): Likewise.
32349         * modules/unictype/category-Zl-tests (Files): Likewise.
32350         * modules/unictype/category-Zp-tests (Files): Likewise.
32351         * modules/unictype/category-Zs-tests (Files): Likewise.
32352         * modules/unictype/category-and-not-tests (Files): Likewise.
32353         * modules/unictype/category-and-tests (Files): Likewise.
32354         * modules/unictype/category-byname-tests (Files): Likewise.
32355         * modules/unictype/category-name-tests (Files): Likewise.
32356         * modules/unictype/category-none-tests (Files): Likewise.
32357         * modules/unictype/category-of-tests (Files): Likewise.
32358         * modules/unictype/category-or-tests (Files): Likewise.
32359         * modules/unictype/category-test-withtable-tests (Files): Likewise.
32360         * modules/unictype/combining-class-tests (Files): Likewise.
32361         * modules/unictype/ctype-alnum-tests (Files): Likewise.
32362         * modules/unictype/ctype-alpha-tests (Files): Likewise.
32363         * modules/unictype/ctype-blank-tests (Files): Likewise.
32364         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
32365         * modules/unictype/ctype-digit-tests (Files): Likewise.
32366         * modules/unictype/ctype-graph-tests (Files): Likewise.
32367         * modules/unictype/ctype-lower-tests (Files): Likewise.
32368         * modules/unictype/ctype-print-tests (Files): Likewise.
32369         * modules/unictype/ctype-punct-tests (Files): Likewise.
32370         * modules/unictype/ctype-space-tests (Files): Likewise.
32371         * modules/unictype/ctype-upper-tests (Files): Likewise.
32372         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32373         * modules/unictype/decimal-digit-tests (Files): Likewise.
32374         * modules/unictype/digit-tests (Files): Likewise.
32375         * modules/unictype/mirror-tests (Files): Likewise.
32376         * modules/unictype/numeric-tests (Files): Likewise.
32377         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32378         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32379         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32380         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32381         Likewise.
32382         * modules/unictype/property-bidi-block-separator-tests (Files):
32383         Likewise.
32384         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
32385         Likewise.
32386         * modules/unictype/property-bidi-common-separator-tests (Files):
32387         Likewise.
32388         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32389         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32390         Likewise.
32391         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32392         Likewise.
32393         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32394         Likewise.
32395         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32396         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32397         Likewise.
32398         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32399         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32400         Likewise.
32401         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32402         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32403         * modules/unictype/property-bidi-segment-separator-tests (Files):
32404         Likewise.
32405         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32406         * modules/unictype/property-byname-tests (Files): Likewise.
32407         * modules/unictype/property-combining-tests (Files): Likewise.
32408         * modules/unictype/property-composite-tests (Files): Likewise.
32409         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32410         * modules/unictype/property-dash-tests (Files): Likewise.
32411         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32412         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32413         Likewise.
32414         * modules/unictype/property-deprecated-tests (Files): Likewise.
32415         * modules/unictype/property-diacritic-tests (Files): Likewise.
32416         * modules/unictype/property-extender-tests (Files): Likewise.
32417         * modules/unictype/property-format-control-tests (Files): Likewise.
32418         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32419         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32420         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32421         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32422         * modules/unictype/property-hyphen-tests (Files): Likewise.
32423         * modules/unictype/property-id-continue-tests (Files): Likewise.
32424         * modules/unictype/property-id-start-tests (Files): Likewise.
32425         * modules/unictype/property-ideographic-tests (Files): Likewise.
32426         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32427         * modules/unictype/property-ids-trinary-operator-tests (Files):
32428         Likewise.
32429         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32430         * modules/unictype/property-iso-control-tests (Files): Likewise.
32431         * modules/unictype/property-join-control-tests (Files): Likewise.
32432         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32433         * modules/unictype/property-line-separator-tests (Files): Likewise.
32434         * modules/unictype/property-logical-order-exception-tests (Files):
32435         Likewise.
32436         * modules/unictype/property-lowercase-tests (Files): Likewise.
32437         * modules/unictype/property-math-tests (Files): Likewise.
32438         * modules/unictype/property-non-break-tests (Files): Likewise.
32439         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32440         * modules/unictype/property-numeric-tests (Files): Likewise.
32441         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32442         * modules/unictype/property-other-default-ignorable-code-point-tests
32443         (Files): Likewise.
32444         * modules/unictype/property-other-grapheme-extend-tests (Files):
32445         Likewise.
32446         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32447         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32448         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32449         * modules/unictype/property-other-math-tests (Files): Likewise.
32450         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32451         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32452         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32453         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32454         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32455         * modules/unictype/property-private-use-tests (Files): Likewise.
32456         * modules/unictype/property-punctuation-tests (Files): Likewise.
32457         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32458         * modules/unictype/property-radical-tests (Files): Likewise.
32459         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32460         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32461         * modules/unictype/property-space-tests (Files): Likewise.
32462         * modules/unictype/property-terminal-punctuation-tests (Files):
32463         Likewise.
32464         * modules/unictype/property-test-tests (Files): Likewise.
32465         * modules/unictype/property-titlecase-tests (Files): Likewise.
32466         * modules/unictype/property-unassigned-code-value-tests (Files):
32467         Likewise.
32468         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32469         * modules/unictype/property-uppercase-tests (Files): Likewise.
32470         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32471         * modules/unictype/property-white-space-tests (Files): Likewise.
32472         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32473         * modules/unictype/property-xid-start-tests (Files): Likewise.
32474         * modules/unictype/property-zero-width-tests (Files): Likewise.
32475         * modules/unictype/scripts-tests (Files): Likewise.
32476         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32477         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32478         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32479         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32480         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32481         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32482         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32483         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32484         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32485         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32486         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32487         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32488         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32489         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32490         * modules/uninorm/composition-tests (Files): Likewise.
32491         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32492         * modules/uninorm/decomposition-tests (Files): Likewise.
32493         * modules/uninorm/filter-tests (Files): Likewise.
32494         * modules/uninorm/nfc-tests (Files): Likewise.
32495         * modules/uninorm/nfd-tests (Files): Likewise.
32496         * modules/uninorm/nfkc-tests (Files): Likewise.
32497         * modules/uninorm/nfkd-tests (Files): Likewise.
32498         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32499         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32500         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32501         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32502         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32503         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32504         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32505         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32506         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32507         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32508         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32509         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32510         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32511         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32512         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32513         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32514         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32515         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32516         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32517         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32518         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32519         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32520         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32521         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32522         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32523         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32524         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32525         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32526         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32527         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32528         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32529         * modules/uniwidth/u8-width-tests (Files): Likewise.
32530         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32531         * modules/uniwidth/u16-width-tests (Files): Likewise.
32532         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32533         * modules/uniwidth/u32-width-tests (Files): Likewise.
32534         * modules/uniwidth/width-tests (Files): Likewise.
32535         * modules/unlink-tests (Files): Likewise.
32536         * modules/unsetenv-tests (Files): Likewise.
32537         * modules/usleep-tests (Files): Likewise.
32538         * modules/utimens-tests (Files): Likewise.
32539         * modules/utimensat-tests (Files): Likewise.
32540         * modules/vasnprintf-posix-tests (Files): Likewise.
32541         * modules/vasnprintf-tests (Files): Likewise.
32542         * modules/vasprintf-posix-tests (Files): Likewise.
32543         * modules/vasprintf-tests (Files): Likewise.
32544         * modules/vdprintf-posix-tests (Files): Likewise.
32545         * modules/vfprintf-posix-tests (Files): Likewise.
32546         * modules/vprintf-posix-tests (Files): Likewise.
32547         * modules/vsnprintf-posix-tests (Files): Likewise.
32548         * modules/vsnprintf-tests (Files): Likewise.
32549         * modules/vsprintf-posix-tests (Files): Likewise.
32550         * modules/wcrtomb-tests (Files): Likewise.
32551         * modules/wcsnrtombs-tests (Files): Likewise.
32552         * modules/wcsrtombs-tests (Files): Likewise.
32553         * modules/wctype-tests (Files): Likewise.
32554         * modules/wcwidth-tests (Files): Likewise.
32555         * modules/xmemdup0-tests (Files): Likewise.
32556         * modules/xprintf-posix-tests (Files): Likewise.
32557         * modules/xvasprintf-tests (Files): Likewise.
32558
32559 2009-12-24  Eric Blake  <ebb9@byu.net>
32560
32561         test-nanosleep: fix typo
32562         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32563         patch.
32564         Reported by Bruno Haible.
32565
32566 2009-12-24  Bruno Haible  <bruno@clisp.org>
32567
32568         Reduce namespace pollution on glibc systems.
32569         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32570         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32571         systems.
32572         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32573         <getopt.h> on glibc systems.
32574         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32575         systems.
32576         * lib/fcntl.c: Include <unistd.h> here instead.
32577
32578 2009-12-24  Bruno Haible  <bruno@clisp.org>
32579
32580         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32581
32582 2009-12-24  Eric Blake  <ebb9@byu.net>
32583
32584         tests: add signature checks
32585         * tests/signature.h (SIGNATURE_CHECK): New file.
32586         * modules/atexit-tests (Files): Use it.
32587         * modules/btowc-tests (Files): Likewise.
32588         * modules/canonicalize-lgpl-tests (Files): Likewise.
32589         * modules/ceilf-tests (Files): Likewise.
32590         * modules/ceill-tests (Files): Likewise.
32591         * modules/chown-tests (Files): Likewise.
32592         * modules/dprintf-posix-tests (Files): Likewise.
32593         * modules/dup2-tests (Files): Likewise.
32594         * modules/dup3-tests (Files): Likewise.
32595         * modules/duplocale-tests (Files): Likewise.
32596         * modules/fchdir-tests (Files): Likewise.
32597         * modules/fcntl-tests (Files): Likewise.
32598         * modules/fdopendir-tests (Files): Likewise.
32599         * modules/fflush-tests (Files): Likewise.
32600         * modules/flock-tests (Files): Likewise.
32601         * modules/floorf-tests (Files): Likewise.
32602         * modules/floorl-tests (Files): Likewise.
32603         * modules/fnmatch-tests (Files): Likewise.
32604         * modules/fopen-tests (Files): Likewise.
32605         * modules/fprintf-posix-tests (Files): Likewise.
32606         * modules/freopen-tests (Files): Likewise.
32607         * modules/frexp-nolibm-tests (Files): Likewise.
32608         * modules/frexp-tests (Files): Likewise.
32609         * modules/frexpl-nolibm-tests (Files): Likewise.
32610         * modules/frexpl-tests (Files): Likewise.
32611         * modules/fseek-tests (Files): Likewise.
32612         * modules/fseeko-tests (Files): Likewise.
32613         * modules/fsync-tests (Files): Likewise.
32614         * modules/ftell-tests (Files): Likewise.
32615         * modules/ftello-tests (Files): Likewise.
32616         * modules/futimens-tests (Files): Likewise.
32617         * modules/getaddrinfo-tests (Files): Likewise.
32618         * modules/getcwd-tests (Files): Likewise.
32619         * modules/getdelim-tests (Files): Likewise.
32620         * modules/getdtablesize-tests (Files): Likewise.
32621         * modules/getgroups-tests (Files): Likewise.
32622         * modules/gethostname-tests (Files): Likewise.
32623         * modules/getline-tests (Files): Likewise.
32624         * modules/getopt-posix-tests (Files): Likewise.
32625         * modules/gettimeofday-tests (Files): Likewise.
32626         * modules/glob-tests (Files): Likewise.
32627         * modules/iconv-tests (Files): Likewise.
32628         * modules/inet_ntop-tests (Files): Likewise.
32629         * modules/inet_pton-tests (Files): Likewise.
32630         * modules/isblank-tests (Files): Likewise.
32631         * modules/lchown-tests (Files): Likewise.
32632         * modules/ldexpl-tests (Files): Likewise.
32633         * modules/link-tests (Files): Likewise.
32634         * modules/linkat-tests (Files): Likewise.
32635         * modules/lseek-tests (Files): Likewise.
32636         * modules/lstat-tests (Files): Likewise.
32637         * modules/mbrtowc-tests (Files): Likewise.
32638         * modules/mbsinit-tests (Files): Likewise.
32639         * modules/mbsnrtowcs-tests (Files): Likewise.
32640         * modules/mbsrtowcs-tests (Files): Likewise.
32641         * modules/memchr-tests (Files): Likewise.
32642         * modules/memcmp-tests (Files): Likewise.
32643         * modules/memmem-tests (Files): Likewise.
32644         * modules/memrchr-tests (Files): Likewise.
32645         * modules/mkdir-tests (Files): Likewise.
32646         * modules/mkfifo-tests (Files): Likewise.
32647         * modules/mkfifoat-tests (Files): Likewise.
32648         * modules/mknod-tests (Files): Likewise.
32649         * modules/nanosleep-tests (Files): Likewise.
32650         * modules/nl_langinfo-tests (Files): Likewise.
32651         * modules/obstack-printf-tests (Files): Likewise.
32652         * modules/open-tests (Files): Likewise.
32653         * modules/openat-tests (Files): Likewise.
32654         * modules/perror-tests (Files): Likewise.
32655         * modules/pipe2-tests (Files): Likewise.
32656         * modules/poll-tests (Files): Likewise.
32657         * modules/popen-tests (Files): Likewise.
32658         * modules/posix_spawn-tests (Files): Likewise.
32659         * modules/posix_spawnp-tests (Files): Likewise.
32660         * modules/pread-tests (Files): Likewise.
32661         * modules/printf-posix-tests (Files): Likewise.
32662         * modules/pty-tests (Files): Likewise.
32663         * modules/random_r-tests (Files): Likewise.
32664         * modules/rawmemchr-tests (Files): Likewise.
32665         * modules/readlink-tests (Files): Likewise.
32666         * modules/remove-tests (Files): Likewise.
32667         * modules/rename-tests (Files): Likewise.
32668         * modules/renameat-tests (Files): Likewise.
32669         * modules/rmdir-tests (Files): Likewise.
32670         * modules/round-tests (Files): Likewise.
32671         * modules/roundf-tests (Files): Likewise.
32672         * modules/roundl-tests (Files): Likewise.
32673         * modules/select-tests (Files): Likewise.
32674         * modules/setenv-tests (Files): Likewise.
32675         * modules/sigaction-tests (Files): Likewise.
32676         * modules/sleep-tests (Files): Likewise.
32677         * modules/snprintf-posix-tests (Files): Likewise.
32678         * modules/snprintf-tests (Files): Likewise.
32679         * modules/sprintf-posix-tests (Files): Likewise.
32680         * modules/stat-tests (Files): Likewise.
32681         * modules/strcasestr-tests (Files): Likewise.
32682         * modules/strchrnul-tests (Files): Likewise.
32683         * modules/strerror-tests (Files): Likewise.
32684         * modules/strsignal-tests (Files): Likewise.
32685         * modules/strstr-tests (Files): Likewise.
32686         * modules/strtod-tests (Files): Likewise.
32687         * modules/strverscmp-tests (Files): Likewise.
32688         * modules/symlink-tests (Files): Likewise.
32689         * modules/symlinkat-tests (Files): Likewise.
32690         * modules/times-tests (Files): Likewise.
32691         * modules/trunc-tests (Files): Likewise.
32692         * modules/truncf-tests (Files): Likewise.
32693         * modules/truncl-tests (Files): Likewise.
32694         * modules/tsearch-tests (Files): Likewise.
32695         * modules/uname-tests (Files): Likewise.
32696         * modules/unlink-tests (Files): Likewise.
32697         * modules/unsetenv-tests (Files): Likewise.
32698         * modules/usleep-tests (Files): Likewise.
32699         * modules/utimensat-tests (Files): Likewise.
32700         * modules/vasprintf-tests (Files): Likewise.
32701         * modules/vdprintf-posix-tests (Files): Likewise.
32702         * modules/vfprintf-posix-tests (Files): Likewise.
32703         * modules/vprintf-posix-tests (Files): Likewise.
32704         * modules/vsnprintf-posix-tests (Files): Likewise.
32705         * modules/vsnprintf-tests (Files): Likewise.
32706         * modules/vsprintf-posix-tests (Files): Likewise.
32707         * modules/wcrtomb-tests (Files): Likewise.
32708         * modules/wcsnrtombs-tests (Files): Likewise.
32709         * modules/wcsrtombs-tests (Files): Likewise.
32710         * modules/wcwidth-tests (Files): Likewise.
32711         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32712         * tests/test-isinf.c (isinf): Likewise.
32713         * tests/test-isnan.c (isnan): Likewise.
32714         * tests/test-signbit.c (signbit): Likewise.
32715         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32716         declaration, either as macro or with correct signature.
32717         (select): Ensure function under test is declared with correct
32718         signature in correct header.
32719         * tests/test-atexit.c (atexit): Likewise.
32720         * tests/test-btowc.c (btowc): Likewise.
32721         * tests/test-canonicalize-lgpl.c (realpath)
32722         (canonicalize_file_name): Likewise.
32723         * tests/test-ceilf1.c (ceilf): Likewise.
32724         * tests/test-ceill.c (ceill): Likewise.
32725         * tests/test-chown.c (chown): Likewise.
32726         * tests/test-dprintf-posix.c (dprintf): Likewise.
32727         * tests/test-dup2.c (dup2): Likewise.
32728         * tests/test-dup3.c (dup3): Likewise.
32729         * tests/test-duplocale.c (duplocale): Likewise.
32730         * tests/test-fchdir.c (fchdir): Likewise.
32731         * tests/test-fchownat.c (fchownat): Likewise.
32732         * tests/test-fcntl.c (fcntl): Likewise.
32733         * tests/test-fdopendir.c (fdopendir): Likewise.
32734         * tests/test-fflush.c (fflush): Likewise.
32735         * tests/test-flock.c (flock): Likewise.
32736         * tests/test-floorf1.c (floorf): Likewise.
32737         * tests/test-floorl.c (floorl): Likewise.
32738         * tests/test-fnmatch.c (fnmatch): Likewise.
32739         * tests/test-fopen.c (fopen): Likewise.
32740         * tests/test-fprintf-posix.c (fprintf): Likewise.
32741         * tests/test-freopen.c (freopen): Likewise.
32742         * tests/test-frexp.c (frexp): Likewise.
32743         * tests/test-frexpl.c (frexpl): Likewise.
32744         * tests/test-fseek.c (fseek): Likewise.
32745         * tests/test-fseeko.c (fseeko): Likewise.
32746         * tests/test-fstatat.c (fstatat): Likewise.
32747         * tests/test-fsync.c (fsync): Likewise.
32748         * tests/test-ftell.c (ftell): Likewise.
32749         * tests/test-ftello.c (ftello): Likewise.
32750         * tests/test-futimens.c (futimens): Likewise.
32751         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32752         (gai_strerror): Likewise.
32753         * tests/test-getcwd.c (getcwd): Likewise.
32754         * tests/test-getdelim.c (getdelim): Likewise.
32755         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32756         * tests/test-getgroups.c (getgroups): Likewise.
32757         * tests/test-gethostname.c (gethostname): Likewise.
32758         * tests/test-getline.c (getline): Likewise.
32759         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32760         Likewise.
32761         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32762         * tests/test-glob.c (glob, globfree): Likewise.
32763         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32764         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32765         * tests/test-inet_pton.c (inet_pton): Likewise.
32766         * tests/test-isblank.c (isblank): Likewise.
32767         * tests/test-lchown.c (lchown): Likewise.
32768         * tests/test-ldexpl.c (ldexpl): Likewise.
32769         * tests/test-link.c (link): Likewise.
32770         * tests/test-linkat.c (linkat): Likewise.
32771         * tests/test-lseek.c (lseek): Likewise.
32772         * tests/test-lstat.c (lstat): Likewise.
32773         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32774         * tests/test-mbsinit.c (mbsinit): Likewise.
32775         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32776         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32777         * tests/test-memchr.c (memchr): Likewise.
32778         * tests/test-memcmp.c (memcmp): Likewise.
32779         * tests/test-memmem.c (memmem): Likewise.
32780         * tests/test-memrchr.c (memrchr): Likewise.
32781         * tests/test-mkdir.c (mkdir): Likewise.
32782         * tests/test-mkdirat.c (mkdirat): Likewise.
32783         * tests/test-mkfifo.c (mkfifo): Likewise.
32784         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32785         * tests/test-mknod.c (mknod): Likewise.
32786         * tests/test-nanosleep.c (nanosleep): Likewise.
32787         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32788         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32789         Likewise.
32790         * tests/test-open.c (open): Likewise.
32791         * tests/test-openat.c (openat): Likewise.
32792         * tests/test-perror.c (perror): Likewise.
32793         * tests/test-pipe2.c (pipe2): Likewise.
32794         * tests/test-poll.c (poll): Likewise.
32795         * tests/test-popen.c (popen, pclose): Likewise.
32796         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32797         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32798         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32799         (posix_spawn_file_actions_destroy)
32800         (posix_spawn_file_actions_addclose)
32801         (posix_spawn_file_actions_addopen)
32802         (posix_spawn_file_actions_adddup2): Likewise.
32803         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32804         * tests/test-pread.c (pread): Likewise.
32805         * tests/test-printf-posix.c (printf): Likewise.
32806         * tests/test-pty.c (openpty, forkpty): Likewise.
32807         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32808         (random_r): Likewise.
32809         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32810         * tests/test-readlink.c (readlink): Likewise.
32811         * tests/test-remove.c (remove): Likewise.
32812         * tests/test-rename.c (rename): Likewise.
32813         * tests/test-renameat.c (renameat): Likewise.
32814         * tests/test-rmdir.c (rmdir): Likewise.
32815         * tests/test-round1.c (round): Likewise.
32816         * tests/test-roundf1.c (roundf): Likewise.
32817         * tests/test-roundl.c (roundl): Likewise.
32818         * tests/test-setenv.c (setenv): Likewise.
32819         * tests/test-sigaction.c (sigaction): Likewise.
32820         * tests/test-sleep.c (sleep): Likewise.
32821         * tests/test-snprintf.c (snprintf): Likewise.
32822         * tests/test-sprintf-posix.c (sprintf): Likewise.
32823         * tests/test-stat.c (stat): Likewise.
32824         * tests/test-stpncpy.c (stpncpy): Likewise.
32825         * tests/test-strcasestr.c (strcasestr): Likewise.
32826         * tests/test-strchrnul.c (strchrnul): Likewise.
32827         * tests/test-strerror.c (strerror): Likewise.
32828         * tests/test-strsignal.c (strsignal): Likewise.
32829         * tests/test-strstr.c (strstr): Likewise.
32830         * tests/test-strtod.c (strtod): Likewise.
32831         * tests/test-strverscmp.c (strverscmp): Likewise.
32832         * tests/test-symlink.c (symlink): Likewise.
32833         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32834         * tests/test-times.c (times): Likewise.
32835         * tests/test-trunc1.c (trunc): Likewise.
32836         * tests/test-truncf1.c (truncf): Likewise.
32837         * tests/test-truncl.c (truncl): Likewise.
32838         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32839         Likewise.
32840         * tests/test-uname.c (uname): Likewise.
32841         * tests/test-unlink.c (unlink): Likewise.
32842         * tests/test-unlinkat.c (unlinkat): Likewise.
32843         * tests/test-unsetenv.c (unsetenv): Likewise.
32844         * tests/test-usleep.c (usleep): Likewise.
32845         * tests/test-utimensat.c (utimensat): Likewise.
32846         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32847         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32848         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32849         * tests/test-vprintf-posix.c (vprintf): Likewise.
32850         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32851         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32852         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32853         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32854         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32855         * tests/test-wcwidth.c (wcwidth): Likewise.
32856
32857         build: pull in conditional headers during GNULIB_POSIXCHECK
32858         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32859         definitions from any conditionally-included headers.
32860         * lib/stdlib.in.h (includes): Likewise.
32861         * lib/unistd.in.h (includes): Likewise.
32862
32863 2009-12-24  Bruno Haible  <bruno@clisp.org>
32864
32865         * tests/test-argv-iter.c: Include header file being tested immediately
32866         after config.h.
32867         * tests/test-base64.c: Likewise.
32868         * tests/test-flock.c: Likewise.
32869         * tests/test-fsync.c: Likewise.
32870         * tests/test-getdate.c: Likewise.
32871         * tests/test-getndelim2.c: Likewise.
32872         * tests/test-isfinite.c: Likewise.
32873         * tests/test-isinf.c: Likewise.
32874         * tests/test-strerror.c: Likewise.
32875         * tests/test-strsignal.c: Likewise.
32876
32877 2009-12-23  Eric Blake  <ebb9@byu.net>
32878
32879         unistd: work around cygwin bug
32880         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32881         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32882         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32883
32884 2009-12-23  Bruno Haible  <bruno@clisp.org>
32885
32886         localename: More tests.
32887         * tests/test-localename.c (SIZEOF): New macro.
32888         (categories): New variable.
32889         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32890         test_locale_name_default): Add test w.r.t. thread locale.
32891         (test_locale_name_thread): New function.
32892         (main): Invoke it.
32893
32894         localename: Make aware of thread locale.
32895         * lib/localename.h (gl_locale_name_thread): New declaration.
32896         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32897         behaviour with respect to thread locale.
32898         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32899         <langinfo.h>, glthread/lock.h.
32900         (SIZE_BITS): New macro.
32901         (string_hash): New function.
32902         (struct hash_node): New type.
32903         (HASH_TABLE_SIZE): New macro.
32904         (struniq_hash_table, struniq_lock): New variables.
32905         (struniq): New function.
32906         (gl_locale_name_thread): New function.
32907         (gl_locale_name): Invoke it.
32908         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32909         * modules/localename (Depends-on): Add lock.
32910         Reported by Mike Gran <spk121@yahoo.com>.
32911
32912 2009-12-23  Eric Blake  <ebb9@byu.net>
32913
32914         va-args: new module
32915         * modules/va-args: New file.
32916         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32917         * MODULES.html.sh (Core language properties): Mention it.
32918
32919         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32920         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32921         named alias for __attribute__((__unused__)).
32922         * lib/chown.c: Update client.
32923         * lib/fchmodat.c: Likewise.
32924         * lib/fts.c: Likewise.
32925         * lib/getdate.y: Likewise.
32926         * lib/getgroups.c: Likewise.
32927         * lib/getopt.c: Likewise.
32928         * lib/getugroups.c: Likewise.
32929         * lib/mkdir.c: Likewise.
32930         * lib/mkfifo.c: Likewise.
32931         * lib/mkfifoat.c: Likewise.
32932         * lib/mknod.c: Likewise.
32933         * lib/mknodat.c: Likewise.
32934         * lib/readlink.c: Likewise.
32935         * lib/se-context.in.h: Likewise.
32936         * lib/se-selinux.in.h: Likewise.
32937         * lib/sockets.c: Likewise.
32938         * lib/symlink.c: Likewise.
32939         * lib/symlinkat.c: Likewise.
32940         * lib/unicodeio.c: Likewise.
32941         * lib/unistr.h: Likewise.
32942         * tests/test-areadlink.c: Likewise.
32943         * tests/test-areadlinkat.c: Likewise.
32944         * tests/test-filenamecat.c: Likewise.
32945         * tests/test-fseeko.c: Likewise.
32946         * tests/test-ftello.c: Likewise.
32947         * tests/test-getdate.c: Likewise.
32948         * tests/test-getgroups.c: Likewise.
32949         * tests/test-gethostname.c: Likewise.
32950         * tests/test-quotearg.c: Likewise.
32951         * tests/test-version-etc.c: Likewise.
32952         * tests/test-xalloc-die.c: Likewise.
32953         * tests/test-xfprintf-posix.c: Likewise.
32954         * tests/test-xprintf-posix.c: Likewise.
32955         * tests/test-xvasprintf.c: Likewise.
32956
32957         tests: avoid compiler warnings
32958         * tests/test-fcntl.c (main): Delete unused parameters.
32959         * tests/test-freopen-safer.c (main): Likewise.
32960         * tests/test-xalloc-die.c (main): Mark unused parameters.
32961         * tests/test-fseeko.c (main): Likewise.
32962         * tests/test-ftello.c (main): Likewise.
32963         * tests/test-nanosleep.c (main): Avoid declaration warning.
32964         * tests/test-sleep.c (main): Likewise.
32965         * tests/test-unsetenv.c (main): Silence warning about string
32966         literal.
32967         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32968
32969 2009-12-23  Bruno Haible  <bruno@clisp.org>
32970
32971         * tests/test-localename.c (test_locale_name): New function, extracted
32972         from main. Also test mixed situations.
32973         (test_locale_name_posix, test_locale_name_environ,
32974         test_locale_name_default): New functions.
32975         (main): Invoke them all.
32976         * modules/localename-tests (configure.ac): Test for newlocale.
32977
32978 2009-12-23  Bruno Haible  <bruno@clisp.org>
32979
32980         unistd: Ensure getcwd gets declared before being overridden.
32981         * lib/unistd.in.h: Conditionally include <io.h>.
32982
32983 2009-12-22  Bruno Haible  <bruno@clisp.org>
32984
32985         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32986         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32987         (gl_WCHAR_H): Invoke it.
32988         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32989         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32990         Reported by Karl Berry <karl@freefriends.org>.
32991
32992 2009-12-22  Eric Blake  <ebb9@byu.net>
32993
32994         math, unistd: avoid redundant includes
32995         * lib/math.in.h (isnan): No need to re-include <math.h>.
32996         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32997
32998         getsubopt: work around cygwin bug
32999         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33000         avoid conflicting with system getsubopt.
33001         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33002         bug.
33003
33004         getopt: synchronize from glibc
33005         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33006         parameter order.  Adjust all callers.
33007         (_getopt_internal_r, main): Adjust quoting in error messages.
33008         Drop considerations for outdated POSIX 1003.2 error message.
33009         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33010         callers.
33011         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33012
33013         test-getopt: test stderr behavior
33014         * modules/getopt-posix-tests (Depends-on): Add dup2.
33015         * tests/test-getopt.c (ASSERT): Avoid stderr.
33016         (main): Move stderr to a temporary file.
33017         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33018         Instead, add parameter to inform caller if output occurred.
33019         (test_getopt): Adjust all existing tests to expect silence, and
33020         add new tests of leading ":".
33021         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33022         glibc shortcomings with leading "-:" or "+:" in optstring.
33023         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33024         Likewise.
33025         * doc/posix-functions/getopt.texi (getopt): Likewise.
33026
33027         test-getopt: enhance test
33028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33029         supports optind=0.
33030         * tests/test-getopt.c (OPTIND_MIN): Move...
33031         * tests/test-getopt.h (OPTIND_MIN): ...here.
33032         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33033         Require that optind=0 works, since modern BSD supports it in
33034         addition to optreset, and since coreutils expects it.
33035         (test_getopt_long_only): New test.
33036         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33037         glibc shortcomings with 'W;', and enforcement of optind=0.
33038         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33039         Likewise.
33040
33041 2009-12-21  Bruno Haible  <bruno@clisp.org>
33042
33043         localename: Improvements for MacOS X and Cygwin.
33044         * lib/localename.h (gl_locale_name_environ): New declaration.
33045         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33046         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33047         (gl_locale_name_posix): Invoke it.
33048         (gl_locale_name_default): Add comments. Use Windows native API also on
33049         Cygwin.
33050
33051 2009-12-21  Bruno Haible  <bruno@clisp.org>
33052
33053         Update list of Win32 locale ids.
33054         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33055         (LANG_SAMI): Renamed from LANG_SAAMI.
33056         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33057         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33058         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33059         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33060         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33061         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33062         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33063         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33064         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33065         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33066         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33067         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33068         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33069         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33070         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33071         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33072         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33073         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33074         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33075         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33076         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33077         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33078         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33079         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33080         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33081         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33082         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33083         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33084         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33085         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33086         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33087         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33088         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33089         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33090         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33091         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33092         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33093         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33094         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33095         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33096         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33097         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33098         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33099         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33100         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33101         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33102         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33103         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33104         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33105         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33106         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33107         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33108         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33109         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33110         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33111         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33112         Add more languages and countries for Sami, Sorbian. Add more countries
33113         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33114         for Pashto. Change country for Syriac, Tswana.
33115
33116 2009-12-21  Eric Blake  <ebb9@byu.net>
33117
33118         test-utimens: avoid spurious failure
33119         * tests/test-chown.h (nap): Factor...
33120         * tests/nap.h: ...into new file.
33121         * tests/test-lchown.h (nap): Avoid duplication.
33122         * tests/test-utimens-common.h (nap): Use shared implementation,
33123         necessary on file systems with 1-second resolution.
33124         * modules/chown-tests (Files): Include new file.
33125         * modules/fdutimensat-tests (Files): Likewise.
33126         * modules/futimens-tests (Files): Likewise.
33127         * modules/lchown-tests (Files): Likewise.
33128         * modules/openat-tests (Files): Likewise.
33129         * modules/utimens-tests (Files): Likewise.
33130         * modules/utimensat-tests (Files): Likewise.
33131
33132 2009-12-19  Eric Blake  <ebb9@byu.net>
33133
33134         futimens, utimensat: work around Linux bug
33135         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33136         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33137         * lib/utimensat.c (rpl_utimensat): Work around it.
33138         * lib/futimens.c (rpl_futimens): Adjust comment.
33139
33140         utimens: work around Linux ctime bug
33141         * lib/utimens.c (detect_ctime_bug): New helper function.
33142         (update_timespec): Differentiate between workaround needed for
33143         this bug vs. what is needed for systems that lack utimensat.
33144         (fdutimens, lutimens): Work around bug.
33145
33146         utimens: check for ctime update
33147         * tests/test-utimens-common.h (check_ctime): Define.
33148         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33149         * tests/test-futimens.h (test_futimens): Likewise.
33150         * tests/test-lutimens.h (test_lutimens): Likewise.
33151         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33152         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33153
33154 2009-12-19  Bruno Haible  <bruno@clisp.org>
33155
33156         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33157         * tests/test-dprintf-posix2.sh: New file.
33158         * tests/test-dprintf-posix2.c: New file.
33159         * modules/dprintf-posix-tests (Files): Add them.
33160         (configure.ac): Check for getrlimit and setrlimit.
33161         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33162
33163 2009-12-19  Bruno Haible  <bruno@clisp.org>
33164
33165         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33166         * tests/test-fprintf-posix3.sh: New file.
33167         * tests/test-fprintf-posix3.c: New file.
33168         * modules/fprintf-posix-tests (Files): Add them.
33169         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33170
33171 2009-12-19  Eric Blake  <ebb9@byu.net>
33172
33173         dirfd: fix prototype
33174         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33175         * lib/dirfd.c (dirfd): Likewise.
33176
33177         canonicalize: reduce memory usage
33178         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33179         allocation to size.
33180         Reported by Solar Designer <solar@openwall.com>.
33181
33182 2009-12-19  Bruno Haible  <bruno@clisp.org>
33183
33184         New module attribute 'Applicability'.
33185         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33186         * gnulib-tool: New option --extract-applicability.
33187         (func_usage): Document it.
33188         (sed_extract_prog): Recognize it.
33189         (func_get_applicability): New function.
33190         (func_import): Generalize handling of 'link-warning' module.
33191         * modules/link-warning (Applicability): New section.
33192         * modules/arg-nonnull (Applicability): New section.
33193         Repoted by Simon Josefsson <simon@josefsson.org>.
33194
33195 2009-12-19  Bruno Haible  <bruno@clisp.org>
33196
33197         fflush: tweak
33198         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33199         * lib/fseeko.c (rpl_fseeko): Likewise.
33200
33201 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33202
33203         * lib/gl_list.h: Fix typo in comment.
33204
33205 2009-12-16  Eric Blake  <ebb9@byu.net>
33206
33207         fcntl: use to simplify other modules
33208         * modules/cloexec (Depends-on): Add fcntl.
33209         * modules/fchdir (Depends-on): Likewise.
33210         * modules/fd-safer-flag (Depends-on): Likewise.
33211         * modules/unistd-safer (Depends-on): Likewise.
33212         * modules/dup3 (configure.ac): Set module indicator.
33213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33214         missing.
33215         * lib/fchdir.c (_gl_register_dup): Fix comment.
33216         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33217         * lib/dup-safer.c (dup_safer): Likewise.
33218         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33219         * lib/dup3.c (dup3): Likewise.
33220         * tests/test-fchdir.c (main): Enhance test.
33221         Fixes a dup_cloexec bug reported by Ondřej Vašík.
33222
33223         fcntl: port portions of fcntl to mingw
33224         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33225         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33226         replacement for mingw.
33227         * modules/fcntl (Description): Update.
33228         (Depends-on): Add dup2.
33229         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33230         * modules/fcntl-h (Makefile.am): Substitute it.
33231         * lib/fcntl.in.h (fcntl): Update declaration.
33232         (F_DUPFD, F_GETFD): New macros, when needed.
33233         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33234         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33235         * tests/test-fcntl.c (check_flags, main): Enhance test for items
33236         we now guarantee.
33237
33238         fcntl: work around cygwin bug in F_DUPFD
33239         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
33240         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
33241         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
33242         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
33243         * doc/posix-functions/fcntl.texi (fcntl): Document it.
33244
33245         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
33246         * modules/fcntl (Files): List new files.
33247         (configure.ac): Run a test.
33248         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
33249         * lib/fcntl.c (rpl_fcntl): Likewise.
33250         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
33251         (gl_FCNTL_H): Always replace fcntl.h.
33252         * modules/fcntl-h (Makefile.am): Substitute witnesses.
33253         * lib/fcntl.in.h (fcntl): Declare replacement.
33254         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
33255         needed, plus a witness.
33256         * doc/posix-functions/fcntl.texi (fcntl): Document this.
33257         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33258         * tests/test-fcntl.c: New file.
33259         * modules/fcntl-tests: Likewise.
33260
33261         binary-io: avoid potential compilation warning
33262         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
33263         directives.
33264
33265         fflush: avoid compilation error on NetBSD
33266         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
33267         between off_t and fpos_t, since the latter is sometimes a struct.
33268         * lib/fseeko.c (rpl_fseeko): Likewise.
33269         Reported by Alexander Nasonov <alnsn@yandex.ru>.
33270
33271 2009-12-15  Eric Blake  <ebb9@byu.net>
33272
33273         fcntl-h, stdio, sys_ioctl: fix declarations
33274         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
33275         function must not take arguments.
33276         * lib/sys_ioctl.in.h (ioctl): Likewise.
33277         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
33278         (open): Add a link warning.
33279
33280 2009-12-15  Jim Meyering  <meyering@redhat.com>
33281
33282         areadlink, areadlink-with-size: relax license to LGPLv2+
33283         * modules/areadlink (License): Relax to LGPLv2+.
33284         * modules/areadlink-with-size (License): Likewise.
33285
33286 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
33287             Bruno Haible  <bruno@clisp.org>
33288
33289         *printf: Fix memory leak.
33290         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
33291         * lib/vfprintf.c (vfprintf): Likewise.
33292         * lib/dprintf.c (dprintf): Likewise.
33293         * lib/vdprintf.c (vdprintf): Likewise.
33294
33295 2009-12-14  Eric Blake  <ebb9@byu.net>
33296
33297         accept4: adjust module dependencies
33298         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
33299
33300         utimens: one more try at avoiding compiler warning
33301         * lib/utimens.c (lutimens): Lower scope of result.
33302
33303 2009-12-13  Bruno Haible  <bruno@clisp.org>
33304
33305         Move the malloc checking from module 'list' to new module 'xlist'.
33306         * modules/xlist: New file.
33307         * lib/gl_xlist.h: New file.
33308         * lib/gl_xlist.c: New file.
33309         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
33310         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
33311         gl_list_add_last, gl_list_add_before, gl_list_add_after,
33312         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
33313         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
33314         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
33315         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
33316         gl_sortedlist_nx_add): New declarations.
33317         (struct gl_list_implementation): Rename and change methods accordingly.
33318         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
33319         (gl_list_nx_create): Renamed from gl_list_create.
33320         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33321         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33322         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33323         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33324         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33325         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33326         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33327         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33328         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
33329         gl_list_create_empty.
33330         (gl_list_nx_create): Renamed from gl_list_create.
33331         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33332         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33333         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33334         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33335         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33336         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33337         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33338         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33339         * lib/gl_array_list.c: Don't include xalloc.h.
33340         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
33341         NULL upon out-of-memory.
33342         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
33343         out-of-memory.
33344         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
33345         Change return type to 'int'.
33346         (gl_array_nx_set_at): Renamed from gl_array_set_at.
33347         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33348         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
33349         upon out-of-memory.
33350         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
33351         upon out-of-memory.
33352         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
33353         upon out-of-memory.
33354         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
33355         upon out-of-memory.
33356         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
33357         out-of-memory.
33358         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
33359         Update.
33360         (gl_array_list_implementation): Update.
33361         * lib/gl_carray_list.c: Don't include xalloc.h.
33362         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
33363         Return NULL upon out-of-memory.
33364         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
33365         out-of-memory.
33366         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33367         Change return type to 'int'.
33368         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33369         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33370         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33371         upon out-of-memory.
33372         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33373         upon out-of-memory.
33374         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33375         out-of-memory.
33376         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33377         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33378         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33379         Update.
33380         (gl_carray_list_implementation): Update.
33381         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33382         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33383         gl_linked_create_empty. Return NULL upon out-of-memory.
33384         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
33385         out-of-memory.
33386         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
33387         Change return type to 'int'. Return -1 upon out-of-memory.
33388         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33389         out-of-memory.
33390         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33391         upon out-of-memory.
33392         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33393         upon out-of-memory.
33394         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33395         NULL upon out-of-memory.
33396         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33397         upon out-of-memory.
33398         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33399         out-of-memory.
33400         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33401         Update.
33402         * lib/gl_linked_list.c: Don't include xalloc.h.
33403         (gl_linked_list_implementation): Update.
33404         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33405         (add_to_bucket): Change return type to 'int'.
33406         (gl_linkedhash_list_implementation): Update.
33407         * lib/gl_anytree_list1.h (free_subtree): New function.
33408         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33409         gl_tree_create_empty. Return NULL upon out-of-memory.
33410         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33411         Change return type to 'int'. Return -1 upon out-of-memory.
33412         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33413         out-of-memory.
33414         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33415         (gl_tree_remove_node): New function, moved here from
33416         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33417         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33418         Update.
33419         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33420         malloc, not xmalloc. Return NULL upon out-of-memory.
33421         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33422         out-of-memory.
33423         (gl_tree_remove_node_from_tree): New function, extracted from
33424         gl_tree_remove_node.
33425         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33426         upon out-of-memory.
33427         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33428         out-of-memory.
33429         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33430         upon out-of-memory.
33431         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33432         upon out-of-memory.
33433         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33434         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33435         not xmalloc. Return NULL upon out-of-memory.
33436         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33437         out-of-memory.
33438         (gl_tree_remove_node_from_tree): New function, extracted from
33439         gl_tree_remove_node.
33440         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33441         upon out-of-memory.
33442         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33443         out-of-memory.
33444         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33445         upon out-of-memory.
33446         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33447         upon out-of-memory.
33448         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33449         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33450         gl_anytree_list1.h before gl_anyavltree_list2.h.
33451         (gl_avltree_list_implementation): Update.
33452         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33453         gl_anytree_list1.h before gl_anyavltree_list2.h.
33454         (gl_rbtree_list_implementation): Update.
33455         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33456         Change return type to 'int'. Return -1 upon out-of-memory. Use
33457         __builtin_expect.
33458         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33459         (gl_avltreehash_list_implementation): Update.
33460         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33461         (gl_rbtreehash_list_implementation): Update.
33462         * modules/array-list (Depends-on): Remove xalloc.
33463         * modules/carray-list (Depends-on): Likewise.
33464         * modules/linked-list (Depends-on): Likewise.
33465         * modules/linkedhash-list (Depends-on): Likewise.
33466         * modules/avltree-list (Depends-on): Likewise.
33467         * modules/rbtree-list (Depends-on): Likewise.
33468         * modules/avltreehash-list (Depends-on): Likewise.
33469         * modules/rbtreehash-list (Depends-on): Likewise.
33470
33471         * modules/xsublist: New file.
33472         * lib/gl_xsublist.h: New file.
33473         * lib/gl_xsublist.c: New file.
33474         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33475         (gl_sublist_nx_create): New declaration.
33476         * lib/gl_sublist.c: Don't include xalloc.h.
33477         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33478         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33479         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33480         Change return type to 'int'. Return -1 upon out-of-memory.
33481         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33482         upon out-of-memory.
33483         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33484         NULL upon out-of-memory.
33485         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33486         upon out-of-memory.
33487         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33488         NULL upon out-of-memory.
33489         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33490         NULL upon out-of-memory.
33491         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33492         upon out-of-memory.
33493         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33494         (gl_sublist_list_implementation): Update.
33495         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33496         upon out-of-memory.
33497         * modules/sublist (Depends-on): Remove xalloc.
33498
33499         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33500         * tests/test-carray_list.c: Likewise.
33501         * tests/test-linked_list.c: Likewise.
33502         * tests/test-linkedhash_list.c: Likewise.
33503         * tests/test-avltree_list.c: Likewise.
33504         * tests/test-rbtree_list.c: Likewise.
33505         * tests/test-avltreehash_list.c: Likewise.
33506         * tests/test-rbtreehash_list.c: Likewise.
33507         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33508         * modules/carray-list-tests (Makefile.am): Likewise.
33509         * modules/linked-list-tests (Makefile.am): Likewise.
33510         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33511         * modules/avltree-list-tests (Makefile.am): Likewise.
33512         * modules/rbtree-list-tests (Makefile.am): Likewise.
33513         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33514         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33515
33516         * NEWS: Mention the changes.
33517
33518         * lib/clean-temp.c: Include gl_xlist.h.
33519         * modules/clean-temp (Depends-on): Add xlist.
33520
33521         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33522         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33523
33524         * tests/test-array_oset.c: Include gl_xlist.h.
33525         * modules/array-oset-tests (Depends-on): Add xlist.
33526
33527         Reported by José E. Marchesi <jemarch@gnu.org>.
33528
33529 2009-12-13  Bruno Haible  <bruno@clisp.org>
33530
33531         Move the malloc checking from module 'oset' to new module 'xoset'.
33532         * modules/xoset: New file.
33533         * lib/gl_xoset.h: New file.
33534         * lib/gl_xoset.c: New file.
33535         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33536         declarations.
33537         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33538         (struct gl_oset_implementation): Rename and change methods accordingly.
33539         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33540         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33541         'int'. Mark as __warn_unused_result__.
33542         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33543         gl_oset_create_empty.
33544         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33545         'int'.
33546         * lib/gl_array_oset.c: Don't include xalloc.h.
33547         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33548         malloc, not xmalloc.
33549         (grow): Change return type to 'int'. Don't call xalloc_die.
33550         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33551         to 'int'.
33552         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33553         'int'.
33554         (gl_array_oset_implementation): Update.
33555         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33556         gl_tree_create_empty.
33557         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33558         'int'.
33559         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33560         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33561         xmalloc.
33562         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33563         not xmalloc.
33564         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33565         xmalloc.
33566         (gl_avltree_oset_implementation): Update.
33567         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33568         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33569         xmalloc.
33570         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33571         not xmalloc.
33572         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33573         xmalloc.
33574         (gl_rbtree_oset_implementation): Update.
33575         * modules/array-oset (Depends-on): Remove xalloc.
33576         * modules/avltree-oset (Depends-on): Likewise.
33577         * modules/rbtree-oset (Depends-on): Likewise.
33578         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33579         * tests/test-avltree_oset.c: Likewise.
33580         * tests/test-rbtree_oset.c: Likewise.
33581         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33582         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33583         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33584         * NEWS: Mention the change.
33585
33586 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33587
33588         maint.mk: allow a project to override release-prep commands
33589         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33590         commands into a new rule.
33591         (release-prep): New rule.
33592         (release-prep-hook): New overridable variable.
33593
33594 2009-12-13  Bruno Haible  <bruno@clisp.org>
33595
33596         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33597
33598 2009-12-13  Jim Meyering  <meyering@redhat.com>
33599
33600         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33601         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33602
33603 2009-12-12  Bruno Haible  <bruno@clisp.org>
33604
33605         duplocale: Tweak.
33606         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33607
33608 2009-12-12  Karl Berry  <karl@gnu.org>
33609
33610         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33611
33612 2009-12-12  Bruno Haible  <bruno@clisp.org>
33613
33614         * m4/po.m4: Undo incorrect untabification.
33615
33616 2009-12-12  Bruno Haible  <bruno@clisp.org>
33617
33618         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33619         * modules/c-strtod (Depends-on): Add locale.
33620         * modules/c-strtold (Depends-on): Likewise.
33621
33622 2009-12-12  Bruno Haible  <bruno@clisp.org>
33623
33624         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33625
33626 2009-12-11  Eric Blake  <ebb9@byu.net>
33627
33628         setenv: relax requirement in light of POSIX ruling
33629         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33630         not NULL.
33631         * tests/test-setenv.c (main): Relax test.
33632         * tests/test-unsetenv.c (main): Likewise.
33633         * doc/posix-functions/setenv.texi (setenv): Document this.
33634         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33635
33636 2009-12-11  Bruno Haible  <bruno@clisp.org>
33637
33638         New module 'fd-safer-flag'.
33639         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33640         * lib/dup-safer.c (dup_safer_flag): Remove function.
33641         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33642         * lib/fd-safer.c (fd_safer_flag): Remove function.
33643         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33644         * modules/cloexec (configure.ac): Drop indicator macro.
33645         * modules/fd-safer-flag: New file.
33646         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33647         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33648         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33649
33650 2009-12-11  Bruno Haible  <bruno@clisp.org>
33651
33652         Tests for module 'nl_langinfo'.
33653         * modules/nl_langinfo-tests: New file.
33654         * tests/test-nl_langinfo.sh: New file.
33655         * tests/test-nl_langinfo.c: New file.
33656
33657         New module 'nl_langinfo'.
33658         * lib/nl_langinfo.c: New file.
33659         * m4/nl_langinfo.m4: New file.
33660         * modules/nl_langinfo: New file.
33661         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33662
33663 2009-12-11  Bruno Haible  <bruno@clisp.org>
33664
33665         Tests for module 'langinfo'.
33666         * modules/langinfo-tests: New file.
33667         * tests/test-langinfo.c: New file.
33668
33669         New module 'langinfo'.
33670         * lib/langinfo.in.h: New file.
33671         * m4/langinfo_h.m4: New file.
33672         * modules/langinfo: New file.
33673         * doc/posix-headers/langinfo.texi: Mention the new module.
33674
33675 2009-12-11  Bruno Haible  <bruno@clisp.org>
33676
33677         * lib/config.charset: Untabify.
33678
33679 2009-12-11  Bruno Haible  <bruno@clisp.org>
33680
33681         * modules/unistd-safer (configure.ac): Drop indicator macro.
33682
33683 2009-12-11  Bruno Haible  <bruno@clisp.org>
33684
33685         Move pipe2-safer code to its own file.
33686         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33687         * lib/pipe-safer.c (pipe2_safer): Remove function.
33688         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33689         (Makefile.am): Add it to lib_SOURCES.
33690
33691 2009-12-10  Bruno Haible  <bruno@clisp.org>
33692
33693         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33694
33695 2009-12-10  Bruno Haible  <bruno@clisp.org>
33696
33697         Declare which arguments expect non-NULL values, for GCC and clang.
33698         * build-aux/arg-nonnull.h: New file.
33699         * modules/arg-nonnull: New file.
33700         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33701         (inet_ntop, inet_pton): Use it.
33702         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33703         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33704         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33705         (open, openat): Use it.
33706         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33707         (fnmatch): Use it.
33708         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33709         (getopt, getopt_long, getopt_long_only): Use it.
33710         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33711         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33712         Use it.
33713         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33714         (iconv_open): Use it.
33715         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33716         (strtoimax, strtoumax): Use it.
33717         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33718         (duplocale): Use it.
33719         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33720         (frexp, frexpl): Use it.
33721         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33722         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33723         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33724         (tsearch, tfind, tdelete, twalk): Use it.
33725         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33726         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33727         sigpending): Use it.
33728         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33729         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33730         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33731         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33732         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33733         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33734         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33735         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33736         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33737         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33738         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33739         Use it.
33740         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33741         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33742         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33743         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33744         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33745         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33746         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33747         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33748         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33749         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33750         strtoull, unsetenv): Use it.
33751         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33752         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33753         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33754         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33755         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33756         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33757         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33758         (strcasecmp, strncasecmp): Use it.
33759         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33760         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33761         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33762         rpl_setsockopt): Use it.
33763         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33764         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33765         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33766         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33767         (gettimeofday): Use it.
33768         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33769         (times): Use it.
33770         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33771         (uname): Use it.
33772         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33773         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33774         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33775         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33776         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33777         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33778         unlinkat, write): Use it.
33779         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33780         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33781         * lib/argv-iter.h: Include arg-nonnull.h.
33782         (_ATTRIBUTE_NONNULL_): Remove macro.
33783         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33784         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33785         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33786         optimization.
33787         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33788         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33789         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33790         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33791         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33792         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33793         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33794         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33795         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33796         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33797         * modules/dirent (Depends-on): Add arg-nonnull.
33798         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33799         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33800         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33801         * modules/fnmatch (Depends-on): Add arg-nonnull.
33802         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33803         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33804         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33805         * modules/glob (Depends-on): Add arg-nonnull.
33806         (Makefile.am): Insert arg-nonnull.h into glob.h.
33807         * modules/iconv_open (Depends-on): Add arg-nonnull.
33808         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33809         * modules/inttypes (Depends-on): Add arg-nonnull.
33810         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33811         * modules/locale (Depends-on): Add arg-nonnull.
33812         (Makefile.am): Insert arg-nonnull.h into locale.h.
33813         * modules/math (Depends-on): Add arg-nonnull.
33814         (Makefile.am): Insert arg-nonnull.h into math.h.
33815         * modules/netdb (Depends-on): Add arg-nonnull.
33816         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33817         * modules/search (Depends-on): Add arg-nonnull.
33818         (Makefile.am): Insert arg-nonnull.h into search.h.
33819         * modules/signal (Depends-on): Add arg-nonnull.
33820         (Makefile.am): Insert arg-nonnull.h into signal.h.
33821         * modules/spawn (Depends-on): Add arg-nonnull.
33822         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33823         * modules/stdio (Depends-on): Add arg-nonnull.
33824         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33825         * modules/stdlib (Depends-on): Add arg-nonnull.
33826         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33827         * modules/string (Depends-on): Add arg-nonnull.
33828         (Makefile.am): Insert arg-nonnull.h into string.h.
33829         * modules/strings (Depends-on): Add arg-nonnull.
33830         (Makefile.am): Insert arg-nonnull.h into strings.h.
33831         * modules/sys_socket (Depends-on): Add arg-nonnull.
33832         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33833         * modules/sys_stat (Depends-on): Add arg-nonnull.
33834         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33835         * modules/sys_time (Depends-on): Add arg-nonnull.
33836         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33837         * modules/sys_times (Depends-on): Add arg-nonnull.
33838         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33839         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33840         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33841         * modules/time (Depends-on): Add arg-nonnull.
33842         (Makefile.am): Insert arg-nonnull.h into time.h.
33843         * modules/unistd (Depends-on): Add arg-nonnull.
33844         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33845         * modules/wchar (Depends-on): Add arg-nonnull.
33846         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33847         * modules/argv-iter (Depends-on): Add arg-nonnull.
33848         * tests/test-canonicalize.c (null_ptr): New function.
33849         (main): Use it.
33850         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33851         (main): Use it.
33852         * tests/test-memmem.c (null_ptr): New function.
33853         (main): Use it.
33854         Reported by Jim Meyering.
33855
33856 2009-12-10  Bruno Haible  <bruno@clisp.org>
33857
33858         Use spaces for indentation, not tabs.
33859         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33860         * m4/*.m4: Untabify.
33861         * build-aux/*.h: Untabify.
33862         * tests/**/*.[hc]: Untabify.
33863         * README: New section "Indent with spaces, not TABs", based on
33864         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33865         * NEWS: Mention the change.
33866
33867 2009-12-10  Bruno Haible  <bruno@clisp.org>
33868
33869         pty test: Fix link error.
33870         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33871         test_pty_LDADD.
33872
33873 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33874
33875         * modules/pty: New file.
33876         * modules/pty-tests: New file.
33877         * m4/pty.m4: New file.
33878         * tests/test-pty.c: New file.
33879         * doc/glibc-headers/pty.texi: Modified.
33880         * doc/glibc-functions/forkpty.texi: Modified.
33881         * doc/glibc-functions/openpty.texi: Modified.
33882
33883 2009-12-10  Bruno Haible  <bruno@clisp.org>
33884
33885         Avoid syntax error in C++ mode.
33886         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33887
33888 2009-12-10  Bruno Haible  <bruno@clisp.org>
33889
33890         Use sed with option -e.
33891         * gnulib-tool (func_version, func_emit_copyright_notice,
33892         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33893         option -e to sed.
33894         * modules/link-warning (Makefile.am): Likewise.
33895
33896 2009-12-10  Jim Meyering  <meyering@redhat.com>
33897
33898         mgetgroups: do not write bytes beyond end of malloc'd buffer
33899         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33900         username, we call getgroups with a one-element-shorter buffer,
33901         but still told it the length was original, max_n_groups.
33902
33903 2009-12-09  Eric Blake  <ebb9@byu.net>
33904
33905         cloexec: relax license
33906         * modules/cloexec (Maintainer): Add myself.
33907         (License): Use LGPL, not GPL.
33908
33909         link-warning: optimize generation
33910         * modules/link-warning (Makefile.am): Reduce process usage.
33911
33912 2009-12-09  Bruno Haible  <bruno@clisp.org>
33913
33914         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33915         workaround was added on 2009-11-17.
33916
33917 2009-12-09  Jim Meyering  <meyering@redhat.com>
33918             Bruno Haible  <bruno@clisp.org>
33919
33920         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33921         * modules/link-warning (Makefile.am): Make the comment-removing sed
33922         command more robust in the face of bootstrap-prepended comment lines.
33923
33924 2009-12-09  Bruno Haible  <bruno@clisp.org>
33925
33926         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33927         most one group.
33928
33929 2009-12-09  Simon Josefsson <simon@josefsson.org>
33930             Bruno Haible  <bruno@clisp.org>
33931
33932         * build-aux/link-warning.h: Add copyright notice.
33933         * modules/link-warning (Makefile.am): Generate link-warning.h from
33934         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33935         * NEWS: Mention change in link-warning module.
33936         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33937         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33938         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33939         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33940         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33941         * modules/math (Makefile.am): Add dependency to math.h.
33942         * modules/search (Makefile.am): Add dependency to search.h.
33943         * modules/signal (Makefile.am): Add dependency to signal.h.
33944         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33945         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33946         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33947         * modules/string (Makefile.am): Add dependency to string.h.
33948         * modules/strings (Makefile.am): Add dependency to strings.h.
33949         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33950         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33951         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33952         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33953         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33954         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33955         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33956         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33957         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33958
33959 2009-12-09  Bruno Haible  <bruno@clisp.org>
33960
33961         fchdir: Optimize away rpl_fstat when possible.
33962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33963         REPLACE_OPEN_DIRECTORY.
33964         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33965
33966 2009-12-09  Bruno Haible  <bruno@clisp.org>
33967
33968         * lib/fchdir.c: Update comment.
33969
33970 2009-12-09  Bruno Haible  <bruno@clisp.org>
33971
33972         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33973
33974 2009-12-08  Eric Blake  <ebb9@byu.net>
33975
33976         fchdir: avoid memory leak on re-registration.
33977         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33978
33979 2009-12-08  Jim Meyering  <meyering@redhat.com>
33980
33981         init.sh: avoid Solaris 10 /bin/sh portability problem
33982         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33983         sourced script:
33984           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33985           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33986           bar
33987         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33988         and two tests used that idiom.
33989         * tests/init.sh: Update suggested usage comments.
33990         (path_prepend_): New function, to be used in place
33991         of the --src-path=DIR option.
33992         (setup_): Move PATH-prepending code into path_prepend_.
33993         * tests/test-pread.sh: Adapt to new usage.
33994         * tests/test-xalloc-die.sh: Likewise.
33995
33996 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33997
33998         * doc/gnulib.texi (Glibc pty.h): Add.
33999         * doc/glibc-functions/forkpty.texi: Add.
34000         * doc/glibc-functions/openpty.texi: Add.
34001         Suggested by Bruno Haible.
34002
34003 2009-12-08  Eric Blake  <ebb9@byu.net>
34004
34005         fchdir: fix logic bugs
34006         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34007         * tests/test-fchdir.c (main): Enhance test.
34008         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34009         is in use.
34010
34011         dup2: fix logic bugs
34012         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34013         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34014         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34015         exists.
34016         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34017
34018 2009-12-07  Eric Blake  <ebb9@byu.net>
34019
34020         unlink: fix m4 detection
34021         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34022
34023         unistd-safer: add unit test
34024         * modules/unistd-safer-tests: New file.
34025         * tests/test-dup-safer.c: Likewise.
34026         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34027         * tests/test-dup2.c (setmode): Likewise.
34028         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34029
34030         cloexec: preserve text vs. binary across dup_cloexec
34031         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34032         mode.
34033         * modules/dup2-tests (Depends-on): Add binary-io.
34034         * modules/cloexec-tests (Depends-on): Likewise.
34035         * tests/test-dup2.c (setmode, is_mode): New helpers.
34036         (main): Add tests that translation mode is preserved.
34037         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34038         Reported by Bruno Haible.
34039
34040         mgetgroups: reduce duplicate listings
34041         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34042         resulting array.
34043         * tests/test-chown.h (test_chown): Simplify client.
34044         * tests/test-lchown.h (test_lchown): Likewise.
34045
34046 2009-12-06  Bruno Haible  <bruno@clisp.org>
34047
34048         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34049         value.
34050
34051 2009-12-06  Bruno Haible  <bruno@clisp.org>
34052
34053         * lib/progname.c: Include stdio.h, stdlib.h.
34054         (set_program_name): Reject a NULL argument.
34055
34056 2009-12-05  Eric Blake  <ebb9@byu.net>
34057
34058         pipe2-safer: new module
34059         * modules/pipe2-safer: New file.
34060         * lib/unistd-safer.h (pipe2_safer): New prototype.
34061         * lib/unistd--.h (pipe2): New wrapper.
34062         * lib/pipe-safer.c (pipe2_safer): New function.
34063         * modules/pipe (Depends-on): Add pipe2-safer.
34064         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34065
34066         stdlib-safer: preserve cloexec flag for mkostemp[s]
34067         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34068         fd_safer_flag.
34069
34070         unistd-safer: allow preservation of cloexec status via flag
34071         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34072         prototypes.
34073         * lib/dup-safer.c (dup_safer_flag): New function.
34074         * lib/fd-safer.c (fd_safer_flag): Likewise.
34075         * modules/cloexec (configure.ac): Set witness.
34076
34077         test-dup2: enhance test
34078         * modules/dup2-tests (Depends-on): Add cloexec.
34079         * tests/test-dup2.c (main): Enhance test.
34080
34081         cloexec: add dup_cloexec
34082         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34083         header and comments.
34084         * lib/cloexec.c (set_cloexec_flag): Add comments.
34085         (dup_cloexec): New function, with mingw implementation borrowed
34086         from...
34087         * lib/w32spawn.h (dup_noinherit): ...here.
34088         * modules/execute (Depends-on): Add cloexec.
34089         * modules/pipe (Depends-on): Likewise.
34090         * modules/cloexec (Depends-on): Add dup2.
34091         * modules/cloexec-tests (Files): New file.
34092         * tests/test-cloexec.c: Likewise.
34093
34094         test-xalloc-die: fix test for mingw
34095         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34096         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34097         directory and .exe suffix off argv[0] output.
34098
34099         test-fseeko: fix test for mingw
34100         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34101         than undefining fseek, so test will pass on mingw.
34102
34103 2009-12-05  Bruno Haible  <bruno@clisp.org>
34104
34105         * lib/progname.h (set_program_name): Clarify specification.
34106         * lib/progname.c (set_program_name): Likewise.
34107         Reported by Jim Meyering.
34108
34109 2009-12-05  Jim Meyering  <meyering@redhat.com>
34110
34111         maint.mk: backslash-escape parens in default regexp
34112         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34113         backslash-escape the literal parentheses.
34114
34115         maint.mk: news-date-check: use grep -E
34116         * top/maint.mk (today): Define a Make variable, not a...
34117         (news-date-check): ...shell variable.
34118         (news-date-regexp): Use the Make variable.
34119         Use grep's -E option.  Change the failing diagnostic to mention
34120         the variable, $(news-date-regexp).
34121
34122 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34123
34124         maintainer-makefile: allow customization of NEWS entry format
34125         * top/maint.mk (news-date-regexp): New overridable variable.
34126         (news-date-check): Use it.
34127
34128 2009-12-04  Eric Blake  <ebb9@byu.net>
34129
34130         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34131         * lib/mgetgroups.h (xgetgroups): New prototype.
34132         * lib/mgetgroups.c (xgetgroups): New wrapper.
34133         (mgetgroups): Handle ENOSYS.
34134         * modules/mgetgroups (Depends-on): Add realloc.
34135         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34136
34137         mgetgroups: avoid argument promotion issues with -1
34138         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34139         for invalid gid_t.
34140         * tests/test-chown.h (getegid, test_chown): Likewise.
34141         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34142
34143 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34144
34145         exclude: Fix header file problems.
34146         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34147
34148 2009-12-01  Jim Meyering  <meyering@redhat.com>
34149
34150         fts: fts_open: do not let an empty string cause immediate failure
34151         This is required in support of GNU rm, for which the command
34152         "rm A '' B" must process and remove both A and B, in spite of
34153         the empty string argument.
34154         * lib/fts.c (fts_open): Do not let the presence of an empty string
34155         cause fts_open to fail immediately.  Most fts-using tools must be
34156         able to process all arguments, in order, and can be expected to
34157         diagnose such arguments themselves.
34158
34159 2009-11-30  Eric Blake  <ebb9@byu.net>
34160
34161         utimens: fix compilation error
34162         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34163         Declare variable at right scope.
34164
34165 2009-11-29  Jim Meyering  <meyering@redhat.com>
34166
34167         bootstrap: handle perl-5.11's changed --version output
34168         * build-aux/bootstrap (get_version): Handle perl separately,
34169         since perl-5.11's --version output is different.
34170
34171 2009-11-28  Jim Meyering  <meyering@redhat.com>
34172
34173         userspec: depend on the inttostr module, too
34174         * modules/userspec (Depends-on): Add inttostr.
34175
34176         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34177         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34178         number of MAXUID when it evaluates to (uid_t) -1.
34179         Likewise for group ID.  Reported by Matt McCutchen in
34180         <http://savannah.gnu.org/bugs/?28113>
34181
34182         userspec: reformat to use spaces, not TABs
34183         * lib/userspec.c: Expand TABs to spaces.
34184         Add Emacs' "indent-tabs-mode: nil" hint.
34185
34186 2009-11-27  Eric Blake  <ebb9@byu.net>
34187
34188         getopt-gnu: flush out another BSD bug
34189         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34190         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34191         flush out BSD bug.
34192         * tests/test-getopt.h (test_getopt): End lists with NULL.
34193         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34194         (test_getopt_long_posix): Enhance test.
34195         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34196         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34197         getopt-gnu.
34198         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34199         Likewise.
34200
34201 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34202
34203         * modules/idpriv-droptemp-tests (Notice): Fix text.
34204
34205 2009-11-27  Jim Meyering  <meyering@redhat.com>
34206
34207         test-xalloc-die: avoid spurious failure due to libtool argv difference
34208         In a libtool-enabled project, this test would fail due to a difference
34209         in the emitted program name, e.g.,
34210         -test-xalloc-die: memory exhausted
34211         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34212         Use program to avoid that.
34213         * modules/xalloc-die-tests (Depends-on): Add progname.
34214         * tests/test-xalloc-die.c: Include progname.h".
34215         (program_name): Remove decl.
34216         (main): Call set_program_name.
34217         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34218
34219 2009-11-26  Richard Jones  <rjones@redhat.com>
34220
34221         w32sock: leave win32 error in place.
34222         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34223
34224 2009-11-26  Eric Blake  <ebb9@byu.net>
34225
34226         init.sh: suggest to use skip_ and fail_ functions in comments
34227         * tests/init.sh: Add a sentence.
34228
34229 2009-11-25  Bruno Haible  <bruno@clisp.org>
34230
34231         init.sh: add documentation in comments
34232         * tests/init.sh: Add some developer and user documentation.
34233
34234 2009-11-26  Jim Meyering  <meyering@redhat.com>
34235
34236         init.sh: accommodate even those who specify bogus srcdir manually
34237         * tests/init.sh: Normally, srcdir is guaranteed by automake and
34238         configure-time tests to be sanitized, so that there is no need to
34239         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
34240         (with no double quotes) suffices.  However, since tests may be
34241         invoked manually, and since you may explicitly set srcdir to the
34242         name of a directory containing spaces, do quote its uses here.
34243         * tests/test-pread.sh: Likewise.
34244         Suggested by Bruno Haible.
34245
34246         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
34247         * tests/test-pread.sh: Write no data into the pipe, because
34248         test-pread actually reads none.  This avoids a diagnostic,
34249         "bash: echo: write error: Broken pipe", that arises in the unusual
34250         event something is ignoring SIGPIPE, and might be interpreted
34251         as some sort of failure.  Reported by Bruno Haible.
34252
34253 2009-11-25  Jim Meyering  <meyering@redhat.com>
34254
34255         test-pread: cover failure with ESPIPE and EINVAL
34256         * tests/test-pread.c (main): Test for failure, too.
34257         * tests/test-pread.sh: Invoke with stdin on a pipe.
34258         Suggested by Eric Blake.
34259
34260         pread: improvement and fix
34261         * modules/pread (Depends-on): Depend on lseek, for portability to
34262         e.g., mingw.  Suggested by Eric Blake.
34263         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
34264
34265         unistd.in.h: correct declaration of pread
34266         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
34267         Reported by Richard W.M. Jones.
34268
34269         test-pread.sh: distribute the test script
34270         * modules/pread-tests (Files): Include test-pread.sh.
34271
34272         test-pread.sh: clean up
34273         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
34274         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
34275         That is unnecessary, since it's always ".".
34276         Suggestion from Eric Blake.
34277
34278         test-pread.sh: make executable
34279         * tests/test-pread.sh: Set executable bit.
34280         Reported by Eric Blake.
34281
34282         correct typo in test-pread.sh
34283         * tests/test-pread.sh: Add #! line.
34284
34285         test pread
34286         * tests/test-pread.c: New file.
34287         * tests/test-pread.sh: Likewise.
34288         * modules/pread-tests: Likewise.
34289
34290         pread: new module
34291         * modules/pread: New file.
34292         * lib/unistd.in.h (pread): Define/declare.
34293         * lib/pread.c (pread): New file.
34294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
34295         * modules/unistd (Makefile.am): Substitute witnesses.
34296         * doc/posix-functions/pread.texi (pread): Update.
34297         * MODULES.html.sh: Add pread.
34298
34299 2009-11-25  Jim Meyering  <meyering@redhat.com>
34300
34301         tests/init.sh: new file to be used via most *.sh tests
34302         * tests/init.sh: New file.
34303
34304 2009-11-25  Eric Blake  <ebb9@byu.net>
34305
34306         utimens: work around older Linux failure with symlinks
34307         * lib/utimens.c (lutimensat_works_really): New variable.
34308         (fdutimens, lutimens): Use it to manage kernels that support
34309         nanosecond times on files, but not on symlinks.
34310         Reported by Ondřej Vašík.
34311
34312         utimes: fix configure grammar
34313         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
34314
34315 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
34316
34317         regex: Fix fastmap for multibyte character ranges.
34318         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
34319         characters when a multibyte character range is included.
34320
34321 2009-11-22  Andy Wingo  <wingo@pobox.com>
34322
34323         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
34324         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
34325
34326 2009-11-24  Bruno Haible  <bruno@clisp.org>
34327
34328         doc: Most *_l functions exist in MacOS X 10.5.
34329         * doc/posix-functions/duplocale.texi: Update platforms list.
34330         * doc/posix-functions/freelocale.texi: Likewise.
34331         * doc/posix-functions/newlocale.texi: Likewise.
34332         * doc/posix-functions/uselocale.texi: Likewise.
34333         * doc/posix-functions/isalnum_l.texi: Likewise.
34334         * doc/posix-functions/isalpha_l.texi: Likewise.
34335         * doc/posix-functions/isblank_l.texi: Likewise.
34336         * doc/posix-functions/iscntrl_l.texi: Likewise.
34337         * doc/posix-functions/isdigit_l.texi: Likewise.
34338         * doc/posix-functions/isgraph_l.texi: Likewise.
34339         * doc/posix-functions/islower_l.texi: Likewise.
34340         * doc/posix-functions/isprint_l.texi: Likewise.
34341         * doc/posix-functions/ispunct_l.texi: Likewise.
34342         * doc/posix-functions/isspace_l.texi: Likewise.
34343         * doc/posix-functions/isupper_l.texi: Likewise.
34344         * doc/posix-functions/iswalnum_l.texi: Likewise.
34345         * doc/posix-functions/iswalpha_l.texi: Likewise.
34346         * doc/posix-functions/iswblank_l.texi: Likewise.
34347         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34348         * doc/posix-functions/iswctype_l.texi: Likewise.
34349         * doc/posix-functions/iswdigit_l.texi: Likewise.
34350         * doc/posix-functions/iswgraph_l.texi: Likewise.
34351         * doc/posix-functions/iswlower_l.texi: Likewise.
34352         * doc/posix-functions/iswprint_l.texi: Likewise.
34353         * doc/posix-functions/iswpunct_l.texi: Likewise.
34354         * doc/posix-functions/iswspace_l.texi: Likewise.
34355         * doc/posix-functions/iswupper_l.texi: Likewise.
34356         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34357         * doc/posix-functions/isxdigit_l.texi: Likewise.
34358         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
34359         * doc/posix-functions/strcasecmp_l.texi: Likewise.
34360         * doc/posix-functions/strcoll_l.texi: Likewise.
34361         * doc/posix-functions/strfmon_l.texi: Likewise.
34362         * doc/posix-functions/strftime_l.texi: Likewise.
34363         * doc/posix-functions/strncasecmp_l.texi: Likewise.
34364         * doc/posix-functions/strxfrm_l.texi: Likewise.
34365         * doc/posix-functions/tolower_l.texi: Likewise.
34366         * doc/posix-functions/toupper_l.texi: Likewise.
34367         * doc/posix-functions/towctrans_l.texi: Likewise.
34368         * doc/posix-functions/towlower_l.texi: Likewise.
34369         * doc/posix-functions/towupper_l.texi: Likewise.
34370         * doc/posix-functions/wcscoll_l.texi: Likewise.
34371         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34372         * doc/posix-functions/wctrans_l.texi: Likewise.
34373         * doc/posix-functions/wctype_l.texi: Likewise.
34374         * doc/glibc-functions/strptime_l.texi: Likewise.
34375         * doc/glibc-functions/strtod_l.texi: Likewise.
34376         * doc/glibc-functions/strtof_l.texi: Likewise.
34377         * doc/glibc-functions/strtol_l.texi: Likewise.
34378         * doc/glibc-functions/strtold_l.texi: Likewise.
34379         * doc/glibc-functions/strtoll_l.texi: Likewise.
34380         * doc/glibc-functions/strtoul_l.texi: Likewise.
34381         * doc/glibc-functions/strtoull_l.texi: Likewise.
34382         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34383         * doc/glibc-functions/wcstod_l.texi: Likewise.
34384         * doc/glibc-functions/wcstof_l.texi: Likewise.
34385         * doc/glibc-functions/wcstol_l.texi: Likewise.
34386         * doc/glibc-functions/wcstold_l.texi: Likewise.
34387         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34388         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34389         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34390
34391 2009-11-24  Bruno Haible  <bruno@clisp.org>
34392
34393         duplocale: Fix logic bug.
34394         * lib/duplocale.c: Don't include <langinfo.h>.
34395         (_NL_LOCALE_NAME): Remove macro.
34396         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34397         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34398
34399 2009-11-23  Jim Meyering  <meyering@redhat.com>
34400
34401         test-update-copyright: don't hard-code /usr/bin/perl
34402         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34403         perl to print the current year.  Gilles Espinasse reported that
34404         the replaced use of perl was hard-coded as /usr/bin/perl.
34405
34406 2009-11-23  Bruno Haible  <bruno@clisp.org>
34407
34408         duplocale: Add support for glibc 2.3.x.
34409         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34410
34411 2009-11-22  Bruno Haible  <bruno@clisp.org>
34412
34413         vasnprintf: Tiny optimization.
34414         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34415         MacOS X.
34416
34417 2009-11-22  Bruno Haible  <bruno@clisp.org>
34418
34419         Tests for module 'duplocale'.
34420         * modules/duplocale-tests: New file.
34421         * tests/test-duplocale.c: New file.
34422
34423         New module 'duplocale'.
34424         * m4/duplocale.m4: New file.
34425         * lib/locale.in.h (duplocale): New declaration.
34426         * lib/duplocale.c: New file.
34427         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34428         gl_LOCALE_H_DEFAULTS): New macros.
34429         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34430         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34431         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34432         REPLACE_DUPLOCALE.
34433         * modules/duplocale: New file.
34434         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34435
34436 2009-11-22  Bruno Haible  <bruno@clisp.org>
34437
34438         * modules/locale-tests (configure.ac): Test for newlocale function.
34439         * tests/test-locale.c: When the system has extended locale functions,
34440         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34441
34442         locale: Make locale_t available when possible.
34443         * lib/locale.in.h: Include <xlocale.h> when it exists.
34444         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34445         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34446         * modules/locale (Depends-on): Add extensions.
34447         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34448         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34449
34450 2009-11-22  Bruno Haible  <bruno@clisp.org>
34451
34452         Add comments.
34453         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34454         invocation.
34455         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34456         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34457         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34458
34459 2009-11-22  Bruno Haible  <bruno@clisp.org>
34460
34461         error: account for the possibility of freopen (stdout).
34462         * lib/error.c: Include <unistd.h>.
34463         (flush_stdout): New function, extracted from error and error_at_line.
34464         Determine stdout's fd dynamically.
34465         (error, error_at_line): Invoke flush_stdout.
34466         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34467         * modules/error (Depends-on): Add unistd.
34468
34469 2009-11-22  Bruno Haible  <bruno@clisp.org>
34470
34471         diffseq: Add comment.
34472         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34473
34474 2009-11-22  Jim Meyering  <meyering@redhat.com>
34475
34476         c-stack: avoid defining an unused static function
34477         * lib/c-stack.c (find_stack_direction): Do not define this function
34478         when it will not be used.
34479
34480         diffseq: avoid spurious gcc warnings
34481         * lib/diffseq.h (IF_LINT2): Define.
34482         (compareseq): Use it to initialize two members of "part".
34483         This avoids two used-uninitialized warnings.
34484
34485 2009-11-21  Jim Meyering  <meyering@redhat.com>
34486
34487         c-stack: avoid "ignoring return value of `write'" warning
34488         * lib/c-stack.c: Include "ignore-value.h".
34489         (die): Explicitly ignore each write return value.
34490         * modules/c-stack (Depends-on): Add ignore-value.
34491
34492 2009-11-21  Bruno Haible  <bruno@clisp.org>
34493
34494         diffseq: reduce scope of variable 'best'.
34495         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34496         variable, earlier used for two different purposes.
34497
34498 2009-11-21  Jim Meyering  <meyering@redhat.com>
34499
34500         diffseq: remove useless assignment to "best"
34501         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34502         assignment.  At that point "best" is already guaranteed to be zero.
34503
34504 2009-11-20  Eric Blake  <ebb9@byu.net>
34505
34506         build: mention ftp redirector in release announcements
34507         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34508         values that used to come from cfg.mk; mention FTP redirect URL.
34509         * build-aux/announce-gen: Mention the mirror list.
34510         Suggested by Karl Berry.
34511
34512         nanosleep: improve port to mingw
34513         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34514         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34515         LIB_NANOSLEEP, but only when needed.
34516         * modules/select (Link): Document LIBSOCKET.
34517         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34518         enough.
34519
34520         nanosleep: work around cygwin bug
34521         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34522         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34523         bug.
34524         (getnow): Delete, not needed.
34525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34526         LIB_CLOCK_GETTIME.
34527         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34528         clock-time, gettime.
34529         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34530         bug.
34531         * modules/nanosleep-tests: New test.
34532         * tests/test-nanosleep.c: New file.
34533
34534         sleep: work around cygwin bug
34535         * lib/sleep.c (rpl_sleep): Work around the bug.
34536         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34537         (gl_PREREQ_SLEEP): Delete unused macro.
34538         * modules/sleep (Depends-on): Add verify.
34539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34540         * modules/unistd (Makefile.am): Substitute witness.
34541         * lib/unistd.in.h (sleep): Update prototype.
34542         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34543         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34544         * modules/sleep-tests (Depends-on): Check for alarm.
34545
34546 2009-11-20  Jim Meyering  <meyering@redhat.com>
34547
34548         maint.mk: improve sc_prohibit_magic_number_exit
34549         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34550         so it does not match uses like System.exit(1).
34551         Add comments showing how to correct all offenders.
34552
34553 2009-11-19  Eric Blake  <ebb9@byu.net>
34554
34555         xalloc-die-tests: add missing library
34556         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34557
34558         test-xvasprintf: silence compiler warnings
34559         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34560         empty string from gcc.
34561
34562 2009-11-19  Jim Meyering  <meyering@redhat.com>
34563
34564         xfreopen: new module, from coreutils
34565         * modules/xfreopen: New module.
34566         * lib/xfreopen.c: New file.
34567         * lib/xfreopen.h: New file.
34568         * MODULES.html.sh (File stream based Input/Output"): Add it.
34569
34570 2009-11-19  Eric Blake  <ebb9@byu.net>
34571
34572         manywarnings: depend on warnings
34573         * modules/manywarnings (Depends-on): Add warnings.
34574
34575         build: avoid compiler warnings
34576         * lib/select.c (rpl_select): Delete unused variable.
34577         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34578
34579 2009-11-18  Eric Blake  <ebb9@byu.net>
34580
34581         tests: avoid false negative with --with-packager
34582         * tests/test-version-etc.sh: Discard packager information.
34583         * tests/test-argp-version-etc-1.sh: Likewise.
34584         Reported by Mike Frysinger.
34585
34586         utimens: fix regression on Solaris
34587         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34588         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34589         can only change fd timestamps via futimesat.  Instead, use an
34590         additional witness macro to avoid BSD bug.
34591         Reported by Jim Meyering.
34592
34593 2009-11-17  Eric Blake  <ebb9@byu.net>
34594
34595         usleep: use it to simplify tests
34596         * modules/stat-time-tests (Depends-on): Add usleep.
34597         (configure.ac): Drop usleep check.
34598         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34599         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34600         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34601         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34602         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34603         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34604         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34605         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34606         Likewise.
34607         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34608         * tests/test-lchown.h (nap): Likewise.
34609         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34610         * tests/test-stat-time.c (nap): Likewise.
34611         * tests/test-utimens-common.h (nap): Update comments.
34612
34613         usleep: new module
34614         * modules/usleep: New file.
34615         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34616         * lib/usleep.c (usleep): Likewise.
34617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34618         * modules/unistd (Makefile.am): Substitute witnesses.
34619         * lib/unistd.in.h (usleep): Add declaration.
34620         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34621         * MODULES.html.sh (Date and time): Likewise.
34622         * modules/usleep-tests (Depends-on): New test.
34623         * tests/test-usleep.c: New file.
34624
34625         chown: work around OpenBSD bug
34626         * lib/chown.c (rpl_chown): Work around the bug.
34627         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34628         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34629         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34630         * modules/chown (Depends-on): Add stdbool.
34631         * modules/lchown (Depends-on): Likewise.
34632         * doc/posix-functions/chown.texi (chown): Document the bug.
34633         * doc/posix-functions/lchown.texi (lchown): Likewise.
34634         * tests/test-lchown.h (test_chown): Relax test.
34635
34636         mkstemp: avoid conflict with C++ keyword template
34637         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34638         * lib/mkostemp.c (mkostemp): Likewise.
34639         * lib/mkostemps.c (mkostemps): Likewise.
34640         * lib/mkstemp.c (mkstemp): Likewise.
34641         * lib/mkstemps.c (mkstemps): Likewise.
34642
34643         xalloc-die-tests: optimize
34644         * tests/test-xalloc-die.sh: Reduce number of processes.
34645
34646 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34647
34648         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34649         patch from ludo@gnu.org (Ludovic Courtès).
34650
34651 2009-11-17  Jim Meyering  <meyering@redhat.com>
34652
34653         version-etc: use proper license string
34654         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34655         * modules/version-etc-fsf: Likewise.
34656
34657 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34658
34659         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34660         printed to stdout.  Deal with EOL differences.
34661
34662 2009-11-17  Eric Blake  <ebb9@byu.net>
34663
34664         unsetenv: work around Solaris bug
34665         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34666         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34667         Reported by Jim Meyering.
34668
34669         vasnprintf: avoid compiler warnings
34670         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34671         variables.
34672         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34673
34674 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34675
34676         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34677         settings since xalloc-die is no longer the self test,
34678         xalloc-die.sh is.
34679
34680 2009-11-17  Jim Meyering  <meyering@redhat.com>
34681
34682         test-xalloc-die.sh: make the code agree with the commit log
34683         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34684         at the end, just in case you happen to have a test-xalloc-die
34685         program in some other PATH directory.
34686
34687         test-xalloc-die.sh: fix a portability bug
34688         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34689         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34690         Otherwise, argv[0] (as often seen in diagnostics) would be too
34691         system-dependent, sometimes with, and sometimes without the leading "./".
34692
34693         version-etc-fsf: relax license to LGPLv3+
34694         * modules/version-etc-fsf (License): Relax license.
34695
34696 2009-11-16  Eric Blake  <ebb9@byu.net>
34697
34698         xalloc-die-tests: avoid printing null pointer
34699         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34700         shell script.
34701         * tests/test-xalloc-die.c (program_name): Declare.
34702         * tests/test-xalloc-die.sh (tmpfiles): New file.
34703
34704         setenv, unsetenv: work around various bugs
34705         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34706         (setenv) [HAVE_SETENV]: Work around bugs.
34707         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34708         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34709         for bugs.
34710         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34711         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34713         * modules/stdlib (Makefile.am): Update substitutions.
34714         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34715         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34716         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34717         * modules/setenv-tests: New test.
34718         * modules/unsetenv-tests: Likewise.
34719         * tests/test-setenv.c: New file.
34720         * tests/test-unsetenv.c: Likewise.
34721
34722 2009-11-16  Jim Meyering  <meyering@redhat.com>
34723
34724         version-etc: relax license to LGPLv3+
34725         * modules/version-etc (License): Relax license.
34726
34727         better AC_REQUIRE expanded-before-required-warning avoidance
34728         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34729         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34730         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34731         which is no longer needed.
34732
34733 2009-11-16  Eric Blake  <ebb9@byu.net>
34734
34735         test-freading: clean up temporary file
34736         * tests/test-freading.c (main): Remove file on success, and use
34737         ASSERT more liberally.
34738         Reported by Jim Meyering.
34739
34740 2009-11-16  Jim Meyering  <meyering@redhat.com>
34741
34742         avoid new AC_REQUIRE expanded-before-required warnings
34743         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34744         merely using it.
34745         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34746         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34747
34748 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34749
34750         * tests/test-xalloc-die.c: New file.
34751         * modules/xalloc-die-tests: New file.
34752         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34753         XFAIL_TESTS so it can be appended by modules.
34754
34755 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34756
34757         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34758         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34759
34760 2009-11-14  Eric Blake  <ebb9@byu.net>
34761
34762         fnmatch: avoid compiler warning
34763         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34764         to silence compiler warning about mismatch signedness in ?:.
34765         Reported by Robert Millan.
34766
34767         intprops: add double-inclusion guard
34768         * lib/intprops.h: Allow idempotent includes.
34769         Suggested by Bruce Korb.
34770
34771         openat: detect Solaris fchownat bug
34772         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34773         penalizing glibc chownat when only lchownat is broken.
34774         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34775         trailing slash bugs.
34776         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34777         * modules/openat-tests (Files): Include more files.
34778         (Depends-on): Add mgetgroups, sleep, stat-time.
34779         (configure.ac): Add additional checks.
34780         (Makefile.am): Build new test.
34781         * tests/test-fchownat.c: New file.
34782
34783         lchown: detect Solaris and FreeBSD bug
34784         * lib/lchown.c (rpl_lchown): Work around bug.
34785         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34787         * modules/unistd (Makefile.am): Populate it.
34788         * lib/unistd.in.h (lchown): Update declaration.
34789         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34790         * modules/lchown-tests: New file.
34791         * tests/test-lchown.h (test_lchown): Likewise.
34792         * tests/test-lchown.c (main): Likewise.
34793
34794         chown: detect Solaris and FreeBSD bug
34795         * lib/chown.c (rpl_chown): Work around bug.
34796         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34797         (gl_PREREQ_CHOWN): Delete.
34798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34799         * modules/unistd (Makefile.am): Populate it.
34800         * lib/unistd.in.h (chown): Update declaration.
34801         * lib/lchown.c (chown): Update client.
34802         * modules/lchown (Depends-on): Add lstat.
34803         * doc/posix-functions/chown.texi (chown): Document the bug.
34804         * doc/posix-functions/getgroups.texi (getgroups): Document
34805         getgroups pitfall.
34806         * modules/chown-tests: New file.
34807         * tests/test-chown.h (test_chown): Likewise.
34808         * tests/test-chown.c (main): Likewise.
34809
34810 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34811
34812         gnulib-tool: correctly detect absence of m4 directories
34813         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34814
34815 2009-11-14  Jim Meyering  <meyering@redhat.com>
34816
34817         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34818         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34819
34820 2009-11-14  John W. Eaton  <jwe@gnu.org>
34821
34822         strftime.h: wrap funtion declaration in extern "C" block
34823         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34824
34825 2009-11-13  Eric Blake  <ebb9@byu.net>
34826
34827         getgroups: avoid compiler warning
34828         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34829
34830         getgroups: work around FreeBSD bug
34831         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34832         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34833         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34834         * tests/test-getgroups.c (main): Fix buffer overrun.
34835
34836         getgroups: avoid compilation failure
34837         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34838         * modules/getgroups (Depends-on): Add stdint.
34839
34840 2009-11-13  Jim Meyering  <meyering@redhat.com>
34841
34842         test-getgroups: avoid compilation failure
34843         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34844
34845 2009-11-13  Eric Blake  <ebb9@byu.net>
34846
34847         mgetgroups: new module, taken from coreutils
34848         * modules/mgetgroups: New file.
34849         * lib/mgetgroups.h: Likewise.
34850         * lib/mgetgroups.c (mgetgroups): Likewise.
34851         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34852         * MODULES.html.sh (Users and groups): Mention it.
34853
34854         getgroups: don't expose GETGROUPS_T to user
34855         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34856         an element at a time if GETGROUPS_T is wrong size.
34857         * lib/getugroups.h (getugroups): Change signature.
34858         * lib/unistd.in.h (getgroups): Likewise.
34859         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34860         signature needs fixing.
34861         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34862         AC_TYPE_GETGROUPS.
34863         * modules/group-member (Depends-on): Add getgroups.
34864         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34865         (group_member): Rely on getgroups replacement.
34866         * lib/getugroups.c (getugroups): Use gid_t.
34867         * tests/test-getgroups.c (main): Likewise.
34868         * NEWS: Mention the signature change.
34869         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34870         problem with signature.
34871         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34872         GETGROUPS_T is still useful for setgroups.
34873
34874         getgroups, getugroups: provide stubs for mingw
34875         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34876         * lib/getugroups.c (getugroups): Likewise.
34877         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34878         function.  Modernize replacement scheme.
34879         (gl_PREREQ_GETGROUPS): Delete.
34880         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34881         * modules/getgroups (configure.ac): Declare witness.
34882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34883         * modules/unistd (Depends-on): Substitute witness.
34884         * lib/unistd.in.h (getgroups): Declare replacement.
34885
34886         getgroups: avoid calling exit
34887         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34888         drop xalloc.
34889         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34890         dependencies.
34891         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34892         exiting, in the rare case of malloc failure.
34893
34894         getgroups: fix logic error
34895         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34896         has more than 20 groups.
34897         * modules/getgroups-tests: New test.
34898         * tests/test-getgroups.c: New file.
34899
34900 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34901
34902         * tests/test-base64.c: Improve.
34903
34904 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34905
34906         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34907         Blake <ebb9@byu.net>.
34908
34909 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34910
34911         * tests/test-xvasprintf.c: Add %s%s related checks.
34912
34913 2009-11-12  Eric Blake  <ebb9@byu.net>
34914
34915         version-etc: match standards.texi style
34916         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34917         and use <> only for URLs.
34918
34919 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34920
34921         fts: do not fail on a submount during traversal
34922         * lib/fts.c (fts_build): Read the stat info again after opening
34923         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34924         Original report at http://bugzilla.redhat.com/501848.
34925
34926 2009-11-12  Jim Meyering  <meyering@redhat.com>
34927
34928         bootstrap: sync from coreutils
34929         * build-aux/bootstrap (bootstrap_epilogue): New function.
34930         Use git_modules_config in one more place.  This make bootstrap's
34931         --gnulib-srcdir option more useful for testing.
34932
34933         bootstrap: generalize autoheader check
34934         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34935         AC_CONFIG_HEADERS.
34936
34937 2009-11-11  Eric Blake  <ebb9@byu.net>
34938
34939         mkfifoat: use new modules for Solaris and BSD bugs
34940         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34941         * lib/mkfifoat.c (mknodat): Split...
34942         * lib/mknodat.c (mknodat): ...into new file.
34943         * modules/mkfifoat (Files): Ship new file.
34944         (Depends-on): Add mkfifo, mknod.
34945         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34946         (Depends-on): Add symlink.
34947         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34948         redundant with test_mkfifo.h.
34949         (do_mkfifoat, do_mknodat): New helpers.
34950
34951         mknod: new module
34952         * modules/mknod: New file.
34953         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34954         * lib/mknod.c (mknod): Likewise.
34955         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34956         defaults.
34957         * modules/sys_stat (Makefile.am): Substitute them.
34958         * lib/sys_stat.in.h (mknod): Declare replacement.
34959         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34960         Document it.
34961         * doc/posix-functions/mknod.texi (mknod): Likewise.
34962         * modules/mknod-tests: New test.
34963         * tests/test-mknod.c: Likewise.
34964
34965         mkfifo: new module
34966         * modules/mkfifo: New file.
34967         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34968         * lib/mkfifo.c (mkfifo): Likewise.
34969         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34970         defaults.
34971         * modules/sys_stat (Makefile.am): Substitute them.
34972         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34973         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34974         Document it.
34975         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34976         * modules/mkfifo-tests: New test.
34977         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34978         from test-mkfifoat.c.
34979         * tests/test-mkfifo.c: New file.
34980
34981         readlink: detect FreeBSD bug
34982         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34983         slash on symlink.
34984         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34985         * tests/test-readlink.h (test_readlink): Enhance test.
34986
34987         symlink: detect FreeBSD bug
34988         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34989         slash on symlink.
34990         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34991         * tests/test-symlink.h (test_symlink): Enhance test.
34992
34993 2009-11-10  Eric Blake  <ebb9@byu.net>
34994
34995         link: detect FreeBSD bug
34996         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34997         symlink.
34998         * doc/posix-functions/link.texi (link): Document the bug.
34999         * tests/test-link.h (test_link): Enhance test.
35000         * tests/test-linkat.c (main): Update caller.
35001
35002         unlink, remove: detect FreeBSD bug
35003         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35004         slash on symlink.
35005         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35006         * doc/posix-functions/remove.texi (remove): Likewise.
35007         * tests/test-unlink.h (test_unlink): Enhance test.
35008         * tests/test-remove.c (main): Likewise.
35009
35010 2009-11-09  Eric Blake  <ebb9@byu.net>
35011
35012         rename: detect FreeBSD bug
35013         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35014         slash on symlink.
35015         * modules/renameat-tests (Depends-on): Add filenamecat.
35016         * tests/test-rename.h (test_rename): Allow one more errno.
35017         * tests/test-renameat.c (main): Likewise.
35018         * doc/posix-functions/rename.texi (rename): Document the bug.
35019
35020         open: detect FreeBSD bug
35021         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35022         symlink.
35023         * doc/posix-functions/open.texi (open): Document the bug.
35024         * doc/posix-functions/utimes.texi (utimes): Likewise.
35025         * tests/test-open.h (test_open): Add parameters, and test symlink
35026         handling.
35027         * tests/test-open.c (main): Adjust caller.
35028         * tests/test-fcntl-safer.c (main): Likewise.
35029         * modules/open-tests (Depends-on): Add stdbool, symlink.
35030         * modules/fcntl-safer-tests (Depends-on): Likewise.
35031         * tests/test-openat.c (main): Add test-open tests.
35032
35033         stat: detect FreeBSD bug
35034         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35035         symlink.
35036         * doc/posix-functions/stat.texi (stat): Document the bug.
35037         * tests/test-stat.h (test_stat_func): Add argument.
35038         * tests/test-stat.c (main): Adjust caller.
35039         * tests/test-fstatat.c (main): Likewise.
35040         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35041         Reported by Jim Meyering.
35042
35043 2009-11-09  James Youngman  <jay@gnu.org>
35044
35045         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35046         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35047
35048 2009-11-08  Jim Meyering  <meyering@redhat.com>
35049
35050         utimens: remove invalid futimesat call
35051         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35052         It used the file descriptor of the target file as the DIR_FD
35053         parameter and NULL as the file name.  That caused failure with
35054         errno == EFAULT on FreeBSD-8.0-rc2
35055
35056 2009-11-07  Eric Blake  <ebb9@byu.net>
35057
35058         fflush, freadseek: use fseeko, not fseek
35059         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35060         (clear_ungetc_buffer): Avoid potential problems on large files.
35061         * lib/freadseek.c (freadseek): Likewise.
35062         * modules/freadseek (Depends-on): Add fseeko.
35063         * modules/fseek (configure.ac): Set a witness.
35064         * tests/test-fflush.c (main): Use fseeko.
35065         * tests/test-fpurge.c (fseek): Disable link warning.
35066         * tests/test-freadable.c (fseek): Likewise.
35067         * tests/test-freading.c (fseek): Likewise.
35068         * tests/test-fseeko.c (fseek): Likewise.
35069         * tests/test-ftell.c (fseek): Likewise.
35070         * tests/test-ftello.c (fseek): Likewise.
35071         * tests/test-fwritable.c (fseek): Likewise.
35072         * tests/test-fwriting.c (fseek): Likewise.
35073
35074 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35075
35076         * modules/memchr (Depends-on): Drop getpagesize dependency.
35077
35078 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35079
35080         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35081         Reported by Ludovic Courtès.
35082         * build-aux/pmccabe2html: Improve example usage.
35083         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35084
35085 2009-11-06  Jim Meyering  <meyering@redhat.com>
35086
35087         do-release-commit-and-tag: New module.
35088         Automate the release-commit and tag process.
35089         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35090         * modules/do-release-commit-and-tag: New file.
35091         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35092
35093 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35094
35095         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35096         because test-select.c uses inet_pton.
35097
35098 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35099
35100         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35101         GETADDRINFO_LIB.  Bump serial number.
35102         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35103         Suggested by Eric Blake <ebb9@byu.net>.
35104
35105 2009-11-05  Eric Blake  <ebb9@byu.net>
35106
35107         strtod: detect darwin bug
35108         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35109         Reported by Leo Davis.
35110
35111         freopen-safer: new module
35112         * modules/freopen-safer: New module.
35113         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35114         * lib/freopen-safer.c (freopen_safer): New file.
35115         * lib/stdio-safer.h (freopen_safer): New declaration.
35116         * lib/stdio--.h (freopen): New override.
35117         * MODULES.html.sh (File stream based Input/Output): Mention it.
35118         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35119         freopen-safer module.
35120         * doc/posix-functions/stderr.texi (stderr): Likewise.
35121         * doc/posix-functions/stdin.texi (stdin): Likewise.
35122         * doc/posix-functions/stdout.texi (stdout): Likewise.
35123         * modules/freopen-safer-tests: New test.
35124         * tests/test-reopen-safer.c: New file.
35125
35126 2009-11-05  Jim Meyering  <meyering@redhat.com>
35127
35128         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35129         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35130
35131 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35132
35133         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35134
35135 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35136
35137         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35138
35139 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35140
35141         Fix link error.
35142         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35143         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35144
35145 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35146
35147         * tests/test-func.c: Also test value of __func__.
35148
35149 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35150
35151         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35152         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35153
35154 2009-11-05  Bruno Haible  <bruno@clisp.org>
35155
35156         Fix link error.
35157         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35158         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35159         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35160
35161 2009-11-05  Bruno Haible  <bruno@clisp.org>
35162
35163         Tests for module 'inet_pton'.
35164         * modules/inet_pton-tests: New file.
35165         * tests/test-inet_pton.c: New file.
35166
35167 2009-11-05  Bruno Haible  <bruno@clisp.org>
35168
35169         Tests for module 'inet_ntop'.
35170         * modules/inet_ntop-tests: New file.
35171         * tests/test-inet_ntop.c: New file.
35172
35173 2009-11-04  Eric Blake  <ebb9@byu.net>
35174
35175         stdlib-safer: wrap all mkstemp variants
35176         * modules/mkostemp (configure.ac): Set witness.
35177         * modules/mkostemps (configure.ac): Likewise.
35178         * modules/mkstemps (configure.ac): Likewise.
35179         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35180         (mkstemps_safer): Wrap more functions.
35181         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35182         wrapping.
35183         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35184         (mkstemps_safer): Implement the wrappers.
35185
35186         mkstemps, mkostemps: new modules
35187         * modules/mkostemps: New module.
35188         * modules/mkstemps: Likewise.
35189         * lib/mkostemps.c (mkostemps): New file.
35190         * lib/mkstemps.c (mkstemps): Likewise.
35191         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35192         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35194         * modules/stdlib (Makefile.am): Substitute them.
35195         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35196         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35197         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35198         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35199         * MODULES.html.sh (File system functions): Mention them.
35200
35201         tempname: resync from glibc
35202         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35203         same values for __GT_FILE as glibc.  Abort even when assertions
35204         are disabled.
35205         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35206         match its value otherwise.  Allow idempotent inclusion.
35207         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35208         * lib/mkostemp.c (mkostemp): Likewise.
35209         * lib/mkstemp.c (mkstemp): Likewise.
35210         * lib/tmpfile.c (tmpfile): Likewise.
35211         * NEWS: Document this.
35212
35213         utimens: fix use of futimens on older Linux
35214         * lib/utimens.c (fdutimens): Use updated, rather than original,
35215         timespec to avoid bug in older Linux kernel.
35216         Reported by Simon Josefsson.
35217
35218 2009-11-04  Bruno Haible  <bruno@clisp.org>
35219
35220         Make num_processors more flexible and consistent.
35221         * lib/nproc.h (enum nproc_query): New type.
35222         (num_processors): Add a 'query' argument.
35223         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35224         (num_processors): Add a 'query' argument. Test the value of the
35225         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35226         mingw, count the number of CPUs available for the current process.
35227         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35228         Check for sched_getaffinity and sched_getaffinity_np.
35229         * modules/nproc (Depends-on): Add c-ctype, extensions.
35230         * NEWS: Mention the change.
35231
35232 2009-11-03  Bruno Haible  <bruno@clisp.org>
35233
35234         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35235
35236 2009-11-03  Jim Meyering  <meyering@redhat.com>
35237
35238         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
35239         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
35240         if it is defined.
35241
35242 2009-11-02  Eric Blake  <ebb9@byu.net>
35243
35244         mktime, timegm: share common declaration
35245         * lib/mktime-internal.h: New file.
35246         * lib/mktime.c: Use it rather than open-coding a declaration.
35247         * lib/timegm.c: Likewise.
35248         * modules/mktime (Files): Ship it.
35249         * modules/timegm (Files): Likewise.
35250         Suggested by Bruno Haible.
35251
35252         test-update-copyright: update test to match script changes
35253         * tests/test-update-copyright.sh: Avoid hard-coding perl
35254         location.  Don't update *.bak created by earlier runs.
35255
35256 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
35257             Simon Josefsson  <simon@josefsson.org>
35258             Bruno Haible  <bruno@clisp.org>
35259
35260         Fix link error on Solaris 8.
35261         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
35262         also in libnsl. Define also INET_PTON_LIB.
35263         * modules/inet_pton (Link): New section.
35264
35265 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35266             Bruno Haible  <bruno@clisp.org>
35267
35268         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
35269         * modules/inet_ntop (Link): New section.
35270         Reported by Boyan Kasarov <bkasarov@gmail.com>.
35271
35272 2009-11-02  Eric Blake  <ebb9@byu.net>
35273
35274         maint: avoid compiler warnings in m4 macros
35275         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
35276         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
35277
35278 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35279
35280         * m4/pmccabe2html.m4: Remove file.
35281         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
35282         function.  Change maintainer.
35283         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
35284         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
35285         Courtès).
35286
35287 2009-10-31  Eric Blake  <ebb9@byu.net>
35288
35289         fseeko: fix m4 regression
35290         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
35291         regression from 2009-10-27.
35292         Reported by Ralf Wildenhues.
35293
35294 2009-10-31  Jim Meyering  <meyering@redhat.com>
35295
35296         inttostr: aesthetics and improved (compile-time) safety
35297         Define inttype_is_signed rather than inttype_is_unsigned,
35298         since the sole use is via "#if inttype_is_signed".
35299         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
35300         inttype_is_unsigned.
35301         * lib/offtostr.c (inttype_is_signed): Likewise.
35302         * lib/uinttostr.c (inttype_is_signed): Likewise.
35303         * lib/umaxtostr.c (inttype_is_signed): Likewise.
35304         * lib/inttostr.c (inttostr): Use verify to cross-check the
35305         inttype_is_signed value and the signedness of the actual type.
35306         * modules/inttostr (Depends-on): Add verify.
35307
35308 2009-10-30  Eric Blake  <ebb9@byu.net>
35309
35310         build: avoid compiler warnings
35311         * lib/fchmodat.c (lchmod): Mark unused variables.
35312         * lib/getopt.c (_getopt_initialize): Likewise.
35313         * lib/mktime.c (__mktime_internal): Provide prototype.
35314         * lib/inttostr.c (inttostr): Avoid compiler warning even with
35315         older gcc that do not understand #pragma GCC diagnostic.
35316         * lib/uinttostr.c (inttype_is_unsigned): Define.
35317         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
35318
35319 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35320
35321         stat: fix compilation on AIX
35322         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
35323         only see struct stat64.
35324
35325 2009-10-30  Eric Blake  <ebb9@byu.net>
35326
35327         exclude: make more robust
35328         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
35329         rather than masking a coding bug.
35330         Suggested by Bruno Haible.
35331
35332 2009-10-30  Jim Meyering  <meyering@redhat.com>
35333
35334         perl scripts: remove #!/usr/bin/perl in favor of more portable...
35335         Rather than putting #!/usr/bin/perl on the first line,
35336         start with a variant of what's recommended by "man perlrun" that
35337         invokes the first "perl" program from your shell's search path.
35338         * build-aux/gitlog-to-changelog: Replace #!... as above.
35339         Add a "Local Variables" perl mode setting.
35340         Prompted by a patch from Ludovic Courtès.
35341         Improved by Eric Blake.
35342         * build-aux/useless-if-before-free: Likewise.
35343         * build-aux/announce-gen: Likewise.
35344         * build-aux/update-copyright: Likewise.
35345
35346 2009-10-29  Eric Blake  <ebb9@byu.net>
35347
35348         filenamecat-lgpl: adjust clients
35349         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
35350         filenamecat.
35351         * modules/renameat (Depends-on): Likewise.
35352
35353         filenamecat: split into filenamecat-lgpl
35354         * modules/filenamecat-lgpl: New module.
35355         * modules/filenamecat (Files): Move library-safe files into
35356         filenamecat-lgpl.
35357         (Depends-on): Add filenamecat-lgpl.
35358         (configure.ac): Declare witness.
35359         * lib/filenamecat.h (file_name_concat): Only declare when using
35360         GPL module.
35361         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
35362         Move...
35363         * lib/filenamecat-lgpl.c: ...into new file.
35364         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
35365         (gl_FILE_NAME_CONCAT): Use it.
35366         * MODULES.html.sh (File system functions): Mention new module.
35367
35368         argp: avoid memory leak
35369         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35370         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35371         base_name, since the latter malloc()s and can call exit().
35372         Leak introduced 2006-07-03.
35373
35374         dirname-lgpl: adjust clients that don't need full dirname
35375         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35376         * modules/filenamecat (Depends-on): Likewise.
35377         * modules/linkat (Depends-on): Likewise.
35378         * modules/mkancesdirs (Depends-on): Likewise.
35379         * modules/mkdir (Depends-on): Likewise.
35380         * modules/openat (Depends-on): Likewise.
35381         * modules/savewd (Depends-on): Likewise.
35382         * modules/rename (Depends-on): Likewise.
35383         (License): Relax license.
35384         * modules/mkdir-tests (Depends-on): Drop progname.
35385         (Makefile.am): Delete unneeded LDADD.
35386         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
35387
35388         dirname: split into dirname-lgpl
35389         * modules/dirname-lgpl: New module.
35390         * modules/dirname (Files): Move library-safe files into
35391         dirname-lgpl.
35392         (Depends-on): Add dirname-lgpl.
35393         (configure.ac): Declare witness.
35394         * modules/double-slash-root (License): Relax license.
35395         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35396         module.
35397         * lib/dirname.c (dir_len, mdir_name): Move...
35398         * lib/dirname-lgpl.c: ...into new file.
35399         * lib/basename.c (last_component, base_len): Move...
35400         * lib/basename-lgpl.c: ...into new file.
35401         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35402         (gl_DIRNAME): Use it.
35403         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35404         Mention new module.
35405         * modules/dirname-tests (Depends-on): Add progname.
35406         * tests/test-dirname.c (program_name): Delete.
35407
35408         mkdir: make safe for libraries
35409         * modules/mkdir (Depends-on): Drop xalloc.
35410         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35411         exit.
35412
35413         tests: avoid some compiler warnings
35414         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35415         literals.
35416         * tests/test-memchr.c (main): Avoid type mismatch.
35417         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35418         * tests/test-base64.c (main): Likewise.
35419         * tests/test-getdelim.c (main): Likewise.
35420         * tests/test-gethostname.c (main): Likewise.
35421         * tests/test-getline.c (main): Likewise.
35422         * tests/test-netinet_in.c (main): Likewise.
35423         * tests/test-select.c (open_server_socket, main): Likewise.
35424         * tests/test-select-stdin.c (main): Likewise.
35425         * tests/test-sockets.c (main): Likewise.
35426         * tests/test-strsignal.c (main): Likewise.
35427         * tests/test-sys_select.c (main): Likewise.
35428         * tests/test-sys_socket.c (main): Likewise.
35429         * tests/test-u64.c (main): Likewise.
35430         * tests/test-xfprintf-posix.c (main): Likewise.
35431         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35432
35433         sockets: avoid compiler warning
35434         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35435
35436         maint: detect usage(1) and other suspicious exits
35437         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35438
35439 2009-10-29  Jim Meyering  <meyering@redhat.com>
35440
35441         timespec: long-to-int truncation could make timespec_cmp malfunction
35442         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35443         a multiple of 2^32 nanoseconds as no difference.
35444
35445 2009-10-28  Jim Meyering  <meyering@redhat.com>
35446
35447         fprintftime: wrap macro code argument in "do {...} while(0)"
35448         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35449         cpy macro must be a statement that can be followed by a semicolon.
35450         Now that the else clause contains a comment and is hence longer
35451         than one line, I require curly braces.  That in turn requires
35452         that we wrap this code block in the standard do...while(0).
35453
35454         fprintftime: remove stray semicolon from previous change
35455         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35456
35457         fprintftime: avoid a warning about ignored fwrite return value
35458         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35459         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35460         that is unsafe.
35461         * modules/fprintftime (Depends-on): Add ignore-value.
35462
35463         exclude: avoid an unwarranted warning
35464         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35465
35466 2009-10-27  Eric Blake  <ebb9@byu.net>
35467
35468         fseek: avoid compilation failure when fflush is replaced
35469         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35470         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35471         module is in use.
35472         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35473         module is not in use; since REPLACE_FSEEK worked otherwise.
35474         (GNULIB_FTELLO): Likewise for ftell.
35475         Reported by Ian Beckwith and others.
35476
35477 2009-10-27  Bruno Haible  <bruno@clisp.org>
35478
35479         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35480         Reported by Jim Meyering.
35481
35482 2009-10-27  Jim Meyering  <jim@meyering.net>
35483             Bruno Haible  <bruno@clisp.org>
35484
35485         Avoid warning despite dropping the return value of fwrite.
35486         * lib/unicodeio.c: Include ignore-value.h.
35487         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35488         * modules/unicodeio (Depends-on): Add ignore-value.
35489
35490 2009-10-26  Eric Blake  <ebb9@byu.net>
35491
35492         areadlinkat: fix fallback path
35493         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35494         pointer and zero.
35495
35496 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35497
35498         Use a better IO block size for modern systems
35499         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35500         * lib/md2.c: Likewise.
35501         * lib/md4.c: Likewise.
35502         * lib/md5.c: Likewise.
35503         * lib/sha1.c: Likewise.
35504         * lib/sha256.c: Likewise.
35505         * lib/sha512.c: Likewise.
35506
35507 2009-10-22  Eric Blake  <ebb9@byu.net>
35508
35509         tests: avoid several compiler warnings
35510         * tests/test-getcwd.c (main): Avoid buffer underflow.
35511         * tests/test-getdate.c (main): String literals are not safe with
35512         putenv, so use setenv.  Declare unused argument.
35513         * modules/getdate-tests (Depends-on): Add setenv.
35514         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35515         problems with string literals in char *.
35516         * tests/test-hash.c (main): Avoid shadowing declaration.
35517         (insert_new): Treat string literals as char const *.
35518         * tests/test-getopt.h (test_getopt): Likewise.
35519         (getopt_loop): Alter types to minimize casting elsewhere.
35520         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35521         (test_getopt_long_posix): Likewise.
35522         (do_getopt_long): Add wrapper to minimize casting.
35523         * tests/test-atexit.c (clear_temp_file): Use void.
35524         * tests/test-areadlink-with-size.c (main): Declare unused
35525         arguments.
35526         * tests/test-areadlink.c (main): Likewise.
35527         * tests/test-areadlinkat-with-size.c (main): Likewise.
35528         * tests/test-areadlinkat.c (main): Likewise.
35529         * tests/test-canonicalize-lgpl.c (main): Likewise.
35530         * tests/test-canonicalize.c (main): Likewise.
35531         * tests/test-dirent-safer.c (main): Likewise.
35532         * tests/test-dirname.c (main): Likewise.
35533         * tests/test-dup2.c (main): Likewise.
35534         * tests/test-fchdir.c (main): Likewise.
35535         * tests/test-fcntl-h.c (main): Likewise.
35536         * tests/test-fcntl-safer.c (main): Likewise.
35537         * tests/test-fdopendir.c (main): Likewise.
35538         * tests/test-fdutimensat.c (main): Likewise.
35539         * tests/test-fflush.c (main): Likewise.
35540         * tests/test-filenamecat.c (main): Likewise.
35541         * tests/test-filevercmp.c (main): Likewise.
35542         * tests/test-fopen-safer.c (main): Likewise.
35543         * tests/test-fopen.c (main): Likewise.
35544         * tests/test-fpending.c (main): Likewise.
35545         * tests/test-fpurge.c (main): Likewise.
35546         * tests/test-freading.c (main): Likewise.
35547         * tests/test-fstatat.c (main): Likewise.
35548         * tests/test-fsync.c (main): Likewise.
35549         * tests/test-futimens.c (main): Likewise.
35550         * tests/test-getndelim2.c (main): Likewise.
35551         * tests/test-gettimeofday.c (main): Likewise.
35552         * tests/test-getopt.c (main): Likewise.
35553         * tests/test-i-ring.c (main): Likewise.
35554         * tests/test-inttypes.c (main): Likewise.
35555         * tests/test-link.c (main): Likewise.
35556         * tests/test-lstat.c (main): Likewise.
35557         * tests/test-math.c (main): Likewise.
35558         * tests/test-md5.c (main): Likewise.
35559         * tests/test-memchr2.c (main): Likewise.
35560         * tests/test-memrchr.c (main): Likewise.
35561         * tests/test-mkdir.c (main): Likewise.
35562         * tests/test-mkdirat.c (main): Likewise.
35563         * tests/test-mkfifoat.c (main): Likewise.
35564         * tests/test-open.c (main): Likewise.
35565         * tests/test-openat-safer.c (main): Likewise.
35566         * tests/test-openat.c (main): Likewise.
35567         * tests/test-quotearg.c (main): Likewise.
35568         * tests/test-rawmemchr.c (main): Likewise.
35569         * tests/test-readlink.c (main): Likewise.
35570         * tests/test-remove.c (main): Likewise.
35571         * tests/test-rename.c (main): Likewise.
35572         * tests/test-renameat.c (main): Likewise.
35573         * tests/test-rmdir.c (main): Likewise.
35574         * tests/test-sha1.c (main): Likewise.
35575         * tests/test-signal.c (main): Likewise.
35576         * tests/test-sigaction.c (main): Likewise.
35577         * tests/test-stat.c (main): Likewise.
35578         * tests/test-stat-time.c (main): Likewise.
35579         * tests/test-stddef.c (main): Likewise.
35580         * tests/test-stdint.c (main): Likewise.
35581         * tests/test-stdio.c (main): Likewise.
35582         * tests/test-stdlib.c (main): Likewise.
35583         * tests/test-strchrnul.c (main): Likewise.
35584         * tests/test-strerror.c (main): Likewise.
35585         * tests/test-string.c (main): Likewise.
35586         * tests/test-strtod.c (main): Likewise.
35587         * tests/test-strverscmp.c (main): Likewise.
35588         * tests/test-symlink.c (main): Likewise.
35589         * tests/test-symlinkat.c (main): Likewise.
35590         * tests/test-sys_stat.c (main): Likewise.
35591         * tests/test-sys_time.c (main): Likewise.
35592         * tests/test-time.c (main): Likewise.
35593         * tests/test-unistd.c (main): Likewise.
35594         * tests/test-unlink.c (main): Likewise.
35595         * tests/test-unlinkat.c (main): Likewise.
35596         * tests/test-utimens.c (main): Likewise.
35597         * tests/test-utimensat.c (main): Likewise.
35598         * tests/test-version-etc.c (main): Likewise.
35599         * tests/test-wchar.c (main): Likewise.
35600         * tests/test-wctype.c (main): Likewise.
35601         * tests/test-xprintf-posix.c (main): Likewise.
35602         * tests/test-posixtm.c (main): Likewise.
35603         (STREQ): Delete unused macro.
35604         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35605         shadowed variables.
35606         * tests/test-memchr.c (main): Likewise.
35607
35608 2009-10-21  Eric Blake  <ebb9@byu.net>
35609
35610         areadlinkat: avoid failure on older glibc
35611         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35612         rather than mis-comparing 0 against FUNC_RESULT of char*.
35613
35614 2009-10-21  Bruno Haible  <bruno@clisp.org>
35615
35616         * modules/stpncpy (License): Relicense under LGPLv2+.
35617         Reported by David Lutterkort <lutter@redhat.com>.
35618
35619 2009-10-20  Eric Blake  <ebb9@byu.net>
35620
35621         utimensat: work around Solaris 9 bug
35622         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35623         has trailing slash bugs.
35624         * tests/test-lutimens.h (test_lutimens): Enhance test.
35625         * tests/test-utimens.h (test_utimens): Likewise.
35626         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35627         * doc/posix-functions/utimes.texi (utimes): Likewise.
35628         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35629         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35630         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35631         * doc/posix-functions/futimens.texi (futimens): Likewise.
35632
35633         fdutimensat: new module
35634         * modules/fdutimensat: New file.
35635         * lib/fdutimensat.c (fdutimensat): Likewise.
35636         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35637         * MODULES.html.sh (File system functions): Mention module.
35638         * modules/fdutimensat-tests: New test.
35639         * tests/test-fdutimensat.c: Likewise.
35640
35641         doc: regenerate INSTALL
35642         * doc/INSTALL: Reflect recent autoconf update.
35643         * doc/INSTALL.ISO: Likewise.
35644         * doc/INSTALL.UTF-8: Likewise.
35645
35646 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35647
35648         acl: warn if ACL support is not detected
35649         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35650
35651 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35652
35653         * lib/nproc.h: Add extern "C" block for C++.
35654
35655 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35656             Bruno Haible  <bruno@clisp.org>
35657
35658         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35659         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35660         * doc/posix-functions/isalpha.texi: Likewise.
35661         * doc/posix-functions/isblank.texi: Likewise.
35662         * doc/posix-functions/iscntrl.texi: Likewise.
35663         * doc/posix-functions/isdigit.texi: Likewise.
35664         * doc/posix-functions/isgraph.texi: Likewise.
35665         * doc/posix-functions/islower.texi: Likewise.
35666         * doc/posix-functions/isprint.texi: Likewise.
35667         * doc/posix-functions/ispunct.texi: Likewise.
35668         * doc/posix-functions/isspace.texi: Likewise.
35669         * doc/posix-functions/isupper.texi: Likewise.
35670         * doc/posix-functions/isxdigit.texi: Likewise.
35671
35672 2009-10-18  Bruno Haible  <bruno@clisp.org>
35673
35674         Tests for module 'isblank'.
35675         * modules/isblank-tests: New file.
35676         * tests/test-isblank.c: New file.
35677
35678         New module 'isblank'.
35679         * lib/isblank.c: New file.
35680         * m4/isblank.m4: New file.
35681         * modules/isblank: New file.
35682         * doc/posix-functions/isblank.texi: Mention the new module.
35683
35684 2009-10-18  Bruno Haible  <bruno@clisp.org>
35685
35686         New module 'ctype'.
35687         * lib/ctype.in.h: New file.
35688         * m4/ctype.m4: New file.
35689         * modules/ctype: New file.
35690         * doc/posix-headers/ctype.texi: Mention the new module.
35691
35692 2009-10-18  Jim Meyering  <meyering@redhat.com>
35693
35694         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35695         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35696         right after its initialization, rather than farther down.
35697         Keeping these in close proximity makes it easier to ensure
35698         that each such variable is initialized.  E.g.,
35699
35700             LIB_CLOCK_GETTIME=
35701             AC_SUBST([LIB_CLOCK_GETTIME])
35702
35703         This change also increments these serial numbers.
35704         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35705         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35706         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35707
35708 2009-10-18  Bruno Haible  <bruno@clisp.org>
35709
35710         Don't let environment variables perturb build.
35711         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35712         (gl_PREREQ_GETHRXTIME): ... not here.
35713
35714 2009-10-18  Bruno Haible  <bruno@clisp.org>
35715
35716         Avoid symlink attack in localcharset module.
35717         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35718         (O_NOFOLLOW): Define fallback.
35719         (get_charset_aliases): Don't open the file if it is a symbolic link.
35720         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35721         gl_FCNTL_H.
35722         (gl_FCNTL_H): Require it.
35723         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35724         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35725         Reported by Fergal Glynn <fglynn@veracode.com>.
35726
35727 2009-10-18  Bruno Haible  <bruno@clisp.org>
35728
35729         Implement nproc for mingw.
35730         * lib/nproc.c: Include <windows.h>
35731         (num_processors): On native Windows platforms, try GetSystemInfo.
35732
35733 2009-10-18  Bruno Haible  <bruno@clisp.org>
35734
35735         Implement nproc for IRIX.
35736         * lib/nproc.c: Include <sys/sysmp.h>.
35737         (num_processors): On IRIX systems, try sysmp.
35738         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35739
35740 2009-10-18  Bruno Haible  <bruno@clisp.org>
35741
35742         Implement nproc for HP-UX.
35743         * lib/nproc.c: Include <sys/pstat.h>
35744         (num_processors): On HP-UX systems, try pstat_getdynamic.
35745         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35746         pstat_getdynamic.
35747
35748 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35749             Bruno Haible  <bruno@clisp.org>
35750
35751         Implement nproc for NetBSD, OpenBSD.
35752         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35753         (ARRAY_SIZE): New macro.
35754         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35755         * m4/nproc.m4: New file.
35756         * modules/nproc (Files): Add m4/nproc.m4.
35757         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35758         (Makefile.am): Instead, augment lib_SOURCES.
35759
35760 2009-10-18  Bruno Haible  <bruno@clisp.org>
35761
35762         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35763         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35764         sys/param.h.
35765
35766 2009-10-16  Eric Blake  <ebb9@byu.net>
35767
35768         utimensat: new module
35769         * modules/utimensat: New file.
35770         * lib/utimensat.c (utimensat): Likewise.
35771         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35772         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35773         so we can work around Linux bugs.
35774         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35775         * modules/sys_stat (Makefile.am): Substitute them.
35776         * lib/sys_stat.in.h (utimensat): Declare it.
35777         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35778         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35779         * modules/utimensat-tests: New test.
35780         * tests/test-utimensat.c: Likewise.
35781
35782         utimens: let lutimens work on non-symlinks
35783         * lib/utimens.c (lutimens): Fall back to utimens rather than
35784         failing with ENOSYS, when file is not a symlink.
35785         (utimens): Reduce redirection.
35786         * tests/test-lutimens.h (test_lutimens): Update test to cover
35787         non-symlinks.
35788         * tests/test-utimens.h (test_utimens): Update test to cover
35789         symlinks.
35790         * tests/test-utimens.c (main): Update caller.
35791
35792         utimens: cache whether utimensat syscall works
35793         * lib/utimens.c (utimensat_works_really): New cache variable.
35794         (fdutimens, lutimens): Use it to avoid failing syscall.
35795
35796         test-stat-time, test-utimens: improve portability
35797         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35798         ext4 on alpha, and for cygwin.
35799         * tests/test-utimens-common.h: New file.
35800         (nap): Factor delays into single function.
35801         * tests/test-lutimens.h (test_lutimens): Use new header.
35802         * tests/test-futimens.h (test_futimens): Likewise.
35803         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35804         timestamps to occur from same machine, as was done previously for
35805         test_utimens.
35806         * modules/utimens-tests (Files): Ship new file.
35807         * modules/futimens-tests (Files): Likewise.
35808         Reported in part by Jim Meyering.
35809
35810         sys_stat: sort replacement declarations
35811         * lib/sys_stat.in.h: Sort declarations.
35812         * lib/futimens.c (futimens): Fix typo.
35813
35814 2009-10-15  Jim Meyering  <meyering@redhat.com>
35815
35816         don't let environment settings perturb build
35817         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35818         could cause a configure-time and/or build-time malfunction.
35819         Typically, a configure-time function-in-library test is performed
35820         via code like this:
35821
35822           LIB_VAR=
35823           AC_SUBST([LIB_VAR])
35824           prefix_saved_LIBS=$LIBS
35825             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35826                        [test "$ac_cv_search_FUNC" = "none required" ||
35827                         LIB_VAR=$ac_cv_search_FUNC])
35828           LIBS=$prefix_saved_LIBS
35829
35830         However, in each of the files affected by this change, the LIB_VAR=
35831         initialization was omitted.  Thus, when set in the environment, its
35832         value would propagate into generated Makefiles when FUNC is not found
35833         in LIB_NAME.
35834         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35835         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35837
35838 2009-10-14  Eric Blake  <ebb9@byu.net>
35839
35840         fchdir: avoid infinite recursion in mingw
35841         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35842         recursing.
35843
35844         test-stat-time: port to mingw
35845         * tests/test-stat-time.c (force_unlink): Return a value.
35846         (test_ctime) [W32]: Fix compilation error.
35847         (nap): Don't call usleep with too large an argument.  Use
35848         force_unlink.
35849         * doc/pastposix-functions/usleep.texi (usleep): Document the
35850         portability issue.
35851
35852 2009-10-13  Jim Meyering  <meyering@redhat.com>
35853
35854         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35855         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35856         * modules/pipe-filter-ii: Likewise.
35857         * modules/sys_socket-tests: Likewise.
35858         * modules/tsearch-tests: Likewise.
35859         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35860         (check): Depend on it.
35861
35862 2009-10-12  Eric Blake  <ebb9@byu.net>
35863
35864         utimens-tests: port to NFS file systems
35865         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35866         comparisons to avoid spurious failures from timestamp drift
35867         between NFS machines.
35868
35869 2009-10-12  Eric Blake  <ebb9@byu.net>
35870
35871         stat-time-tests: minor cleanups
35872         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35873         * tests/test-stat-time.c (nap): Separate assignment from call.
35874         Suggested by Paolo Bonzini and Bruno Haible.
35875
35876         sys_stat: guarantee struct timespec
35877         * lib/sys_stat.in.h (includes): Always include <time.h>
35878         * modules/sys_stat (Depends-on): Add time.
35879         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35880         mode_t permission values.
35881         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35882         get at subsecond timestamps.
35883
35884 2009-10-10  Eric Blake  <ebb9@byu.net>
35885
35886         futimens: new module
35887         * modules/futimens: New file.
35888         * lib/futimens.c (futimens): Likewise.
35889         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35890         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35891         we can work around Linux bugs.
35892         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35893         * modules/sys_stat (Makefile.am): Substitute them.
35894         * lib/sys_stat.in.h (futimens): Declare it.
35895         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35896         * doc/posix-functions/futimens.texi (futimens): Likewise.
35897         * modules/futimens-tests: New test.
35898         * tests/test-futimens.c: Likewise.
35899
35900         utimens: introduce fdutimens
35901         * lib/utimens.h (fdutimens): New prototype.
35902         * lib/utimens.c (gl_futimens): Move guts...
35903         (fdutimens): ...to new interface.
35904         * tests/test-utimens.c (do_fdutimens): Use it.
35905
35906         utimens: add UTIME_NOW and UTIME_OMIT support
35907         * lib/utimens.c (validate_timespec, update_timespec): New helper
35908         functions.
35909         (gl_futimens, lutimens): Use them.
35910         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35911         stdbool, sys_stat.
35912         (Link): Mention resulting library dependency.
35913         * modules/utimecmp (Link): Likewise.
35914         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35915         (Makefile.am): Pick up library dependency.
35916         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35917         definition.
35918         * tests/test-sys_stat.c: Test the definitions.
35919         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35920         * NEWS: Document library dependency.
35921
35922         utimecmp: support symlink timestamps
35923         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35924         hashing when possible.  Use pathconf when available.
35925         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35926         * modules/utimecmp (Depends-on): Add lstat.
35927
35928         utimens: add lutimens interface
35929         * lib/utimens.c (lutimens): New function.
35930         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35931         * lib/utimens.h (lutimens): Declare new interface.
35932         * tests/test-utimens.c (main): Enhance test.
35933         * tests/test-lutimens.h (test_lutimens): New file.
35934         * modules/utimens-tests (Files): Distribute it.
35935         (Depends-on): Add symlink.
35936         (configure.ac): Check for usleep.
35937
35938         utimens: validate futimens usage
35939         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35940         fewer syscalls on failure later on.  Avoid compiler warning on
35941         mingw.
35942         * modules/utimens (Depends-on): Add dup2.
35943
35944         utimens: add test
35945         * modules/utimens-tests: New test.
35946         * tests/test-utimens.h: New file.
35947         * tests/test-futimens.h: Likewise.
35948         * tests/test-utimens.c: Likewise.
35949
35950         doc: mention timestamp portability issues
35951         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35952         instead.
35953         * doc/posix-functions/utime.texi (utime): Likewise.
35954         * doc/posix-functions/utimes.texi (utimes): Likewise.
35955         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35956         instead.
35957         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35958         module.
35959         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35960         Mention weakness with symlink timestamps.
35961         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35962         to utimensat/futimens instead.
35963         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35964
35965         test-dup2: enhance test
35966         * tests/test-dup2.c (main): Also check AT_FDCWD.
35967
35968         test-stat-time: avoid more spurious failures
35969         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35970         xfs; and avoid race if the two timestamps cross quantization edge.
35971
35972         relocatable: prefer 'file system' over 'filesystem'
35973         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35974         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35975         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35976         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35977         * lib/relocatable.c (compute_curr_prefix): Likewise.
35978
35979 2009-10-10  Jim Meyering  <meyering@redhat.com>
35980
35981         stat-time-tests: check for the usleep function
35982         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35983
35984 2009-10-10  Bruno Haible  <bruno@clisp.org>
35985
35986         * modules/xnanosleep: Put the Link section after the Include section.
35987
35988 2009-10-09  Eric Blake  <ebb9@byu.net>
35989
35990         dup2: work around FreeBSD 6.1 bug
35991         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35992         * doc/posix-functions/dup2.texi (dup2): Document it.
35993         Reported by Nelson H. F. Beebe and Jim Meyering.
35994
35995         test-stat-time: port to buggy NFS clients
35996         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35997         (test_ctime): Also skip test if mtime and ctime are skewed.
35998
35999         maint: prefer 'file system' over 'filesystem'
36000         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36001         * doc/posix-functions/lstat.texi (lstat): Likewise.
36002         * lib/file-has-acl.c (file_has_acl): Likewise.
36003         * lib/fwriteerror.c [TEST]: Likewise.
36004         * tests/test-areadlink.h (test_areadlink): Likewise.
36005         * tests/test-areadlinkat-with-size.c (main): Likewise.
36006         * tests/test-areadlinkat.c (main): Likewise.
36007         * tests/test-canonicalize-lgpl.c (main): Likewise.
36008         * tests/test-canonicalize.c (main): Likewise.
36009         * tests/test-fstatat.c (main): Likewise.
36010         * tests/test-linkat.c (main): Likewise.
36011         * tests/test-lstat.h (test_lstat_func): Likewise.
36012         * tests/test-mkdir.h (test_mkdir): Likewise.
36013         * tests/test-readlink.h (test_readlink): Likewise.
36014         * tests/test-remove.c (main): Likewise.
36015         * tests/test-rename.h (test_rename): Likewise.
36016         * tests/test-renameat.c (main): Likewise.
36017         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36018         * tests/test-symlink.h (test_symlink): Likewise.
36019         * tests/test-symlinkat.c (main): Likewise.
36020         * tests/test-unlink.h (test_unlink_func): Likewise.
36021         * tests/test-unlinkat.c (main): Likewise.
36022
36023         maint: make realtime library usage explicit
36024         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36025         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36026         * modules/settime (Link): Likewise.
36027         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36028
36029         test-stat-time: speed up execution
36030         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36031         warning on mingw.
36032         (nap): New helper function.
36033         (prepare_test): Use it to reduce sleep time.
36034         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36035         execution.
36036         * modules/stat-time-tests (configure.ac): Check for usleep.
36037
36038 2009-10-09  Jim Meyering  <meyering@redhat.com>
36039
36040         selinux-h: always use getfilecon wrappers
36041         * lib/getfilecon.c: New file.
36042         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36043         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36044         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36045         (fgetfilecon): Provide a stub.
36046         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36047         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36048         file unconditionally.
36049         When <selinux/selinux.h> is found, arrange to use wrappers.
36050         * modules/selinux-h (Files): Add getfilecon.c.
36051         (Makefile.am): Substitute include-next-related bits
36052         into the now-always-generated selinux/selinux.h file.
36053         * doc/glibc-functions/lgetfilecon.texi: New file.
36054         * doc/glibc-functions/fgetfilecon.texi: New file.
36055         * doc/glibc-functions/getfilecon.texi: New file.
36056         * doc/glibc-functions/getfilecon-desc.texi: New file.
36057         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36058         which to pull in the new files.
36059         * MODULES.html.sh (Misc): Add selinux-h.
36060
36061 2009-10-08  Jim Meyering  <meyering@redhat.com>
36062
36063         unistd: fix comment typo
36064         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36065
36066 2009-10-08  Eric Blake  <ebb9@byu.net>
36067
36068         areadlink: use SIZE_MAX consistently
36069         * modules/areadlink (Depends-on): Add stdint.
36070         * modules/areadlink-with-size (Depends-on): Likewise.
36071         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36072         gives NULL; drop sys/types, since unistd gives size_t; and add
36073         stdint for SIZE_MAX.
36074         (SIZE_MAX): Rely on headers.
36075         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36076         and add stdint.
36077         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36078         (SIZE_MAX): Likewise.
36079         (INITIAL_BUF_SIZE): Turn into enum.
36080         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36081
36082 2009-10-08  Jim Meyering  <meyering@redhat.com>
36083
36084         areadlinkat: avoid compilation failure
36085         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36086         Fix typo in comment.
36087
36088 2009-10-07  Eric Blake  <ebb9@byu.net>
36089
36090         areadlinkat-with-size: new module
36091         * modules/areadlinkat-with-size: New module.
36092         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36093         * lib/areadlink.h (areadlinkat): Declare it.
36094         * MODULES.html.sh (File system functions): Mention it.
36095         * modules/areadlinkat-with-size-tests: New test.
36096         * tests/test-areadlinkat-with-size.c: New file.
36097
36098         xreadlinkat: new module
36099         * modules/xreadlinkat: New module.
36100         * lib/xreadlinkat.c (xreadlinkat): New file.
36101         * lib/xreadlink.h (xreadlinkat): Declare it.
36102         * MODULES.html.sh (File system functions): Mention it.
36103
36104         areadlinkat: new module
36105         * lib/at-func.c (FUNC_FAIL): New define.
36106         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36107         * modules/areadlinkat: New module.
36108         * lib/linkat.c (areadlinkat): Move...
36109         * lib/areadlinkat.c (areadlinkat): ...to new file.
36110         * lib/areadlink.h (areadlinkat): Declare it.
36111         * modules/linkat (Depends-on): Add areadlinkat.
36112         * MODULES.html.sh (File system functions): Mention it.
36113         * modules/areadlinkat-tests: New test.
36114         * tests/test-areadlinkat.c: New file.
36115
36116         areadlink, areadlink-with-size: add tests
36117         * modules/areadlink-tests: New test.
36118         * modules/areadlink-with-size-tests: Likewise.
36119         * tests/test-areadlink.h: New file.
36120         * tests/test-areadlink.c: Likewise.
36121         * tests/test-areadlink-with-size.c: Likewise.
36122
36123         maint: minor cleanups
36124         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36125         _UNUSED_PARAMETER_ instead.
36126         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36127         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36128         * modules/linkat-tests (Files): Distribute test-link.h.
36129
36130         openat, utimens: whitespace cleanup
36131         * lib/openat.c: Prefer space throughout, rather than mix of 8
36132         spaces vs. tabs.
36133         * lib/at-func.c: Likewise.
36134         * lib/utimens.c: Likewise.
36135
36136         openat: avoid using wrong fd
36137         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36138         working directory chooses same fd.
36139         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36140
36141         mkdir, mkdirat: fix cygwin 1.5.x bug
36142         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36143         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36144         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36145         bug.
36146         (gl_PREREQ_MKDIR): Delete unused macro.
36147         * modules/mkdir (Files): Track file rename.
36148         (configure.ac): Update macro name.
36149         * modules/openat (Depends-on): Add mkdir.
36150         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36151
36152         mkdir, mkdirat: add tests
36153         * modules/mkdir-tests: New test.
36154         * tests/test-mkdir.h: New file.
36155         * tests/test-mkdir.c: Likewise.
36156         * tests/test-mkdirat.c: Likewise.
36157         * modules/openat-tests (Files): Add new files.
36158         (Makefile.am): Run new test.
36159
36160 2009-10-06  Eric Blake  <ebb9@byu.net>
36161
36162         doc: tweak *at function documentation
36163         * doc/posix-functions/faccessat.texi (faccessat): Mention
36164         known issue with replacement.
36165         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36166         * doc/posix-functions/linkat.texi (linkat): Likewise.
36167         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36168         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36169         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36170         * doc/posix-functions/renameat.texi (renameat): Likewise.
36171         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36172
36173         openat: fix GNU/Hurd bug in unlinkat
36174         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36175         broken.
36176         * doc/posix-functions/unlink.texi (unlink): Document this.
36177         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36178
36179         fdopendir: fix GNU/Hurd bug
36180         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36181         allowing non-directory fds.
36182         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36183         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36184         * modules/dirent (Makefile.am): Substitute it.
36185         * lib/dirent.in.h (fdopendir): Declare replacement.
36186         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36187         * tests/test-fdopendir.c (main): Test something other than
36188         /dev/null, since on Hurd that behaves like a directory.
36189
36190         test-symlink: port to GNU/Hurd
36191         * tests/test-symlink.h (test_symlink): Relax expected errno.
36192
36193         doc: tweak more cygwin information
36194         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36195         now compatible with glibc.
36196         * doc/posix-functions/getopt.texi (getopt): Likewise.
36197
36198         getopt-gnu: add another test
36199         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36200         guarantee behavior relied on by m4.
36201         * tests/test-getopt.c (main): Use it.
36202         * modules/getopt-posix-tests (Depends-on): Add setenv.
36203         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36204
36205         getopt: fix compilation on darwin
36206         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36207         include.
36208         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36209         Reported by Ludovic Courtès.
36210
36211 2009-10-06  Bruno Haible  <bruno@clisp.org>
36212
36213         * modules/size_max (Description): Discourage its use.
36214         Reported by Simon Josefsson.
36215
36216 2009-10-06  Jim Meyering  <meyering@redhat.com>
36217
36218         linkat: avoid compilation failure
36219         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36220
36221 2009-10-05  Eric Blake  <ebb9@byu.net>
36222
36223         linkat: support Linux 2.6.17
36224         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36225         linkat on Linux, but allow cache variable override.
36226         * lib/linkat.c (rpl_linkat): Define override.
36227         * modules/linkat (Depends-on): Add symlinkat.
36228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36229         * modules/unistd (Makefile.am): Substitute it.
36230         * lib/unistd.in.h (linkat): Declare replacement.
36231         Reported by Pádraig Brady.
36232
36233         quotearg: port test to systems with C.UTF-8 locale
36234         * tests/test-quotearg.c (struct result_strings): Add another
36235         member, differentiating between C.ASCII and C.UTF-8 handling.
36236         (compare_strings): Add parameter.
36237         (main): Adjust all callers.
36238
36239         getopt: avoid clash with FreeBSD _getopt_internal
36240         * lib/getopt.in.h (_getopt_internal): Override the name.
36241         * lib/getopt_int.h (includes): Pick up any overrides.
36242         Reported by Reuben Thomas.
36243
36244         hash: allow C89 compilation
36245         * lib/hash.c (check_tuning): Move declaration before statement.
36246         Reported by Reuben Thomas.
36247
36248 2009-10-05  Karl Berry  <karl@gnu.org>
36249
36250         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
36251
36252 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
36253             Bruno Haible  <bruno@clisp.org>
36254
36255         * lib/uname.c (uname): Use a table-driven algorithm to compute
36256         Windows NT versions.
36257
36258 2009-10-04  Bruno Haible  <bruno@clisp.org>
36259
36260         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
36261         program_invocation_short_name.
36262         * modules/progname (configure.ac): Test for presence of
36263         program_invocation_short_name.
36264         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36265
36266 2009-10-04  Bruno Haible  <bruno@clisp.org>
36267
36268         * lib/progname.c (set_program_name): Fix comment.
36269         Reported by Jim Meyering.
36270
36271 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36272             Bruno Haible  <bruno@clisp.org>
36273
36274         * lib/uname.c: Include <string.h>.
36275         (uname): Do only one call to GetVersionEx in the common case.
36276
36277 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36278             Bruno Haible  <bruno@clisp.org>
36279
36280         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
36281         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
36282         (uname): Add support for Windows CE and various non-x86 CPU types.
36283
36284 2009-10-03  Bruno Haible  <bruno@clisp.org>
36285
36286         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
36287         invocation to tests/configure.ac.
36288         Reported by Ian Beckwith <ianb@erislabs.net>.
36289
36290 2009-10-02  Eric Blake  <ebb9@byu.net>
36291
36292         fchdir: avoid compiler warning
36293         * lib/fchdir.c (canonicalize_file_name)
36294         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
36295
36296         test-open: support mingw errno values
36297         * tests/test-open.h (test_open): Relax test.
36298         * tests/test-fopen.h (test_fopen): Likewise.
36299         * tests/test-openat-safer.c (main): Likewise.
36300
36301         open: fix opening directory on mingw
36302         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
36303
36304         test-open: on GNU/Hurd, /dev/null is a directory
36305         * tests/test-fopen.h (main): Rename...
36306         (test_fopen): ...to this.  Use a guaranteed non-directory when
36307         confirming open behavior on trailing slash.
36308         * tests/test-openat-safer.c (main): Likewise.
36309         * tests/test-open.h (main): Likewise....
36310         (test_open): ...to this.
36311         * tests/test-fopen.c (main): Adjust caller.
36312         * tests/test-fopen-safer.c (main): Likewise.
36313         * tests/test-open.c (main): Likewise.
36314         * tests/test-fcntl-safer.c (main): Likewise.
36315         Reported by Samuel Thibault.
36316
36317         rename, fchdir: don't ignore chdir failure
36318         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
36319         * lib/rename.c (rpl_rename) [W32]: Likewise.
36320         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
36321         an empty destination directory if source cannot be renamed,
36322         although there is still possibility for failure.
36323         * doc/posix-functions/rename.texi (rename): Document the race.
36324         Reported by Jim Meyering.
36325
36326         maint: cleanup whitespace in recent commits
36327         * lib/rename.c (rpl_rename): Remove tabs.
36328         * tests/test-link.h (test_link): Likewise.
36329         * lib/fchdir.c (get_name): Likewise.
36330         Reported by Jim Meyering.
36331
36332 2009-10-02  Ben Pfaff  <blp@gnu.org>
36333
36334         relocatable-prog-wrapper: Add missing dependency on
36335         double-slash-root.
36336         * modules/relocatable-prog-wrapper: Add dependency.
36337         Reported by Ian Beckwith <ianb@erislabs.net>.
36338
36339 2009-10-02  Eric Blake  <ebb9@byu.net>
36340
36341         renameat: fix Solaris bugs
36342         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
36343         needed fixing.
36344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
36345         * modules/stdio (Makefile.am): Substitute it.
36346         * lib/stdio.in.h (renameat): Declare replacement.
36347         * lib/renameat.c (rpl_renameat): Implement fix.
36348
36349         renameat: new module
36350         * modules/renameat: New file.
36351         * lib/renameat.c (renameat): Likewise.
36352         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
36353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36354         * modules/stdio (Makefile.am): Substitute them.
36355         * lib/stdio.in.h (renameat): Declare it.
36356         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36357         * doc/posix-functions/renameat.texi (renameat): Likewise.
36358         * modules/renameat-tests: New test.
36359         * tests/test-renameat.c: Likewise.
36360
36361         rename: fix mingw bugs
36362         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
36363         directory overwrite bugs.
36364
36365         rename: fix another cygwin 1.5 bug
36366         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36367         checks.
36368         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36369         unnecessary cygwin workarounds.  Also work around bug with moving
36370         full directory onto an empty one.
36371         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36372
36373         rename-dest-slash: merge into rename module
36374         * modules/rename-dest-slash (Status): Mark obsolete.
36375         (Depends-on): Add rename.
36376         (Files): Let rename do it all.
36377         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36378         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36379         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36380         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36381         * lib/rename.c (rpl_rename): Update comments.
36382
36383         rename: fix cygwin 1.5.x bugs
36384         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
36385         * lib/rename.c (rpl_rename): Work around them.
36386         * modules/rename (Depends-on): Add same-inode.
36387
36388         rename: fix Solaris 10 bug
36389         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36390         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36391         was the only bug.
36392
36393         rename: fix Solaris 9 bug
36394         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36395         on non-directory.  Avoid calling exit.
36396         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36397         strdup.
36398         * modules/rename-tests (Depends-on): Drop lstat.
36399         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36400         (gl_PREREQ_RENAME): Delete unused macro.
36401
36402         rename-dest-slash: fix NetBSD bug
36403         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36404         links.
36405         * modules/rename-dest-slash (Depends-on): Add same-inode.
36406
36407         rename-tests: new test, exposes several platform bugs
36408         * modules/rename-tests: New file.
36409         * tests/test-rename.h: Likewise.
36410         * tests/test-rename.c: Likewise.
36411         * doc/posix-functions/rename.texi (rename): Improve documentation,
36412         including bugs that will eventually be fixed in gnulib.
36413
36414 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36415
36416         * lib/uname.c: Include <stdlib.h>
36417         (uname): Assume version info is available.
36418
36419 2009-10-02  Jim Meyering  <meyering@redhat.com>
36420
36421         gnu-web-doc-update: correct --help output
36422         * build-aux/gnu-web-doc-update: Make --help output relevant.
36423
36424         gnu-web-doc-update: add standard options
36425         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36426
36427         gnu-web-doc-update: New module.
36428         Use this script to automatically update the on-line web documentation
36429         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36430         * modules/gnu-web-doc-update: New file, from coreutils.
36431         * build-aux/gnu-web-doc-update: New script.
36432
36433 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36434
36435         link: LoadLibrary is not needed.
36436         * lib/link.c: Use GetModuleHandle.
36437
36438 2009-10-01  Eric Blake  <ebb9@byu.net>
36439
36440         getopt: bump serial number
36441         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36442         change.
36443
36444         tests: tighten link, rmdir, and remove tests
36445         * tests/test-link.h (includes): No need to use <config.h> here.
36446         Clean up if directory hard link was created, otherwise test for
36447         trailing '.'.
36448         * tests/test-linkat.c (main): Simplify.
36449         * tests/test-remove.c (main): Enhance test for trailing '.'.
36450         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36451
36452 2009-10-01  Jim Meyering  <meyering@redhat.com>
36453
36454         maint.mk: requiring "make major" was annoying, for a "minor" release.
36455         What is intended is "stable", to contrast with alpha and beta,
36456         so require "make stable", not "make major".
36457         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36458         (get_tool_versions): Likewise.
36459         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36460
36461 2009-09-30  Ben Pfaff  <blp@gnu.org>
36462
36463         Fix broken build of replacement for Windows tmpfile().
36464         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36465         flags argument added along with the 'mkostemp' module.
36466
36467 2009-09-28  Bruno Haible  <bruno@clisp.org>
36468
36469         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36470         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36471         to 'remove_elt'.
36472         (gl_list_remove): Update.
36473         * lib/gl_list.c (gl_list_remove): Update.
36474         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36475         to 'remove_elt'.
36476         (gl_oset_remove): Update.
36477         * lib/gl_list.c (gl_oset_remove): Update.
36478         Reported by Eric Blake.
36479
36480 2009-09-28  Eric Blake  <ebb9@byu.net>
36481
36482         doc: mention yet more cygwin 1.7 status
36483         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36484         cygwin.
36485         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36486         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36487
36488         argp: fix test failure
36489         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36490         that are not upper-case.  Pass correct range to tolower.
36491
36492 2009-09-27  Jim Meyering  <meyering@redhat.com>
36493
36494         test-yesno: work around sparc-dash here-document infelicity
36495         Without this change, the literal \177 byte in a here document
36496         would make dash 0.5.5.1-3 access uninitialized memory.
36497         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36498         Instead, use a marker, "@", and filter through tr to create the desired
36499         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36500
36501 2009-09-27  Bruno Haible  <bruno@clisp.org>
36502
36503         Disable untested support for new flavours of ACLs on AIX.
36504         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36505         progress.
36506         * lib/set-mode-acl.c (qset_acl): Likewise.
36507
36508 2008-12-07  Bruno Haible  <bruno@clisp.org>
36509
36510         Add support for new flavours of ACLs on AIX. (Untested.)
36511         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36512         (file_has_acl): Add support for newer AIX.
36513         * lib/set-mode-acl.c (qset_acl): Likewise.
36514         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36515         Rainer Tammer <tammer@tammer.net>.
36516
36517 2009-09-26  Eric Blake  <ebb9@byu.net>
36518
36519         argp: fix compilation of getopt
36520         * lib/getopt.in.h (includes): Use different guard than glibc.
36521         Reported by Sergey Poznyakoff.
36522
36523         doc: mention more cygwin 1.7 status
36524         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36525         bug.
36526         * doc/posix-functions/execl.texi (execl): Likewise.
36527         * doc/posix-functions/execle.texi (execle): Likewise.
36528         * doc/posix-functions/execlp.texi (execlp): Likewise.
36529         * doc/posix-functions/execv.texi (execv): Likewise.
36530         * doc/posix-functions/execve.texi (execve): Likewise.
36531         * doc/posix-functions/execvp.texi (execvp): Likewise.
36532         * doc/glibc-functions/canonicalize_file_name.texi
36533         (canonicalize_file_name): Cygwin 1.7 now provides this.
36534         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36535         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36536         on AT_SYMLINK_NOFOLLOW.
36537
36538 2009-09-24  Eric Blake  <ebb9@byu.net>
36539
36540         test-linkat: make test more robust
36541         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36542
36543         getopt: fix inclusion guards for cygwin
36544         * modules/getopt-posix (Depends-on): Add include-next.
36545         (Makefile.am): Substitute more items in replacement header.
36546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36547         <getopt.h>.
36548         * lib/getopt.in.h (includes): Use split inclusion guard, and
36549         prefer <getopt.h> over include <unistd.h> when one is present.
36550         (option): Also override name of 'struct option'.
36551
36552         same-inode: revert prior change; it is not yet ready
36553         * NEWS: Undo mention of this change.
36554         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36555         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36556         * lib/cycle-check.c (cycle_check): Likewise.
36557         * lib/same.c (same_name): Likewise.
36558         * lib/at-func2.c (at_func2): Likewise.
36559
36560 2009-09-23  Eric Blake  <ebb9@byu.net>
36561
36562         linkat: new module
36563         * modules/linkat: New file.
36564         * lib/at-func2.c (at_func2): Likewise.
36565         * lib/linkat.c (linkat): Likewise.
36566         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36567         * lib/openat-priv.h (at_func2): Add declaration.
36568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36569         * modules/unistd (Makefile.am): Substitute them.
36570         * lib/unistd.in.h (linkat): Declare it.
36571         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36572         * doc/posix-functions/linkat.texi (linkat): Likewise.
36573         * doc/posix-functions/link.texi (link): Tweak wording.
36574         * tests/test-link.c (main): Move guts...
36575         * tests/test-link.h (test_link): ...into new file.
36576         * modules/linkat-tests: New test.
36577         * tests/test-linkat.c: Likewise.
36578         * modules/link-tests (Files): Ship new file.
36579         (Depends-on): Add stdbool.
36580
36581         dirname: add library-safe mdir_name
36582         * lib/dirname.h (mdir_name): New prototype.
36583         * lib/dirname.c (dir_name): Move guts...
36584         (mdir_name): ...to new function that avoids xalloc_die.
36585
36586         fchdir: another mingw fix
36587         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36588         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36589         on mingw (where it has not yet been ported), and make it optional
36590         elsewhere.
36591         (_gl_register_fd): Use it.
36592
36593         same-inode: make SAME_INODE tri-state, to port to mingw
36594         * NEWS: Mention this change.
36595         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36596         st_ino always being 0.
36597         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36598         * lib/cycle-check.c (cycle_check): Likewise.
36599         * lib/same.c (same_name): Likewise.
36600
36601         lstat: avoid mingw compilation error
36602         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36603         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36604         lstat ourselves.
36605         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36606         was adequate.
36607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36608         the checks for lstat.
36609         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36610
36611         link: fix test failure on Solaris 9
36612         * lib/link.c (rpl_link): Don't assume link will catch bogus
36613         trailing slash on source.
36614
36615         test-symlinkat: enhance test
36616         * tests/test-readlink.c (main): Move guts...
36617         * tests/test-readlink.h (test_readlink): ...into new file.
36618         * tests/test-symlink.c (main): Move guts...
36619         * tests/test-symlink.h (test_symlink): ...into new file.
36620         * tests/test-symlinkat.c (main): Use new files for further
36621         coverage.
36622         (do_symlink, do_readlink): New helper functions.
36623         * modules/symlink-tests (Files): Ship new file.
36624         (Depends-on): Add stdbool.
36625         * modules/readlink-tests (Files): Ship new file.
36626         (Depends-on): Add stdbool.
36627         * modules/symlinkat-tests (Files): Use new files.
36628
36629 2009-09-23  Eric Blake  <ebb9@byu.net>
36630
36631         readlink: document portability issue with symlink length
36632         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36633         systems have bogus st_size on symlinks, and mention the
36634         areadlink-with-size module.
36635         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36636         * doc/posix-functions/readlink.texi (readlink): Mention the
36637         areadlink module, and ERANGE failure.
36638         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36639         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36640
36641         readlink: fix Solaris 9 bug with trailing slash
36642         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36643         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36644         * doc/posix-functions/readlink.texi (readlink): Document this.
36645         * modules/readlink-tests: New test.
36646         * tests/test-readlink.c: Likewise.
36647
36648         readlink: fix cygwin 1.5.x bug with return type
36649         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36650         * lib/unistd.in.h (readlink): Use ssize_t.
36651         * lib/readlink.c (readlink): Likewise.
36652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36653         * modules/unistd (Makefile.am): Substitute it.
36654         * lib/unistd.in.h (readlink): Declare replacement.
36655         * doc/posix-functions/readlink.texi (readlink): Document this.
36656
36657         symlink: use throughout gnulib
36658         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36659         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36660         symlink is not used.
36661         * modules/symlinkat (Depends-on): Add symlink.
36662         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36663         * modules/canonicalize-tests (Depends-on): Likewise.
36664         * modules/lstat-tests (Depends-on): Likewise.
36665         * modules/openat-tests (Depends-on): Likewise.
36666         * modules/remove-tests (Depends-on): Likewise.
36667         * modules/rmdir-tests (Depends-on): Likewise.
36668         * modules/unlink-tests (Depends-on): Likewise.
36669         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36670         * tests/test-canonicalize.c (symlink): Likewise.
36671         * tests/test-fstatat.c (symlink): Likewise.
36672         * tests/test-lstat.c (symlink): Likewise.
36673         * tests/test-remove.c (symlink): Likewise.
36674         * tests/test-rmdir.c (symlink): Likewise.
36675         * tests/test-unlink.c (symlink): Likewise.
36676         * tests/test-unlinkat.c (symlink): Likewise.
36677
36678         symlink: new module, for Solaris 9 bug
36679         * modules/symlink: New file.
36680         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36681         * lib/symlink.c: Likewise.
36682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36683         * modules/unistd (Makefile.am): Substitute them.
36684         * lib/unistd.in.h (symlink): Declare replacement.
36685         * MODULES.html.sh (File system functions): Mention it.
36686         * doc/posix-functions/symlink.texi (symlink): Likewise.
36687         * modules/symlink-tests: New test.
36688         * tests/test-symlink.c: Likewise.
36689
36690 2009-09-23  Bruno Haible  <bruno@clisp.org>
36691
36692         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36693         when needed.
36694         Test case: gnulib-tool --import --with-tests atexit inttypes.
36695         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36696
36697 2009-09-23  Bruno Haible  <bruno@clisp.org>
36698
36699         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36700         subcommand, not in a subshell.
36701
36702 2009-09-22  Eric Blake  <ebb9@byu.net>
36703
36704         unistd: sort replacement declarations
36705         * lib/unistd.in.h: Sort declarations.
36706
36707         open, openat: minor optimization
36708         * lib/open.c (open): If open succeeded, len is non-zero.
36709         * lib/openat.c (rpl_openat): Likewise.
36710
36711         link-follow: ensure correct result
36712         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36713         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36714         distinguish between possible failures.
36715
36716 2009-09-21  Eric Blake  <ebb9@byu.net>
36717
36718         fts: avoid compiler warning
36719         * lib/fts.c (dirent_inode_sort_may_be_useful)
36720         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36721
36722 2009-09-19  Bruno Haible  <bruno@clisp.org>
36723
36724         * lib/progreloc.c (canonicalize_file_name): New declaration.
36725
36726 2009-09-19  Eric Blake  <ebb9@byu.net>
36727
36728         link: fix quoting
36729         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36730
36731         openat: fix openat bugs on Solaris 9
36732         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36733         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36734         * modules/openat (Depends-on): Add open.
36735         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36736         * modules/fcntl-h (Makefile.am): Substitute it.
36737         * lib/fcntl.in.h (openat): Declare replacement.
36738         * doc/posix-functions/openat.texi (openat): Document this.
36739
36740         openat: move fstatat and unlinkat into correct files
36741         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36742         compiled.
36743         * lib/openat.c (fstatat, unlinkat): Move...
36744         * lib/fstatat.c (fstatat): ...into correct files.
36745         * lib/unlinkat.c (unlinkat): Likewise.
36746
36747         openat: fix unlinkat bugs on Solaris 9
36748         * lib/unlinkat.c (unlinkat): New file.
36749         * modules/openat (Depends-on): Add unlink.
36750         (Files): Distribute it.
36751         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36752         trailing slash behavior is broken.
36753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36754         * modules/unistd (Makefile.am): Substitute it.
36755         * lib/unistd.in.h (unlinkat): Declare replacement.
36756         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36757
36758         openat: fix fstatat bugs on Solaris 9
36759         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36760         stat.
36761         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36762
36763         test-unlinkat: enhance test, to expose Solaris 9 bug
36764         * tests/test-unlink.c (main): Factor guts...
36765         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36766         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36767         * tests/test-rmdir.c (main): Adjust caller.
36768         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36769         (unlinker): New helper function.
36770         (rmdirat): Enhance check.
36771         * modules/rmdir-tests (Depends-on): Add stdbool.
36772         * modules/unlink-tests (Depends-on): Likewise.
36773         (Files): Add test-unlink.h.
36774         * modules/openat-tests (Files): Likewise.
36775         (Depends-on): Add unlinkdir.
36776
36777         test-fstatat: new test, to expose Solaris 9 bugs
36778         * tests/test-stat.c (main): Factor guts...
36779         * tests/test-stat.h (test_stat_func): ...into new file.
36780         * tests/test-lstat.c (main): Factor guts...
36781         * tests/test-lstat.h (test_lstat_func): ...into new file.
36782         * tests/test-fstatat.c: New file.
36783         * modules/stat-tests (Files): Add test-stat.h.
36784         * modules/lstat-tests (Files): Add test-lstat.h.
36785         (Depends-on): Add stdbool.
36786         * modules/openat-tests (Depends-on): Add pathmax.
36787         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36788         (Makefile.am): Run new test.
36789
36790         remove: new module, for mingw and Solaris 9 bugs
36791         * modules/remove: New file.
36792         * lib/remove.c: Likewise.
36793         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36795         * modules/stdio (Makefile.am): Use them.
36796         * lib/stdio.in.h (remove): Declare replacement.
36797         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36798         * doc/posix-functions/remove.texi (remove): Likewise.
36799         * modules/remove-tests: New test.
36800         * tests/test-remove.c: Likewise.
36801
36802         unlink: new module, for Solaris 9 bug
36803         * modules/unlink: New file.
36804         * lib/unlink.c: Likewise.
36805         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36807         * modules/unistd (Makefile.am): Use them.
36808         * lib/unistd.in.h (stat): Declare replacement.
36809         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36810         * doc/posix-functions/unlink.texi (unlink): Likewise.
36811         * modules/unlink-tests: New test.
36812         * tests/test-unlink.c: Likewise.
36813
36814         lstat: fix Solaris 9 bug
36815         * lib/lstat.c (lstat): Also check for trailing slash on
36816         non-symlink, non-directories.  Use stat module to simplify logic.
36817         * doc/posix-functions/lstat.texi (lstat): Document it.
36818         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36819         (configure.ac): Check for symlink.
36820         * tests/test-lstat.c (main): Add more tests.
36821
36822         stat: add as dependency to other modules
36823         * modules/chown (Depends-on): Add stat.
36824         * modules/euidaccess (Depends-on): Likewise.
36825         * modules/fchdir (Depends-on): Likewise.
36826         * modules/isdir (Depends-on): Likewise.
36827         * modules/link (Depends-on): Likewise.
36828         * modules/lstat (Depends-on): Likewise.
36829         * modules/mkdir-p (Depends-on): Likewise.
36830         * modules/modechange (Depends-on): Likewise.
36831         * modules/open (Depends-on): Likewise.
36832         * modules/readlink (Depends-on): Likewise.
36833         * modules/same (Depends-on): Likewise.
36834
36835         stat: fix Solaris 9 bug
36836         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36837         slash.
36838         * lib/stat.c (rpl_stat): Work around it.
36839         * doc/posix-functions/stat.texi (stat): Update documentation.
36840
36841         stat: new module, for mingw bug
36842         * modules/stat: New file.
36843         * lib/stat.c: Likewise.
36844         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36845         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36846         * modules/sys_stat (Makefile.am): Use them.
36847         * lib/sys_stat.in.h (stat): Declare replacement.
36848         * lib/openat.c (fstatat): Deal with lstat and stat being function
36849         macros.
36850         * modules/openat (Depends-on): Add inline.
36851         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36852         * doc/posix-functions/stat.texi (stat): Likewise.
36853         * modules/stat-tests: New test.
36854         * tests/test-stat.c: Likewise.
36855
36856 2009-09-19  Jim Meyering  <meyering@redhat.com>
36857
36858         syntax-check: detect unnecessary inclusion of canonicalize.h
36859         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36860
36861 2009-09-19  Eric Blake  <ebb9@byu.net>
36862
36863         canonicalize-lgpl: adjust clients to use correct header
36864         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36865         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36866         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36867         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36868         * lib/progreloc.c (includes): Likewise.
36869
36870 2009-09-19  Jim Meyering  <meyering@redhat.com>
36871
36872         test-posixtm.c: correct a comment
36873         * tests/test-posixtm.c: Correct first-line comment.
36874         Spotted by Eric Blake.
36875
36876 2009-09-16  Jim Meyering  <meyering@redhat.com>
36877
36878         posixtm-tests: make T const-correct; add a test case
36879         * tests/test-posixtm.c (T): Declare const.
36880         Add a test for -(2^31+1).
36881         Remove useless can-succeed-only-in-2002 test.
36882
36883         posixtm-tests: adjust the sole failing test
36884         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36885         expected output matches what mktime now produces.  Cross-checked via
36886         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36887
36888         posixtm: move #ifdef'd tests into a new module
36889         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36890         * tests/test-posixtm.c: ... this new file.
36891         * modules/posixtm-tests: New module.
36892
36893 2009-09-19  Eric Blake  <ebb9@byu.net>
36894
36895         openat: simplify use of at-func.c
36896         * lib/at-func.c (includes): Include prerequisites here, to
36897         simplify requirements on client files.
36898         * lib/openat-priv.h: Add double-inclusion guard.
36899         * lib/faccessat.c (includes): Simplify.
36900         * lib/fchmodat.c (includes): Likewise.
36901         * lib/fchownat.c (includes): Likewise.
36902         * lib/mkdirat.c (includes): Likewise.
36903         * lib/mkfifoat.c (includes): Likewise.
36904         * lib/symlinkat.c (includes): Likewise.
36905
36906         openat: allow return of fd 0
36907         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36908         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36909         unistd-safer.
36910         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36911         <fcntl.h>; this module does not leak fds.
36912         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36913         must be allowed to return 0, leaving openat_safer to add the
36914         safety.
36915         (openat_permissive): Avoid writing to just-opened fd 2 if
36916         restoring the current directory fails.
36917         * lib/openat-die.c (openat_restore_fail): Add comment.
36918         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36919         (save_cwd): Guarantee safe fd, but without use of open_safer.
36920         * tests/test-openat.c: New test.
36921         * modules/openat-tests (Files, Makefile.am): Distribute and build
36922         new file.
36923
36924         relocatable-prog-wrapper: fix build
36925         * modules/relocatable-prog-wrapper (Files): Update name of
36926         canonicalize m4 file, broken on 2009-09-17.
36927         Reported by emad hajjar <aleppos@hotmail.com>.
36928
36929 2009-09-19  Bruno Haible  <bruno@clisp.org>
36930
36931         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36932         * lib/safe-alloc.c: Likewise.
36933         Reported by Ian Beckwith <ianb@erislabs.net>.
36934
36935 2009-09-18  Bruno Haible  <bruno@clisp.org>
36936
36937         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36938         Reported by <erobles@sensacd.com.mx>.
36939
36940 2009-09-17  Eric Blake  <ebb9@byu.net>
36941
36942         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36943         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36944         slashes when checking if last component is missing.
36945         * tests/test-canonicalize.c (main): Test this.
36946
36947         canonicalize, canonicalize-lgpl: honor // if distinct from /
36948         * modules/canonicalize (Files): Add double-slash-root.m4.
36949         * modules/canonicalize-lgpl (Files): Likewise.
36950         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36951         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36952         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36953         fallback definition.
36954         (canonicalize_filename_mode): Use it to protect //.
36955         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36956         (__realpath): Likewise.
36957         * tests/test-canonicalize.c (main): Test this.
36958         * tests/test-canonicalize-lgpl.c (main): Likewise.
36959         * modules/canonicalize-tests (Depends-on): Add same-inode.
36960         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36961
36962         canonicalize-lgpl: fix glibc bug with trailing slash
36963         * m4/canonicalize-lgpl.m4: Move contents...
36964         * m4/canonicalize.m4: ...here.
36965         (gl_CANONICALIZE_LGPL): Factor realpath check...
36966         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36967         glibc 2.3.5 bug, fixed 2005-04-27.
36968         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36969         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36970         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36971         * modules/canonicalize-lgpl (Files): Manage file rename.
36972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36973         * modules/stdlib (Makefile.am): Substitute witness.
36974         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36975         is needed.
36976         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36977         replacement is required.
36978         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36979         * doc/glibc-functions/canonicalize_file_name.texi
36980         (canonicalize_file_name): Document this.
36981         * doc/posix-functions/realpath.texi (realpath): Likewise.
36982
36983         canonicalize-lgpl: reject non-directory with trailing slash
36984         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36985         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36986         catches failures in glibc 2.3.5.
36987         * tests/test-canonicalize.c (main): Likewise.
36988
36989         canonicalize-lgpl: use native realpath if it works
36990         * lib/canonicalize-lgpl.c (realpath): Guard with
36991         FUNC_REALPATH_WORKS.
36992         * lib/stdlib.in.h (realpath): Make declaration optional based on
36993         HAVE_REALPATH.
36994         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36995         native realpath works.
36996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36997         * modules/stdlib (Makefile.am): Substitute witness.
36998
36999         canonicalize, canonicalize-lgpl: use <stdlib.h>
37000         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37001         (Include): Mention <stdlib.h>.
37002         (configure.ac): Mention functions we provide.
37003         * modules/canonicalize (configure.ac): Likewise.
37004         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37005         realpath if canonicalize_file_name is missing.
37006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37007         * modules/stdlib (Makefile.am): Substitute witnesses.
37008         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37009         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37010         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37011         * NEWS: Document this.
37012         * doc/glibc-functions/canonicalize_file_name.texi
37013         (canonicalize_file_name): Likewise.
37014         * doc/posix-functions/realpath.texi (realpath): Likewise.
37015         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37016
37017         test-canonicalize: consolidate into single C program
37018         * tests/test-canonicalize.sh: Delete; move setup into...
37019         * tests/test-canonicalize.c (main): ...the program, making it
37020         easier to run in debugger.  Add some tests.
37021         * modules/canonicalize-tests (Files): Remove unused file.
37022         (Depends-on): Add progname.
37023         (configure.ac, Makefile.am): Simplify.
37024
37025         test-canonicalize-lgpl: consolidate into single C program
37026         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37027         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37028         easier to run in debugger.  Add some tests.
37029         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37030         (configure.ac, Makefile.am): Simplify.
37031
37032         canonicalize: avoid resolvepath
37033         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37034         unnecessary checks.
37035         * lib/canonicalize.c (includes): Simplify.
37036         (canonicalize_file_name): Drop resolvepath implementation.
37037         * modules/canonicalize (Depends-on): Drop filenamecat.
37038
37039         canonicalize: don't lose errno
37040         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37041         over calls to free.
37042
37043         canonicalize: simplify errno handling
37044         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37045         assignment.
37046
37047         canonicalize, canonicalize-lgpl: update module dependencies
37048         * modules/canonicalize (Depends-on): Add extensions, lstat,
37049         pathmax, stdlib.
37050         (Files): Drop pathmax.h.
37051         (configure.ac): Adjust macro name.
37052         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37053         lstat, stdlib, sys_stat.
37054         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37055         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37056         extensions.
37057         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37058         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37059         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37060         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37061         declaration, if available.
37062         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37063         we can rely on the readlink module.
37064         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37065         (includes): Use <unistd.h> unconditionally.
37066
37067 2009-09-17  Eric Blake  <ebb9@byu.net>
37068
37069         maint: make Include sections of modules consistent
37070         * modules/alloca: Use only header name; no need to list #include.
37071         * modules/alloca-opt: Likewise.
37072         * modules/arpa_inet: Likewise.
37073         * modules/canon-host: Likewise.
37074         * modules/configmake: Likewise.
37075         * modules/dirent: Likewise.
37076         * modules/eealloc: Likewise.
37077         * modules/environ: Likewise.
37078         * modules/fchdir: Likewise.
37079         * modules/fcntl: Likewise.
37080         * modules/fcntl-h: Likewise.
37081         * modules/gethrxtime: Likewise.
37082         * modules/gettime: Likewise.
37083         * modules/ignore-value: Likewise.
37084         * modules/inet_ntop: Likewise.
37085         * modules/inet_pton: Likewise.
37086         * modules/inttypes: Likewise.
37087         * modules/isnand-nolibm: Likewise.
37088         * modules/isnanf-nolibm: Likewise.
37089         * modules/mbchar: Likewise.
37090         * modules/mbfile: Likewise.
37091         * modules/mbiter: Likewise.
37092         * modules/mbuiter: Likewise.
37093         * modules/netdb: Likewise.
37094         * modules/netinet_in: Likewise.
37095         * modules/nproc: Likewise.
37096         * modules/pagealign_alloc: Likewise.
37097         * modules/poll: Likewise.
37098         * modules/printf-frexp: Likewise.
37099         * modules/pthread: Likewise.
37100         * modules/putenv: Likewise.
37101         * modules/random_r: Likewise.
37102         * modules/relocatable-prog: Likewise.
37103         * modules/search: Likewise.
37104         * modules/select: Likewise.
37105         * modules/selinux-h: Likewise.
37106         * modules/settime: Likewise.
37107         * modules/signal: Likewise.
37108         * modules/size_max: Likewise.
37109         * modules/socklen: Likewise.
37110         * modules/ssize_t: Likewise.
37111         * modules/stdarg: Likewise.
37112         * modules/stdbool: Likewise.
37113         * modules/stddef: Likewise.
37114         * modules/stdint: Likewise.
37115         * modules/stdio: Likewise.
37116         * modules/stdlib: Likewise.
37117         * modules/string: Likewise.
37118         * modules/strings: Likewise.
37119         * modules/sys_file: Likewise.
37120         * modules/sys_ioctl: Likewise.
37121         * modules/sys_select: Likewise.
37122         * modules/sys_socket: Likewise.
37123         * modules/sys_stat: Likewise.
37124         * modules/sys_time: Likewise.
37125         * modules/sys_times: Likewise.
37126         * modules/sys_utsname: Likewise.
37127         * modules/sys_wait: Likewise.
37128         * modules/sysexits: Likewise.
37129         * modules/time: Likewise.
37130         * modules/times: Likewise.
37131         * modules/tmpfile: Likewise.
37132         * modules/trim: Likewise.
37133         * modules/unistd: Likewise.
37134         * modules/wchar: Likewise.
37135         * modules/wctype: Likewise.
37136
37137 2009-09-17  Bruno Haible  <bruno@clisp.org>
37138
37139         Make getdate.y compile on QNX and NetBSD 5 / i386.
37140         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37141         TIME_T_FITS_IN_LONG_INT.
37142         * lib/getdate.y (long_time_t): New type.
37143         (relative_time): Change type of 'seconds' field to long_time_t.
37144         (get_date): Update types of local variables. Check against overflow
37145         during conversion from long_time_t to time_t.
37146         Reported by Matt Kraai <kraai@ftbfs.org>
37147         and Hasso Tepper <hasso@netbsd.org>.
37148
37149 2009-09-17  Bruno Haible  <bruno@clisp.org>
37150
37151         * modules/COPYING: Update copyright years.
37152         * modules/README: Likeiwse.
37153         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37154         Reported by Ian Beckwith <ianb@erislabs.net>.
37155
37156 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37157
37158         * users.txt: Update references for gnuit package.
37159
37160 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37161
37162         * m4/getdelim.m4: Fix typo in copyright line.
37163
37164 2009-09-17  Bruno Haible  <bruno@clisp.org>
37165
37166         * lib/atoll.c: Use the standard header with GPL copyright.
37167         * lib/argz.in.h: Likewise.
37168         * lib/glob.c: Likewise.
37169         * lib/glob-libc.h: Likewise.
37170         * lib/random_r.c: Likewise.
37171         * lib/siglist.h: Likewise.
37172         * lib/strsignal.c: Likewise.
37173         Reported by Ian Beckwith <ianb@erislabs.net>.
37174
37175 2009-09-17  Eric Blake  <ebb9@byu.net>
37176
37177         rmdir: ensure correct dependency order
37178         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37179
37180 2009-09-17  Bruno Haible  <bruno@clisp.org>
37181
37182         Disable assertion that fails on NetBSD 5 / i386.
37183         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37184         Reported by Sam Steingold <sds@gnu.org>
37185         and Hasso Tepper <hasso@netbsd.org>.
37186
37187 2009-09-16  Eric Blake  <ebb9@byu.net>
37188
37189         unlinkdir: port to mingw
37190         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37191         on which no one can unlink a directory.
37192
37193         stdlib: sort witness names
37194         * modules/stdlib (Makefile.am): Sort replacements.
37195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37196         * lib/stdlib.in.h: Likewise.
37197
37198         parse-duration-tests: avoid link failure
37199         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37200         LIBINTL.
37201         Reported by Tom G. Christensen.
37202
37203         openat-tests: ensure unlinkat behaves like rmdir
37204         * tests/test-rmdir.c (main): Factor guts...
37205         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37206         * modules/rmdir-tests (Files): Ship new file.
37207         * modules/openat-tests: New test.
37208         * tests/test-unlinkat.c: Likewise.
37209
37210         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37211         * modules/rmdir-errno (Status, Notice): Now obsolete.
37212
37213         rmdir: work around cygwin 1.5.x and mingw bugs
37214         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37215         * lib/rmdir.c (rmdir): Work around it.
37216         * modules/rmdir (Status, Notice): No longer obsolete.
37217         (Files): Add dos.m4.
37218         (Depends-on): Add unistd.
37219         (configure.ac): Set witnesses.
37220         (License): Relax to LGPLv2+.
37221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37222         * modules/unistd (Makefile.am): Substitute witnesses.
37223         * lib/unistd.in.h (rmdir): Declare replacement.
37224         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37225         * modules/rmdir-tests: New tests.
37226         * tests/test-rmdir.c: Likewise.
37227
37228 2009-09-15  Eric Blake  <ebb9@byu.net>
37229
37230         fchdir: improve use of replacement functions
37231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37232         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37233         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37234         REPLACE_CLOSEDIR.
37235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
37236         * modules/sys_stat (Makefile.am): Substitute correct witness.
37237         * modules/dirent (Makefile.am): Likewise.
37238         * modules/unistd (Makefile.am): Likewise.
37239         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
37240         * lib/unistd.in.h (dup): Likewise.
37241         * lib/sys_stat.in.h (fstat): Likewise.
37242
37243         maint: ignore gnulib-tool temp files
37244         * .gitignore: Ignore files created during gnulib-tool --test.
37245
37246 2009-09-13  Jim Meyering  <meyering@redhat.com>
37247
37248         posixtm: don't reject a time that specify "60" as the number of seconds
37249         * lib/posixtm.c (posixtime): The code to reject invalid dates
37250         would also reject a time specified with the .60 suffix.
37251         But POSIX allows that, in order to accommodate leap seconds.
37252         So don't reject it.
37253         (main): Adjust tests accordingly.
37254         * modules/posixtm (Depends-on): Add stpcpy.
37255
37256 2009-09-11  Jim Meyering  <meyering@redhat.com>
37257
37258         announce-gen: include [$release_type] in emitted Subject:
37259         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
37260         e.g., [stable] in the emitted Subject: line.
37261
37262 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37263
37264         Remove obsolete macros from several modules.
37265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
37266         obsolete Autoconf macros with their modern counterparts.
37267         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
37268         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
37269         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
37270         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37271         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
37272         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37273         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37274         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37275         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
37276         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
37277         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37278         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37279         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
37280         * m4/sockets.m4 (gl_SOCKETS): Likewise.
37281         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
37282         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
37283         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37284         * m4/time_r.m4 (gl_TIME_R): Likewise.
37285         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
37286         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
37287         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37288
37289         Fix copyright header in build-aux scripts.
37290         * build-aux/git-version-gen: Fix copyright header to match GPLv3
37291         recommendation.
37292         * build-aux/ncftpput-ftp: Likewise.
37293         * build-aux/update-copyright: Likewise.
37294
37295 2009-09-09  Eric Blake  <ebb9@byu.net>
37296
37297         test-link: allow Linux choice of errno
37298         * tests/test-link.c (main): Relax test for alternate error.
37299
37300         strndup: fix improper m4 caching
37301         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
37302         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
37303         (gl_PREREQ_STRNDUP): Delete.
37304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
37305         * modules/string (Makefile.am): Substitute it.
37306         * lib/string.in.h (strndup): Modernize prototype.
37307
37308         getcwd: port to mingw
37309         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
37310         different from the POSIX assumptions made throughout the getcwd
37311         module; fortunately, the mingw getcwd does not need replacement.
37312         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
37313         * modules/getcwd-tests: New test.
37314         * tests/test-getcwd.c: Likewise.
37315
37316         link: fix platform bugs
37317         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
37318         * lib/link.c (link): Work around them.  Fix related mingw bug.
37319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
37320         * modules/unistd (Makefile.am): Substitute it.
37321         * lib/unistd.in.h (link): Declare replacement.
37322         * doc/posix-functions/link.texi (link): Document this.
37323         * modules/link (Depends-on): Add strdup-posix, sys_stat.
37324
37325         test-link: consolidate into single C program, test more cases
37326         * tests/test-link.sh: Delete.
37327         * tests/test-link.c: Test more error conditions.  Exposes bugs on
37328         at least Cygwin and Solaris.
37329         * modules/link-tests (Files): Remove unused file.
37330         (Depends-on): Add errno, sys_stat.
37331         (Makefile.am): Simplify.
37332
37333 2009-09-08  Bruno Haible  <bruno@clisp.org>
37334
37335         Work around towlower, towupper bug on mingw.
37336         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
37337         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
37338         * doc/posix-functions/towlower.texi: Mention the mingw bug.
37339         * doc/posix-functions/towupper.texi: Likewise.
37340         Reported by Eric Blake.
37341
37342 2009-09-08  Jim Meyering  <meyering@redhat.com>
37343
37344         build: don't try to run autoheader if we don't use it
37345         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
37346         is not used in configure.ac.
37347
37348 2009-09-08  Eric Blake  <ebb9@byu.net>
37349
37350         euidaccess: fix compilation error
37351         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
37352
37353         rawmemchr: relax license
37354         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
37355         okay.
37356         Reported by Jim Meyering.
37357
37358         mkfifoat: new module
37359         * modules/mkfifoat: New file.
37360         * lib/mkfifoat.c: Likewise.
37361         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
37362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37363         * modules/sys_stat (Makefile.am): Use them.
37364         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
37365         * MODULES.html.sh (File system functions): Mention module.
37366         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37367         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37368         * modules/mkfifoat-tests: New test.
37369         * tests/test-mkfifoat.c: Likewise.
37370
37371         strchrnul: relax license
37372         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37373         okay.
37374         Reported by Jim Meyering.
37375
37376 2009-09-08  Eric Blake  <ebb9@byu.net>
37377
37378         fstatat: fix compilation on Solaris
37379         * lib/fstatat.c (includes): Add fcntl.h.
37380         Reported by Pádraig Brady.
37381
37382 2009-09-07  Eric Blake  <ebb9@byu.net>
37383
37384         rename: modernize replacement
37385         * modules/rename (Depends-on): Add stdio.
37386         (configure.ac): Declare witness.
37387         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
37388         stdio take care of replacement.
37389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37390         * modules/stdio (Makefile.am): Substitute them.
37391         * lib/stdio.in.h (rename): Declare replacement.
37392         * lib/rename.c (includes): Allow cross-compilation to non-windows
37393         machines.
37394         * doc/posix-functions/rename.texi (rename): Improve
37395         documentation.
37396
37397         stdio: sort witness names
37398         * modules/stdio (Makefile.am): Sort replacements.
37399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37400         * lib/stdio.in.h: Likewise.
37401
37402         getcwd: minor cleanups
37403         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37404         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37405
37406         openat: provide more convenience names
37407         * modules/faccessat (configure.ac): Add C witness.
37408         * lib/unistd.in.h (readlinkat): Fix typo.
37409         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37410         convenience wrappers.
37411         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37412         wrappers in syntax checks.
37413
37414 2009-09-06  Eric Blake  <ebb9@byu.net>
37415
37416         doc: fix comments in recent patches
37417         * lib/faccessat.c: Mention correct function.
37418         * lib/fchmodat.c: Likewise.
37419         * lib/fchownat.c: Likewise.
37420         * lib/symlinkat.c: Likewise.
37421         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37422         constants.
37423
37424         faccessat, symlinkat: continue cleanup of previous patch
37425         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37426         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37427         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37429         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37430         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37431         set.
37432
37433 2009-09-06  Bruno Haible  <bruno@clisp.org>
37434
37435         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37436         (fstatat): Declare if GNULIB_FSTATAT is set.
37437         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37438         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37439         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37440         * modules/fcntl-h (Files): Remove m4/openat.m4.
37441         * modules/sys_stat (Files): Remove m4/openat.m4.
37442         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37443         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37444         * modules/unistd (Files): Remove m4/openat.m4.
37445         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37446         GNULIB_OPENAT.
37447         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37448         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37449         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37450         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37451         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37452         gl_OPENAT_DEFAULTS.
37453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37454         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37455         Don't require gl_OPENAT_DEFAULTS.
37456         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37457         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37458         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37459         (gl_OPENAT_DEFAULTS): Remove macro.
37460
37461 2009-09-06  Bruno Haible  <bruno@clisp.org>
37462
37463         * modules/openat (configure.ac): Remove unneeded witness.
37464
37465 2009-09-06  Bruno Haible  <bruno@clisp.org>
37466
37467         Set errno to ENOSYS when a function is entirely unsupported.
37468         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37469         EOPNOTSUPP.
37470         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37471         * modules/chown (Depends-on): Remove errno.
37472
37473 2009-09-06  Bruno Haible  <bruno@clisp.org>
37474
37475         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37476
37477 2009-09-06  Bruno Haible  <bruno@clisp.org>
37478
37479         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37480
37481 2009-09-06  Ben Pfaff  <blp@gnu.org>
37482             Bruno Haible  <bruno@clisp.org>
37483
37484         Work around a glibc bug in strtok_r.
37485         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37486         Undefine if UNDEFINE_STRTOK_R is set.
37487         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37489         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37490         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37491         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37492         UNDEFINE_STRTOK_R.
37493         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37494
37495 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37496
37497         exclude: minor fix
37498         * lib/exclude.c: Include wctype.h
37499
37500 2009-09-06  Akim Demaille  <demaille@gostai.com>
37501
37502         bootstrap: improve error message
37503         * build-aux/bootstrap (find_tool): Upon failure, report the list
37504         of candidates.
37505         Honor the initial value of the envvar.
37506
37507 2009-09-05  Eric Blake  <ebb9@byu.net>
37508
37509         symlinkat: new module
37510         * modules/symlinkat: New file.
37511         * lib/symlinkat.c: Likewise.
37512         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37514         * modules/unistd (Makefile.am): Use them.
37515         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37516         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37517         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37518         * MODULES.html.sh (File system functions): Mention module.
37519         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37520         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37521         * modules/symlinkat-tests: New test.
37522         * tests/test-symlinkat.c: Likewise.
37523
37524         test-openat-safer: add more checks
37525         * tests/test-openat-safer.c (main): Check more code paths.
37526
37527 2009-09-05  Jim Meyering  <meyering@redhat.com>
37528
37529         syntax-check: detect unnecessary inclusion of openat.h
37530         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37531
37532 2009-09-05  Bruno Haible  <bruno@clisp.org>
37533
37534         Support towlower, towupper.
37535         * doc/posix-functions/towlower.texi: Mention module wctype.
37536         * doc/posix-functions/towupper.texi: Likewise.
37537         * lib/wctype.in.h (towlower, towupper): New functions.
37538         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37539         (ASSERT): New macro.
37540         (e): New variable.
37541         (main): Test also towlower, towupper. Test WEOF argument.
37542         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37543
37544 2009-09-05  Bruno Haible  <bruno@clisp.org>
37545
37546         Fix conversion behaviour when the input is invalid.
37547         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37548         mark occurring in first pass of indirect conversion.
37549         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37550         input.
37551         Found by clang's static analyzer.
37552
37553 2009-09-05  Bruno Haible  <bruno@clisp.org>
37554
37555         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37556         where direct conversion is possible.
37557
37558 2009-09-04  Eric Blake  <ebb9@byu.net>
37559
37560         openat: fail with ENOENT on empty name
37561         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37562         buffer.
37563
37564         link-follow: fix logic bug in prior patch
37565         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37566         reversed sense of yes and no in prior patch.  Avoid confusing
37567         compilation failure with desired semantics.
37568
37569         link-follow: accomodate mingw and cross-compilation
37570         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37571         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37572         cross-compilation results to -1, to make linkat easier to
37573         implement when cross-compiling.  Trivially support mingw.
37574         * modules/link-follow (configure.ac): Call new name.
37575         * NEWS: Mention this.
37576
37577 2009-09-03  Eric Blake  <ebb9@byu.net>
37578
37579         faccessat: compile replacement
37580         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37581         needed.
37582
37583         fts: fix compilation error
37584         * lib/fts.c (includes): Re-add "openat.h", for
37585         openat_needs_fchdir.
37586
37587         faccessat: new module
37588         * modules/faccessat: New file.
37589         * lib/faccessat.c: Likewise.
37590         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37592         * modules/unistd (Makefile.am): Use it.
37593         * lib/unistd.in.h (faccessat): Declare it.
37594         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37595         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37596         * MODULES.html.sh (File system functions): Mention it.
37597         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37598         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37599
37600         euidaccess: prefer POSIX over non-standard implementation
37601         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37602         * lib/euidaccess.c (euidaccess): Use it if available.
37603
37604         openat: make template easier to use
37605         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37606         AT_FUNC_F2 to be undefined.
37607         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37608         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37609         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37610         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37611         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37612         Likewise.
37613         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37614         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37615         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37616         Likewise.
37617
37618         openat: declare in POSIX headers
37619         * NEWS: Mention this.
37620         * modules/openat (configure.ac): Declare witnesses.
37621         (Depends-on): Add fcntl-h, sys_stat, unistd.
37622         (Include): Mention correct headers.
37623         * modules/fcntl-h (Depends-on): Add link-warning.
37624         (Files): Add openat.m4.
37625         (Makefile.am): Substitute witnesses.
37626         * modules/sys_stat (Files, Makefile.am): Likewise.
37627         * modules/unistd (Files, Makefile.am): Likewise.
37628         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37629         (gl_OPENAT_DEFAULTS): New macro.
37630         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37632         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37633         (SYS_STAT_H): Remove unused variable.
37634         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37635         * lib/fcntl--.h (includes): Remove unneeded header.
37636         * lib/openat-safer.c (includes): Likewise.
37637         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37638         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37639         appropriate headers.
37640         (__OPENAT_PREFIX): Delete.
37641         * lib/fcntl.in.h (openat): Provide declaration.
37642         (AT_FDCWD): Fix Solaris bug.
37643         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37644         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37645         * lib/fchmodat.c (includes):  Adjust to find declaration.
37646         * lib/fchownat.c (includes): Likewise.
37647         * lib/mkdirat.c (includes): Likewise.
37648         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37649         still visible.
37650
37651 2009-09-02  Eric Blake  <ebb9@byu.net>
37652
37653         errno: use consistently
37654         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37655         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37656         * lib/canonicalize.c (ELOOP): Likewise.
37657         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37658         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37659         * lib/lchown.c (EOPNOTSUPP): Likewise.
37660         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37661         * lib/savewd.c (ESTALE): Likewise.
37662         * lib/settime.c (ENOSYS): Likewise.
37663         * lib/utimens.c (ENOSYS): Likewise.
37664         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37665         * lib/chdir-safer.c (ELOOP): Likewise.
37666         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37667         * modules/c-stack (Depends-on): Add errno.
37668         * modules/canonicalize (Depends-on): Likewise.
37669         * modules/chdir-safer (Depends-on): Likewise.
37670         * modules/fdopendir (Depends-on): Likewise.
37671         * modules/inet_ntop (Depends-on): Likewise.
37672         * modules/inet_pton (Depends-on): Likewise.
37673         * modules/lchown (Depends-on): Likewise.
37674         * modules/openat (Depends-on): Likewise.
37675         * modules/savewd (Depends-on): Likewise.
37676         * modules/settime (Depends-on): Likewise.
37677         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37678
37679         fts: avoid leaking fds
37680         * modules/fts (Depends-on): Add cloexec.
37681         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37682         flag.
37683
37684         fts: make directory fds more robust
37685         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37686         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37687
37688         backupfile, chdir-long, fts, savedir: make safer
37689         * lib/backupfile.c (includes): Use "dirent--.h", since
37690         numbered_backup can write to stderr during readdir.
37691         * lib/savedir.c (includes): Likewise.
37692         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37693         emulation can write to stderr on failure.
37694         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37695         * lib/getcwd.c: Document why opendir_safer is unused.
37696         * lib/glob.c: Likewise.
37697         * lib/scandir.c: Likewise.
37698         * lib/openat-proc.c: Likewise, for open_safer.
37699         * modules/backupfile (Depends-on): Add dirent-safer.
37700         * modules/savedir (Depends-on): Likewise.
37701         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37702         * modules/chdir-long (Depends-on): Add openat-safer.
37703
37704         openat-safer: new module
37705         * modules/openat-safer: New file.
37706         * lib/openat-safer.c: Likewise.
37707         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37708         * lib/fcntl-safer.h (openat_safer): Declare.
37709         * lib/fcntl--.h (openat): Override.
37710         * MODULES.html.sh (File descriptor based I/O): Mention it.
37711         * lib/openat.h: Add double-inclusion guards.
37712         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37713         "fcntl--.h", so we can implement openat.
37714         * modules/openat-safer-tests: New test.
37715         * tests/test-openat-safer.c: New file.
37716
37717         dirent-safer: new module
37718         * modules/dirent-safer: New file.
37719         * lib/dirent--.h: Likewise.
37720         * lib/dirent-safer.h: Likewise.
37721         * lib/opendir-safer.c: Likewise.
37722         * m4/dirent-safer.m4: Likewise.
37723         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37724         * modules/dirent-safer-tests: New test.
37725         * tests/test-dirent-safer.c: New file.
37726         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37727
37728         fdopendir: optimize on mingw
37729         * lib/unistd.in.h (_gl_directory_name): New prototype.
37730         * lib/fchdir.c (_gl_directory_name): Implement it.
37731         (fchdir): Use it to simplify implementation.
37732         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37733         fchdir, when available, to avoid calling [f]chdir().
37734
37735         fdopendir: split into its own module
37736         * lib/openat.c (fdopendir): Move...
37737         * lib/fdopendir.c: ...into new file.
37738         * modules/fdopendir: New module.
37739         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37740         * modules/openat (Depends-on): Add fdopendir.
37741         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37742         fdopendir here.
37743         * modules/savedir (Depends-on): Only need fdopendir, not full
37744         openat.
37745         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37746         * lib/openat.h (fdopendir): Drop prototype.
37747         * lib/dirent.in.h (fdopendir): Provide prototype.
37748         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37749         * modules/dirent (Makefile.am): Substitute them.
37750         * MODULES.html.sh (File system functions): Mention it.
37751         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37752         * modules/fdopendir-tests: New file.
37753         * tests/test-fdopendir.c: Likewise.
37754
37755         fchdir: use more consistent macro convention
37756         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37757         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37758         REPLACE_FCHDIR, rather than relying on config.h macros.
37759         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37760         inside a single make-time REPLACE_FCHDIR block, rather than using
37761         the config.h FCHDIR_REPLACEMENT.
37762         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37763         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37764         Manage fstat replacement.
37765         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37766         REPLACE_FCHDIR.
37767         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37768         (Makefile.am): Substitute REPLACE_FCHDIR.
37769         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37770         FCHDIR_REPLACEMENT.
37771         * lib/dup-safer.c (dup_safer): Likewise.
37772         * lib/dup2.c (rpl_dup2): Likewise.
37773         * lib/dup3.c (rpl_dup3): Likewise.
37774         * lib/open.c (rpl_open): Likewise.
37775
37776         fchdir: simplify error handling, and support dup3
37777         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37778         stdbool, malloc-posix, realloc-posix.
37779         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37780         (ensure_dirs_slot): Return false on allocation failure.
37781         (rpl_dup2): Delete.
37782         (_gl_register_dup): New function.
37783         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37784         (_gl_register_fd): Close fd on allocation failure.
37785         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37786         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37787         prototype.
37788         (rpl_dup2_fchdir): Delete prototype.
37789         * lib/open.c (open): Update caller.
37790         * lib/dup2.c (dup2): Track fchdir metadata.
37791         * lib/dup3.c (dup3): Likewise.
37792         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37794
37795 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37796
37797         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37798         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37799         don't pass arguments to AC_OUTPUT.
37800
37801 2009-09-02  Bruno Haible  <bruno@clisp.org>
37802
37803         * modules/mkdtemp (License): Relicense under LGPLv2+.
37804         Reported by Paolo Bonzini.
37805
37806 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37807
37808         Replace uses of obsolete autoconf macros in Jim's modules.
37809         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37810         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37811         can evoke a warning from autoconf when run with -Wobsolete
37812         enabled.  They were declared obsolete for good reasons (see
37813         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37814         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37815         should not continue using the deprecated macros.
37816         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37817         obsolete Autoconf macros with modern counterparts.
37818         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37819         * m4/dos.m4 (gl_AC_DOS): Likewise.
37820         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37821         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37822         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37823         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37824         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37825         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37826         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37827         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37828         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37829         Likewise.
37830         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37831         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37832         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37833         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37834         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37835         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37836
37837 2009-09-01  Eric Blake  <ebb9@byu.net>
37838
37839         fchdir: fix off-by-one bug in previous patch
37840         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37841         (_gl_unregister_fd): Delete useless if.
37842
37843 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37844
37845         maint.mk: sort the list of syntax-check rules
37846         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37847         easier to get a sense of progress when the rules are run sequentially
37848         and take a long time.
37849
37850 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37851
37852         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37853         * modules/netinet_in: Likewise.
37854         * modules/sys_file: Likewise.
37855         * modules/sys_ioctl: Likewise.
37856         * modules/sys_select: Likewise.
37857         * modules/sys_socket: Likewise.
37858         * modules/sys_stat: Likewise.
37859         * modules/sys_time: Likewise.
37860         * modules/sys_times: Likewise.
37861         * modules/sys_utsname: Likewise.
37862         * modules/sys_wait: Likewise.
37863
37864 2009-09-01  Jim Meyering  <meyering@redhat.com>
37865
37866         fts: help ensure that return values are not ignored
37867         * lib/fts_.h (__GNUC_PREREQ): Define.
37868         (__attribute_warn_unused_result__): Define.
37869         (fts_children, fts_close, fts_open, fts_read): Declare with
37870         __attribute_warn_unused_result__.
37871
37872         fts: fts_close now fails also when closing a dir file descriptor fails
37873         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37874         and propagate to caller, along with errno.
37875
37876         announce-gen: correct formatting in --help output
37877         * build-aux/announce-gen (usage): Move the one-line description in
37878         --help output "up", to where it belongs, just after Usage:.
37879
37880 2009-08-31  Eric Blake  <ebb9@byu.net>
37881
37882         fchdir: port to mingw
37883         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37884         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37885         opened, then use a substitute.
37886         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37887         replacement.
37888         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37889         (_gl_register_fd): No need to check stat if open already filters
37890         all directories.
37891         (fchdir): Fix error condition to match POSIX.
37892         * modules/fchdir (Depends-on): Add sys_stat.
37893         * doc/posix-functions/open.texi (open): Document the limitation.
37894         * modules/fchdir-tests: New file.
37895         * tests/test-fchdir.c: Likewise.
37896
37897         canonicalize: allow cross-testing from cygwin to mingw
37898         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37899         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37900         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37901         Likewise.
37902         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37903         target does not support symlinks.
37904         * tests/test-canonicalize-lgpl.sh: Likewise.
37905
37906         chown: avoid compilation warning on mingw
37907         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37908         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37909         mingw.
37910         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37911         * modules/chown (Depends-on): Add errno.
37912
37913 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37914
37915         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37916         command.
37917
37918 2009-08-31  Jim Meyering  <meyering@redhat.com>
37919
37920         canonicalize: remove useless initialization
37921         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37922         initialization of local, "end".
37923
37924 2009-08-30  Bruno Haible  <bruno@clisp.org>
37925
37926         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37927         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37928         ENOSYS.
37929
37930 2009-08-30  Bruno Haible  <bruno@clisp.org>
37931
37932         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37933         /usr/xpg4/bin/tr when it exists.
37934         * tests/test-pipe-filter-gi1.sh: Likewise.
37935
37936 2009-08-30  Bruno Haible  <bruno@clisp.org>
37937
37938         Work around deficient /usr/bin/id program on Solaris.
37939         * tests/test-file-has-acl.sh (ID): New variable.
37940         * tests/test-set-mode-acl.sh (ID): Likewise.
37941         * tests/test-copy-acl.sh (ID): Likewise.
37942         * tests/test-copy-file.sh (ID): Likewise.
37943
37944 2009-08-30  Bruno Haible  <bruno@clisp.org>
37945
37946         New module 'xstriconveh'.
37947         * lib/xstriconveh.h: New file.
37948         * lib/xstriconveh.c: New file.
37949         * modules/xstriconveh: New file.
37950
37951 2009-08-30  Bruno Haible  <bruno@clisp.org>
37952
37953         Make it easier to use mem_cd_iconveh.
37954         * lib/striconveh.h (iconveh_t): New type.
37955         (iconveh_open, iconveh_close): New declarations.
37956         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37957         with a single 'const iconveh_t *' argument.
37958         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37959         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37960         with a single 'const iconveh_t *' argument.
37961         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37962         * tests/test-striconveh.c (main): Update.
37963         * NEWS: Mention the change.
37964
37965 2009-08-30  Bruno Haible  <bruno@clisp.org>
37966
37967         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37968         problem.
37969
37970 2009-08-30  Bruno Haible  <bruno@clisp.org>
37971
37972         Work around iconv_open problem on Solaris.
37973         * lib/iconv_open-solaris.gperf: New file.
37974         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37975         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37976         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37977         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37978         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37979         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37980
37981 2009-08-29  Jim Meyering  <meyering@redhat.com>
37982
37983         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37984         * top/maint.mk (cvs-check): Remove target; it was just an alias
37985         to the better-named vc-diff-check.
37986         (maintainer-distcheck): Remove rule.  It was used only from
37987         the (alpha/beta/major) target, and all of its commands but one
37988         were coreutils-specific.
37989         (vc-dist): Remove rule.
37990         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37991         Run vc-diff-check, not vc-dist.
37992         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37993
37994 2009-08-27  Bruno Haible  <bruno@clisp.org>
37995
37996         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37997         of 0.
37998
37999 2009-08-27  Bruno Haible  <bruno@clisp.org>
38000
38001         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38002         compilers.
38003         * doc/func.texi: Document the SunPRO C bug.
38004
38005 2009-08-27  Bruno Haible  <bruno@clisp.org>
38006
38007         Fix link error on Solaris.
38008         * tests/test-parse-duration.c (xstrdup): Remove function.
38009
38010 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38011
38012         ignore-value: handle pointer types, too
38013         * lib/ignore-value.h (__attribute__): Remove definition.
38014         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38015         of a more concise and more-often effective "(void) i" statement.
38016         (ignore_ptr): New function to suppress warnings from functions that
38017         return pointers, and to make it explicit that one function doesn't
38018         handle all cases.
38019
38020 2009-08-25  Bruno Haible  <bruno@clisp.org>
38021
38022         dup2: work around a Linux bug.
38023         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38024         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38025         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38026         Reported by Simon Josefsson.
38027
38028 2009-08-25  Jim Meyering  <meyering@redhat.com>
38029
38030         libguestfs uses gnulib
38031         * users.txt: Add libguestfs.
38032
38033 2009-08-24  Eric Blake  <ebb9@byu.net>
38034
38035         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38036         * lib/pipe2.c (includes): Add binary-io.h.
38037         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38038
38039 2009-08-24  Bruno Haible  <bruno@clisp.org>
38040
38041         Tolerate declared but missing accept4 syscall.
38042         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38043         available.
38044         * lib/sys_socket.in.h (accept4): If the function is already present,
38045         override it.
38046         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38047         * modules/accept4 (Makefile.am): Compile accept4.c always.
38048         Reported by Paolo Bonzini and Eric Blake.
38049
38050 2009-08-23  Bruno Haible  <bruno@clisp.org>
38051
38052         New module 'accept4'.
38053         * lib/sys_socket.in.h (accept4): New declaration.
38054         * lib/accept4.c: New file.
38055         * m4/accept4.m4: New file.
38056         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38057         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38058         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38059         HAVE_ACCEPT4.
38060         * modules/accept4: New file.
38061         * doc/glibc-functions/accept4.texi: Mention the new module.
38062
38063 2009-08-24  Jim Meyering  <meyering@redhat.com>
38064
38065         progname: also set global program_invocation_name, when possible
38066         Before this change, a libtool-enabled program that calls glibc's
38067         error function would report the program name as
38068         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38069         * modules/progname (configure.ac): Check for a declaration of
38070         program_invocation_name.
38071         * lib/progname.c:  Include <errno.h>.
38072         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38073         Set program_invocation_name.
38074
38075 2009-08-23  Bruno Haible  <bruno@clisp.org>
38076
38077         * lib/dup3.c: Include <string.h>.
38078
38079 2009-08-23  Bruno Haible  <bruno@clisp.org>
38080
38081         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38082         * lib/pipe2.c (pipe2): Likewise.
38083         Suggested by Eric Blake.
38084
38085 2009-08-23  Bruno Haible  <bruno@clisp.org>
38086
38087         Tolerate declared but missing dup3 syscall.
38088         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38089         * lib/unistd.in.h (dup3): If the function is already present,
38090         override it.
38091         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38092         * modules/dup3 (Makefile.am): Compile dup3.c always.
38093         Reported by Paolo Bonzini.
38094
38095 2009-08-23  Bruno Haible  <bruno@clisp.org>
38096
38097         Tolerate declared but missing pipe2 syscall.
38098         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38099         available.
38100         * lib/unistd.in.h (pipe2): If the function is already present,
38101         override it.
38102         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38103         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38104         Reported by Paolo Bonzini.
38105
38106 2009-08-23  Bruno Haible  <bruno@clisp.org>
38107
38108         * lib/pipe2.c (pipe2): Move #ifs inside function.
38109
38110 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38111
38112         quotearg: document limitations of quote_these_too
38113         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38114         those limitations are created.
38115         * lib/quotearg.h (set_char_quoting): Document that digits and
38116         letters that are special after backslash are not permitted.
38117         (quotearg_char): Cross-reference set_char_quoting documentation.
38118
38119 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38120
38121         quotearg: implement custom_quoting_style
38122         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38123         right_quote fields.
38124         (set_custom_quoting): New public function.
38125         (quotearg_buffer_restyled): Add left_quote and right_quote
38126         arguments, handle them very much like locale quoting, and update
38127         all uses.
38128         (quotearg_n_custom): New public function.
38129         (quotearg_n_custom_mem): New public function.
38130         (quotearg_custom): New public function.
38131         (quotearg_custom_mem): New public function.
38132         * lib/quotearg.h: Prototype and document new public functions.
38133         (enum quoting_style): For escape_quoting_style and
38134         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38135         ignored even though they're otherwise like c_quoting_style.
38136         Add custom_quoting_style member and document with comparison to
38137         clocale_quoting_style.
38138         * tests/test-quotearg.c (custom_quotes): New array.
38139         (custom_results): New array.
38140         (main): Extend to test custom quoting.
38141
38142 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38143
38144         quotearg: fix right quote escaping when it's in quote_these_too
38145         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38146         quote, be sure to prepend only one backslash.
38147         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38148         (main): Test it.
38149
38150 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38151
38152         quotearg-tests: test escaping of embedded locale quotes
38153         * tests/test-quotearg.c (struct result_strings): Add member for
38154         new input.
38155         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38156         (inputs): Add new input.
38157         (results_g): Add expected results.
38158         (flag_results): Likewise.
38159         (locale_results): Likewise.
38160         (compare_strings): Check those.
38161
38162 2009-08-23  Bruno Haible  <bruno@clisp.org>
38163
38164         Tests for module 'dup3'.
38165         * modules/dup3-tests: New file.
38166         * tests/test-dup3.c: New file.
38167
38168         New module 'dup3'.
38169         * lib/unistd.in.h (dup3): New declaration.
38170         * lib/dup3.c: New file.
38171         * m4/dup3.m4: New file.
38172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38173         HAVE_DUP3.
38174         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38175         * modules/dup3: New file.
38176         * doc/glibc-functions/dup3.texi: Mention the new module.
38177
38178 2009-08-23  Bruno Haible  <bruno@clisp.org>
38179
38180         Tweak the dup2 test.
38181         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38182         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38183         the test file is still empty. Fix argument order of lseek.
38184
38185 2009-08-23  Bruno Haible  <bruno@clisp.org>
38186
38187         Avoid test link errors when the modules getopt-gnu, gettext are used.
38188         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38189         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38190
38191 2009-08-23  Bruno Haible  <bruno@clisp.org>
38192
38193         Fix getdtablesize() on mingw.
38194         * lib/getdtablesize.c (getdtablesize): Implement differently.
38195         * lib/unistd.in.h (getdtablesize): Improve comment.
38196
38197 2009-08-23  Bruno Haible  <bruno@clisp.org>
38198
38199         New module 'mkostemp'.
38200         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38201         * lib/stdlib.in.h (mksotemp): New declaration.
38202         * lib/mkostemp.c: New file, from glibc with modifications.
38203         * lib/tempname.h (GT_FILE): Remove outdated comment.
38204         (gen_tempname): Add flags argument.
38205         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38206         (__GT_FILE): Map to 1.
38207         (small_open, large_open): Remove macros.
38208         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38209         * lib/mkstemp.c (mkstemp): Update.
38210         * lib/mkdtemp.c (mkdtemp): Likewise.
38211         * m4/mkostemp.m4: New file.
38212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38213         HAVE_MKOSTEMP.
38214         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38215         HAVE_MKOSTEMP.
38216         * modules/mkostemp: New file, based on modules/mkstemp.
38217         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38218         * NEWS: Mention the change.
38219
38220 2009-08-23  Bruno Haible  <bruno@clisp.org>
38221
38222         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38223         Reported by Eric Blake.
38224
38225 2009-08-23  Bruno Haible  <bruno@clisp.org>
38226
38227         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38228         Reported by Eric Blake.
38229
38230 2009-08-23  Bruno Haible  <bruno@clisp.org>
38231
38232         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38233         * modules/pipe2 (Depends-on): Likewise.
38234
38235 2009-08-23  Eric Blake  <ebb9@byu.net>
38236
38237         fcntl-h: add O_TTY_INIT support
38238         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
38239         * tests/test-fcntl-h.c (o): Test it.
38240         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38241
38242         fcntl-h: rename from fcntl, in preparation for fcntl(2)
38243         * modules/fcntl: Move <fcntl.h> header replacement...
38244         * modules/fcntl-h: ...to new name, so as not to collide with
38245         like-named function.
38246         * tests/test-fcntl.c: Rename...
38247         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
38248         * modules/fcntl-tests: Rename...
38249         * modules/fcntl-h-tests: ...to this.  Update test file name.
38250         * modules/chdir-long (Depends-on): Update clients.
38251         * modules/chdir-safer (Depends-on): Likewise.
38252         * modules/fcntl-safer (Depends-on): Likewise.
38253         * modules/fts (Depends-on): Likewise.
38254         * modules/mkancesdirs (Depends-on): Likewise.
38255         * modules/mkdir-p (Depends-on): Likewise.
38256         * modules/open (Depends-on): Likewise.
38257         * modules/savewd (Depends-on): Likewise.
38258         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
38259         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38260
38261 2009-08-22  Bruno Haible  <bruno@clisp.org>
38262
38263         * modules/binary-io (License): Relicense under LGPL.
38264         * modules/pipe2 (License): Likewise.
38265
38266 2009-08-22  Bruno Haible  <bruno@clisp.org>
38267
38268         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
38269         return value.
38270         * lib/pipe-filter-gi.c (filter_init): Likewise.
38271         Reported by Eric Blake.
38272
38273 2009-08-22  Bruno Haible  <bruno@clisp.org>
38274
38275         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
38276         * modules/pipe (Depends-on): Add pipe2.
38277
38278 2009-08-22  Bruno Haible  <bruno@clisp.org>
38279
38280         Tests for module 'pipe2'.
38281         * modules/pipe2-tests: New file.
38282         * tests/test-pipe2.c: New file.
38283
38284         New module 'pipe2'.
38285         * lib/unistd.in.h (pipe2): New declaration.
38286         * lib/pipe2.c: New file.
38287         * m4/pipe2.m4: New file.
38288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
38289         HAVE_PIPE2.
38290         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
38291         * modules/pipe2: New file.
38292         * doc/glibc-functions/pipe2.texi: Mention the new module.
38293
38294 2009-08-22  Bruno Haible  <bruno@clisp.org>
38295
38296         Reference some new glibc functions.
38297         * doc/glibc-functions/accept4.texi: New file.
38298         * doc/glibc-functions/dup3.texi: New file.
38299         * doc/glibc-functions/mkostemp.texi: New file.
38300         * doc/glibc-functions/pipe2.texi: New file.
38301         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
38302         (Glibc sys/socket.h): Refer to accept4.
38303         (Glibc unistd.h): Refer to dup3, pipe2.
38304         Reported by Eric Blake.
38305
38306 2009-08-22  Jim Meyering  <meyering@redhat.com>
38307             Bruno Haible  <bruno@clisp.org>
38308
38309         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
38310         This makes it so packages using automake-1.11's silent-rules option
38311         can print e.g., a single "GEN    configmake.h" line, rather than
38312         the 30+ statements that perform the job.  If you want to see the
38313         actual commands, you can still run "make V=1".
38314         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
38315         so that make output is abbreviated when those variables are defined
38316         appropriately.
38317         * modules/argz: Likewise.
38318         * modules/arpa_inet: Likewise.
38319         * modules/byteswap: Likewise.
38320         * modules/configmake: Likewise.
38321         * modules/dirent: Likewise.
38322         * modules/errno: Likewise.
38323         * modules/fcntl: Likewise.
38324         * modules/float: Likewise.
38325         * modules/fnmatch: Likewise.
38326         * modules/getopt-posix: Likewise.
38327         * modules/glob: Likewise.
38328         * modules/iconv_open: Likewise.
38329         * modules/inttypes: Likewise.
38330         * modules/localcharset: Likewise.
38331         * modules/locale: Likewise.
38332         * modules/math: Likewise.
38333         * modules/netdb: Likewise.
38334         * modules/netinet_in: Likewise.
38335         * modules/poll: Likewise.
38336         * modules/posix_spawnp-tests: Likewise.
38337         * modules/sched: Likewise.
38338         * modules/search: Likewise.
38339         * modules/selinux-h: Likewise.
38340         * modules/signal: Likewise.
38341         * modules/spawn: Likewise.
38342         * modules/stdarg: Likewise.
38343         * modules/stdbool: Likewise.
38344         * modules/stddef: Likewise.
38345         * modules/stdint: Likewise.
38346         * modules/stdio: Likewise.
38347         * modules/stdlib: Likewise.
38348         * modules/string: Likewise.
38349         * modules/strings: Likewise.
38350         * modules/sys_file: Likewise.
38351         * modules/sys_ioctl: Likewise.
38352         * modules/sys_select: Likewise.
38353         * modules/sys_socket: Likewise.
38354         * modules/sys_stat: Likewise.
38355         * modules/sys_time: Likewise.
38356         * modules/sys_times: Likewise.
38357         * modules/sys_utsname: Likewise.
38358         * modules/sys_wait: Likewise.
38359         * modules/sysexits: Likewise.
38360         * modules/time: Likewise.
38361         * modules/unistd: Likewise.
38362         * modules/wchar: Likewise.
38363         * modules/wctype: Likewise.
38364
38365 2009-08-22  Jim Meyering  <meyering@redhat.com>
38366
38367         announce-gen: detect write failure
38368         * build-aux/announce-gen: Add Coda at end.
38369         Remove equivalent-but-more-verbose block at top.
38370
38371 2009-08-19  Akim Demaille  <demaille@gostai.com>
38372
38373         bootstrap: --help to stdout.
38374         * bootstrap (usage): Don't send --help to stderr.
38375         Use a here doc instead of a long string.
38376
38377 2009-08-21  Eric Blake  <ebb9@byu.net>
38378
38379         test-popen-safer: split from test-popen
38380         * tests/test-popen.c (main): Move...
38381         * tests/test-popen.h: ...into new file.
38382         * tests/test-popen-safer2.c: New file.
38383         * modules/popen-tests (Files): Add test-popen.h.
38384         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
38385         Suggested by Bruno Haible.
38386
38387         test-fcntl-safer: split from test-open
38388         * tests/test-open.c (main): Move...
38389         * tests/test-open.h: ...into new file.
38390         * tests/test-fcntl-safer.c: New file.
38391         * modules/open-tests (Files): Add test-open.h.
38392         * modules/fcntl-safer-tests: New file.
38393         Suggested by Bruno Haible.
38394
38395         test-fopen-safer: split from test-fopen
38396         * tests/test-fopen.c (main): Move...
38397         * tests/test-fopen.h: ...into new file.
38398         * tests/test-fopen-safer.c: New file.
38399         * modules/fopen-tests (Files): Add test-fopen.h.
38400         * modules/fopen-safer-tests: New file.
38401         Suggested by Bruno Haible.
38402
38403 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38404
38405         popen-safer: test O_CLOEXEC at run-time.
38406         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38407
38408 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38409
38410         fcntl: move more flags to the header
38411         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38412         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38413         * lib/fcntl.in.h: Do both things here.
38414
38415 2009-08-21  Jim Meyering  <meyering@redhat.com>
38416
38417         consistently remove $@-t before redirecting to it
38418         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38419         * modules/alloca-opt: Likewise.
38420         * modules/byteswap: Likewise.
38421         * modules/fnmatch: Likewise.
38422         * modules/getopt-posix: Likewise.
38423         * modules/glob: Likewise.
38424         * modules/poll: Likewise.
38425         * modules/posix_spawnp-tests: Likewise.
38426         * modules/sys_socket: Likewise.
38427         * modules/sysexits: Likewise.
38428
38429 2009-08-21  Eric Blake  <ebb9@byu.net>
38430
38431         popen: simplify access to original popen
38432         * lib/popen.c (rpl_popen): No need to worry about popen being a
38433         macro.
38434         Reported by Bruno Haible.
38435
38436 2009-08-20  Eric Blake  <ebb9@byu.net>
38437
38438         build: avoid some compiler warnings
38439         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38440         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38441         type.
38442         (new_exclude_segment, excluded_file_pattern_p)
38443         (excluded_file_name_p): Reduce scope.
38444         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38445         old-style declaration.
38446
38447 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38448
38449         * tests/test-exclude1.sh: Handle Windows EOL.
38450         * tests/test-exclude2.sh: Likewise.
38451         * tests/test-exclude3.sh: Likewise.
38452         * tests/test-exclude4.sh: Likewise.
38453         * tests/test-exclude5.sh: Likewise.
38454         * tests/test-exclude6.sh: Likewise.
38455         * tests/test-exclude7.sh: Likewise.
38456
38457 2009-08-19  Akim Demaille  <demaille@gostai.com>
38458
38459         bootstrap: find sha1sum when named gsha1sum.
38460         * bootstrap (find_tool): New.
38461         ($SHA1SUM): New.
38462         Use it.
38463
38464 2009-08-20  Jim Meyering  <meyering@redhat.com>
38465
38466         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38467         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38468         expression that converts "." in a file name to "\." in the resulting
38469         regexp.  Start with a dummy statement, so that prior shell variable
38470         definitions are expanded portably.  Reported by Simon Josefsson.
38471
38472 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38473
38474         Fix polling for writeability of a screen buffer.
38475         * lib/poll.c: Distinguish input and screen buffers for the
38476         Win32 implementation.
38477         * lib/select.c: Likewise.
38478
38479 2009-08-19  Eric Blake  <ebb9@byu.net>
38480
38481         popen-safer: prevent popen from clobbering std descriptors
38482         * modules/popen-safer: New file.
38483         * lib/popen-safer.c: Likewise.
38484         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38485         * lib/stdio--.h (popen): Provide override.
38486         * lib/stdio-safer.h (popen_safer): Provide declaration.
38487         * tests/test-popen.c (includes): Partially test this.
38488         * modules/popen-safer-tests: New file, for more tests.
38489         * tests/test-popen-safer.c: Likewise.
38490         * MODULES.html.sh (file stream based Input/Output): Mention it.
38491
38492         tests: test some of the *-safer modules
38493         * modules/fopen-safer (Depends-on): Add fopen.
38494         * modules/fcntl-safer (Depends-on): Add fcntl.
38495         * modules/stdlib-safer (Depends-on): Add stdlib.
38496         (configure.ac): Set indicator.
38497         * modules/unistd-safer (configure.ac): Likewise.
38498         * modules/tmpfile-safer (configure.ac): Likewise.
38499         (Depends-on): Add tmpfile.
38500         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38501         active.
38502         * tests/test-fopen.c (includes): Test safer versions when they are
38503         in use.
38504         * tests/test-open.c (includes): Likewise.
38505
38506         popen: fix cygwin 1.5 bug when stdin closed
38507         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38508         * modules/popen: New file.
38509         * modules/popen-tests: Likewise.
38510         * tests/test-popen.c: Likewise.
38511         * m4/popen.m4: Likewise.
38512         * lib/popen.c: Likewise.
38513         * lib/stdio.in.h (popen): New declaration.
38514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38515         * modules/stdio (Makefile.am): Likewise.
38516         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38517
38518 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38519
38520         maint.mk: give full control over update-copyright exclusions
38521         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38522         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38523         (update-copyright): Don't force inclusion of top-level
38524         ChangeLog.  Don't force exclusion of all COPYING files, but make
38525         them the default exclusion instead.
38526
38527 2009-08-16  Bruno Haible  <bruno@clisp.org>
38528
38529         Fix test failures on Solaris 10.
38530         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38531         tests when Solaris iconv() is used.
38532         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38533         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38534         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38535         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38536         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38537
38538 2009-08-16  Bruno Haible  <bruno@clisp.org>
38539
38540         Fix test failures on Solaris 10.
38541         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38542         'tr' program and pass it as first argument.
38543         * tests/test-pipe-filter-gi1.sh: Likewise.
38544         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38545         program as first argument.
38546         * tests/test-pipe-filter-gi1.c (main): Likewise.
38547
38548 2009-08-16  Eric Blake  <ebb9@byu.net>
38549
38550         fpurge: fix previous commits
38551         * modules/fpurge (Makefile.am): Make replacement conditional,
38552         partially reverting 2007-04-29 change; missed in previous
38553         attempt.
38554         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38555         is missing.
38556
38557 2009-08-16  Bruno Haible  <bruno@clisp.org>
38558
38559         Clarify fpurge's effect on the file position.
38560         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38561         * tests/test-fpurge.c (main): Make a second pass for checking the file
38562         position.
38563
38564 2009-08-16  Bruno Haible  <bruno@clisp.org>
38565
38566         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38567         declaration of fpurge is missing.
38568         * tests/test-fpurge.c (main): Check that the file has not more contents
38569         than expected. Close the file before removing it.
38570
38571 2009-08-15  Eric Blake  <ebb9@byu.net>
38572
38573         fpurge: don't wrap working cygwin implementation
38574         * lib/fpurge.c (fpurge): Fix comment typo.
38575         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38576         1.7 to avoid replacement.
38577         * tests/test-fpurge.c (main): Enhance test.
38578
38579 2009-08-15  Eric Blake  <ebb9@byu.net>
38580         and Jim Meyering  <meyering@redhat.com>
38581
38582         test-update-copyright: skip if perl is insufficient
38583         * tests/test-update-copyright.sh: Failure to run maintainer tool
38584         should not cause testsuite failure on cygwin 1.5.
38585
38586 2009-08-14  Eric Blake  <ebb9@byu.net>
38587
38588         doc: mention more functions added in cygwin 1.7.0
38589         * doc/posix-headers/limits.texi (limits.h): Update for recent
38590         cygwin additions.
38591         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38592         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38593         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38594         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38595         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38596
38597 2009-08-14  Eric Blake  <ebb9@byu.net>
38598
38599         maint.mk: simplify update-copyright rule
38600         * top/maint.mk (update-copyright-local): Delete, and document how
38601         to do it in cfg.mk instead.
38602         (update-copyright-exclude-regexp): Delete, and document how to do
38603         it in .x-update-copyright instead.
38604         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38605         exclude ChangeLog.
38606
38607 2009-08-14  Bruno Haible  <bruno@clisp.org>
38608
38609         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38610
38611 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38612
38613         maint.mk: support update-copyright-env
38614         * top/maint.mk (update-copyright-env): Define place-holder.
38615         (update-copyright): Expand $(update-copyright-env) before
38616         invoking update-copyright.
38617
38618 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38619
38620         update-copyright: implement forced reformatting
38621         * build-aux/update-copyright: Implement and document
38622         UPDATE_COPYRIGHT_FORCE.
38623         * tests/test-update-copyright.sh: Test it.
38624
38625 2009-08-14  Eric Blake  <ebb9@byu.net>
38626         and Bruno Haible  <bruno@clisp.org>
38627
38628         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38629         * tests/test-locale.c: Revert previous patch related to NULL.
38630         * tests/test-stdio.c: Likewise.
38631         * tests/test-stdlib.c: Likewise.
38632         * tests/test-string.c: Likewise.
38633         * tests/test-unistd.c: Likewise.
38634         * modules/time-tests (Depends-on): Add verify.
38635         * modules/wchar-tests (Depends-on): Likewise.
38636         * tests/test-time.c: Test for NULL compliance.
38637         * tests/test-wchar.c: Likewise.
38638         * modules/locale (Depends-on): Add stddef.
38639         * modules/stdio (Depends-on): Likewise.
38640         * modules/stdlib (Depends-on): Likewise.
38641         * modules/string (Depends-on): Likewise.
38642         * modules/time (Depends-on): Likewise.
38643         * modules/unistd (Depends-on): Likewise.
38644         * modules/wchar (Depends-on): Likewise.
38645         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38646         * lib/stdlib.in.h (includes): Likewise.
38647         * lib/string.in.h (includes): Likewise.
38648         * lib/time.in.h (includes): Likewise.
38649         * lib/unistd.in.h (includes): Likewise.
38650         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38651         replaced.
38652         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38653         * m4/stddef_h.m4: New file.
38654         * modules/stddef: Likewise.
38655         * lib/stddef.in.h: Likewise.
38656         * modules/stddef-tests: Likewise.
38657         * tests/test-stddef.c: Likewise.
38658         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38659         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38660         * doc/posix-headers/locale.texi (locale.h): Likewise.
38661         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38662         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38663         * doc/posix-headers/string.texi (string.h): Likewise.
38664         * doc/posix-headers/time.texi (time.h): Likewise.
38665         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38666         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38667
38668 2009-08-14  Eric Blake  <ebb9@byu.net>
38669
38670         doc: improve git diff of texinfo files
38671         * .gitattributes: Add rule for *.texi files, with hint on how to
38672         use it.
38673         Copied from m4, and based on a report by Bruno Haible.
38674
38675 2009-08-14  Bruno Haible  <bruno@clisp.org>
38676
38677         Disable multithread support by default on Cygwin 1.5.x for real.
38678         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38679
38680 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38681
38682         update-copyright: much ado about intervals
38683         * build-aux/update-copyright: Implement and document
38684         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38685         of copyright year intervals.
38686         Also, document UPDATE_COPYRIGHT_YEAR.
38687         * tests/test-update-copyright.sh: Test it.
38688
38689         update-copyright: convert 2-digit to 4-digit years
38690         * build-aux/update-copyright: Implement and document.
38691         * tests/test-update-copyright.sh: Update.
38692
38693 2009-08-14  Jim Meyering  <meyering@redhat.com>
38694
38695         test-exclude: avoid coreutils "make check" failure
38696         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38697         just as in test-argmatch.c.
38698
38699 2009-08-13  Eric Blake  <ebb9@byu.net>
38700
38701         test-dup2: fix bad assumption
38702         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38703         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38704
38705         test-version-etc: fix CRLF portability issue
38706         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38707         recognize \r.
38708         * tests/test-argp-version-etc-1.sh: Likewise.
38709
38710         getopt: update client modules
38711         * modules/argp (Depends-on): Use getopt-gnu.
38712         * modules/git-merge-changelog (Depends-on): Likewise.
38713         * modules/long-options (Depends-on): Likewise.
38714         * modules/xstrtol (Depends-on): Likewise.
38715
38716 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38717
38718         * tests/test-version-etc.sh: Don't fail on different
38719         project/version.  Don't fail on CRLF differences.  Rewrite to use
38720         multiple -e instead of multiple sed forks, suggested by Eric Blake
38721         <ebb9@byu.net>.
38722         * tests/test-argp-version-etc-1.sh: Likewise.
38723
38724 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38725
38726         * tests/test-version-etc.sh: Don't fail on different
38727         project/version.
38728
38729 2009-08-12  Bruno Haible  <bruno@clisp.org>
38730
38731         Tests for modules 'getopt-posix', 'getopt-gnu'.
38732         * modules/getopt-posix-tests: New file.
38733         * tests/test-getopt.c: New file.
38734         * tests/test-getopt.h: New file.
38735         * tests/test-getopt_long.h: New file.
38736
38737         New modules 'getopt-posix', 'getopt-gnu'.
38738         * modules/getopt-gnu: New file, renamed from modules/getopt.
38739         * modules/getopt-posix: New file.
38740         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38741         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38742         (gl_GETOPT): Remove macro.
38743         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38744         Disable the test against BSD systems that declare optreset. Test
38745         against mingw bug. Test against lack of support of optional arguments
38746         on many platforms.
38747         * doc/glibc-headers/getopt.texi: Update module name and list of
38748         relevant platforms.
38749         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38750         'getopt-gnu' and more portability problems.
38751         * NEWS: Mention the changes.
38752
38753 2009-08-12  Bruno Haible  <bruno@clisp.org>
38754
38755         Ensure that optarg etc. get declared by <unistd.h>.
38756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38757         AC_USE_SYSTEM_EXTENSIONS.
38758         * modules/getopt (Depends-on): Add 'extensions'.
38759
38760 2009-08-12  Bruno Haible  <bruno@clisp.org>
38761
38762         Avoid test link errors.
38763         * modules/pipe-filter-ii-tests (Makefile.am): Define
38764         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38765         * modules/pipe-filter-gi-tests (Makefile.am): Define
38766         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38768
38769 2009-08-12  Bruno Haible  <bruno@clisp.org>
38770
38771         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38772         gl_GETOPT_SUBSTITUTE before.
38773         (gl_GETOPT): Use it.
38774         * m4/argp.m4 (gl_ARGP): Update.
38775         Reported by Sergey Poznyakoff.
38776
38777         * m4/getopt.m4: Reorder macros.
38778         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38779         (gl_GETOPT_SUBSTITUTE): Remove macro.
38780
38781 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38782
38783         Minor improvement in gitlog-to-changelog
38784
38785         * build-aux/gitlog-to-changelog: New option `--format' makes
38786         output format string configurable.
38787
38788 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38789
38790         Optimize exclude: use hash tables for non-wildcard patterns.
38791
38792         * lib/exclude.c: Include hash.h and mbuiter.h
38793         (struct exclude_pattern, exclude_segment): New data types.
38794         (struct exclude): Rewrite.
38795         (fnmatch_pattern_has_wildcards): New function.
38796         (new_exclude_segment, free_exclude_segment): New functions.
38797         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38798         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38799         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38800         * modules/exclude: Depend on hash and mbuiter.
38801
38802         * modules/exclude-tests: New file.
38803         * tests/test-exclude.c: New file.
38804         * tests/test-exclude1.sh: New file.
38805         * tests/test-exclude2.sh: New file.
38806         * tests/test-exclude3.sh: New file.
38807         * tests/test-exclude4.sh: New file.
38808         * tests/test-exclude5.sh: New file.
38809         * tests/test-exclude6.sh: New file.
38810         * tests/test-exclude7.sh: New file.
38811
38812 2009-08-12  Bruno Haible  <bruno@clisp.org>
38813
38814         Ensure that getopt() gets declared by <unistd.h>.
38815         * lib/unistd.in.h: Conditionally include getopt.h.
38816         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38817         Set GNULIB_UNISTD_H_GETOPT.
38818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38819         GNULIB_UNISTD_H_GETOPT.
38820         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38821
38822 2009-08-12  Bruno Haible  <bruno@clisp.org>
38823
38824         Clarify logic.
38825         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38826         gl_replace_getopt instead of GETOPT_H.
38827
38828 2009-08-12  Bruno Haible  <bruno@clisp.org>
38829
38830         * m4/getopt.m4: Add comments.
38831
38832 2009-08-12  Bruno Haible  <bruno@clisp.org>
38833
38834         Disable multithread support by default on Cygwin 1.5.x.
38835         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38836         set gl_use_threads=no if not specified otherwise.
38837
38838 2009-08-11  Bruno Haible  <bruno@clisp.org>
38839
38840         Avoid compilation error on NetBSD 5.0.
38841         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38842         * tests/test-stdio.c: Likewise.
38843         * tests/test-stdlib.c: Likewise.
38844         * tests/test-string.c: Likewise.
38845         * tests/test-unistd.c: Likewise.
38846         Reported by Greg Troxel <gdt@ir.bbn.com>
38847         at <https://savannah.gnu.org/support/?106973>.
38848
38849 2009-08-11  Bruno Haible  <bruno@clisp.org>
38850
38851         * modules/dup2-tests (Depends-on): Remove close.
38852
38853         Undo 2009-07-19 commit.
38854         * modules/acl-tests (Depends-on): Remove close.
38855         * modules/binary-io-tests (Depends-on): Likewise.
38856         * modules/closein-tests (Depends-on): Likewise.
38857         * modules/flock-tests (Depends-on): Likewise.
38858         * modules/fsync-tests (Depends-on): Likewise.
38859         * modules/lseek-tests (Depends-on): Likewise.
38860         * modules/pipe-tests (Depends-on): Likewise.
38861         * modules/posix_spawn-tests (Depends-on): Likewise.
38862         * modules/posix_spawnp-tests (Depends-on): Likewise.
38863         * modules/stat-time-tests (Depends-on): Likewise.
38864         * modules/yesno-tests (Depends-on): Likewise.
38865
38866 2009-08-10  Bruno Haible  <bruno@clisp.org>
38867
38868         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38869
38870 2009-08-10  Bruno Haible  <bruno@clisp.org>
38871
38872         Fix a gcc warning.
38873         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38874
38875 2009-08-10  Bruno Haible  <bruno@clisp.org>
38876
38877         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38878         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38879         not only the first time.
38880         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38881         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38882         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38883         is 1, not only the the first time.
38884
38885 2009-08-10  Bruno Haible  <bruno@clisp.org>
38886
38887         Make it possible to use module 'gethostname' without module 'close'.
38888         * lib/unistd.in.h (close): Evoke a link error only if
38889         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38891         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38892         * modules/unistd (Makefile.am): Substitute
38893         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38894         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38895         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38896         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38897         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38898         * modules/sys_ioctl (Makefile.am): Substitute
38899         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38900         * modules/socket (configure.ac): On native Windows, set
38901         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38902         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38903         Reported by Sam Steingold <sds@gnu.org>.
38904
38905 2009-08-10  Bruno Haible  <bruno@clisp.org>
38906
38907         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38908         * modules/ioctl (configure.ac): Likewise.
38909
38910 2009-08-10  Bruno Haible  <bruno@clisp.org>
38911
38912         Avoid collision between gnulib wrapper and libintl wrapper.
38913         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38914         already defined in intl/printf.c.
38915         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38916         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38917
38918 2009-08-09  Bruno Haible  <bruno@clisp.org>
38919
38920         Make <sys/select.h> really self-contained, also on Solaris 10.
38921         * lib/sys_select.in.h: Include <string.h>.
38922         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38923         Solaris 10 problem.
38924         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38925         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38926         Reported by Jim Meyering.
38927
38928 2009-08-09  Bruno Haible  <bruno@clisp.org>
38929
38930         Avoid warnings from 'aclocal' that are due to a use of macro name
38931         AM_XGETTEXT_OPTION that is not defined in automake.
38932         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38933         automake.
38934         * modules/error (configure.ac): Likewise.
38935         * modules/propername (configure.ac): Likewise.
38936         * modules/vasprintf (configure.ac): Likewise.
38937         * modules/verror (configure.ac): Likewise.
38938         * modules/xprintf (configure.ac): Likewise.
38939         * modules/xvasprintf (configure.ac): Likewise.
38940
38941 2009-08-08  Bruno Haible  <bruno@clisp.org>
38942
38943         Avoid compilation error in C++ mode.
38944         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38945         Reported by Sam Steingold <sds@gnu.org>.
38946
38947 2009-08-08  Bruno Haible  <bruno@clisp.org>
38948
38949         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38950         for the various Unix platforms.
38951         * doc/posix-headers/limits.texi: Update platforms list regarding
38952         HOST_NAME_MAX.
38953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38954
38955 2009-08-07  Jim Meyering  <meyering@redhat.com>
38956
38957         selinux-at: fix typo in a comment
38958         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38959         Spotted by Paolo Bonzini.
38960
38961         selinux-at: remove redundant m4 code, add documentation
38962         * modules/selinux-at (configure.ac): Remove redundant code.
38963         LIB_SELINUX is already set via the dependent module, selinux-h.
38964         (Include): Add quotes around selinux-at.h.
38965         * lib/selinux-at.h: Add documentation.
38966         Reported by Bruno Haible in
38967         http://marc.info/?l=gnulib-bug&m=124958988300749
38968
38969 2009-08-07  Bruno Haible  <bruno@clisp.org>
38970
38971         Avoid link error on MacOS X 10.3 and 10.4.
38972         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38973         on non-ELF systems.
38974         * lib/argp-pv.c (argp_program_version): Likewise.
38975         Reported by Simon Josefsson.
38976
38977 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38978
38979         * tests/test-version-etc.sh: Use $EXEEXT.
38980
38981 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38982
38983         update-copyright: update documentation to point to maint.mk
38984         * build-aux/update-copyright: Here.
38985
38986 2009-08-06  Jim Meyering  <meyering@redhat.com>
38987
38988         maint.mk: support update-copyright-local
38989         * top/maint.mk (update-copyright-local): Define place-holder.
38990         (update-copyright): Depend on $(update-copyright-local).
38991
38992 2009-08-06  Jim Meyering  <meyering@redhat.com>
38993
38994         selinux-at: new module
38995         Initially written for coreutils, this module will soon be
38996         used by findutils, too.
38997         * MODULES.html.sh [Misc]: Add selinux-at.
38998         * lib/selinux-at.h: New file, from coreutils.
38999         * lib/selinux-at.c: Likewise.
39000         * modules/selinux-at: Likewise.
39001         (License): Change from LGPL to GPL, since it depends
39002         on the GPL'd openat module.
39003
39004         doc: update README
39005         * README: Remove references to cogito.
39006         Remove cvs-repo-updating instructions from 2007.
39007         Don't imply that CVS is better if you have limited disk space.
39008
39009 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39010
39011         update-copyright: support C-style comments
39012         * build-aux/update-copyright: Implement and document.
39013         * tests/test-update-copyright.sh: Test.
39014
39015 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39016
39017         update-copyright: support omitted "(C)"
39018         * build-aux/update-copyright: Implement and document.  Also,
39019         allow variable whitespace before "(C)".
39020         * tests/test-update-copyright.sh: Test.
39021
39022 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39023
39024         update-copyright: don't trip on non-FSF copyright statements
39025         * build-aux/update-copyright: Fix so that the first correctly
39026         formatted FSF copyright statement is recognized no matter what
39027         appears before it.  Update documentation.
39028         * tests/test-update-copyright.sh: Test that.
39029
39030 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39031
39032         update-copyright: clean up code a little
39033         * build-aux/update-copyright: Append "_re" to the name of any
39034         variable holding a regular expression.
39035         Replace "old" and "new" with "stmt" in variable names.
39036         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39037         handled correctly.
39038         Format code more consistently.
39039
39040 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39041
39042         update-copyright-tests: improve portability
39043         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39044         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39045
39046 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39047
39048         update-copyright: support @copyright{} and &copy;
39049         * build-aux/update-copyright: Implement and document.
39050         * tests/test-update-copyright.sh: Test.
39051
39052 2009-08-04  Jim Meyering  <meyering@redhat.com>
39053
39054         update-copyright-tests: correctly test EOL=\r\n handling
39055         * tests/test-update-copyright.sh: Put \r at the end of some lines
39056         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39057
39058         maint.mk: make update-copyright exclusion list more configurable
39059         * top/maint.mk (update-copyright): Default to excluding COPYING,
39060         but allow an override, in case someone does want to update that file.
39061
39062         maint.mk: don't update copyright date in COPYING
39063         * top/maint.mk (update-copyright): Exclude COPYING.
39064
39065         maint.mk: add a copyright-updating rule
39066         * top/maint.mk (update-copyright): New rule.
39067         Derived from coreutils/Makefile.am.
39068
39069         update-copyright: rename some variables
39070         * build-aux/update-copyright: Rename a few variables for clarity.
39071         Tweak syntax.  List Joel E. Denny as coauthor.
39072
39073 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39074
39075         update-copyright: fix bug for 2-digit last year and add tests
39076         * build-aux/update-copyright: Fix bug.
39077         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39078         specified.
39079         * modules/update-copyright-tests: New
39080         * tests/test-update-copyright.sh: New.
39081
39082 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39083
39084         update-copyright: handle leading tabs in line prefix
39085         * build-aux/update-copyright: Count leading tabs as 8 spaces
39086         when computing margin.  This helps with the formatting of
39087         ChangeLogs, for example.
39088         Fix documentation a little.
39089
39090 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39091
39092         update-copyright: support EOL=\r\n
39093         * build-aux/update-copyright: Implement that.
39094
39095 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39096
39097         update-copyright: automatically format copyright statements
39098         * build-aux/update-copyright: Implement that.
39099         Also, be a little more predictable and safer by always failing
39100         when the full copyright format is not perfectly recognized as an
39101         unbroken whole.  Discussed at
39102         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39103         Rewrite documentation.
39104
39105 2009-08-03  Bruno Haible  <bruno@clisp.org>
39106
39107         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39108
39109 2009-08-02  Bruno Haible  <bruno@clisp.org>
39110
39111         Tests for module 'uname'.
39112         * modules/uname-tests: New file.
39113         * tests/test-uname.c: New file.
39114
39115         New module 'uname'.
39116         * lib/uname.c: New file.
39117         * m4/uname.m4: New file.
39118         * modules/uname: New file.
39119         * doc/posix-functions/uname.texi: Mention the new module.
39120
39121 2009-08-02  Bruno Haible  <bruno@clisp.org>
39122
39123         Tests for module 'sys_utsname'.
39124         * modules/sys_utsname-tests: New file.
39125         * tests/test-sys_utsname.c: New file.
39126
39127         New module 'sys_utsname'.
39128         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39129         * m4/sys_utsname_h.m4: New file.
39130         * modules/sys_utsname: New file.
39131         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39132
39133 2009-08-02  Bruno Haible  <bruno@clisp.org>
39134
39135         Implicitly initialize the sockets library.
39136         * lib/gethostname.c: Include sockets.h.
39137         (rpl_gethostname): Invoke gl_sockets_startup.
39138         * lib/socket.c: Include sockets.h.
39139         (rpl_socket): Invoke gl_sockets_startup.
39140         * modules/gethostname (Depends-on): Add sockets.
39141         * modules/socket (Depends-on): Likewise.
39142         * tests/test-poll.c: Don't include sockets.h.
39143         (main): Don't invoke gl_sockets_startup.
39144         * tests/test-select.c: Don't include sockets.h.
39145         (main): Don't invoke gl_sockets_startup.
39146
39147 2009-08-02  Bruno Haible  <bruno@clisp.org>
39148
39149         Allow multiple calls to gl_sockets_startup.
39150         * lib/sockets.c (initialized_sockets_version): New variable.
39151         (gl_sockets_startup): Do nothing if already called for this or a higher
39152         version.
39153         (gl_sockets_cleanup): Reset initialized_sockets_version.
39154
39155 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39156
39157         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39158         different project/version.
39159
39160 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39161             Bruno Haible  <bruno@clisp.org>
39162
39163         Tests for module 'pipe-filter-gi'.
39164         * modules/pipe-filter-gi-tests: New file.
39165         * tests/test-pipe-filter-gi1.sh: New file.
39166         * tests/test-pipe-filter-gi1.c: New file.
39167         * tests/test-pipe-filter-gi2.sh: New file.
39168         * tests/test-pipe-filter-gi2-main.c: New file.
39169         * tests/test-pipe-filter-gi2-child.c: New file.
39170
39171         New module 'pipe-filter-gi'.
39172         * lib/pipe-filter-gi.c: New file.
39173         * modules/pipe-filter-gi: New file.
39174
39175 2009-08-02  Bruno Haible  <bruno@clisp.org>
39176             Paolo Bonzini  <bonzini@gnu.org>
39177
39178         Tests for module 'pipe-filter-ii'.
39179         * modules/pipe-filter-ii-tests: New file.
39180         * tests/test-pipe-filter-ii1.sh: New file.
39181         * tests/test-pipe-filter-ii1.c: New file.
39182         * tests/test-pipe-filter-ii2.sh: New file.
39183         * tests/test-pipe-filter-ii2-main.c: New file.
39184         * tests/test-pipe-filter-ii2-child.c: New file.
39185
39186         New module 'pipe-filter-ii'.
39187         * lib/pipe-filter.h: New file.
39188         * lib/pipe-filter-ii.c: New file.
39189         * lib/pipe-filter-aux.h: New file.
39190         * modules/pipe-filter-ii: New file.
39191
39192 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39193
39194         * lib/gc-libgcrypt.c: Change copyright to FSF.
39195         * lib/gc-gnulib.c: Likewise.
39196
39197 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39198
39199         * lib/gethostname.c: Include limits.h.
39200
39201 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39202             Bruno Haible  <bruno@clisp.org>
39203
39204         Ensure HOST_NAME_MAX as part of the gethostname module.
39205         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39206         define also HOST_NAME_MAX.
39207         * tests/test-gethostname.c: Include <limits.h>.
39208         (main): Check also HOST_NAME_MAX.
39209         * doc/posix-headers/limits.texi: Document the mingw problem.
39210
39211 2009-08-02  Bruno Haible  <bruno@clisp.org>
39212
39213         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39214         Add comments.
39215
39216 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39217
39218         * lib/gethostname.c: Add Windows wrapper.
39219         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39220         * modules/gethostname: Depend on sys_socket & errno, for also
39221         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39222         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39223
39224 2009-07-31  Jim Meyering  <meyering@redhat.com>
39225
39226         getloadavg: fix symbol name in comment
39227         * lib/getloadavg.c: Correct a typo I introduced when adding
39228         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39229         Matt Kraai spotted the problem.
39230
39231 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39232
39233         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39234         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39235         code also if ! defined N_NAME_POINTER.
39236         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
39237         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
39238         but the n_name member is a 12-byte array.
39239
39240 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
39241
39242         update-copyright: generalize comment handling
39243         * build-aux/update-copyright: Handle copyright statements
39244         within more comment styles.
39245         Document usage.
39246         Report any file with an external copyright holder or parse failure.
39247
39248 2009-07-29  Jim Meyering  <meyering@redhat.com>
39249
39250         mktime: correct setting of REPLACE_MKTIME
39251         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
39252
39253         update-copyright: new module
39254         * modules/update-copyright: New file.
39255         * build-aux/update-copyright: New file.
39256         * MODULES.html.sh (maint+release support): Add update-copyright.
39257
39258 2009-07-27  Bruno Haible  <bruno@clisp.org>
39259
39260         Fix compilation error when <ctime> is used and mktime is replaced.
39261         * lib/time.in.h (mktime): New declaration.
39262         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
39263         REPLACE_MKTIME instead of defining mktime in config.h.
39264         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
39265         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
39266         Reported by Ross McFarland <rwmcfa1@neces.com>.
39267
39268 2009-07-27  Bruno Haible  <bruno@clisp.org>
39269
39270         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
39271         Reported by Matt Kraai <mkraai@beckman.com>.
39272
39273 2009-07-25  Jim Meyering  <meyering@redhat.com>
39274
39275         maint.mk: avoid warnings about missing files
39276         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
39277         diagnostic when .prev-version does not exist.
39278         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
39279         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
39280         nonexistent cfg.mk.
39281         Suggestions from Simon Josefsson.
39282
39283 2009-07-25  Bruno Haible  <bruno@clisp.org>
39284
39285         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
39286         defined as macros. Needed on QNX 6.4.1.
39287         Reported by Matt Kraai <mkraai@beckman.com>.
39288
39289 2009-07-23  Jim Meyering  <meyering@redhat.com>
39290
39291         maint.mk: invoke "make dist" with a working value of XZ_OPT
39292         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
39293
39294 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
39295
39296         Make fseeko.c compile on QNX.
39297         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
39298
39299 2009-07-22  Peter Simons  <simons@cryp.to>
39300
39301         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
39302         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
39303         * lib/md4.h: Likewise.
39304         * lib/md5.h: Likewise.
39305         * lib/sha1.h: Likewise.
39306         * lib/sha256.h: Likewise.
39307         * lib/sha512.h: Likewise.
39308
39309         tests-sha1: don't assign literal string to 'char *' variable
39310         * tests/test-sha1.c (main): Declare locals with "const" to match
39311         attributes of the right hand side.
39312
39313 2009-07-21  Eric Blake  <ebb9@byu.net>
39314
39315         dup2: fix more mingw problems
39316         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
39317         fd to itself.
39318         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39319         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
39320         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
39321         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
39322         care of mingw bugs.
39323
39324 2009-07-21  Jim Meyering  <meyering@redhat.com>
39325
39326         vc-list-files: avoid failure when /bin/sh is dash
39327         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
39328         On some Debian based systems, /bin/sh is a symlink to dash, and running
39329         this command would omit the "/" following each 'tests' prefix:
39330           dash -x build-aux/vc-list-files -C . tests
39331         That is because bash and dash work differently:
39332           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
39333           bash ok
39334           dash odd
39335
39336 2009-07-21  Eric Blake  <ebb9@byu.net>
39337
39338         dup2-tests: test previous patch
39339         * modules/dup2-tests: New file.
39340         * tests/test-dup2.c: Likewise.
39341         * tests/test-open.c (main): Avoid unspecified behavior.
39342         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
39343         test.
39344
39345         dup2: work around mingw and cygwin 1.5 bug
39346         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
39347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39348         * modules/unistd (Makefile.am): Substitute it.
39349         * lib/unistd.in.h (dup2): Declare the replacement.
39350         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
39351         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
39352         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
39353         * modules/execute (Depends-on): Add dup2.
39354         * modules/fseterr (Depends-on): Likewise.
39355         * modules/pipe (Depends-on): Likewise.
39356         * modules/posix_spawn-internal (Depends-on): Likewise.
39357
39358 2009-07-21  Bruno Haible  <bruno@clisp.org>
39359
39360         * modules/.gitattributes: New file.
39361
39362 2009-07-20  Bruno Haible  <bruno@clisp.org>
39363
39364         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
39365         (main): Use it.
39366
39367 2009-07-20  Eric Blake  <ebb9@byu.net>
39368
39369         test-pipe: make a bit more robust.
39370         * tests/test-pipe.c (myerr): Allow error messages regardless of
39371         what we do to stderr.
39372         (test_pipe): Rearrange to avoid deadlock.
39373         (child_main): Try a larger read, to ensure we avoided deadlock.
39374         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39375         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39376         if misused.
39377
39378 2009-07-19  Jim Meyering  <meyering@redhat.com>
39379
39380         fts: avoid false-positive cycle-detection
39381         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39382         for each new command line argument.
39383
39384 2009-07-19  Bruno Haible  <bruno@clisp.org>
39385
39386         Fix build error on mingw with the modules sys_select and unistd.
39387         * modules/acl-tests (Depends-on): Add close.
39388         * modules/binary-io-tests (Depends-on): Likewise.
39389         * modules/closein-tests (Depends-on): Likewise.
39390         * modules/flock-tests (Depends-on): Likewise.
39391         * modules/fsync-tests (Depends-on): Likewise.
39392         * modules/lseek-tests (Depends-on): Likewise.
39393         * modules/pipe-tests (Depends-on): Likewise.
39394         * modules/posix_spawn-tests (Depends-on): Likewise.
39395         * modules/posix_spawnp-tests (Depends-on): Likewise.
39396         * modules/stat-time-tests (Depends-on): Likewise.
39397         * modules/yesno-tests (Depends-on): Likewise.
39398
39399 2009-07-19  Bruno Haible  <bruno@clisp.org>
39400
39401         Unify conditionals.
39402         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39403         macros, not at the compiler macros.
39404         * lib/pipe.c: Likewise.
39405         * lib/execute.c: Likewise.
39406         * lib/spawni.c: Likewise.
39407
39408 2009-07-19  Bruno Haible  <bruno@clisp.org>
39409
39410         Fix handling of closed stdin/stdout/stderr on mingw.
39411         * lib/w32spawn.h: Include unistd.h.
39412         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39413         file descriptor with O_NOINHERIT flag.
39414         (fd_safer_noinherit): New function, based on fd-safer.c.
39415         (dup_safer_noinherit): New function, based on dup-safer.c.
39416         (undup_safer_noinherit): New function.
39417         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39418         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39419         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39420         instead of fd_safer.
39421         * tests/test-pipe.c: Include <windows.h>.
39422         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39423         result.
39424
39425         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39426         from main.
39427         (test_pipe): Pass an extra argument for disambiguation.
39428         (main): Invoke parent_main or child_main.
39429
39430         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39431         consistently.
39432
39433 2009-07-18  Eric Blake  <ebb9@byu.net>
39434
39435         test-pipe: fix mingw build
39436         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39437
39438 2009-07-18  Bruno Haible  <bruno@clisp.org>
39439
39440         * modules/pipe-tests (Makefile.am): Fix typo.
39441
39442 2009-07-18  Eric Blake  <ebb9@byu.net>
39443
39444         error: fix mingw build
39445         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39446         Reported by Bruno Haible.
39447
39448         error: avoid undefined use of stdout
39449         * lib/error.c (error, error_at_line): Check that fd 1 is open
39450         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39451         is handling faults and the close_stdout module wants to report the
39452         detection of closed stdout as an error.
39453
39454 2009-07-17  Eric Blake  <ebb9@byu.net>
39455
39456         pipe: be robust in face of closed fds
39457         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39458         should cause child to misbehave.
39459         * modules/pipe-tests: New module.
39460         * tests/test-pipe.c: New file.
39461         * tests/test-pipe.sh: New file.
39462         Reported by Akim Demaille.
39463
39464 2009-07-14  Bruno Haible  <bruno@clisp.org>
39465
39466         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39467         Reported by anonymous kc.
39468
39469 2009-07-07  Jim Meyering  <meyering@redhat.com>
39470
39471         maint.mk: don't look for translatable strings in *.m4 or *.mk
39472         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39473         when searching for translatable strings.
39474
39475 2009-07-05  Jim Meyering  <meyering@redhat.com>
39476
39477         remove superfluous parentheses in STREQ definition
39478         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39479         * lib/getugroups.c (STREQ): Likewise.
39480         * lib/fnmatch.c (STREQ): Likewise.
39481         Spotted by Bruno Haible.
39482
39483 2009-07-04  Jim Meyering  <meyering@redhat.com>
39484
39485         argv-iter: new module
39486         * MODULES.html.sh: Add argv-iter.
39487         * lib/argv-iter.c, lib/argv-iter.h: New files.
39488         * modules/argv-iter: New file.
39489         * modules/argv-iter-tests: New file.
39490         * tests/test-argv-iter.c: Test it.
39491
39492 2009-07-04  Bruno Haible  <bruno@clisp.org>
39493
39494         Fix assertion.
39495         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39496         contains more exact copies of a given entry than file2, leave the extra
39497         copies unpaired rather than aborting.
39498         Reported by Eric Blake.
39499
39500 2009-07-02  Bruno Haible  <bruno@clisp.org>
39501
39502         Speedup git-merge-changelog for git cherry-pick.
39503         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39504         (entries_mapping_get): New function, extracted from compute_mapping.
39505         (entries_mapping_reverse_get): New function.
39506         (compute_mapping): Add a 'full' argument. Return the result in a
39507         'struct entries_mapping'.
39508         (main): Update. Access the mappings through entries_mapping_get.
39509         Reported by Eric Blake.
39510
39511 2009-07-02  Bruno Haible  <bruno@clisp.org>
39512
39513         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39514         best_i.
39515
39516 2009-07-02  Bruno Haible  <bruno@clisp.org>
39517
39518         Speed up approximate search for matching ChangeLog entries.
39519         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39520         argument. Call fstrcmp_bounded instead of fstrcmp.
39521         (compute_mapping, try_split_merged_entry, main): Update callers.
39522
39523 2009-07-02  Bruno Haible  <bruno@clisp.org>
39524
39525         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39526
39527 2009-06-30  Bruno Haible  <bruno@clisp.org>
39528
39529         Reduce the number of uc_is_cased calls.
39530         * lib/unicase.h (casing_suffix_context_t): Add
39531         'first_char_except_ignorable' field.
39532         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39533         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39534         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39535         Update initializer.
39536         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39537         case-ignorable characters.
39538         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39539         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39540         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39541         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39542         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39543
39544 2009-06-30  Bruno Haible  <bruno@clisp.org>
39545
39546         Tests for module 'unicase/ignorable'.
39547         * modules/unicase/ignorable-tests: New file.
39548         * tests/unicase/test-ignorable.c: New file, generated by
39549         gen-uni-tables.
39550
39551         Tests for module 'unicase/cased'.
39552         * modules/unicase/cased-tests: New file.
39553         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39554         * tests/unicase/test-predicate-part1.h: New file, derived from
39555         tests/unictype/test-predicate-part1.h.
39556         * tests/unicase/test-predicate-part2.h: New file, same as
39557         tests/unictype/test-predicate-part2.h.
39558
39559         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39560         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39561         (output_casing_properties): New function.
39562         (main): Call it.
39563         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39564         * lib/unicase/cased.c: Include unictype/bitmap.h.
39565         (uc_is_cased): Define through a bitmap lookup.
39566         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39567         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39568         (uc_is_case_ignorable): Define through a bitmap lookup.
39569         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39570         lib/unictype/bitmap.h.
39571         (Depends-on): Add inline. Clean up.
39572         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39573         lib/unictype/bitmap.h.
39574         (Depends-on): Add inline. Clean up.
39575         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39576         recognition.
39577         * tests/unicase/test-u16-tolower.c (main): Likewise.
39578         * tests/unicase/test-u32-tolower.c (main): Likewise.
39579
39580 2009-06-30  Bruno Haible  <bruno@clisp.org>
39581
39582         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39583         * lib/unicase/u16-casemap.c: Likewise.
39584         * lib/unicase/u32-casemap.c: Likewise.
39585
39586 2009-06-29  Bruno Haible  <bruno@clisp.org>
39587
39588         Define u32_casefold as a wrapper around u32_ct_casefold.
39589         * lib/unicase/u32-casefold.c: Update.
39590         * modules/unicase/u32-casefold (Depends-on): Add
39591         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39592         unicase/empty-suffix-context. Clean up.
39593
39594         Define u16_casefold as a wrapper around u16_ct_casefold.
39595         * lib/unicase/u16-casefold.c: Update.
39596         * modules/unicase/u16-casefold (Depends-on): Add
39597         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39598         unicase/empty-suffix-context. Clean up.
39599
39600         Define u8_casefold as a wrapper around u8_ct_casefold.
39601         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39602         * lib/unicase/u8-casefold.c: Update.
39603         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39604         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39605
39606         Define u32_totitle as a wrapper around u32_ct_totitle.
39607         * lib/unicase/u32-totitle.c: Update.
39608         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39609         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39610
39611         Define u16_totitle as a wrapper around u16_ct_totitle.
39612         * lib/unicase/u16-totitle.c: Update.
39613         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39614         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39615
39616         Define u8_totitle as a wrapper around u8_ct_totitle.
39617         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39618         functions.
39619         (FUNC): Delegate to U_CT_TOTITLE.
39620         * lib/unicase/u8-totitle.c: Update.
39621         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39622         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39623
39624         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39625         invocation.
39626         * modules/unicase/u32-tolower (Depends-on): Add
39627         unicase/empty-prefix-context, unicase/empty-suffix-context.
39628
39629         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39630         invocation.
39631         * modules/unicase/u16-tolower (Depends-on): Add
39632         unicase/empty-prefix-context, unicase/empty-suffix-context.
39633
39634         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39635         * modules/unicase/u8-tolower (Depends-on): Add
39636         unicase/empty-prefix-context, unicase/empty-suffix-context.
39637
39638         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39639         invocation.
39640         * modules/unicase/u32-toupper (Depends-on): Add
39641         unicase/empty-prefix-context, unicase/empty-suffix-context.
39642
39643         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39644         invocation.
39645         * modules/unicase/u16-toupper (Depends-on): Add
39646         unicase/empty-prefix-context, unicase/empty-suffix-context.
39647
39648         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39649         * modules/unicase/u8-toupper (Depends-on): Add
39650         unicase/empty-prefix-context, unicase/empty-suffix-context.
39651
39652         New module 'unicase/u32-ct-casefold'.
39653         * lib/unicase/u32-ct-casefold.c: New file.
39654         * modules/unicase/u32-ct-casefold: New file.
39655
39656         New module 'unicase/u16-ct-casefold'.
39657         * lib/unicase/u16-ct-casefold.c: New file.
39658         * modules/unicase/u16-ct-casefold: New file.
39659
39660         New module 'unicase/u8-ct-casefold'.
39661         * lib/unicase/u8-ct-casefold.c: New file.
39662         * lib/unicase/u-ct-casefold.h: New file, derived from
39663         lib/unicase/u-casefold.h.
39664         * modules/unicase/u8-ct-casefold: New file.
39665
39666         New module 'unicase/u32-ct-totitle'.
39667         * lib/unicase/u32-ct-totitle.c: New file.
39668         * modules/unicase/u32-ct-totitle: New file.
39669
39670         New module 'unicase/u16-ct-totitle'.
39671         * lib/unicase/u16-ct-totitle.c: New file.
39672         * modules/unicase/u16-ct-totitle: New file.
39673
39674         New module 'unicase/u8-ct-totitle'.
39675         * lib/unicase/u8-ct-totitle.c: New file.
39676         * lib/unicase/u-ct-totitle.h: New file, derived from
39677         lib/unicase/u-totitle.h.
39678         * modules/unicase/u8-ct-totitle: New file.
39679
39680         New module 'unicase/u32-ct-tolower'.
39681         * lib/unicase/u32-ct-tolower.c: New file.
39682         * modules/unicase/u32-ct-tolower: New file.
39683
39684         New module 'unicase/u16-ct-tolower'.
39685         * lib/unicase/u16-ct-tolower.c: New file.
39686         * modules/unicase/u16-ct-tolower: New file.
39687
39688         New module 'unicase/u8-ct-tolower'.
39689         * lib/unicase/u8-ct-tolower.c: New file.
39690         * modules/unicase/u8-ct-tolower: New file.
39691
39692         New module 'unicase/u32-ct-toupper'.
39693         * lib/unicase/u32-ct-toupper.c: New file.
39694         * modules/unicase/u32-ct-toupper: New file.
39695
39696         New module 'unicase/u16-ct-toupper'.
39697         * lib/unicase/u16-ct-toupper.c: New file.
39698         * modules/unicase/u16-ct-toupper: New file.
39699
39700         New module 'unicase/u8-ct-toupper'.
39701         * lib/unicase/u8-ct-toupper.c: New file.
39702         * modules/unicase/u8-ct-toupper: New file.
39703
39704         Add context arguments to u*_casemap functions.
39705         * lib/unicase/unicasemap.h: Include unicase.h.
39706         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39707         suffix_context arguments.
39708         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39709         functions.
39710         (FUNC): Add prefix_context and suffix_context arguments. Use
39711         uc_is_cased and uc_is_case_ignorable.
39712         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39713         * lib/unicase/u16-casemap.c: Likewise.
39714         * lib/unicase/u32-casemap.c: Likewise.
39715         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39716         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39717         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39718         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39719         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39720         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39721
39722         New module 'unicase/u32-suffix-context'.
39723         * lib/unicase/u32-suffix-context.c: New file.
39724         * modules/unicase/u32-suffix-context: New file.
39725
39726         New module 'unicase/u16-suffix-context'.
39727         * lib/unicase/u16-suffix-context.c: New file.
39728         * modules/unicase/u16-suffix-context: New file.
39729
39730         New module 'unicase/u8-suffix-context'.
39731         * lib/unicase/u8-suffix-context.c: New file.
39732         * lib/unicase/u-suffix-context.h: New file.
39733         * modules/unicase/u8-suffix-context: New file.
39734
39735         New module 'unicase/empty-suffix-context'.
39736         * lib/unicase/empty-suffix-context.c: New file.
39737         * modules/unicase/empty-suffix-context: New file.
39738
39739         New module 'unicase/u32-prefix-context'.
39740         * lib/unicase/u32-prefix-context.c: New file.
39741         * modules/unicase/u32-prefix-context: New file.
39742
39743         New module 'unicase/u16-prefix-context'.
39744         * lib/unicase/u16-prefix-context.c: New file.
39745         * modules/unicase/u16-prefix-context: New file.
39746
39747         New module 'unicase/u8-prefix-context'.
39748         * lib/unicase/u8-prefix-context.c: New file.
39749         * lib/unicase/u-prefix-context.h: New file.
39750         * lib/unicase/context.h: New file.
39751         * modules/unicase/u8-prefix-context: New file.
39752
39753         New module 'unicase/empty-prefix-context'.
39754         * lib/unicase/empty-prefix-context.c: New file.
39755         * modules/unicase/empty-prefix-context: New file.
39756
39757         New module 'unicase/ignorable'.
39758         * lib/unicase/ignorable.c: New file.
39759         * modules/unicase/ignorable: New file.
39760
39761         New module 'unicase/cased'.
39762         * lib/unicase/caseprop.h: New file.
39763         * lib/unicase/cased.c: New file.
39764         * modules/unicase/cased: New file.
39765
39766         New functions for case mapping of substrings.
39767         * lib/unicase.h (casing_prefix_context_t): New type.
39768         (unicase_empty_prefix_context): New variable.
39769         (u8_casing_prefix_context, u16_casing_prefix_context,
39770         u32_casing_prefix_context, u8_casing_prefixes_context,
39771         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39772         declarations.
39773         (casing_suffix_context_t): New type.
39774         (unicase_empty_suffix_context): New variable.
39775         (u8_casing_suffix_context, u16_casing_suffix_context,
39776         u32_casing_suffix_context, u8_casing_suffixes_context,
39777         u16_casing_suffixes_context, u32_casing_suffixes_context,
39778         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39779         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39780         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39781         declarations.
39782
39783 2009-06-28  Jim Meyering  <meyering@redhat.com>
39784
39785         boostrap: indent only with spaces
39786         * build-aux/bootstrap: Indent only with spaces, never TABs.
39787
39788         bootstrap: split long lines
39789         * build-aux/bootstrap: Keep line length < 80.
39790
39791         bootstrap: sync from coreutils
39792         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39793         just as autoreconf does.  Verify a list of prerequisite
39794         package-name,version-number pairs if defined in bootstrap.conf.
39795         Refer to README-prereq, if prerequisites are not satisfied.
39796
39797 2009-06-27  Eric Blake  <ebb9@byu.net>
39798
39799         tests: add test for bogus NULL definition
39800         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39801         * tests/test-stdlib.c: Likewise.
39802         * tests/test-string.c: Likewise.
39803         * tests/test-locale.c: Likewise.
39804         * tests/test-unistd.c: Likewise.
39805         * modules/stdio-tests (Depends-on): Add verify.
39806         * modules/stdlib-tests (Depends-on): Likewise.
39807         * modules/string-tests (Depends-on): Likewise.
39808         * modules/locale-tests (Depends-on): Likewise.
39809         * modules/unistd-tests (Depends-on): Likewise.
39810
39811 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39812
39813         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39814         self-explaining comment.
39815         * m4/selinux-selinux-h: Update serial.
39816         (gl_LIBSELINUX): New macro, adding a warning for missing development
39817         packages to code extracted from...
39818         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39819         Add warning for missing development packages here, too.
39820
39821 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39822
39823         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39824
39825 2009-06-25  Eric Blake  <ebb9@byu.net>
39826
39827         version-etc: fix regression
39828         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39829         gcc.
39830         (version_etc): Use it, to catch bugs with trailing NULL.
39831         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39832         (version_etc_va): Fix logic bug.
39833         * modules/version-etc-tests: Add test.
39834         * tests/test-version-etc.c: New file.
39835         * tests/test-version-etc.sh: Likewise.
39836
39837 2009-06-25  Sam Steingold  <sds@gnu.org>
39838
39839         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39840         mbtowc declaration.
39841
39842 2009-06-25  Eric Blake  <ebb9@byu.net>
39843
39844         fpurge: migrate into <stdio.h>
39845         * lib/fpurge.h: Delete...
39846         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39847         * lib/fpurge.c (fpurge): Change declaring header.
39848         * modules/fpurge (Files): Drop deleted file.
39849         (Depends-on): Add stdio.
39850         (configure.ac): Set witness.
39851         * modules/stdio (Makefile.am): Support fpurge macros.
39852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39853         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39854         * lib/fflush.c: Update client.
39855         * tests/test-fpurge.c: Likewise.
39856         * NEWS: Mention the change.
39857
39858 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39859
39860         * lib/argp-version-etc.c (program_authors): Add const
39861         qualifier.
39862         * lib/version-etc.c: Fix typos in the comments.
39863         * modules/argp-version-etc: Depends on version-etc.
39864
39865 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39866
39867         argp-version-etc: new module.
39868
39869         * lib/argp-version-etc.c: New file.
39870         * lib/argp-version-etc.h: New file.
39871         * modules/argp-version-etc: New file.
39872         * modules/argp-version-etc-tests: New file.
39873         * tests/test-argp-version-etc.c: New test.
39874         * tests/test-argp-version-etc-1.sh: New test.
39875
39876 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39877
39878         Provide additional interfaces and documentation for version-etc
39879         module.
39880
39881         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39882         interfaces.
39883         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39884         prototypes.
39885
39886 2009-06-24  Bruno Haible  <bruno@clisp.org>
39887
39888         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39889         HAVE_LIB${NAME} macro.
39890         Reported by Sam Steingold <sds@gnu.org>.
39891
39892 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39893
39894         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39895         needed.
39896
39897 2009-06-21  Bruno Haible  <bruno@clisp.org>
39898
39899         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39900         work.
39901         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39902         together with LIB${NAME}, LTLIB${NAME}.
39903         Reported by Sam Steingold <sds@gnu.org>.
39904
39905 2009-06-20  Jim Meyering  <meyering@redhat.com>
39906
39907         tests: make sc_require_test_exit_idiom more generic
39908         * top/maint.mk (Exit_witness_file): New overridable variable.
39909         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39910         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39911
39912 2009-06-19  Jim Meyering  <meyering@redhat.com>
39913
39914         hash: reverse order of src/dst parameters in an internal interface
39915         * lib/hash.c (transfer_entries): Reverse order of parameters to
39916         put DST before SRC.  Adjust callers.
39917
39918         tests: test-hash: avoid wholesale duplication
39919         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39920         Instead, use a loop and add a single conditional.
39921
39922         tests: test-hash: allow seed selection via a command line argument
39923         * tests/test-hash.c (get_seed): New function.
39924         (main): Use it.
39925
39926 2009-06-19  Eric Blake  <ebb9@byu.net>
39927
39928         hash: avoid memory leak on allocation failure
39929         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39930         failure.  Factor repeated algorithm...
39931         (transfer_entries): ...into new helper routine.
39932         (hash_delete): React to hash_rehash return value.
39933
39934         hash: reduce memory pressure in hash_rehash no-op case
39935         * lib/hash.c (next_prime): Avoid overflow.
39936         (hash_initialize): Factor bucket size computation...
39937         (compute_bucket_size): ...into new helper function.
39938         (hash_rehash): Use new function and open coding to reduce memory
39939         pressure, and avoid a memory leak in USE_OBSTACK code.
39940         Reported by Jim Meyering.
39941
39942 2009-06-18  Eric Blake  <ebb9@byu.net>
39943
39944         hash: make rotation more obvious
39945         * modules/hash (Depends-on): Add bitrotate and stdint.
39946         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39947         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39948         (SIZE_MAX): Rely on headers for definition.
39949         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39950         (raw_hasher): Use rotr_sz.
39951         Suggested by Jim Meyering.
39952
39953         hash: fix memory leak in last patch
39954         * lib/hash.c (hash_rehash): Avoid memory leak.
39955
39956         hash: avoid no-op rehashing
39957         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39958
39959         hash: provide default callback functions
39960         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39961         (hash_initialize): Use them as defaults.
39962         * tests/test-hash.c (main): Test this.
39963
39964         hash: minor optimization
39965         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39966         when possible.
39967         (hash_initialize): Document this promise.
39968         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39969         * tests/test-hash.c (hash_compare_strings): Test this.
39970
39971 2009-06-18  Bruno Haible  <bruno@clisp.org>
39972
39973         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39974         going to be replaced anyway.
39975
39976 2009-06-18  Bruno Haible  <bruno@clisp.org>
39977
39978         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39979         in one place.
39980         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39981         be replaced anyway.
39982
39983 2009-06-18  Eric Blake  <ebb9@byu.net>
39984
39985         hash: check for resize before insertion
39986         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39987         threshold before insertion, so that a pathological hash_rehash
39988         that fills every bucket can still trigger another rehash.
39989
39990 2009-06-18  Jim Meyering  <meyering@redhat.com>
39991
39992         hash-tests: add a loop around the small tests
39993         * tests/test-hash.c (main): Repeat small tests with selected
39994         small initial table sizes.
39995
39996 2009-06-17  Eric Blake  <ebb9@byu.net>
39997
39998         hash: minor cleanups
39999         * lib/hash.h (hash_entry): Make opaque, by moving...
40000         * lib/hash.c (hash_entry): ...here.
40001         (hash_insert): Clarify restrictions on what can be inserted.
40002         (hash_get_next): Clarify when it is safe to remove an element
40003         during traversal.
40004         (check_tuning): Skip verification when tuning is known safe.
40005         (hash_initialize): Clarify restrictions on tuning.
40006
40007 2009-06-17  Jim Meyering  <jim@meyering.net>
40008         and Eric Blake  <ebb9@byu.net>
40009
40010         hash-tests: new module
40011         * modules/hash-tests: New file.
40012         * tests/test-hash.c: New file.
40013
40014 2009-06-17  Eric Blake  <ebb9@byu.net>
40015
40016         strstr-simple: document new module
40017         * MODULES.html.sh: Document new module.
40018
40019         strstr, strcasestr: replace on platforms with broken memchr
40020         * modules/strstr: Split into...
40021         * modules/strstr-simple: ...new module that does not care about
40022         performance, but does care about glibc bug.
40023         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40024         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40025         if platform memchr is broken, per Debian bug 521737.
40026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40027         memchr.
40028         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40029         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40030         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40031         * modules/mountlist (Depends-on): Add strstr-simple.
40032         * modules/gen-uni-tables (Depends-on): Likewise.
40033         * modules/argz (Depends-on): Add strstr.
40034
40035 2009-06-17  Bruno Haible  <bruno@clisp.org>
40036
40037         * modules/posix_spawn-internal (Depends-on): Add errno.
40038
40039 2009-06-17  Bruno Haible  <bruno@clisp.org>
40040
40041         Define missing ESTALE on Interix 3.5.
40042         * lib/errno.in.h (ESTALE): Assign a value if missing.
40043         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40044         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40045         missing.
40046         * doc/posix-headers/errno.texi: Mention the Interix bug.
40047         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40048
40049 2009-06-15  Eric Blake  <ebb9@byu.net>
40050
40051         memchr, memchr2: add valgrind exception
40052         * lib/memchr.valgrind: New file.
40053         * lib/memchr2.valgrind: New file.
40054         * modules/memchr (Files): Distribute valgrind file.
40055         * modules/memchr2 (Files): Likewise.
40056
40057         docs: memchr is no longer obsolete
40058         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40059         * lib/string.in.h (memchr): Simplify logic.
40060
40061 2009-06-14  Jim Meyering  <meyering@redhat.com>
40062
40063         link-follow: fix the "checking..." message to not mention trailing slash
40064         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40065         never considered trailing slashes.
40066
40067 2009-06-14  Bruno Haible  <bruno@clisp.org>
40068
40069         * m4/memchr.m4: Mention also the bug on IA-64.
40070         * doc/posix-functions/memchr.texi: Likewise.
40071
40072 2009-06-12  Eric Blake  <ebb9@byu.net>
40073
40074         memchr: detect broken x86_64 and alpha implementations
40075         * modules/memchr-tests (Depends-on): Move mmap detection...
40076         * modules/memchr (Depends-on): ...here.
40077         (configure.ac): Set indicator.
40078         * lib/string.in.h (memchr): Declare replacement.
40079         * modules/string (Makefile.am): Trigger replacement.
40080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40081         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40082         bugs.
40083         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40084         * modules/getpagesize (License): Relax license.
40085
40086 2009-06-11  Bruno Haible  <bruno@clisp.org>
40087
40088         * lib/idpriv.h: Add more references.
40089
40090 2009-06-08  Bruno Haible  <bruno@clisp.org>
40091
40092         Tests for module 'idpriv-droptemp'.
40093         * modules/idpriv-droptemp-tests: New file.
40094         * tests/test-idpriv-droptemp.sh: New file.
40095         * tests/test-idpriv-droptemp.su.sh: New file.
40096         * tests/test-idpriv-droptemp.c: New file.
40097
40098         New module 'idpriv-droptemp'.
40099         * lib/idpriv-droptemp.c: New file.
40100         * modules/idpriv-droptemp: New file.
40101
40102 2009-06-08  Bruno Haible  <bruno@clisp.org>
40103
40104         Tests for module 'idpriv-drop'.
40105         * modules/idpriv-drop-tests: New file.
40106         * tests/test-idpriv-drop.sh: New file.
40107         * tests/test-idpriv-drop.su.sh: New file.
40108         * tests/test-idpriv-drop.c: New file.
40109
40110         New module 'idpriv-drop'.
40111         * lib/idpriv.h: New file.
40112         * lib-idpriv-drop.c: New file.
40113         * m4/idpriv.m4: New file.
40114         * modules/idpriv-drop: New file.
40115
40116 2009-06-08  Bruno Haible  <bruno@clisp.org>
40117
40118         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40119         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40120         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40121         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40122         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40123         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40124         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40125
40126 2009-06-08  Eric Blake  <ebb9@byu.net>
40127
40128         test-strstr: use memory fence, when possible
40129         * tests/test-strstr.c (main): Use memory fence, in order to be
40130         more likely to trigger Debian bug 521737.
40131         * modules/strstr-tests (Files): Pull in additional files.
40132
40133         memchr: no longer obsolete, for wider field testing
40134         * modules/memchr (Status, Notice): Delete, this module is no
40135         longer obsolete.
40136         * modules/vasnprintf (Depends-on): Add memchr.
40137
40138 2009-06-07  Jim Meyering  <meyering@redhat.com>
40139
40140         hash: declare some functions with the warn_unused_result attribute
40141         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40142
40143 2009-06-07  Bruno Haible  <bruno@clisp.org>
40144
40145         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40146         Reported by Eric Blake.
40147
40148 2009-06-06  Eric Blake  <ebb9@byu.net>
40149
40150         test-alignof: fix typo with long double
40151         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40152         compiler error.
40153
40154 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40155
40156         Escape non-texinfo { and }s.
40157         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40158         markup error.
40159
40160 2009-06-04  Jim Meyering  <meyering@redhat.com>
40161
40162         gitlog-to-changelog: don't infloop on an empty commit log
40163         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40164         Reported by Boris Petersen <transacid@centerim.org>.
40165
40166 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40167
40168         version-etc: extend for packagers
40169         Add three new configure options, intended for packagers:
40170           --with-packager="packager name"
40171           --with-packager-version="packager-specific version"
40172           --with-packager-bug-reports="packager bug reporting"
40173         An example with coreutils:
40174           $ ./configure \
40175             --with-packager=Gentoo \
40176             --with-packager-bug-report=http://bugs.gentoo.org/ \
40177             --with-packager-version="patchset 1.6"
40178           $ ./src/ls --version | head -n2
40179           ls (GNU coreutils) 7.1-dirty
40180           Packaged by Gentoo (patchset 1.6)
40181         Note that the bug reporting info via --help doesn't show up because
40182         coreutils uses its own custom emit_bug_reporting_address() implementation
40183         in src/system.h.  If it didn't, it'd look like:
40184           $ ./src/ls --help | tail -n4
40185           Report bugs to <bug-coreutils@gnu.org>.
40186           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40187           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40188           General help using GNU software: <http://www.gnu.org/gethelp/>.
40189         * lib/version-etc.c: Print new information, if provided.
40190         * m4/version-etc.m4: New file.
40191         * modules/version-etc (Files): Add m4/version-etc.m4.
40192         (configure.ac): Add gl_VERSION_ETC.
40193
40194 2009-05-31  Bruno Haible  <bruno@clisp.org>
40195
40196         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40197         and 'int64_t'.
40198         * modules/alignof-tests (Dependencies): Add stdint.
40199         Reported by Eric Blake.
40200
40201 2009-05-31  Bruno Haible  <bruno@clisp.org>
40202
40203         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40204         restriction due to compiler bugs.
40205         Reported by Eric Blake.
40206
40207 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40208             Bruno Haible  <bruno@clisp.org>
40209
40210         Fix test-alignof failure.
40211         * lib/alignof.h (alignof_slot): New macro.
40212         (alignof_type): New macro, with the same semantics as the previous
40213         'alignof'.
40214         (alignof): Alias to alignof_slot.
40215         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40216         check that the results are usable as constant expressions.
40217
40218 2009-05-31  Bruno Haible  <bruno@clisp.org>
40219
40220         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40221         * tests/test-memchr.c (main): Check that memchr does not read past the
40222         first occurrence of the byte.
40223         * tests/test-strstr.c (main): Update comment.
40224         Suggested by Eric Blake.
40225
40226 2009-05-30  Bruno Haible  <bruno@clisp.org>
40227
40228         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40229         detail how to use dumpbin.
40230         Reported by David Byron <dbyron@dbyron.com>.
40231
40232 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40233
40234         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40235
40236 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40237
40238         * m4/manywarnings.m4: Add GCC 4.4 warnings.
40239
40240 2009-05-28  Bruno Haible  <bruno@clisp.org>
40241
40242         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
40243         build-aux/ files.
40244
40245 2009-05-28  Simon Josefsson  <simon@josefsson.org>
40246
40247         * gnulib-tool (func_import): Transform license on build-aux/ files too.
40248
40249 2009-05-27  Simon Josefsson  <simon@josefsson.org>
40250
40251         * gnulib-tool (sed_transform_main_lib_file)
40252         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
40253         regexps.
40254
40255 2009-05-26  Simon Josefsson  <simon@josefsson.org>
40256
40257         * tests/test-strstr.c: Add another self-test.
40258         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
40259         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
40260
40261 2009-05-23  Bruno Haible  <bruno@clisp.org>
40262
40263         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
40264         change.
40265
40266 2009-05-21  Bruno Haible  <bruno@clisp.org>
40267
40268         Simplify use of mode_t varargs.
40269         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
40270         uses 'mode_t' or 'int'.
40271         * lib/openat.c (openat): Likewise.
40272         * lib/open-safer.c (open_safer): Likewise.
40273         * m4/mode_t.m4: New file.
40274         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
40275         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
40276         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
40277         * modules/open (Files): Add m4/mode_t.m4.
40278         * modules/openat (Files): Likewise.
40279         * modules/fcntl-safer (Files): Likewise.
40280         Suggested by Eric Blake.
40281
40282 2009-05-21  Pádraig Brady  <P@draigbrady.com>
40283
40284         * doc/glibc-functions/fallocate.texi: New file.
40285         * doc/gnulib.texi: Include it.
40286
40287 2009-05-21  Eric Blake  <ebb9@byu.net>
40288             Bruno Haible  <bruno@clisp.org>
40289
40290         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
40291         invocations.
40292         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40293
40294 2009-05-21  Eric Blake  <ebb9@byu.net>
40295             Bruno Haible  <bruno@clisp.org>
40296
40297         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
40298         include_next. Fix of 2008-11-20 commit.
40299         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
40300         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
40301         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
40302         NEXT_MATH_H.
40303         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
40304         instead of NEXT_MATH_H.
40305
40306 2009-05-21  Bruno Haible  <bruno@clisp.org>
40307
40308         Avoid redefinition warnings for SIZE_MAX.
40309         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
40310         Reported by Simon Josefsson.
40311
40312 2009-05-21  Bruno Haible  <bruno@clisp.org>
40313
40314         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
40315         AC_CACHE_VAL.
40316
40317 2009-05-20  Bruno Haible  <bruno@clisp.org>
40318
40319         Make zeroptr.h work on mingw.
40320         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
40321         mprotect.
40322         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
40323         * modules/memchr2-tests (configure.ac): Likewise.
40324         * modules/memcmp-tests (configure.ac): Likewise.
40325         * modules/memmem-tests (configure.ac): Likewise.
40326         * modules/memrchr-tests (configure.ac): Likewise.
40327         Reported by Simon Josefsson.
40328
40329 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40330
40331         * tests/test-glob.c: Include string.h for strcmp prototype.
40332
40333 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40334
40335         * modules/getdelim (Depends-on): Add explicit stdint, although it
40336         was implicitly already pulled in via realloc-posix.
40337         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
40338
40339 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40340
40341         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
40342         G. Christensen" <tgc@jupiterrise.com>.
40343         * m4/sys_socket_h.m4: Check for sa_family_t.
40344         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40345         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
40346         * tests/test-sys_socket.c: Check that sa_family_t works.
40347
40348 2009-05-18  Eric Blake  <ebb9@byu.net>
40349
40350         maint.mk: allow gnulib_dir in VPATH build
40351         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
40352
40353 2009-05-15  Jim Meyering  <meyering@redhat.com>
40354
40355         maint.mk: Give gnulib_dir a default definition.
40356         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
40357         Thus, most packages no longer need to specify this variable in cfg.mk
40358
40359 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
40360
40361         rename.m4: fix typos that would make non-mingw cross-configure fail
40362         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
40363
40364 2009-05-13  Eric Blake  <ebb9@byu.net>
40365
40366         mmap-anon: avoid out-of-order autoconf expansion
40367         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40368         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40369         * modules/memchr-tests (Depends-on): Add extensions.
40370         * modules/memchr2-tests (Depends-on): Add extensions.
40371         * modules/memcmp-tests (Depends-on): Add extensions.
40372         * modules/memmem-tests (Depends-on): Add extensions.
40373         * modules/memrchr-tests (Depends-on): Add extensions.
40374
40375 2009-05-13  Bruno Haible  <bruno@clisp.org>
40376
40377         Make some tests ISO C 99 compliant.
40378         * tests/zerosize-ptr.h: New file.
40379         * tests/test-memchr.c: Include zerosize-ptr.h.
40380         (main): Use a zero-size object pointer instead of NULL.
40381         * tests/test-memchr2.c: Include zerosize-ptr.h.
40382         (main): Use a zero-size object pointer instead of NULL.
40383         * tests/test-memcmp.c: Include zerosize-ptr.h.
40384         (main): Use a zero-size object pointer instead of NULL.
40385         * tests/test-memmem.c: Include zerosize-ptr.h.
40386         (main): Use a zero-size object pointer instead of NULL.
40387         * tests/test-memrchr.c: Include zerosize-ptr.h.
40388         (main): Use a zero-size object pointer instead of NULL.
40389         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40390         m4/mmap-anon.m4.
40391         (Depends-on): Add getpagesize.
40392         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40393         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40394         m4/mmap-anon.m4.
40395         (Depends-on): Add getpagesize.
40396         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40397         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40398         m4/mmap-anon.m4.
40399         (Depends-on): Add getpagesize.
40400         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40401         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40402         m4/mmap-anon.m4.
40403         (Depends-on): Add getpagesize.
40404         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40405         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40406         m4/mmap-anon.m4.
40407         (Depends-on): Add getpagesize.
40408         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40409
40410 2009-05-12  Bruno Haible  <bruno@clisp.org>
40411
40412         Tests for module 'alignof'.
40413         * modules/alignof-tests: New file.
40414         * tests/test-alignof.c: New file.
40415
40416 2009-05-12  Bruno Haible  <bruno@clisp.org>
40417
40418         Fix alignof macro.
40419         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40420         vendor compilers that are always correct.
40421
40422 2009-05-12  Bruno Haible  <bruno@clisp.org>
40423
40424         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40425         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40426         not whether its fully works.
40427
40428 2009-05-12  Bruno Haible  <bruno@clisp.org>
40429
40430         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40431
40432 2009-05-12  Jim Meyering  <meyering@redhat.com>
40433
40434         * top/maint.mk: Adjust backslash alignment.
40435
40436 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40437
40438         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40439
40440 2009-05-11  Eric Blake  <ebb9@byu.net>
40441
40442         argp: avoid undefined behavior
40443         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40444         macros.
40445
40446 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40447
40448         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40449         user.name to prevent git commit from complaining.
40450
40451 2009-05-10  Bruno Haible  <bruno@clisp.org>
40452
40453         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40454         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40455         it rewrites every file name only once.
40456         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40457
40458 2009-05-08  Bruno Haible  <bruno@clisp.org>
40459
40460         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40461         instead of 'max'.
40462
40463 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40464
40465         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40466         sockaddr_storage test.
40467
40468 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40469
40470         * modules/sys_socket (Makefile.am): Substitute
40471         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40472         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40473         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40474         * tests/test-sys_socket.c: Check sockaddr_storage.
40475
40476 2009-05-08  Bruno Haible  <bruno@clisp.org>
40477
40478         New module 'alignof'.
40479         * lib/alignof.h: New file.
40480         * modules/alignof: New file.
40481
40482 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40483             Bruno Haible  <bruno@clisp.org>
40484
40485         Fix test-file-has-acl on FreeBSD.
40486         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40487         mask is implicitly added.
40488         * tests/test-file-has-acl.c: Include <signal.h>.
40489         (main): Terminate the test after 5 seconds.
40490         * modules/acl-tests (configure.ac): Check for alarm function.
40491
40492 2009-05-04  Bruno Haible  <bruno@clisp.org>
40493
40494         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40495         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40496         * modules/errno (configure.ac): Drop AC_REQUIRE.
40497         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40498         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40499
40500 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40501
40502         * modules/glob-tests: New module.
40503         * tests/test-glob.c: Add.
40504
40505 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40506
40507         * modules/fnmatch-tests: New module.
40508         * tests/test-fnmatch.c: Add.
40509
40510 2009-05-04  Eric Blake  <ebb9@byu.net>
40511
40512         maint: make the new no-submodule-changes rule VPATH-safe
40513         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40514
40515 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40516             Bruno Haible  <bruno@clisp.org>
40517
40518         acl: Fix infinite loop on FreeBSD.
40519         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40520         of return value from acl_get_entry.
40521         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40522         Likewise.
40523
40524 2009-05-03  Bruno Haible  <bruno@clisp.org>
40525
40526         * lib/acl-internal.h (acl_entries): Clarify return value.
40527         * lib/acl_entries.c (acl_entries): Likewise.
40528
40529 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40530
40531         Bug fix in acl module.
40532         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40533
40534 2009-05-03  Bruno Haible  <bruno@clisp.org>
40535
40536         Create gperf-generated file in the source dir, not in the build dir.
40537         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40538         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40539         * modules/unicase/locale-language (unicase/locale-languages.h):
40540         Likewise.
40541         * modules/unicase/special-casing (unicase/special-casing-table.h):
40542         Likewise.
40543         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40544         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40545         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40546         Reported by Ralf Wildenhues.
40547
40548 2009-05-03  Bruno Haible  <bruno@clisp.org>
40549
40550         * modules/fnmatch (Description, configure.ac): Taken from
40551         fnmatch-posix.
40552         * modules/fnmatch-posix: Turn into a symbolic reference to the
40553         'fnmatch' module, and deprecate.
40554         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40555
40556 2009-05-03  Bruno Haible  <bruno@clisp.org>
40557
40558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40559         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40560         Reported by Ralf Wildenhues.
40561
40562 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40563
40564         * m4/fnmatch.m4: Fix fnmatch re-define.
40565
40566 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40567
40568         priv-set: new module and tests; adapt write-any-file
40569         * lib/priv-set.c: New file.
40570         * lib/priv-set.h: New file.
40571         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40572         * lib/write-any-file.c: Simplify by using priv-set module.
40573         * m4/priv-set.m4: New file.
40574         * modules/priv-set: New file.
40575         * modules/unlinkdir: Add dependency on priv-set module.
40576         * modules/write-any-file: Likewise.
40577
40578         Tests for module 'priv-set'.
40579         * modules/priv-set-tests: New file.
40580         * tests/test-priv-set.c: New file.
40581
40582 2009-05-03  Jim Meyering  <meyering@redhat.com>
40583             Bruno Haible  <bruno@clisp.org>
40584
40585         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40586         use the converted UTF-8 variant of the name instead.
40587
40588 2009-05-03  Jim Meyering  <meyering@redhat.com>
40589
40590         tests: tighten some getdate tests
40591         * tests/test-getdate.c (main): Tighten tests: require equality,
40592         not just greater than.  Set TZ envvar to UTC0.
40593
40594 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40595
40596         getdate: correctly interpret "next monday" when run on a Monday
40597         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40598         that e.g., "next tues" (when run on a tuesday) results in a date
40599         that is one week in the future, and not today's date.
40600         I.e., add a week when the wday is the same as the current one.
40601         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40602         and earlier by Martin Bernreuther and Jan Minář.
40603         * tests/test-getdate.c (main): Check that "next DAY" is always in
40604         the future and that "last DAY" is always in the past.
40605
40606 2009-05-02  Jim Meyering  <meyering@redhat.com>
40607
40608         build: ensure that a release build fails when a submodule is unclean
40609         * top/maint.mk (no-submodule-changes): New rule.
40610         (alpha beta major): Depend on it.
40611
40612 2009-05-02  Bruno Haible  <bruno@clisp.org>
40613
40614         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40615         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40616         shell variable gl_fnmatch_required to detect which variant is
40617         requested.
40618         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40619         gl_FUNC_FNMATCH_POSIX.
40620         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40621         exclude fnmatch-posix.
40622
40623 2009-05-02  Bruno Haible  <bruno@clisp.org>
40624
40625         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40626         * modules/mbsrtowcs (License): Change to LGPLv2+.
40627         * modules/strnlen1 (License): Likewise.
40628         Reported by Simon Josefsson.
40629
40630 2009-05-02  Bruno Haible  <bruno@clisp.org>
40631
40632         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40633         "cross".
40634         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40635         gnulib-tool was called with option --source-base=lib.
40636
40637 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40638
40639         Use automake *-local hooks without commands, for extensibility.
40640         * modules/localcharset (Makefile.am): Rename install-exec-local
40641         rule to install-exec-localcharset, and make it a prerequisite of
40642         install-exec-local.  Likewise, rename the uninstall-local rule to
40643         uninstall-localcharset, and make it a prerequisite of the former.
40644
40645 2009-05-01  Bruno Haible  <bruno@clisp.org>
40646
40647         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40648         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40649         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40650         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40651         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40652         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40653         m4/locale-zh.m4, m4/codeset.m4.
40654
40655         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40656         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40657         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40658         m4/locale-zh.m4.
40659
40660         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40661         REPLACE_WCRTOMB if mbstate_t must be replaced.
40662         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40663         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40664
40665 2009-05-01  Bruno Haible  <bruno@clisp.org>
40666
40667         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40668         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40669         dngettext, dcngettext, textdomain, bindtextdomain,
40670         bind_textdomain_codeset): Undefine before redefining.
40671
40672 2009-04-30  Bruno Haible  <bruno@clisp.org>
40673
40674         Fix bug introduced on 2009-04-25.
40675         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40676         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40677         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40678         is defined.
40679         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40680         is defined.
40681         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40682         is defined.
40683         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40684
40685 2009-04-28  Bruno Haible  <bruno@clisp.org>
40686
40687         Comment tweaks.
40688         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40689         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40690         * lib/unicase.h (u*_casexfrm): Likewise.
40691         Reported by Paolo Bonzini.
40692
40693 2009-04-28  Bruno Haible  <bruno@clisp.org>
40694
40695         Fix a compilation error.
40696         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40697         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40698         Reported by Jim Meyering.
40699
40700 2009-04-27  Bruno Haible  <bruno@clisp.org>
40701
40702         New module 'libunistring'.
40703         * modules/libunistring: New file.
40704         * m4/libunistring.m4: New file.
40705         * MODULES.html.sh (Unicode string functions): Add it.
40706
40707 2009-04-27  Eric Blake  <ebb9@byu.net>
40708
40709         maint.mk: allow package-specific header to provide <config.h>
40710         * top/maint.mk (sc_require_config_h): New variable.
40711         (sc_require_config_h, sc_require_config_h_first): Use it.
40712
40713 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40714
40715         * top/maint.mk (sc_avoid_if_before_free): Except
40716         useless-if-before-free script.
40717
40718 2009-04-27  Eric Blake  <ebb9@byu.net>
40719
40720         maintainer-makefile: depend on all required helper scripts
40721         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40722         useless-if-before-free.
40723         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40724         version, rather than assuming gnulib checkout is available.
40725         Reported by Simen Josefsson.
40726
40727 2009-04-26  Bruno Haible  <bruno@clisp.org>
40728
40729         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40730         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40731         "../" or "..".
40732
40733 2009-04-26  Bruno Haible  <bruno@clisp.org>
40734
40735         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40736         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40737         AC_LIB_HAVE_LINKFLAGS.
40738
40739 2009-04-26  Bruno Haible  <bruno@clisp.org>
40740
40741         Simplify calling convention of u*_conv_from_encoding.
40742         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40743         u32_conv_from_encoding): Expect a resultbuf argument and return the
40744         result directly as a pointer.
40745         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40746         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40747         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40748         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40749         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40750         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40751         Update.
40752         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40753         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40754         * lib/vasnprintf.c (VASNPRINTF): Update.
40755         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40756         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40757         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40758         * NEWS: Mention the change.
40759
40760 2009-04-26  Bruno Haible  <bruno@clisp.org>
40761
40762         Simplify calling convention of u*_conv_to_encoding.
40763         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40764         u32_conv_to_encoding): Expect a resultbuf argument and return the
40765         result directly as a pointer.
40766         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40767         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40768         freeing scaled_offsets if mem_iconveha failed.
40769         * lib/unicase/u-casexfrm.h (FUNC): Update.
40770         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40771         * lib/vasnprintf.c (VASNPRINTF): Update.
40772         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40773         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40774         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40775         * NEWS: Mention the change.
40776
40777 2009-04-26  Bruno Haible  <bruno@clisp.org>
40778
40779         Avoid test failures on AIX and OSF/1.
40780         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40781         malloc(0).
40782         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40783         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40784         Likewise.
40785         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40786         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40787         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40788         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40789         * doc/posix-functions/malloc.texi: Document the portability problem
40790         related to malloc(0).
40791
40792 2009-04-26  Bruno Haible  <bruno@clisp.org>
40793
40794         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40795         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40796         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40797
40798 2009-04-25  Bruno Haible  <bruno@clisp.org>
40799
40800         Avoid link error when creating a namespace clean library.
40801         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40802         as macro with arguments if already defined as an alias.
40803         * lib/signbitf.c (gl_signbitf): Don't undefine.
40804         * lib/signbitd.c (gl_signbitd): Don't undefine.
40805         * lib/signbitl.c (gl_signbitl): Don't undefine.
40806
40807 2009-04-25  Jim Meyering  <meyering@redhat.com>
40808
40809         vc-list-files: fix another quoting bug
40810         * build-aux/vc-list-files: Avoid sed backslash expansion
40811         of pathological directory names.
40812
40813 2009-04-25  Eric Blake  <ebb9@byu.net>
40814
40815         vc-list-files: fix shell quoting error
40816         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40817         timestamp.
40818
40819 2009-04-25  Jim Meyering  <meyering@redhat.com>
40820
40821         vc-list-files: restore lost functionality with subdir argument
40822         * build-aux/vc-list-files: When given a non-"." sub-directory
40823         argument, substitute the $dir/ prefix back onto each resulting name.
40824         Otherwise, coreutils' root_tests check would fail.
40825
40826 2009-04-24  Eric Blake  <ebb9@byu.net>
40827
40828         vc-list-files: ignore git symlinks
40829         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40830         than ls-files, to ignore git symlinks.
40831
40832         maint.mk: import improvements from m4
40833         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40834         (move_if_change): Delete unused macro.
40835         (news-date-check, vc-diff-check): Support VPATH builds.
40836         (announcement): Likewise.  Split --bootstrap-tools list...
40837         (boostrap-tools): ...into separate list, which can be overridden
40838         in cfg.mk.
40839         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40840         requiring dependency on useless-if-before-free module.
40841         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40842         Support VPATH builds.
40843
40844 2009-04-24  Jim Meyering  <meyering@redhat.com>
40845
40846         maint.mk: remove coreutils-specific rules and variables
40847         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40848         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40849         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40850
40851         maint.mk: remove obsolete rule
40852         * top/maint.mk (rel-check): Remove rule.
40853         (WGET, WGETFLAGS): Remove now-unused variables.
40854
40855 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40856
40857         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40858         consistency.
40859
40860         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40861         '$(PATH_SEPARATOR)' instead of ':'.
40862
40863 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40864
40865         * lib/getopt1.c (main): Use 'const' for static array.
40866
40867 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40868
40869         * top/maint.mk: Sync with coreutils.
40870         * NEWS: Explain incompatibilities.
40871
40872 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40873             Bruno Haible  <bruno@clisp.org>
40874
40875         Fix cross-compilation results.
40876         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40877         statement, as third argument of AC_TRY_RUN.
40878         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40879         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40880         Likewise.
40881         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40882         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40883         Likewise.
40884         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40885         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40886         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40887
40888 2009-04-20  Bruno Haible  <bruno@clisp.org>
40889
40890         Avoid test failure on mingw.
40891         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40892
40893 2009-04-20  Bruno Haible  <bruno@clisp.org>
40894
40895         Avoid compilation error on mingw.
40896         * modules/localename-tests (Depends-on): Add locale.
40897
40898 2009-04-19  Bruno Haible  <bruno@clisp.org>
40899
40900         Support for building a shared library on Windows platforms.
40901         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40902         (main): Test the presence of UNINORM_NFC here.
40903         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40904         (main): Test the presence of UNINORM_NFD here.
40905         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40906         (main): Test the presence of UNINORM_NFKC here.
40907         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40908         (main): Test the presence of UNINORM_NFKD here.
40909
40910 2009-04-19  Bruno Haible  <bruno@clisp.org>
40911
40912         Avoid a compiler warning.
40913         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40914         Change type of variable 'sequence'.
40915
40916 2009-04-19  Bruno Haible  <bruno@clisp.org>
40917
40918         * modules/configmake (Makefile.am): When the contents of configmake.h
40919         does not change, arrange to preserve its modification time.
40920
40921 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40922
40923         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40924         gettext domain.
40925
40926 2009-04-16  Jim Meyering  <meyering@redhat.com>
40927
40928         useless-if-before-free: improve conversion code
40929         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40930         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40931
40932 2009-04-14  Bruno Haible  <bruno@clisp.org>
40933
40934         * modules/fcntl (Depends-on): Add extensions.
40935         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40936
40937 2009-04-12  Ben Pfaff  <blp@gnu.org>
40938
40939         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40940         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40941
40942 2009-03-20  Ben Pfaff  <blp@gnu.org>
40943
40944         Make rename replace existing destinations on Windows.
40945         * m4/rename.m4: Add test for Mingw.
40946         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40947         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40948         * doc/posix-functions/rename.texi: Document.
40949
40950 2009-04-10  Bruno Haible  <bruno@clisp.org>
40951
40952         New include file "iconveh.h".
40953         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40954         * lib/striconveh.h: Include it.
40955         (enum iconv_ilseq_handler): Remove definition.
40956         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40957         striconveh.h.
40958         * lib/striconveha.c: Include striconveh.h.
40959         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40960         * modules/striconveh (Files): Add lib/iconveh.h.
40961         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40962         lib/striconveh.h.
40963
40964 2009-04-10  Bruno Haible  <bruno@clisp.org>
40965
40966         * lib/uniconv.h: Update comment.
40967
40968 2009-04-10  Bruno Haible  <bruno@clisp.org>
40969
40970         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40971         always.
40972         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40973         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40974         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40975         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40976         "unistring-notinline.h", so that the function gets defined always.
40977         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40978         * lib/unistr/u8-uctomb.c: Likewise.
40979         * lib/unistr/u16-mbtouc.c: Likewise.
40980         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40981         * lib/unistr/u16-uctomb.c: Likewise.
40982         * lib/unistr/u32-mbtouc.c: Likewise.
40983         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40984         * lib/unistr/u32-uctomb.c: Likewise.
40985
40986 2009-04-10  Bruno Haible  <bruno@clisp.org>
40987
40988         Mark 'utime' obsolete.
40989         * modules/utime (Status, Notice): New sections.
40990         Suggested by Jim Meyering.
40991
40992         Fix cross-compile guess for utime test.
40993         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40994         autoconf.
40995         * doc/posix-functions/utime.texi: Give more precisions.
40996         Reported by Jan <ipif@ymail.com>.
40997
40998 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40999
41000         filevercmp: correct today's change
41001         * lib/filevercmp.c: Also handle coreutils' test inputs.
41002         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41003
41004         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41005         for reporting it.
41006         * lib/filevercmp.c: Special handle for "", "." and "..".
41007         * tests/test-filevercmp.c: Enlarge the set suite.
41008
41009 2009-04-07  Jim Meyering  <meyering@redhat.com>
41010
41011         useless-if-before-free: show how to remove braced useless free, too
41012         * build-aux/useless-if-before-free: still only in a comment, though.
41013
41014 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41015
41016         maint.mk: import changes to syntax-check macros from coreutils
41017         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41018         Use them in the relevant macros.
41019
41020 2009-04-06  Bruno Haible  <bruno@clisp.org>
41021
41022         Fix unportable use of bit-fields.
41023         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41024         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41025         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41026
41027 2009-04-06  Bruno Haible  <bruno@clisp.org>
41028
41029         Avoid test failures on AIX and OSF/1.
41030         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41031         that malloc(0) = NULL.
41032         * tests/unicase/test-u8-tolower.c (check): Likewise.
41033         * tests/unicase/test-u8-totitle.c (check): Likewise.
41034         * tests/unicase/test-u8-toupper.c (check): Likewise.
41035         * tests/unicase/test-u16-casefold.c (check): Likewise.
41036         * tests/unicase/test-u16-tolower.c (check): Likewise.
41037         * tests/unicase/test-u16-totitle.c (check): Likewise.
41038         * tests/unicase/test-u16-toupper.c (check): Likewise.
41039         * tests/unicase/test-u32-casefold.c (check): Likewise.
41040         * tests/unicase/test-u32-tolower.c (check): Likewise.
41041         * tests/unicase/test-u32-totitle.c (check): Likewise.
41042         * tests/unicase/test-u32-toupper.c (check): Likewise.
41043         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41044         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41045         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41046         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41047         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41048         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41049         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41050         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41051         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41052         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41053         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41054         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41055
41056 2009-04-05  Bruno Haible  <bruno@clisp.org>
41057
41058         Work around an autoconf limitation.
41059         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41060         comment line if it would be longer than 3 KB.
41061
41062 2009-04-05  Bruno Haible  <bruno@clisp.org>
41063
41064         Avoid test failure with libiconv-1.13.
41065         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41066         of the expected test results.
41067
41068 2009-04-05  Bruno Haible  <bruno@clisp.org>
41069
41070         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41071         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41072         that it should be installed.
41073
41074 2009-04-05  Bruno Haible  <bruno@clisp.org>
41075
41076         * gnulib-tool: New option --copy-file.
41077         (func_usage): Document it.
41078         (func_dest_tmpfilename): Moved out of func_import.
41079         (func_add_file, func_update_file): New functions, extracted from
41080         func_import.
41081         (func_import): Update.
41082
41083 2009-04-05  Karl Berry  <karl@gnu.org>
41084
41085         * README: prominently mention gnulib-tool.
41086         Rearrange sections so getting the code is near the top.
41087
41088 2009-04-05  Bruno Haible  <bruno@clisp.org>
41089
41090         * lib/unicase.h: Mention u*_cmp2.
41091         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41092         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41093         * lib/unicase/ulc-casecmp.c: Likewise.
41094         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41095         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41096         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41097         unistr/u8-cmp.
41098         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41099         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41100         unistr/u16-cmp.
41101         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41102         unistr/u32-cmp.
41103
41104         * lib/uninorm.h: Mention u*_cmp2.
41105         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41106         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41107         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41108         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41109         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41110         unistr/u8-cmp.
41111         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41112         unistr/u16-cmp.
41113         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41114         unistr/u32-cmp.
41115
41116         New module 'unistr/u32-cmp2'.
41117         * lib/unistr/u32-cmp2.c: New file.
41118         * modules/unistr/u32-cmp2: New file.
41119
41120         New module 'unistr/u16-cmp2'.
41121         * lib/unistr/u16-cmp2.c: New file.
41122         * modules/unistr/u16-cmp2: New file.
41123
41124         New module 'unistr/u8-cmp2'.
41125         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41126         * lib/unistr/u8-cmp2.c: New file.
41127         * lib/unistr/u-cmp2.h: New file.
41128         * modules/unistr/u8-cmp2: New file.
41129
41130 2009-04-05  Bruno Haible  <bruno@clisp.org>
41131
41132         * lib/unictype.h (uc_property_is_valid): New macro.
41133         * tests/unictype/test-pr_byname.c (main): Use it.
41134
41135         * lib/unistr.h: Doc fixes.
41136         * lib/uniconv.h: Doc fixes.
41137         * lib/unictype.h: Doc fixes.
41138
41139 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41140
41141         Port coreutils 7.2 to Solaris 8.
41142
41143         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41144         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41145         for Solaris 8.  This is a bit of a hack, as it means it's the
41146         caller's responsibility to add -lnsl if needed, but most likely it
41147         won't be needed since only getaddrinfo uses this and getaddrinfo
41148         isn't needed on Solaris 8.
41149
41150         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41151         problem to Solaris 8 encountered with coreutils 7.2, which
41152         resulted in a message "fnmatch.c:292: warning: passing argument 4
41153         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41154         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41155
41156 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41157
41158         * m4/ld-version-script.m4: Add FIXME comment.
41159
41160 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41161
41162         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41163         SOVERSION variable.
41164
41165 2009-04-02  Bruno Haible  <bruno@clisp.org>
41166
41167         * Makefile (info, html, dvi, pdf): Combine the rules.
41168         Suggested by Jim Meyering.
41169
41170 2009-04-01  Bruno Haible  <bruno@clisp.org>
41171
41172         * Makefile (info, html, dvi, pdf): New targets.
41173         Reported by Reuben Thomas <rrt@sc3d.org>.
41174
41175 2009-04-01  Bruno Haible  <bruno@clisp.org>
41176
41177         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41178         can be put into PATH.
41179         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41180
41181 2009-04-01  Bruno Haible  <bruno@clisp.org>
41182
41183         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41184
41185 2009-04-01  Bruno Haible  <bruno@clisp.org>
41186
41187         Rename module 'visibility'.
41188         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41189         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41190         * doc/gnulib.texi: Update.
41191         * MODULES.html.sh (Misc): Update.
41192         * NEWS: Mention the change.
41193
41194 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41195
41196         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41197         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41198         Eric Blake <ebb9@byu.net> for review.
41199         * MODULES.html.sh: Add lib-msvc-compat.
41200         * doc/gnulib.texi: Link to new section.
41201         * m4/ld-output-def.m4: New file.
41202         * doc/ld-output-def.texi: New file.
41203
41204 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41205
41206         Rename ld-version-script to lib-symbol-versions.  Suggested by
41207         Bruno Haible <bruno@clisp.org>.
41208         * modules/ld-version-script: Renamed to lib-symbol-versions.
41209         * doc/ld-version-script.texi: Fix module name.
41210         * MODULES.html.sh: Add lib-symbol-versions.
41211
41212 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41213
41214         * modules/u64-tests: New file.
41215         * tests/test-u64.c: New file.
41216
41217 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41218
41219         * MODULES.html.sh: Mention u64.
41220         * modules/u64: New module.
41221         * modules/crypto/sha512: Depend on u64 module instead of providing
41222         u64.h.
41223
41224 2009-03-27  Eric Blake  <ebb9@byu.net>
41225
41226         test-strerror: make debugging EAI_SYSTEM easier
41227         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41228         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41229         failure was EAI_SYSTEM.
41230
41231 2009-03-25  Bruno Haible  <bruno@clisp.org>
41232
41233         Fix a problem with --enable-relocatable on Solaris 7.
41234         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41235         since 2008-02-24.
41236
41237 2009-03-25  Eric Blake  <ebb9@byu.net>
41238
41239         test-sockets: avoid gcc warning
41240         * tests/test-sockets.c (main): Silence compiler warning.
41241
41242 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41243
41244         New modules nproc, pthread, contributed by Glen Lenker.
41245
41246         * MODULES.html.sh: Add pthread, nproc.
41247         * lib/nproc.c: New file.
41248         * lib/nproc.h: New file.
41249         * lib/pthread.in.h: New file.
41250         * m4/pthread.m4: New file.
41251         * modules/nproc: New file.
41252         * modules/pthread: New file.
41253
41254 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41255
41256         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
41257         New variable.
41258
41259 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
41260
41261         filevercmp: handle simple~ and numbered.~3~ backup suffixes
41262         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
41263         * tests/test-filevercmp.c: Add tests for backup suffixes.
41264
41265 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41266
41267         * modules/stdlib (Depends-on): Add stdint, needed when defining
41268         struct random_data on, for example, HP-UX 10.20.  Reported by
41269         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41270
41271 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41272
41273         * lib/readline.c (readline): Call fflush on stdout after printing
41274         prompt.
41275
41276 2009-03-20  Bruno Haible  <bruno@clisp.org>
41277
41278         Remove dependency from 'close' module to -lws2_32 on native Windows.
41279         * lib/close-hook.h: New file.
41280         * lib/close-hook.c: New file.
41281         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
41282         w32sock.h.
41283         (_gl_close_fd_maybe_socket): Remove function.
41284         (rpl_close): Invoke execute_all_close_hooks instead of
41285         _gl_close_fd_maybe_socket.
41286         * lib/sockets.c: Include close-hook.h, w32sock.h.
41287         (close_fd_maybe_socket): New function, essentially from lib/close.c.
41288         (close_sockets_hook): New variable.
41289         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
41290         (gl_sockets_cleanup): Unregister it.
41291         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
41292         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
41293         * modules/close-hook: New file.
41294         * modules/close (Files): Remove lib/w32sock.h.
41295         (Depends-on): Add close-hook.
41296         (Link): Remove section.
41297         * modules/sockets (Files): Add lib/w32sock.h.
41298         (Depends-on): Add close-hook.
41299         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
41300         invocation.
41301         * NEWS: Mention that LIB_CLOSE is gone.
41302
41303 2009-03-23  Eric Blake  <ebb9@byu.net>
41304
41305         signal-tests: test previous patch
41306         * tests/test-signal.c: New file.
41307         * modules/signal-tests: Likewise.
41308
41309         signal.h: always support 'volatile sig_atomic_t'
41310         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
41311         (gl_SIGNAL_H_DEFAULTS): Add a default.
41312         * modules/signal (Makefile.am): Substitute if needed.
41313         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
41314         users can blindly add volatile.
41315         * doc/posix-headers/signal.texi (signal.h): Document it.
41316         Reported by Matthew Woehlke.
41317
41318 2009-03-23  Jim Meyering  <meyering@redhat.com>
41319
41320         pathmax: PATH_MAX: use pathconf only when available
41321         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
41322         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
41323         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
41324         This avoids a link failure in a PSP cross-compilation environment
41325         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
41326
41327         * lib/vasnprintf.c (divide): Fix typo in comment.
41328
41329 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41330
41331         * gnulib-tool (func_filter_filelist): Fix comment.
41332
41333 2009-03-20  Bruno Haible  <bruno@clisp.org>
41334
41335         Make sockets.h self-contained.
41336         * lib/sockets.c: Include sockets.h first.
41337         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
41338
41339 2009-03-19  Eric Blake  <ebb9@byu.net>
41340
41341         doc: mention more functions added in cygwin 1.7.0
41342         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
41343         addition.
41344         * doc/posix-functions/log2f.texi: Likewise.
41345
41346 2009-03-19  Jim Meyering  <meyering@redhat.com>
41347
41348         fsusage: avoid syntax error due to statement-before-declaration
41349         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
41350         after all declarations.  Reported by Matthew Woehlke in
41351         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
41352
41353 2009-03-18  Eric Blake  <ebb9@byu.net>
41354
41355         build-aux/compile: sync from automake
41356         * build-aux/compile: New file, from automake.
41357         * config/srclist.txt: Mention build-aux/compile.
41358
41359 2009-03-17  Bruno Haible  <bruno@clisp.org>
41360
41361         * lib/git-merge-changelog.c: Fix typo in comment.
41362         Reported by Reuben Thomas <rrt@sc3d.org>.
41363
41364 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
41365
41366         * m4/regex.m4: update and improve help for
41367         --without-included-regex.
41368
41369 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41370
41371         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41372         failure on missing include files.
41373
41374 2009-03-17  Eric Blake  <ebb9@byu.net>
41375
41376         doc: mention more functions added in cygwin 1.7.0
41377         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41378         addition.
41379         * doc/posix-functions/fwscanf.texi: Likewise.
41380         * doc/posix-functions/swprintf.texi: Likewise.
41381         * doc/posix-functions/swscanf.texi: Likewise.
41382         * doc/posix-functions/vfwprintf.texi: Likewise.
41383         * doc/posix-functions/vfwscanf.texi: Likewise.
41384         * doc/posix-functions/vswprintf.texi: Likewise.
41385         * doc/posix-functions/vswscanf.texi: Likewise.
41386         * doc/posix-functions/vwprintf.texi: Likewise.
41387         * doc/posix-functions/vwscanf.texi: Likewise.
41388         * doc/posix-functions/wcscasecmp.texi: Likewise.
41389         * doc/posix-functions/wcsdup.texi: Likewise.
41390         * doc/posix-functions/wcsftime.texi: Likewise.
41391         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41392         * doc/posix-functions/wprintf.texi: Likewise.
41393         * doc/posix-functions/wscanf.texi: Likewise.
41394         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41395
41396 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41397
41398         maint.mk: really add $(AM_MAKEFLAGS)
41399         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41400         was inadvertently omitted in the last commit.
41401         Spotted by Bruno Haible.
41402
41403         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41404         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41405         $(AM_MAKEFLAGS)' rather than plain `make'.
41406
41407         gnulib-tool: execute $MAKE not make
41408         * gnulib-tool: Default $MAKE to 'make'.
41409         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41410         than make.  Initialize $MAKE in the do-autobuild script.
41411
41412         gnulib-tool: use $MAKE not make in generated files
41413         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41414         make, in generated files.  Initialize $MAKE in the do-autobuild
41415         script.
41416
41417         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41418
41419         GNUmakefile: disable parallelism only for multiple, recursive targets
41420         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41421         additions in the Makefile.
41422         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41423         by Automake.
41424         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41425         are listed on the command line and at least one of them is
41426         listed in $(ALL_RECURSIVE_TARGETS).
41427
41428 2009-03-14  Bruno Haible  <bruno@clisp.org>
41429
41430         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41431         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41432         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41433         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41434         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41435         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41436         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41437         unistr/u8-uctomb.
41438         * modules/unistr/u8-strchr (Depends-on): Likewise.
41439         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41440         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41441         unistr/u16-uctomb.
41442         * modules/unistr/u16-strchr (Depends-on): Likewise.
41443         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41444
41445 2009-03-12  Bruno Haible  <bruno@clisp.org>
41446
41447         Work around select() bug on Interix 3.5.
41448         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41449         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41450         * m4/select.m4: New file.
41451         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41452         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41453         * modules/select (Files): Add m4/select.m4.
41454         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41455         * modules/nanosleep (Depends-on): Add select.
41456         * modules/poll (Depends-on): Likewise.
41457         * doc/posix-functions/select.texi: Mention the Interix bug.
41458         Reported by Markus Duft <mduft@gentoo.org>.
41459
41460         * lib/select.c: Renamed from lib/winsock-select.c.
41461         * modules/select (Files): Add lib/select.c, remove
41462         lib/winsock-select.c.
41463         (configure.ac): Update.
41464
41465 2009-03-12  Jim Meyering  <meyering@redhat.com>
41466
41467         avoid gcc warnings about unused macro definitions
41468         * lib/readtokens.c (STREQ): Remove unused definition.
41469         * lib/xmalloc.c (SIZE_MAX): Likewise.
41470         * lib/openat-die.c (N_): Likewise.
41471         * lib/mountlist.c (SIZE_MAX): Remove definition.
41472         Instead, include <stdint.h>.
41473         * lib/readutmp.c: Likewise.
41474         * modules/readutmp (Depends-on): Add stdint.
41475         * modules/mountlist (Depends-on): Add stdint.
41476         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41477
41478 2009-03-10  Bruno Haible  <bruno@clisp.org>
41479
41480         Tests for module 'mbmemcasecoll'.
41481         * modules/mbmemcasecoll-tests: New file.
41482         * tests/test-mbmemcasecoll1.sh: New file.
41483         * tests/test-mbmemcasecoll2.sh: New file.
41484         * tests/test-mbmemcasecoll3.sh: New file.
41485         * tests/test-mbmemcasecoll.c: New file.
41486
41487         New module 'mbmemcasecoll'.
41488         * lib/mbmemcasecoll.h: New file.
41489         * lib/mbmemcasecoll.c: New file.
41490         * modules/mbmemcasecoll: New file.
41491
41492         * tests/test-mbmemcasecmp.h: New file, extracted from
41493         tests/test-mbmemcasecmp.c.
41494         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41495         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41496         (main): Update.
41497         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41498
41499 2009-03-09  Bruno Haible  <bruno@clisp.org>
41500
41501         Tests for module 'mbmemcasecmp'.
41502         * modules/mbmemcasecmp-tests: New file.
41503         * tests/test-mbmemcasecmp1.sh: New file.
41504         * tests/test-mbmemcasecmp2.sh: New file.
41505         * tests/test-mbmemcasecmp3.sh: New file.
41506         * tests/test-mbmemcasecmp.c: New file.
41507
41508         New module 'mbmemcasecmp'.
41509         * lib/mbmemcasecmp.h: New file.
41510         * lib/mbmemcasecmp.c: New file.
41511         * modules/mbmemcasecmp: New file.
41512
41513 2009-03-09  Bruno Haible  <bruno@clisp.org>
41514
41515         Tests for module 'unicase/ulc-casecoll'.
41516         * modules/unicase/ulc-casecoll-tests: New file.
41517         * tests/unicase/test-ulc-casecoll1.sh: New file.
41518         * tests/unicase/test-ulc-casecoll2.sh: New file.
41519         * tests/unicase/test-ulc-casecoll.c: New file.
41520
41521         New module 'unicase/ulc-casecoll'.
41522         * lib/unicase.h (ulc_casecoll): New declaration.
41523         * lib/unicase/ulc-casecoll.c: New file.
41524         * modules/unicase/ulc-casecoll: New file.
41525
41526         New module 'unicase/ulc-casexfrm'.
41527         * lib/unicase.h (ulc_casexfrm): New declaration.
41528         * lib/unicase/ulc-casexfrm.c: New file.
41529         * modules/unicase/ulc-casexfrm: New file.
41530
41531 2009-03-09  Bruno Haible  <bruno@clisp.org>
41532
41533         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41534         invocations.
41535
41536         * m4/mbscasecmp.m4: Remove file.
41537         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41538         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41539
41540         * m4/mbscasestr.m4: Remove file.
41541         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41542         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41543
41544         * m4/mbschr.m4: Remove file.
41545         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41546         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41547
41548         * m4/mbscspn.m4: Remove file.
41549         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41550         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41551
41552         * m4/mbslen.m4: Remove file.
41553         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41554         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41555
41556         * m4/mbsncasecmp.m4: Remove file.
41557         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41558         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41559
41560         * m4/mbsnlen.m4: Remove file.
41561         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41562         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41563
41564         * m4/mbspbrk.m4: Remove file.
41565         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41566         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41567
41568         * m4/mbspcasecmp.m4: Remove file.
41569         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41570         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41571
41572         * m4/mbsrchr.m4: Remove file.
41573         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41574         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41575
41576         * m4/mbssep.m4: Remove file.
41577         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41578         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41579
41580         * m4/mbsspn.m4: Remove file.
41581         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41582         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41583
41584         * m4/mbsstr.m4: Remove file.
41585         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41586         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41587
41588         * m4/mbstok_r.m4: Remove file.
41589         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41590         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41591
41592         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41593
41594         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41595         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41596
41597         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41598
41599 2009-03-08  Bruno Haible  <bruno@clisp.org>
41600
41601         Tests for module 'unicase/ulc-casecmp'.
41602         * modules/unicase/ulc-casecmp-tests: New file.
41603         * tests/unicase/test-ulc-casecmp1.sh: New file.
41604         * tests/unicase/test-ulc-casecmp2.sh: New file.
41605         * tests/unicase/test-ulc-casecmp.c: New file.
41606
41607         New module 'unicase/ulc-casecmp'.
41608         * lib/unicase.h (ulc_casecmp): New declaration.
41609         * lib/unicase/ulc-casecmp.c: New file.
41610         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41611         'const SRC_UNIT *'.
41612         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41613         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41614         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41615         * modules/unicase/ulc-casecmp: New file.
41616
41617         Tests for module 'unicase/u32-is-cased'.
41618         * modules/unicase/u32-is-cased-tests: New file.
41619         * tests/unicase/test-u32-is-cased.c: New file.
41620
41621         Tests for module 'unicase/u16-is-cased'.
41622         * modules/unicase/u16-is-cased-tests: New file.
41623         * tests/unicase/test-u16-is-cased.c: New file.
41624
41625         Tests for module 'unicase/u8-is-cased'.
41626         * modules/unicase/u8-is-cased-tests: New file.
41627         * tests/unicase/test-u8-is-cased.c: New file.
41628         * tests/unicase/test-is-cased.h: New file.
41629
41630         New module 'unicase/u32-is-cased'.
41631         * lib/unicase/u32-is-cased.c: New file.
41632         * modules/unicase/u32-is-cased: New file.
41633
41634         New module 'unicase/u16-is-cased'.
41635         * lib/unicase/u16-is-cased.c: New file.
41636         * modules/unicase/u16-is-cased: New file.
41637
41638         New module 'unicase/u8-is-cased'.
41639         * lib/unicase/u8-is-cased.c: New file.
41640         * lib/unicase/u-is-cased.h: New file.
41641         * modules/unicase/u8-is-cased: New file.
41642
41643         Tests for module 'unicase/u32-is-casefolded'.
41644         * modules/unicase/u32-is-casefolded-tests: New file.
41645         * tests/unicase/test-u32-is-casefolded.c: New file.
41646
41647         Tests for module 'unicase/u16-is-casefolded'.
41648         * modules/unicase/u16-is-casefolded-tests: New file.
41649         * tests/unicase/test-u16-is-casefolded.c: New file.
41650
41651         Tests for module 'unicase/u8-is-casefolded'.
41652         * modules/unicase/u8-is-casefolded-tests: New file.
41653         * tests/unicase/test-u8-is-casefolded.c: New file.
41654         * tests/unicase/test-is-casefolded.h: New file.
41655
41656         New module 'unicase/u32-is-casefolded'.
41657         * lib/unicase/u32-is-casefolded.c: New file.
41658         * modules/unicase/u32-is-casefolded: New file.
41659
41660         New module 'unicase/u16-is-casefolded'.
41661         * lib/unicase/u16-is-casefolded.c: New file.
41662         * modules/unicase/u16-is-casefolded: New file.
41663
41664         New module 'unicase/u8-is-casefolded'.
41665         * lib/unicase/u8-is-casefolded.c: New file.
41666         * modules/unicase/u8-is-casefolded: New file.
41667
41668         Tests for module 'unicase/u32-is-titlecase'.
41669         * modules/unicase/u32-is-titlecase-tests: New file.
41670         * tests/unicase/test-u32-is-titlecase.c: New file.
41671
41672         Tests for module 'unicase/u16-is-titlecase'.
41673         * modules/unicase/u16-is-titlecase-tests: New file.
41674         * tests/unicase/test-u16-is-titlecase.c: New file.
41675
41676         Tests for module 'unicase/u8-is-titlecase'.
41677         * modules/unicase/u8-is-titlecase-tests: New file.
41678         * tests/unicase/test-u8-is-titlecase.c: New file.
41679         * tests/unicase/test-is-titlecase.h: New file.
41680
41681         New module 'unicase/u32-is-titlecase'.
41682         * lib/unicase/u32-is-titlecase.c: New file.
41683         * modules/unicase/u32-is-titlecase: New file.
41684
41685         New module 'unicase/u16-is-titlecase'.
41686         * lib/unicase/u16-is-titlecase.c: New file.
41687         * modules/unicase/u16-is-titlecase: New file.
41688
41689         New module 'unicase/u8-is-titlecase'.
41690         * lib/unicase/u8-is-titlecase.c: New file.
41691         * modules/unicase/u8-is-titlecase: New file.
41692
41693         Tests for module 'unicase/u32-is-lowercase'.
41694         * modules/unicase/u32-is-lowercase-tests: New file.
41695         * tests/unicase/test-u32-is-lowercase.c: New file.
41696
41697         Tests for module 'unicase/u16-is-lowercase'.
41698         * modules/unicase/u16-is-lowercase-tests: New file.
41699         * tests/unicase/test-u16-is-lowercase.c: New file.
41700
41701         Tests for module 'unicase/u8-is-lowercase'.
41702         * modules/unicase/u8-is-lowercase-tests: New file.
41703         * tests/unicase/test-u8-is-lowercase.c: New file.
41704         * tests/unicase/test-is-lowercase.h: New file.
41705
41706         New module 'unicase/u32-is-lowercase'.
41707         * lib/unicase/u32-is-lowercase.c: New file.
41708         * modules/unicase/u32-is-lowercase: New file.
41709
41710         New module 'unicase/u16-is-lowercase'.
41711         * lib/unicase/u16-is-lowercase.c: New file.
41712         * modules/unicase/u16-is-lowercase: New file.
41713
41714         New module 'unicase/u8-is-lowercase'.
41715         * lib/unicase/u8-is-lowercase.c: New file.
41716         * modules/unicase/u8-is-lowercase: New file.
41717
41718         Tests for module 'unicase/u32-is-uppercase'.
41719         * modules/unicase/u32-is-uppercase-tests: New file.
41720         * tests/unicase/test-u32-is-uppercase.c: New file.
41721
41722         Tests for module 'unicase/u16-is-uppercase'.
41723         * modules/unicase/u16-is-uppercase-tests: New file.
41724         * tests/unicase/test-u16-is-uppercase.c: New file.
41725
41726         Tests for module 'unicase/u8-is-uppercase'.
41727         * modules/unicase/u8-is-uppercase-tests: New file.
41728         * tests/unicase/test-u8-is-uppercase.c: New file.
41729         * tests/unicase/test-is-uppercase.h: New file.
41730
41731         New module 'unicase/u32-is-uppercase'.
41732         * lib/unicase/u32-is-uppercase.c: New file.
41733         * modules/unicase/u32-is-uppercase: New file.
41734
41735         New module 'unicase/u16-is-uppercase'.
41736         * lib/unicase/u16-is-uppercase.c: New file.
41737         * modules/unicase/u16-is-uppercase: New file.
41738
41739         New module 'unicase/u8-is-uppercase'.
41740         * lib/unicase/u8-is-uppercase.c: New file.
41741         * modules/unicase/u8-is-uppercase: New file.
41742
41743         New module 'unicase/u32-is-invariant'.
41744         * lib/unicase/u32-is-invariant.c: New file.
41745         * modules/unicase/u32-is-invariant: New file.
41746
41747         New module 'unicase/u16-is-invariant'.
41748         * lib/unicase/u16-is-invariant.c: New file.
41749         * modules/unicase/u16-is-invariant: New file.
41750
41751         New module 'unicase/u8-is-invariant'.
41752         * lib/unicase/u8-is-invariant.c: New file.
41753         * lib/unicase/invariant.h: New file.
41754         * lib/unicase/u-is-invariant.h: New file.
41755         * modules/unicase/u8-is-invariant: New file.
41756
41757         Tests for module 'unicase/u32-casecoll'.
41758         * modules/unicase/u32-casecoll-tests: New file.
41759         * tests/unicase/test-u32-casecoll.c: New file.
41760
41761         Tests for module 'unicase/u16-casecoll'.
41762         * modules/unicase/u16-casecoll-tests: New file.
41763         * tests/unicase/test-u16-casecoll.c: New file.
41764
41765         Tests for module 'unicase/u8-casecoll'.
41766         * modules/unicase/u8-casecoll-tests: New file.
41767         * tests/unicase/test-u8-casecoll.c: New file.
41768
41769         New module 'unicase/u32-casecoll'.
41770         * lib/unicase/u32-casecoll.c: New file.
41771         * modules/unicase/u32-casecoll: New file.
41772
41773         New module 'unicase/u16-casecoll'.
41774         * lib/unicase/u16-casecoll.c: New file.
41775         * modules/unicase/u16-casecoll: New file.
41776
41777         New module 'unicase/u8-casecoll'.
41778         * lib/unicase/u8-casecoll.c: New file.
41779         * lib/unicase/u-casecoll.h: New file.
41780         * modules/unicase/u8-casecoll: New file.
41781
41782         New module 'unicase/u32-casexfrm'.
41783         * lib/unicase/u32-casexfrm.c: New file.
41784         * modules/unicase/u32-casexfrm: New file.
41785
41786         New module 'unicase/u16-casexfrm'.
41787         * lib/unicase/u16-casexfrm.c: New file.
41788         * modules/unicase/u16-casexfrm: New file.
41789
41790         New module 'unicase/u8-casexfrm'.
41791         * lib/unicase/u8-casexfrm.c: New file.
41792         * lib/unicase/u-casexfrm.h: New file.
41793         * modules/unicase/u8-casexfrm: New file.
41794
41795         Tests for module 'unicase/u32-casecmp'.
41796         * modules/unicase/u32-casecmp-tests: New file.
41797         * tests/unicase/test-u32-casecmp.c: New file.
41798
41799         Tests for module 'unicase/u16-casecmp'.
41800         * modules/unicase/u16-casecmp-tests: New file.
41801         * tests/unicase/test-u16-casecmp.c: New file.
41802
41803         Tests for module 'unicase/u8-casecmp'.
41804         * modules/unicase/u8-casecmp-tests: New file.
41805         * tests/unicase/test-u8-casecmp.c: New file.
41806         * tests/unicase/test-casecmp.h: New file.
41807
41808         New module 'unicase/u32-casecmp'.
41809         * lib/unicase/u32-casecmp.c: New file.
41810         * modules/unicase/u32-casecmp: New file.
41811
41812         New module 'unicase/u16-casecmp'.
41813         * lib/unicase/u16-casecmp.c: New file.
41814         * modules/unicase/u16-casecmp: New file.
41815
41816         New module 'unicase/u8-casecmp'.
41817         * lib/unicase/u8-casecmp.c: New file.
41818         * lib/unicase/u-casecmp.h: New file.
41819         * modules/unicase/u8-casecmp: New file.
41820
41821         Tests for module 'unicase/u32-casefold'.
41822         * modules/unicase/u32-casefold-tests: New file.
41823         * tests/unicase/test-u32-casefold.c: New file.
41824
41825         Tests for module 'unicase/u16-casefold'.
41826         * modules/unicase/u16-casefold-tests: New file.
41827         * tests/unicase/test-u16-casefold.c: New file.
41828
41829         Tests for module 'unicase/u8-casefold'.
41830         * modules/unicase/u8-casefold-tests: New file.
41831         * tests/unicase/test-u8-casefold.c: New file.
41832
41833         New module 'unicase/u32-casefold'.
41834         * lib/unicase/u32-casefold.c: New file.
41835         * modules/unicase/u32-casefold: New file.
41836
41837         New module 'unicase/u16-casefold'.
41838         * lib/unicase/u16-casefold.c: New file.
41839         * modules/unicase/u16-casefold: New file.
41840
41841         New module 'unicase/u8-casefold'.
41842         * lib/unicase/u8-casefold.c: New file.
41843         * lib/unicase/u-casefold.h: New file.
41844         * modules/unicase/u8-casefold: New file.
41845
41846         New module 'unicase/tocasefold'.
41847         * lib/unicase/casefold.h: New file.
41848         * lib/unicase/tocasefold.c: New file.
41849         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41850         * modules/unicase/tocasefold: New file.
41851
41852         Tests for module 'unicase/u32-totitle'.
41853         * modules/unicase/u32-totitle-tests: New file.
41854         * tests/unicase/test-u32-totitle.c: New file.
41855
41856         Tests for module 'unicase/u16-totitle'.
41857         * modules/unicase/u16-totitle-tests: New file.
41858         * tests/unicase/test-u16-totitle.c: New file.
41859
41860         Tests for module 'unicase/u8-totitle'.
41861         * modules/unicase/u8-totitle-tests: New file.
41862         * tests/unicase/test-u8-totitle.c: New file.
41863
41864         New module 'unicase/u32-totitle'.
41865         * lib/unicase/u32-totitle.c: New file.
41866         * modules/unicase/u32-totitle: New file.
41867
41868         New module 'unicase/u16-totitle'.
41869         * lib/unicase/u16-totitle.c: New file.
41870         * modules/unicase/u16-totitle: New file.
41871
41872         New module 'unicase/u8-totitle'.
41873         * lib/unicase/u8-totitle.c: New file.
41874         * lib/unicase/u-totitle.h: New file.
41875         * modules/unicase/u8-totitle: New file.
41876
41877         Tests for module 'unicase/u32-tolower'.
41878         * modules/unicase/u32-tolower-tests: New file.
41879         * tests/unicase/test-u32-tolower.c: New file.
41880
41881         Tests for module 'unicase/u16-tolower'.
41882         * modules/unicase/u16-tolower-tests: New file.
41883         * tests/unicase/test-u16-tolower.c: New file.
41884
41885         Tests for module 'unicase/u8-tolower'.
41886         * modules/unicase/u8-tolower-tests: New file.
41887         * tests/unicase/test-u8-tolower.c: New file.
41888
41889         New module 'unicase/u32-tolower'.
41890         * lib/unicase/u32-tolower.c: New file.
41891         * modules/unicase/u32-tolower: New file.
41892
41893         New module 'unicase/u16-tolower'.
41894         * lib/unicase/u16-tolower.c: New file.
41895         * modules/unicase/u16-tolower: New file.
41896
41897         New module 'unicase/u8-tolower'.
41898         * lib/unicase/u8-tolower.c: New file.
41899         * modules/unicase/u8-tolower: New file.
41900
41901         Tests for module 'unicase/u32-toupper'.
41902         * modules/unicase/u32-toupper-tests: New file.
41903         * tests/unicase/test-u32-toupper.c: New file.
41904
41905         Tests for module 'unicase/u16-toupper'.
41906         * modules/unicase/u16-toupper-tests: New file.
41907         * tests/unicase/test-u16-toupper.c: New file.
41908
41909         Tests for module 'unicase/u8-toupper'.
41910         * modules/unicase/u8-toupper-tests: New file.
41911         * tests/unicase/test-u8-toupper.c: New file.
41912
41913         New module 'unicase/u32-toupper'.
41914         * lib/unicase/u32-toupper.c: New file.
41915         * modules/unicase/u32-toupper: New file.
41916
41917         New module 'unicase/u16-toupper'.
41918         * lib/unicase/u16-toupper.c: New file.
41919         * modules/unicase/u16-toupper: New file.
41920
41921         New module 'unicase/u8-toupper'.
41922         * lib/unicase/u8-toupper.c: New file.
41923         * modules/unicase/u8-toupper: New file.
41924
41925         New module 'unicase/u32-casemap'.
41926         * lib/unicase/u32-casemap.c: New file.
41927         * modules/unicase/u32-casemap: New file.
41928
41929         New module 'unicase/u16-casemap'.
41930         * lib/unicase/u16-casemap.c: New file.
41931         * modules/unicase/u16-casemap: New file.
41932
41933         New module 'unicase/u8-casemap'.
41934         * lib/unicase/unicasemap.h: New file.
41935         * lib/unicase/u8-casemap.c: New file.
41936         * lib/unicase/u-casemap.h: New file.
41937         * modules/unicase/u8-casemap: New file.
41938
41939         New module 'unicase/special-casing'.
41940         * lib/unicase/special-casing.h: New file.
41941         * lib/unicase/special-casing.c: New file.
41942         * lib/unicase/special-casing-table.gperf: New file, generated by
41943         gen-uni-tables.c.
41944         * modules/unicase/special-casing: New file.
41945
41946         Tests for module 'unicase/locale-language'.
41947         * modules/unicase/locale-language-tests: New file.
41948         * tests/unicase/test-locale-language.sh: New file.
41949         * tests/unicase/test-locale-language.c: New file.
41950
41951         New module 'unicase/locale-language'.
41952         * lib/unicase/locale-language.c: New file.
41953         * lib/unicase/locale-languages.gperf: New file.
41954         * modules/unicase/locale-language: New file.
41955
41956         Generate more tables for case conversion and case folding.
41957         * lib/gen-uni-tables.c (SCC_*): New enum items.
41958         (struct special_casing_rule): New type.
41959         (casing_rules, num_casing_rules, allocated_casing_rules): New
41960         variables.
41961         (add_casing_rule, fill_casing_rules): New functions.
41962         (struct casefold_rule): New type.
41963         (casefolding_rules, num_casefolding_rules,
41964         allocated_casefolding_rules): New variables.
41965         (fill_casefolding_rules): New function.
41966         (unicode_casefold): New variable.
41967         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41968         sort_casing_rules, output_casing_rules): New functions.
41969         (main): Accept to more arguments: SpecialCasing.txt and
41970         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41971         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41972         Output mapping for casefolding.
41973
41974         * lib/unicase.h: Include stdbool.h, uninorm.h.
41975         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41976         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41977         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41978         arguments.
41979         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41980         resultp arguments.
41981         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41982         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41983         resultp arguments.
41984         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41985         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41986         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41987         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41988         declarations.
41989         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41990
41991 2009-03-08  Bruno Haible  <bruno@clisp.org>
41992
41993         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41994         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41995         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41996         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41997
41998 2009-03-07  Bruno Haible  <bruno@clisp.org>
41999
42000         Adjust u*_normcmp, u*_normcoll API.
42001         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42002         u16_normcoll, u32_normcoll): Change failure conventions.
42003         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42004         errno and return -1.
42005         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42006
42007 2009-03-07  Bruno Haible  <bruno@clisp.org>
42008
42009         Tests for module 'uninorm/u32-normcoll'.
42010         * modules/uninorm/u32-normcoll-tests: New file.
42011         * tests/uninorm/test-u32-normcoll.c: New file.
42012
42013         Tests for module 'uninorm/u16-normcoll'.
42014         * modules/uninorm/u16-normcoll-tests: New file.
42015         * tests/uninorm/test-u16-normcoll.c: New file.
42016
42017         Tests for module 'uninorm/u8-normcoll'.
42018         * modules/uninorm/u8-normcoll-tests: New file.
42019         * tests/uninorm/test-u8-normcoll.c: New file.
42020
42021 2009-03-07  Bruno Haible  <bruno@clisp.org>
42022
42023         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42024         tests/uninorm/test-u32-normcmp.c.
42025         * tests/uninorm/test-u32-normcmp.c: Include it.
42026         (test_nonascii): New function, extracted from main. Add some more
42027         tests.
42028         (main): Invoke test_ascii and test_nonascii.
42029         * modules/uninorm/u32-normcmp-tests (Files): Add
42030         tests/uninorm/test-u32-normcmp.h.
42031         (Depends-on): Remove uninorm/u32-normcmp.
42032
42033         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42034         tests/uninorm/test-u16-normcmp.c.
42035         * tests/uninorm/test-u16-normcmp.c: Include it.
42036         (test_nonascii): New function, extracted from main. Add some more
42037         tests.
42038         (main): Invoke test_ascii and test_nonascii.
42039         * modules/uninorm/u16-normcmp-tests (Files): Add
42040         tests/uninorm/test-u16-normcmp.h.
42041         (Depends-on): Remove uninorm/u16-normcmp.
42042
42043         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42044         tests/uninorm/test-u8-normcmp.c.
42045         * tests/uninorm/test-u8-normcmp.c: Include it.
42046         (test_nonascii): New function, extracted from main. Add some more
42047         tests.
42048         (main): Invoke test_ascii and test_nonascii.
42049         * modules/uninorm/u8-normcmp-tests (Files): Add
42050         tests/uninorm/test-u8-normcmp.h.
42051         (Depends-on): Remove uninorm/u8-normcmp.
42052
42053 2009-03-07  Bruno Haible  <bruno@clisp.org>
42054
42055         New module 'uninorm/u32-normcoll'.
42056         * lib/uninorm/u32-normcoll.c: New file.
42057         * modules/uninorm/u32-normcoll: New file.
42058
42059         New module 'uninorm/u16-normcoll'.
42060         * lib/uninorm/u16-normcoll.c: New file.
42061         * modules/uninorm/u16-normcoll: New file.
42062
42063         New module 'uninorm/u8-normcoll'.
42064         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42065         declarations.
42066         * lib/uninorm/u8-normcoll.c: New file.
42067         * lib/uninorm/u-normcoll.h: New file.
42068         * modules/uninorm/u8-normcoll: New file.
42069
42070         New module 'uninorm/u32-normxfrm'.
42071         * lib/uninorm/u32-normxfrm.c: New file.
42072         * modules/uninorm/u32-normxfrm: New file.
42073
42074         New module 'uninorm/u16-normxfrm'.
42075         * lib/uninorm/u16-normxfrm.c: New file.
42076         * modules/uninorm/u16-normxfrm: New file.
42077
42078         New module 'uninorm/u8-normxfrm'.
42079         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42080         declarations.
42081         * lib/uninorm/u8-normxfrm.c: New file.
42082         * lib/uninorm/u-normxfrm.h: New file.
42083         * modules/uninorm/u8-normxfrm: New file.
42084
42085 2009-03-07  Bruno Haible  <bruno@clisp.org>
42086
42087         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42088         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42089         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42090
42091 2009-03-07  Bruno Haible  <bruno@clisp.org>
42092
42093         New module 'memxfrm'.
42094         * lib/memxfrm.h: New file.
42095         * lib/memxfrm.c: New file.
42096         * modules/memxfrm: New file.
42097
42098 2009-03-07  Bruno Haible  <bruno@clisp.org>
42099
42100         New module 'memcmp2'.
42101         * lib/memcmp2.h: New file.
42102         * lib/memcmp2.c: New file.
42103         * modules/memcmp2: New file.
42104
42105 2009-03-07  Bruno Haible  <bruno@clisp.org>
42106
42107         Tests for module 'uninorm/decomposing-form'.
42108         * modules/uninorm/decomposing-form-tests: New file.
42109         * tests/uninorm/test-decomposing-form.c: New file.
42110
42111         New module 'uninorm/decomposing-form'.
42112         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42113         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42114         Add 'decomposing_variant' field.
42115         * lib/uninorm/decomposing-form.c: New file.
42116         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42117         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42118         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42119         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42120         * modules/uninorm/decomposing-form: New file.
42121         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42122         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42123
42124 2009-03-07  Bruno Haible  <bruno@clisp.org>
42125
42126         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42127         strings.
42128
42129 2009-03-06  Bruno Haible  <bruno@clisp.org>
42130
42131         Tests for module 'uninorm/u32-normcmp'.
42132         * tests/uninorm/test-u32-normcmp.c: New file.
42133         * modules/uninorm/u32-normcmp-tests: New file.
42134
42135         Tests for module 'uninorm/u16-normcmp'.
42136         * tests/uninorm/test-u16-normcmp.c: New file.
42137         * modules/uninorm/u16-normcmp-tests: New file.
42138
42139         Tests for module 'uninorm/u8-normcmp'.
42140         * tests/uninorm/test-u8-normcmp.c: New file.
42141         * modules/uninorm/u8-normcmp-tests: New file.
42142
42143         New module 'uninorm/u32-normcmp'.
42144         * lib/uninorm/u32-normcmp.c: New file.
42145         * modules/uninorm/u32-normcmp: New file.
42146
42147         New module 'uninorm/u16-normcmp'.
42148         * lib/uninorm/u16-normcmp.c: New file.
42149         * modules/uninorm/u16-normcmp: New file.
42150
42151         New module 'uninorm/u8-normcmp'.
42152         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42153         declarations.
42154         * lib/uninorm/u8-normcmp.c: New file.
42155         * lib/uninorm/u-normcmp.h: New file.
42156         * modules/uninorm/u8-normcmp: New file.
42157
42158 2009-03-06  Bruno Haible  <bruno@clisp.org>
42159
42160         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42161         Reported by Eric Blake.
42162
42163 2009-03-06  Eric Blake  <ebb9@byu.net>
42164             Bruno Haible  <bruno@clisp.org>
42165
42166         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42167         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42168         condition.
42169         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42170         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42171         condition.
42172         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42173
42174 2009-03-06  Eric Blake  <ebb9@byu.net>
42175
42176         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42177         to avoid compiler warnings.
42178         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42179
42180 2009-03-05  Bruno Haible  <bruno@clisp.org>
42181
42182         * tests/test-ftell.c (main): Disable test beyond end of file on
42183         FreeMiNT.
42184         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42185
42186 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42187
42188         * lib/filevercmp.c: Move hidden files up in ordering.
42189         * tests/test-filevercmp.c: Add tests for hidden files.
42190
42191 2009-03-04  Bruno Haible  <bruno@clisp.org>
42192
42193         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42194         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42195         AM_CFLAGS.
42196         Reported by Simon Josefsson.
42197
42198 2009-03-03  Bruno Haible  <bruno@clisp.org>
42199
42200         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42201         Reported by Simon Josefsson.
42202
42203         * doc/ld-version-script.texi: Update node reference.
42204
42205 2009-03-03  Bruno Haible  <bruno@clisp.org>
42206
42207         * modules/visibility (License): Change to 'unlimited'.
42208         Suggested by Simon Josefsson.
42209
42210 2009-03-03  Jim Meyering  <meyering@redhat.com>
42211
42212         unlinkdir: cannot_unlink_dir may modify process state
42213         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42214         it's neither thread-safe nor appropriate for use in a library.
42215
42216 2009-03-03  Eric Blake  <ebb9@byu.net>
42217
42218         test-closein: silence test under Darwin
42219         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42220         care if it dies from EPIPE or EBADF.
42221
42222 2009-03-03  Bruno Haible  <bruno@clisp.org>
42223
42224         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42225         earlier.
42226         * doc/visibility.texi: Fix @node and @section.
42227
42228 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42229
42230         * doc/gnulib.texi: Link to sections for ld version script and
42231         visibility.
42232         * doc/visibility.texi: Add @node and @section.
42233         * modules/ld-version-script: New module.
42234         * m4/ld-version-script.m4: New file.
42235         * doc/ld-version-script.texi: New file.
42236
42237 2009-03-02  David Lutterkort  <lutter@redhat.com>
42238
42239         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
42240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42241
42242 2009-03-02  Bruno Haible  <bruno@clisp.org>
42243
42244         * doc/visibility.texi: Mention libtool's -export-symbols option.
42245
42246 2009-03-02  Jim Meyering  <meyering@redhat.com>
42247
42248         announce-gen: new option: --no-print-checksums
42249         * build-aux/announce-gen (usage): Describe it.
42250         (print_checksums): Print a newline here, not in the [*] footnote.
42251         (main): Honor it.
42252
42253 2009-03-01  Bruno Haible  <bruno@clisp.org>
42254
42255         Use socklen_t in the native Windows replacements prototypes.
42256         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
42257         instead of 'int'.
42258         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42259         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42260         * modules/getsockopt (Depends-on): Add socklen.
42261         * modules/setsockopt (Depends-on): Add socklen.
42262
42263 2009-03-01  Bruno Haible  <bruno@clisp.org>
42264
42265         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
42266         least 4.2.
42267
42268 2009-03-01  Eric Blake  <ebb9@byu.net>
42269             Bruno Haible  <bruno@clisp.org>
42270
42271         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
42272         error messages.
42273         * lib/wait-process.c (wait_subprocess): Omit error message about
42274         deadly signal sent to the child of termsigp != NULL.
42275
42276 2009-03-01  Eric Blake  <ebb9@byu.net>
42277
42278         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
42279
42280 2009-03-01  Bruno Haible  <bruno@clisp.org>
42281
42282         Avoid a gcc warning.
42283         * tests/test-sched.c (b): Make global.
42284         Reported by Eric Blake.
42285
42286 2009-01-19  Martin Lambers  <marlam@marlam.de>
42287
42288         Provide POSIX semantics for socket timeout options on W32.
42289         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
42290         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
42291         * modules/setsockopt: Depend on sys_time module for struct timeval.
42292         * modules/getsockopt: Depend on sys_time module for struct timeval.
42293
42294 2009-03-01  Simon Josefsson  <simon@josefsson.org>
42295
42296         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
42297         __USE_GNU, for consistency with netdb.in.h.
42298         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42299
42300 2009-03-01  Bruno Haible  <bruno@clisp.org>
42301
42302         More support for FreeMiNT.
42303         * lib/fseeko.c (rpl_fseeko): Complete last commit.
42304         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42305
42306 2009-03-01  Bruno Haible  <bruno@clisp.org>
42307
42308         More support for FreeMiNT.
42309         * lib/fpurge.c (fpurge): Correct last commit.
42310         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42311
42312 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42313
42314         Fix unportable awk script in vc-list-files.
42315         * build-aux/vc-list-files: In the replacement awk script, use
42316         substr with a second argument of 1, not zero.
42317         Report by Simon Josefsson.
42318
42319 2009-02-28  Bruno Haible  <bruno@clisp.org>
42320
42321         More support for FreeMiNT.
42322         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
42323         to FreeMiNT today.
42324         * lib/fwriting.c (fwriting): Likewise.
42325         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
42326
42327 2009-02-28  Bruno Haible  <bruno@clisp.org>
42328
42329         * tests/test-freadseek.c (main): Disable test beyond end of file on
42330         FreeMiNT.
42331         * tests/test-ftello.c (main): Likewise.
42332         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42333
42334 2009-02-28  Bruno Haible  <bruno@clisp.org>
42335
42336         Add tentative support for FreeMiNT.
42337         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
42338         * lib/fpurge.c (fpurge): Likewise.
42339         * lib/freadable.c (freadable): Likewise.
42340         * lib/freading.c (freading): Likewise.
42341         * lib/freadptr.c (freadptr): Likewise.
42342         * lib/freadseek.c (freadptrinc): Likewise.
42343         * lib/fseeko.c (rpl_fseeko): Likewise.
42344         * lib/fseterr.c (fseterr): Likewise.
42345         * lib/fwritable.c (fwritable): Likewise.
42346         * lib/fwriting.c (fwriting): Likewise.
42347         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
42348         Hourihane.
42349         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42350
42351 2009-02-28  Bruno Haible  <bruno@clisp.org>
42352
42353         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
42354         SIGCHLD.
42355         Reported by Jim Meyering.
42356
42357 2009-02-28  Bruno Haible  <bruno@clisp.org>
42358
42359         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
42360         Mention the results of these tests on various platforms.
42361         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
42362         order.
42363         * doc/posix-functions/printf.texi: Likewise.
42364         * doc/posix-functions/snprintf.texi: Likewise.
42365         * doc/posix-functions/sprintf.texi: Likewise.
42366         * doc/posix-functions/vfprintf.texi: Likewise.
42367         * doc/posix-functions/vprintf.texi: Likewise.
42368         * doc/posix-functions/vsnprintf.texi: Likewise.
42369         * doc/posix-functions/vsprintf.texi: Likewise.
42370         * doc/glibc-functions/obstack_printf.texi: Likewise.
42371         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42372
42373 2009-02-28  Bruno Haible  <bruno@clisp.org>
42374
42375         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42376         Reported by Loïc Minier <lool@dooz.org>.
42377
42378 2009-02-27  Bruno Haible  <bruno@clisp.org>
42379
42380         * gnulib-tool (func_import): Make the sed expression used to create the
42381         sed script for updating the .gitignore file POSIX compliant.
42382         Reported by Eric Blake.
42383
42384 2009-02-27  Bruno Haible  <bruno@clisp.org>
42385
42386         * gnulib-tool (sed): Don't alias as "sed --posix".
42387         Reported by Eric Blake.
42388
42389 2009-02-27  Bruno Haible  <bruno@clisp.org>
42390
42391         Avoid test link errors.
42392         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42393         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42394         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42395         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42397
42398 2009-02-27  Bruno Haible  <bruno@clisp.org>
42399
42400         Avoid spurious "(cached)" in configure output.
42401         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42402         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42403         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42404         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42405         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42406         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42407         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42408         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42409         Reported by Eric Blake.
42410
42411 2009-02-27  Eric Blake  <ebb9@byu.net>
42412
42413         printf: fix regression in previous patch
42414         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42415
42416 2009-02-27  Bruno Haible  <bruno@clisp.org>
42417
42418         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42419         value.
42420         * lib/stdint.in.h: Likewise.
42421         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42422
42423 2009-02-27  Eric Blake  <ebb9@byu.net>
42424
42425         doc: mention more functions added in cygwin 1.7.0
42426         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42427         addition.
42428         * doc/posix-functions/open_wmemstream.texi: Likewise.
42429         * doc/posix-functions/wcsnlen.texi: Likewise.
42430         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42431         * doc/posix-functions/wcstod.texi: Likewise.
42432         * doc/posix-functions/wcstof.texi: Likewise.
42433         * doc/posix-functions/wcstoimax.texi: Likewise.
42434         * doc/posix-functions/wcstok.texi: Likewise.
42435         * doc/posix-functions/wcstoumax.texi: Likewise.
42436
42437         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42439         * doc/posix-functions/fprintf.texi: Update.
42440         * doc/posix-functions/printf.texi: Update.
42441         * doc/posix-functions/snprintf.texi: Update.
42442         * doc/posix-functions/sprintf.texi: Update.
42443         * doc/posix-functions/vfprintf.texi: Update.
42444         * doc/posix-functions/vprintf.texi: Update.
42445         * doc/posix-functions/vsnprintf.texi: Update.
42446         * doc/posix-functions/vsprintf.texi: Update.
42447         * doc/glibc-functions/obstack_printf.texi: Update.
42448         * doc/glibc-functions/obstack_vprintf.texi: Update.
42449
42450 2009-02-26  Eric Blake  <ebb9@byu.net>
42451
42452         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42453         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42454         compilation bug by using runtime conversion.
42455         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42456         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42457         * modules/ceill-tests (Files): Use nan.h.
42458         * modules/floorl-tests (Files): Likewise.
42459         * modules/frexpl-tests (Files): Likewise.
42460         * modules/isnanl-tests (Files): Likewise.
42461         * modules/ldexpl-tests (Files): Likewise.
42462         * modules/roundl-tests (Files): Likewise.
42463         * modules/truncl-tests (Files): Likewise.
42464         * tests/test-ceill.c (main): Use a working NaN.
42465         * tests/test-floorl.c (main): Likewise.
42466         * tests/test-frexpl.c (main): Likewise.
42467         * tests/test-isnan.c (test_long_double): Likewise.
42468         * tests/test-isnanl.h (main): Likewise.
42469         * tests/test-ldexpl.h (main): Likewise.
42470         * tests/test-roundl.h (main): Likewise.
42471         * tests/test-truncl.h (main): Likewise.
42472         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42473
42474 2009-02-26  Eric Blake  <ebb9@byu.net>
42475             Bruno Haible  <bruno@clisp.org>
42476
42477         Work around a *printf bug with %ls on Solaris.
42478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42479         precision is specified, sprintf stops converting the wide string
42480         argument when the number of bytes that have been produced by this
42481         conversion equals or exceeds the precision.
42482         * doc/posix-functions/fprintf.texi: Update.
42483         * doc/posix-functions/printf.texi: Update.
42484         * doc/posix-functions/snprintf.texi: Update.
42485         * doc/posix-functions/sprintf.texi: Update.
42486         * doc/posix-functions/vfprintf.texi: Update.
42487         * doc/posix-functions/vprintf.texi: Update.
42488         * doc/posix-functions/vsnprintf.texi: Update.
42489         * doc/posix-functions/vsprintf.texi: Update.
42490         * doc/glibc-functions/obstack_printf.texi: Update.
42491         * doc/glibc-functions/obstack_vprintf.texi: Update.
42492
42493 2009-02-26  Eric Blake  <ebb9@byu.net>
42494
42495         stdlib: favor compiler check of random.h
42496         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42497         to avoid an ObjC random.h installed by Swarm.
42498
42499 2009-02-26  Bruno Haible  <bruno@clisp.org>
42500
42501         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42502         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42503         Reported by Gary V. Vaughan <gary@gnu.org>.
42504
42505 2009-02-26  Bruno Haible  <bruno@clisp.org>
42506
42507         Fix *printf behaviour regarding the %ls directive.
42508         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42509         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42510         NEED_PRINTF_DIRECTIVE_LS.
42511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42512         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42514         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42515         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42516         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42517         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42519         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42522         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42523         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42526         * doc/posix-functions/fprintf.texi: Update.
42527         * doc/posix-functions/printf.texi: Update.
42528         * doc/posix-functions/snprintf.texi: Update.
42529         * doc/posix-functions/sprintf.texi: Update.
42530         * doc/posix-functions/vfprintf.texi: Update.
42531         * doc/posix-functions/vprintf.texi: Update.
42532         * doc/posix-functions/vsnprintf.texi: Update.
42533         * doc/posix-functions/vsprintf.texi: Update.
42534         * doc/glibc-functions/obstack_printf.texi: Update.
42535         * doc/glibc-functions/obstack_vprintf.texi: Update.
42536         Reported by Eric Blake.
42537
42538 2009-02-25  Bruno Haible  <bruno@clisp.org>
42539
42540         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42541         with known value.
42542         Reported by Gary V. Vaughan <gary@gnu.org>.
42543
42544 2009-02-25  Bruno Haible  <bruno@clisp.org>
42545
42546         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42547         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42548         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42549         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42550         Reported by Gary V. Vaughan <gary@gnu.org>.
42551
42552 2009-02-25  Bruno Haible  <bruno@clisp.org>
42553
42554         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42555         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42556         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42557         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42558         Reported by Gary V. Vaughan <gary@gnu.org>.
42559
42560 2009-02-25  Eric Blake  <ebb9@byu.net>
42561
42562         tests: skip fseek/ftell tests if ungetc is broken
42563         * m4/ungetc.m4: New file.
42564         * modules/fseek-tests: Split test, so ungetc dependency is
42565         separate from rest of test.
42566         * modules/fseeko-tests: Likewise.
42567         * modules/ftell-tests: Likewise.
42568         * modules/ftello-tests: Likewise.
42569         * tests/test-fseek.c (main): Isolate ungetc dependency.
42570         * tests/test-fseeko.c (main): Likewise.
42571         * tests/test-ftell.c (main): Likewise.
42572         * tests/test-ftello.c (main): Likewise.
42573         * tests/test-fseek2.sh: New file.
42574         * tests/test-fseeko2.sh: Likewise.
42575         * tests/test-ftell2.sh: Likewise.
42576         * tests/test-ftello2.sh: Likewise.
42577
42578 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
42579
42580         test-getaddrinfo: fix usage of skip return code 77
42581         * tests/test-gettaddrinfo.c: Return skip code 77 only
42582         for first occurance of skip (4x77 is not 77)
42583
42584 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42585
42586         strtod: avoid C99 decl-after-statement
42587         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42588
42589 2009-02-24  Eric Blake  <ebb9@byu.net>
42590
42591         strtod: detect HP-UX 11.31 bug
42592         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42593         Reported by Gary V. Vaughan.
42594
42595 2009-02-23  Bruno Haible  <bruno@clisp.org>
42596
42597         Fix invalid read past end of memory block.
42598         * lib/vasnprintf.c (DCHAR_SET): Define.
42599         (local_wcslen): Define only when needed.
42600         (local_strnlen, local_wcsnlen): New functions.
42601         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42602         directives that involve a conversion ourselves.
42603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42604         wcsnlen, mbrtowc, wcrtomb.
42605         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42606         * tests/test-vasprintf-posix.c (test_function): Likewise.
42607         * tests/test-snprintf-posix.h (test_function): Likewise.
42608         * tests/test-sprintf-posix.h (test_function): Likewise.
42609         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42610
42611 2009-02-22  Bruno Haible  <bruno@clisp.org>
42612
42613         Implement new clarified decomposition of Hangul syllables.
42614         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42615         of type LTV, return only a pairwise decomposition.
42616         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42617         Likewise.
42618         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42619         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42620         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42621
42622 2009-02-22  Bruno Haible  <bruno@clisp.org>
42623
42624         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42625         zero-length results and shrink excess allocated memory.
42626         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42627         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42628         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42629         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42630         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42631         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42632         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42633         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42634         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42635         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42636         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42637         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42638
42639 2009-02-21  Bruno Haible  <bruno@clisp.org>
42640
42641         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42642         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42643         spaces after a period. Put a space between a macro name and its
42644         argument list. Trivial rewordings.
42645         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42646         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42647         (main): Return 0 explicitly.
42648
42649 2009-02-21  Bruno Haible  <bruno@clisp.org>
42650
42651         Tests for module 'uninorm/filter'.
42652         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42653         * modules/uninorm/filter-tests: New file.
42654
42655         New module 'uninorm/filter'.
42656         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42657         uninorm_filter_flush, uninorm_filter_free): New declarations.
42658         * lib/uninorm/uninorm-filter.c: New file.
42659         * modules/uninorm/filter: New file.
42660
42661 2009-02-21  Bruno Haible  <bruno@clisp.org>
42662
42663         Tests for module 'uninorm/nfkc'.
42664         * tests/uninorm/test-nfkc.c: New file.
42665         * tests/uninorm/test-u8-nfkc.c: New file.
42666         * tests/uninorm/test-u16-nfkc.c: New file.
42667         * tests/uninorm/test-u32-nfkc.c: New file.
42668         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42669         * tests/uninorm/test-u32-nfkc-big.c: New file.
42670         * modules/uninorm/nfkc-tests: New file.
42671
42672         New module 'uninorm/nfkc'.
42673         * lib/uninorm/nfkc.c: New file.
42674         * modules/uninorm/nfkc: New file.
42675
42676         Tests for module 'uninorm/nfkd'.
42677         * tests/uninorm/test-nfkd.c: New file.
42678         * tests/uninorm/test-u8-nfkd.c: New file.
42679         * tests/uninorm/test-u16-nfkd.c: New file.
42680         * tests/uninorm/test-u32-nfkd.c: New file.
42681         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42682         * tests/uninorm/test-u32-nfkd-big.c: New file.
42683         * modules/uninorm/nfkd-tests: New file.
42684
42685         New module 'uninorm/nfkd'.
42686         * lib/uninorm/nfkd.c: New file.
42687         * modules/uninorm/nfkd: New file.
42688
42689         Tests for module 'uninorm/nfc'.
42690         * tests/uninorm/test-nfc.c: New file.
42691         * tests/uninorm/test-u8-nfc.c: New file.
42692         * tests/uninorm/test-u16-nfc.c: New file.
42693         * tests/uninorm/test-u32-nfc.c: New file.
42694         * tests/uninorm/test-u32-nfc-big.sh: New file.
42695         * tests/uninorm/test-u32-nfc-big.c: New file.
42696         * modules/uninorm/nfc-tests: New file.
42697
42698         New module 'uninorm/nfc'.
42699         * lib/uninorm/nfc.c: New file.
42700         * modules/uninorm/nfc: New file.
42701
42702         Tests for module 'uninorm/nfd'.
42703         * tests/uninorm/test-nfd.c: New file.
42704         * tests/uninorm/test-u8-nfd.c: New file.
42705         * tests/uninorm/test-u16-nfd.c: New file.
42706         * tests/uninorm/test-u32-nfd.c: New file.
42707         * tests/uninorm/test-u32-nfd-big.sh: New file.
42708         * tests/uninorm/test-u32-nfd-big.c: New file.
42709         * tests/uninorm/test-u32-normalize-big.h: New file.
42710         * tests/uninorm/test-u32-normalize-big.c: New file.
42711         * tests/uninorm/NormalizationTest.txt: New file, created from
42712         Unicode 5.1.0 NormalizationTest.txt.
42713         * modules/uninorm/nfd-tests: New file.
42714
42715         New module 'uninorm/nfd'.
42716         * lib/uninorm/nfd.c: New file.
42717         * modules/uninorm/nfd: New file.
42718
42719         New module 'uninorm/u32-normalize'.
42720         * lib/uninorm/u32-normalize.c: New file.
42721         * modules/uninorm/u32-normalize: New file.
42722
42723         New module 'uninorm/u16-normalize'.
42724         * lib/uninorm/u16-normalize.c: New file.
42725         * modules/uninorm/u16-normalize: New file.
42726
42727         New module 'uninorm/u8-normalize'.
42728         * lib/uninorm/u8-normalize.c: New file.
42729         * lib/uninorm/normalize-internal.h: New file.
42730         * lib/uninorm/u-normalize-internal.h: New file.
42731         * modules/uninorm/u8-normalize: New file.
42732
42733         New module 'uninorm/decompose-internal'.
42734         * lib/uninorm/decompose-internal.c: New file.
42735         * modules/uninorm/decompose-internal: New file.
42736
42737         Tests for module 'uninorm/composition'.
42738         * tests/uninorm/test-composition.c: New file.
42739         * modules/uninorm/composition-tests: New file.
42740
42741         New module 'uninorm/composition'.
42742         * lib/uninorm/composition.c: New file.
42743         * lib/uninorm/composition-table.gperf: New file, generated by
42744         gen-uni-tables.
42745         * modules/uninorm/composition: New file.
42746
42747         Tests for module 'uninorm/compat-decomposition'.
42748         * tests/uninorm/test-compat-decomposition.c: New file.
42749         * modules/uninorm/compat-decomposition-tests: New file.
42750
42751         New module 'uninorm/compat-decomposition'.
42752         * lib/uninorm/decompose-internal.h: New file.
42753         * lib/uninorm/compat-decomposition.c: New file.
42754         * modules/uninorm/compat-decomposition: New file.
42755
42756         Tests for module 'uninorm/canonical-decomposition'.
42757         * tests/uninorm/test-canonical-decomposition.c: New file.
42758         * modules/uninorm/canonical-decomposition-tests: New file.
42759
42760         New module 'uninorm/canonical-decomposition'.
42761         * lib/uninorm/canonical-decomposition.c: New file.
42762         * modules/uninorm/canonical-decomposition: New file.
42763
42764         Tests for module 'uninorm/decomposition'.
42765         * tests/uninorm/test-decomposition.c: New file.
42766         * modules/uninorm/decomposition-tests: New file.
42767
42768         New module 'uninorm/decomposition'.
42769         * lib/uninorm/decomposition.c: New file.
42770         * modules/uninorm/decomposition: New file.
42771
42772         New module 'uninorm/decomposition-table'.
42773         * lib/uninorm/decomposition-table.h: New file.
42774         * lib/uninorm/decomposition-table.c: New file.
42775         * lib/uninorm/decomposition-table1.h: New file, generated by
42776         gen-uni-tables.
42777         * lib/uninorm/decomposition-table2.h: New file, generated by
42778         gen-uni-tables.
42779         * modules/uninorm/decomposition-table: New file.
42780
42781         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42782         (UC_DECOMP_*): New enumeration items.
42783         (get_decomposition): New function.
42784         (struct decomp_table): New type.
42785         (output_decomposition, output_decomposition_tables): New functions.
42786         (unicode_composition_exclusions): New variable.
42787         (fill_composition_exclusions, debug_output_composition_tables): New
42788         functions.
42789         (main): Accept one more argument. Invoke fill_composition_exclusions.
42790         Output decomposition and composition tables.
42791
42792         New module 'uninorm/base'.
42793         * lib/uninorm.h: New file.
42794         * lib/unictype.h: Update comment.
42795         * modules/uninorm/base: New file.
42796
42797 2009-02-21  David Lutterkort  <lutter@redhat.com>
42798
42799         Tests for module 'safe-alloc'.
42800         * tests/test-safe-alloc.c: New file.
42801         * modules/safe-alloc-tests: New file.
42802
42803         New module 'safe-alloc'.
42804         * lib/safe-alloc.h: New file.
42805         * lib/safe-alloc.c: New file.
42806         * m4/safe-alloc.m4: New file.
42807         * modules/safe-alloc: New file.
42808         * doc/safe-alloc.texi: New file.
42809         * doc/gnulib.texi: Include it.
42810         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42811         safe-alloc.
42812
42813 2009-02-18  Bruno Haible  <bruno@clisp.org>
42814
42815         Fix link error on non-glibc systems.
42816         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42817         variable.
42818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42819
42820 2009-02-18  Jim Meyering  <meyering@redhat.com>
42821
42822         fts: avoid used-uninitialized error due to recent change
42823         * lib/fts.c (fts_read): Guard uses of the new member,
42824         parent->fts_n_dirs_remaining, since it's not relevant for
42825         the parent of a directory specified on the command-line.
42826
42827 2009-02-17  James Youngman  <jay@gnu.org>
42828             Bruno Haible  <bruno@clisp.org>
42829
42830         * m4/include_next.m4: Reformulate comment.
42831
42832 2009-02-16  Jim Meyering  <meyering@redhat.com>
42833
42834         fts: add #if guards so that the fts_lgpl module still builds
42835         * lib/fts.c: Guard just-added hash-table-using parts with
42836         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42837         Reported by Simon Josefsson.
42838
42839 2009-02-15  Bruno Haible  <bruno@clisp.org>
42840
42841         * modules/array-mergesort-tests: New file.
42842         * tests/test-array-mergesort.c: New file.
42843
42844         New module 'array-mergesort'.
42845         * modules/array-mergesort: New file.
42846         * lib/array-mergesort.h: New file.
42847
42848 2009-02-15  Bruno Haible  <bruno@clisp.org>
42849
42850         Fix 2009-02-07 commit.
42851         * lib/gen-uni-tables.c (output_predicate, output_category,
42852         output_combclass, output_bidi_category, output_decimal_digit,
42853         output_digit, output_numeric, output_mirror, output_scripts,
42854         output_ident_category, output_simple_mapping): Fix format directives.
42855         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42856
42857 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42858
42859         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42860         fixes are available from IBM.
42861
42862 2009-02-13  Jim Meyering  <meyering@redhat.com>
42863
42864         fts: arrange not to stat non-directories in more cases
42865         This makes GNU find (when it doesn't need to stat each file)
42866         *much* more efficient at traversing reiserfs file systems.
42867         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42868         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42869         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42870         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42871         (leaf_optimization_applies): New function.
42872         (LCO_hash, LCO_compare): New helper functions.
42873         (link_count_optimize_ok): New function.
42874         (fts_stat): Initialize new member (if dir).
42875         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42876         we've just stat'ed a directory.  Skip the stat call when possible.
42877         ---
42878         Note this AFS-related exchange:
42879         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42880         and note find's pioctl call in find/fstype.c.
42881         But that is necessary only if you want to enable the
42882         optimization for AFS, and for now, I don't.
42883
42884         fts: move a function definition "up" (no semantic change)
42885         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42886         "up" to precede upcoming use of a related function.
42887
42888 2009-02-11  Jim Meyering  <meyering@redhat.com>
42889
42890         fts: correct internal computation of nlinks (optimization-related)
42891         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42892         whether the current entry is a directory, so don't test it.
42893
42894 2009-02-10  Bruno Haible  <bruno@clisp.org>
42895
42896         Tests for module 'uniwbrk/ulc-wordbreaks'.
42897         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42898         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42899         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42900
42901         Tests for module 'uniwbrk/u32-wordbreaks'.
42902         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42903         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42904
42905         Tests for module 'uniwbrk/u16-wordbreaks'.
42906         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42907         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42908
42909         Tests for module 'uniwbrk/u8-wordbreaks'.
42910         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42911         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42912
42913 2009-02-10  Bruno Haible  <bruno@clisp.org>
42914
42915         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42916         property.
42917         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42918         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42919         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42920
42921 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42922
42923         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42924         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42925
42926 2009-02-10  Bruno Haible  <bruno@clisp.org>
42927
42928         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42929         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42930         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42931         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42932         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42933         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42934
42935 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42936
42937         * lib/sockets.h (gl_fd_to_handle): New function.
42938
42939         * tests/test-sockets.c: Call gl_fd_to_handle.
42940
42941 2009-02-09  Bruno Haible  <bruno@clisp.org>
42942
42943         * doc/havelib.texi: Document the conventions on bi-arch systems.
42944
42945 2009-02-08  Bruno Haible  <bruno@clisp.org>
42946
42947         Document the AC_LIB_LINKFLAGS macro.
42948         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42949         * doc/gnulib.texi: Include it.
42950
42951 2009-02-08  Bruno Haible  <bruno@clisp.org>
42952
42953         Fix wrong order of sections, compared to TOC.
42954         * doc/gnulib.texi: Include relocatable-maint.texi after the
42955         "Regular expressions" node, not before.
42956
42957 2009-02-08  Bruno Haible  <bruno@clisp.org>
42958
42959         Tests for module 'unicase/totitle'.
42960         * modules/unicase/totitle-tests: New file.
42961
42962         Tests for module 'unicase/tolower'.
42963         * modules/unicase/tolower-tests: New file.
42964
42965         Tests for module 'unicase/toupper'.
42966         * modules/unicase/toupper-tests: New file.
42967         * tests/unicase/test-mapping-part1.h: New file.
42968         * tests/unicase/test-mapping-part2.h: New file.
42969
42970         New module 'unicase/totitle'.
42971         * modules/unicase/totitle: New file.
42972         * lib/unicase/totitle.c: New file.
42973
42974         New module 'unicase/tolower'.
42975         * modules/unicase/tolower: New file.
42976         * lib/unicase/tolower.c: New file.
42977
42978         New module 'unicase/toupper'.
42979         * modules/unicase/toupper: New file.
42980         * lib/unicase/toupper.c: New file.
42981         * lib/unicase/simple-mapping.h: New file.
42982
42983         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42984         (mapping_table): New structure.
42985         (output_simple_mapping): New function.
42986         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42987         * modules/gen-uni-tables (Description): Update.
42988         * lib/unicase/toupper.h: New file, automatically generated by
42989         gen-uni-tables.
42990         * lib/unicase/tolower.h: New file, automatically generated by
42991         gen-uni-tables.
42992         * lib/unicase/totitle.h: New file, automatically generated by
42993         gen-uni-tables.
42994         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42995         gen-uni-tables.
42996         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42997         gen-uni-tables.
42998         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42999         gen-uni-tables.
43000
43001         New module 'unicase/base'.
43002         * modules/unicase/base: New file.
43003         * lib/unicase.h: New file.
43004
43005 2009-02-08  Bruno Haible  <bruno@clisp.org>
43006
43007         New module 'uniwbrk/ulc-wordbreaks'.
43008         * modules/uniwbrk/ulc-wordbreaks: New file.
43009         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43010
43011         New module 'uniwbrk/u32-wordbreaks'.
43012         * modules/uniwbrk/u32-wordbreaks: New file.
43013         * lib/uniwbrk/u32-wordbreaks.c: New file.
43014
43015         New module 'uniwbrk/u16-wordbreaks'.
43016         * modules/uniwbrk/u16-wordbreaks: New file.
43017         * lib/uniwbrk/u16-wordbreaks.c: New file.
43018
43019         New module 'uniwbrk/u8-wordbreaks'.
43020         * modules/uniwbrk/u8-wordbreaks: New file.
43021         * lib/uniwbrk/u8-wordbreaks.c: New file.
43022         * lib/uniwbrk/u-wordbreaks.h: New file.
43023
43024         New module 'uniwbrk/table'.
43025         * modules/uniwbrk/table: New file.
43026         * lib/uniwbrk/wbrktable.h: New file.
43027         * lib/uniwbrk/wbrktable.c: New file.
43028
43029         New module 'uniwbrk/wordbreak-property'.
43030         * modules/uniwbrk/wordbreak-property: New file.
43031         * lib/uniwbrk/wordbreak-property.c: New file.
43032
43033         * lib/gen-uni-tables.c (WBP_*): New enum items.
43034         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43035         (unicode_org_wbp): New variable.
43036         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43037         New functions.
43038         (wbp_table): New structure.
43039         (output_wbp, output_wbrk_tables): New functions.
43040         (main): Accept additional argument. Invoke fill_org_wbp,
43041         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43042         output_wbrk_tables.
43043         * modules/gen-uni-tables (Description): Update.
43044         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43045         gen-uni-tables.
43046
43047         New module 'uniwbrk/base'.
43048         * modules/uniwbrk/base: New file.
43049         * lib/uniwbrk.h: New file.
43050
43051 2009-02-08  Bruno Haible  <bruno@clisp.org>
43052
43053         Update to Unicode 5.1.0.
43054         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43055         U+2185..U+2188.
43056         (is_property_default_ignorable_code_point): Don't include characters
43057         of category Cc or Cs and not-a-characters.
43058         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43059         U+0D79, U+109E, U+109F, U+A60C.
43060         * lib/unictype/bidi_of.h: Regenerated.
43061         * lib/unictype/blocks.h: Regenerated.
43062         * lib/unictype/categ_C.h: Regenerated.
43063         * lib/unictype/categ_Cf.h: Regenerated.
43064         * lib/unictype/categ_Cn.h: Regenerated.
43065         * lib/unictype/categ_L.h: Regenerated.
43066         * lib/unictype/categ_Ll.h: Regenerated.
43067         * lib/unictype/categ_Lm.h: Regenerated.
43068         * lib/unictype/categ_Lo.h: Regenerated.
43069         * lib/unictype/categ_Lu.h: Regenerated.
43070         * lib/unictype/categ_M.h: Regenerated.
43071         * lib/unictype/categ_Mc.h: Regenerated.
43072         * lib/unictype/categ_Me.h: Regenerated.
43073         * lib/unictype/categ_Mn.h: Regenerated.
43074         * lib/unictype/categ_N.h: Regenerated.
43075         * lib/unictype/categ_Nd.h: Regenerated.
43076         * lib/unictype/categ_Nl.h: Regenerated.
43077         * lib/unictype/categ_No.h: Regenerated.
43078         * lib/unictype/categ_P.h: Regenerated.
43079         * lib/unictype/categ_Pd.h: Regenerated.
43080         * lib/unictype/categ_Pe.h: Regenerated.
43081         * lib/unictype/categ_Pf.h: Regenerated.
43082         * lib/unictype/categ_Pi.h: Regenerated.
43083         * lib/unictype/categ_Po.h: Regenerated.
43084         * lib/unictype/categ_Ps.h: Regenerated.
43085         * lib/unictype/categ_S.h: Regenerated.
43086         * lib/unictype/categ_Sk.h: Regenerated.
43087         * lib/unictype/categ_Sm.h: Regenerated.
43088         * lib/unictype/categ_So.h: Regenerated.
43089         * lib/unictype/categ_of.h: Regenerated.
43090         * lib/unictype/combining.h: Regenerated.
43091         * lib/unictype/ctype_alnum.h: Regenerated.
43092         * lib/unictype/ctype_alpha.h: Regenerated.
43093         * lib/unictype/ctype_graph.h: Regenerated.
43094         * lib/unictype/ctype_lower.h: Regenerated.
43095         * lib/unictype/ctype_print.h: Regenerated.
43096         * lib/unictype/ctype_punct.h: Regenerated.
43097         * lib/unictype/ctype_upper.h: Regenerated.
43098         * lib/unictype/decdigit.h: Regenerated.
43099         * lib/unictype/digit.h: Regenerated.
43100         * lib/unictype/mirror.h: Regenerated.
43101         * lib/unictype/numeric.h: Regenerated.
43102         * lib/unictype/pr_alphabetic.h: Regenerated.
43103         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43104         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43105         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43106         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43107         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43108         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43109         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43110         * lib/unictype/pr_combining.h: Regenerated.
43111         * lib/unictype/pr_dash.h: Regenerated.
43112         * lib/unictype/pr_decimal_digit.h: Regenerated.
43113         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43114         * lib/unictype/pr_deprecated.h: Regenerated.
43115         * lib/unictype/pr_diacritic.h: Regenerated.
43116         * lib/unictype/pr_extender.h: Regenerated.
43117         * lib/unictype/pr_format_control.h: Regenerated.
43118         * lib/unictype/pr_grapheme_base.h: Regenerated.
43119         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43120         * lib/unictype/pr_grapheme_link.h: Regenerated.
43121         * lib/unictype/pr_id_continue.h: Regenerated.
43122         * lib/unictype/pr_id_start.h: Regenerated.
43123         * lib/unictype/pr_ideographic.h: Regenerated.
43124         * lib/unictype/pr_ignorable_control.h: Regenerated.
43125         * lib/unictype/pr_lowercase.h: Regenerated.
43126         * lib/unictype/pr_math.h: Regenerated.
43127         * lib/unictype/pr_numeric.h: Regenerated.
43128         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43129         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43130         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43131         * lib/unictype/pr_other_id_continue.h: Regenerated.
43132         * lib/unictype/pr_other_lowercase.h: Regenerated.
43133         * lib/unictype/pr_other_math.h: Regenerated.
43134         * lib/unictype/pr_punctuation.h: Regenerated.
43135         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43136         * lib/unictype/pr_soft_dotted.h: Regenerated.
43137         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43138         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43139         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43140         * lib/unictype/pr_uppercase.h: Regenerated.
43141         * lib/unictype/pr_xid_continue.h: Regenerated.
43142         * lib/unictype/pr_xid_start.h: Regenerated.
43143         * lib/unictype/pr_zero_width.h: Regenerated.
43144         * lib/unictype/scripts.h: Regenerated.
43145         * lib/unictype/scripts_byname.gperf: Regenerated.
43146         * lib/unictype/sy_java_ident.h: Regenerated.
43147         * lib/unilbrk/lbrkprop1.h: Regenerated.
43148         * lib/unilbrk/lbrkprop2.h: Regenerated.
43149         * tests/unictype/test-categ_C.c: Regenerated.
43150         * tests/unictype/test-categ_Cf.c: Regenerated.
43151         * tests/unictype/test-categ_Cn.c: Regenerated.
43152         * tests/unictype/test-categ_L.c: Regenerated.
43153         * tests/unictype/test-categ_Ll.c: Regenerated.
43154         * tests/unictype/test-categ_Lm.c: Regenerated.
43155         * tests/unictype/test-categ_Lo.c: Regenerated.
43156         * tests/unictype/test-categ_Lu.c: Regenerated.
43157         * tests/unictype/test-categ_M.c: Regenerated.
43158         * tests/unictype/test-categ_Mc.c: Regenerated.
43159         * tests/unictype/test-categ_Me.c: Regenerated.
43160         * tests/unictype/test-categ_Mn.c: Regenerated.
43161         * tests/unictype/test-categ_N.c: Regenerated.
43162         * tests/unictype/test-categ_Nd.c: Regenerated.
43163         * tests/unictype/test-categ_Nl.c: Regenerated.
43164         * tests/unictype/test-categ_No.c: Regenerated.
43165         * tests/unictype/test-categ_P.c: Regenerated.
43166         * tests/unictype/test-categ_Pd.c: Regenerated.
43167         * tests/unictype/test-categ_Pe.c: Regenerated.
43168         * tests/unictype/test-categ_Pf.c: Regenerated.
43169         * tests/unictype/test-categ_Pi.c: Regenerated.
43170         * tests/unictype/test-categ_Po.c: Regenerated.
43171         * tests/unictype/test-categ_Ps.c: Regenerated.
43172         * tests/unictype/test-categ_S.c: Regenerated.
43173         * tests/unictype/test-categ_Sk.c: Regenerated.
43174         * tests/unictype/test-categ_Sm.c: Regenerated.
43175         * tests/unictype/test-categ_So.c: Regenerated.
43176         * tests/unictype/test-ctype_alnum.c: Regenerated.
43177         * tests/unictype/test-ctype_alpha.c: Regenerated.
43178         * tests/unictype/test-ctype_graph.c: Regenerated.
43179         * tests/unictype/test-ctype_lower.c: Regenerated.
43180         * tests/unictype/test-ctype_print.c: Regenerated.
43181         * tests/unictype/test-ctype_punct.c: Regenerated.
43182         * tests/unictype/test-ctype_upper.c: Regenerated.
43183         * tests/unictype/test-decdigit.h: Regenerated.
43184         * tests/unictype/test-digit.h: Regenerated.
43185         * tests/unictype/test-numeric.h: Regenerated.
43186         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43187         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43188         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43189         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43190         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43191         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43192         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43193         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43194         * tests/unictype/test-pr_combining.c: Regenerated.
43195         * tests/unictype/test-pr_dash.c: Regenerated.
43196         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43197         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43198         * tests/unictype/test-pr_deprecated.c: Regenerated.
43199         * tests/unictype/test-pr_diacritic.c: Regenerated.
43200         * tests/unictype/test-pr_extender.c: Regenerated.
43201         * tests/unictype/test-pr_format_control.c: Regenerated.
43202         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43203         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43204         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43205         * tests/unictype/test-pr_id_continue.c: Regenerated.
43206         * tests/unictype/test-pr_id_start.c: Regenerated.
43207         * tests/unictype/test-pr_ideographic.c: Regenerated.
43208         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43209         * tests/unictype/test-pr_lowercase.c: Regenerated.
43210         * tests/unictype/test-pr_math.c: Regenerated.
43211         * tests/unictype/test-pr_numeric.c: Regenerated.
43212         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43213         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43214         Regenerated.
43215         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43216         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43217         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43218         * tests/unictype/test-pr_other_math.c: Regenerated.
43219         * tests/unictype/test-pr_punctuation.c: Regenerated.
43220         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43221         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43222         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43223         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43224         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43225         * tests/unictype/test-pr_uppercase.c: Regenerated.
43226         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43227         * tests/unictype/test-pr_xid_start.c: Regenerated.
43228         * tests/unictype/test-pr_zero_width.c: Regenerated.
43229
43230         Update to Unicode 5.1.0.
43231         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43232         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43233         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43234         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43235         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
43236         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
43237         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
43238         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
43239         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
43240         (nonspacing_table_ind): Update.
43241         * tests/uniwidth/test-uc_width2.sh: Update expected result.
43242
43243         Update to Unicode 5.1.0.
43244         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
43245         code transform.
43246         * lib/uniname/uniname.c (unicode_character_name,
43247         unicode_name_character): Add the range 0x1Fxxx to the code transform.
43248         * lib/uniname/uninames.h: Regenerated.
43249         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
43250
43251 2009-02-07  Bruno Haible  <bruno@clisp.org>
43252
43253         Merge gen-ctype and gen-lbrk into a single program.
43254         * lib/gen-uni-tables.c: New file, incorporating
43255         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
43256         Add directory prefixes to the names of the generated files.
43257         * lib/unictype/gen-ctype.c: Remove file.
43258         * lib/unilbrk/gen-lbrk.c: Remove file.
43259         * modules/gen-uni-tables: New file.
43260         * modules/unictype/gen-ctype: Remove file.
43261         * modules/unilbrk/gen-lbrk: Remove file.
43262
43263 2009-02-07  Bruno Haible  <bruno@clisp.org>
43264
43265         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
43266
43267         New module 'unistr/u32-strcoll'.
43268         * modules/unistr/u32-strcoll: New file.
43269         * lib/unistr/u32-strcoll.c: New file.
43270
43271         New module 'unistr/u16-strcoll'.
43272         * modules/unistr/u16-strcoll: New file.
43273         * lib/unistr/u16-strcoll.c: New file.
43274
43275         New module 'unistr/u8-strcoll'.
43276         * modules/unistr/u8-strcoll: New file.
43277         * lib/unistr/u8-strcoll.c: New file.
43278         * lib/unistr/u-strcoll.h: New file.
43279
43280 2009-02-07  Bruno Haible  <bruno@clisp.org>
43281
43282         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
43283         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43284         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43285         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
43286         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
43287         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
43288
43289 2009-02-07  Bruno Haible  <bruno@clisp.org>
43290
43291         Make 64-bit clean.
43292         * lib/unictype/gen-ctype.c (output_predicate, output_category,
43293         output_combclass, output_bidi_category, output_decimal_digit,
43294         output_digit, output_numeric, output_mirror, output_scripts,
43295         output_ident_category): Use proper width specifier in format strings.
43296
43297 2009-02-07  Bruno Haible  <bruno@clisp.org>
43298
43299         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
43300         failure behaviour.
43301
43302 2009-02-07  Jim Meyering  <meyering@redhat.com>
43303
43304         regex: avoid compilation failure with upcoming gcc-4.4
43305         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
43306         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
43307         "... error: integer overflow in preprocessor expression".
43308
43309 2009-02-05  Ben Pfaff  <blp@gnu.org>
43310
43311         Fix link errors on Windows when close module is used.
43312         * modules/close: Add $(LIB_CLOSE) to Link section.
43313         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
43314         $(LIB_CLOSE) on Windows.
43315
43316 2009-02-05  Jim Meyering  <meyering@redhat.com>
43317
43318         still avoid unused-parameter warnings, but do it cleanly
43319         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
43320         (get_fs_usage): Cast to void instead.
43321         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
43322         (dev_from_mount_options, read_file_system_list): Cast to void.
43323         Prompted by Bruno Haible.
43324
43325 2009-02-04  Jim Meyering  <meyering@redhat.com>
43326
43327         fsusage.c: correct copyright year
43328         * lib/fsusage.c: Reflect year in which the change is pushed into
43329
43330         avoid misc. warnings
43331         * lib/fsusage.c (UNUSED_PARAM): Define.
43332         (get_fs_usage): Mark parameter "disk" as unused.
43333         * lib/getugroups.c (getgrent): Use "void" in prototype.
43334         * lib/mountlist.c: Mark unused parameters.
43335         (read_file_system_list): Declare a local with "const".
43336         * lib/nanosleep.c (getnow): Declare static.
43337         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
43338
43339         dirfd: set errno upon failure
43340         * lib/dirfd.c: Include <errno.h>.
43341         Set errno to ENOTSUP when returning -1.
43342         * modules/dirfd (Depends-on): Add errno.
43343         Suggested by John Kodis <kodis@comcast.net>.
43344
43345 2009-02-01  Bruno Haible  <bruno@clisp.org>
43346
43347         Don't assume sizeof (long) >= sizeof (void *).
43348         * lib/memcmp.c: Include stdint.h.
43349         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
43350         srcp2 to 'const byte *'.
43351         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
43352         types to uintptr_t.
43353         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
43354         * modules/memcmp (Depends-on): Add stdint.
43355         Reported by Ozkan Sezer <sezeroz@gmail.com>.
43356
43357 2009-01-30  Eric Blake  <ebb9@byu.net>
43358
43359         fix more require-before-expand issues
43360         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
43361         expand, AC_PROG_AWK.
43362         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
43363
43364 2009-01-28  Eric Blake  <ebb9@byu.net>
43365
43366         version-etc: use consistent URL formatting
43367         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43368         Improve formatting.  Use fputs for string without %.
43369
43370 2009-01-28  Jim Meyering  <meyering@redhat.com>
43371
43372         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43373         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43374         "underquoted definition of NAME" from autoconf-2.59.
43375
43376 2009-01-28  Bruno Haible  <bruno@clisp.org>
43377
43378         * doc/gnulib.texi: Add "Obsolete modules" to index.
43379
43380 2009-01-28  Jim Meyering  <meyering@redhat.com>
43381
43382         useless-if-before-free: recognize more variants
43383         * build-aux/useless-if-before-free: Also recognize e.g.,
43384         if (NULL != p) free (p);
43385
43386 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
43387
43388         test-getaddrinfo: skip (don't fail) this test when there's no network
43389         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43390         on the presumption that it means you lack network access.
43391
43392 2009-01-26  Jim Meyering  <meyering@redhat.com>
43393
43394         fflush: avoid warnings on modern systems
43395         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43396         pos and result, into scopes where they're used.
43397
43398 2009-01-26  Eric Blake  <ebb9@byu.net>
43399
43400         Silence warning reintroduced by recent extensions patch.
43401         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43402         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43403         autoconf.
43404
43405         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43406         * m4/00gnulib.m4: New file.
43407         * gnulib-tool (func_get_filelist): Always use it.
43408         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43409         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43410
43411 2009-01-25  Bruno Haible  <bruno@clisp.org>
43412
43413         Make test-quotearg work on MacOS X and AIX.
43414         * tests/test-quotearg.sh: New file.
43415         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43416         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43417         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43418         include <libintl.h>.
43419         (fake_locale): Remove variable.
43420         (gettext, dgettext, dcgettext): Remove functions.
43421         (main): Instead of setting a fake locale, set a real locale. Call
43422         textdomain and bindtextdomain.
43423         * modules/quotearg-tests (Files): Add the new files.
43424         (Depends-on): Add gettext, setenv, unsetenv.
43425         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43426         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43427         Augment TESTS_ENVIRONMENT.
43428
43429 2009-01-25  Bruno Haible  <bruno@clisp.org>
43430
43431         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43432         fr_FR.ISO8859-1 locale on MacOS X.
43433         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43434         ja_JP.eucJP locale on MacOS X.
43435         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43436         zh_CN.GB18030 locale on MacOS X.
43437
43438 2009-01-25  Bruno Haible  <bruno@clisp.org>
43439
43440         Avoid link errors on MacOS X 10.3.
43441         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43442         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43443
43444 2009-01-25  Bruno Haible  <bruno@clisp.org>
43445
43446         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43447         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43448         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43449         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43450         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43451         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43452         posix_spawnattr_init, posix_spawnattr_setsigmask,
43453         posix_spawnattr_setflags, posix_spawnattr_destroy.
43454
43455         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43456         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43457         * modules/execute (Files): Remove m4/posix_spawn.m4.
43458         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43459         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43460         posix_spawnattr_init, posix_spawnattr_setsigmask,
43461         posix_spawnattr_setflags, posix_spawnattr_destroy.
43462
43463 2009-01-25  Bruno Haible  <bruno@clisp.org>
43464
43465         * lib/glthread/threadlib.c: Include <stdlib.h>.
43466
43467 2009-01-25  Bruno Haible  <bruno@clisp.org>
43468
43469         * lib/glthread/threadlib.c (dummy): New declaration.
43470
43471 2009-01-25  Bruno Haible  <bruno@clisp.org>
43472
43473         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43474         multibyte characters also for the GB18030 encoding. Don't crash when
43475         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43476
43477 2009-01-25  Bruno Haible  <bruno@clisp.org>
43478
43479         Avoid redefining 'struct random_data' on OSF/1 5.1.
43480         * lib/stdlib.in.h: Include <random.h> if it exists.
43481         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43482         HAVE_RANDOM_H. Include <random.h> when testing whether
43483         'struct random_data' exists.
43484         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43485
43486 2009-01-25  Bruno Haible  <bruno@clisp.org>
43487
43488         Don't install charset.alias on MacOS X >= 10.3.
43489         * lib/localcharset.c (DARWIN7): New macro.
43490         (get_charset_aliases): Hardcode the result for Darwin7.
43491         * modules/localcharset (install-exec-local): Don't install
43492         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43493
43494 2009-01-25  Bruno Haible  <bruno@clisp.org>
43495
43496         Don't install charset.alias on mingw and Cygwin.
43497         * modules/localcharset (install-exec-local): Don't install
43498         charset.alias on mingw and Cygwin, if the file does not yet exist.
43499         The result for these platforms is hardcoded in localcharset.c.
43500
43501 2009-01-25  Bruno Haible  <bruno@clisp.org>
43502
43503         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43505         before requiring AC_USE_SYSTEM_EXTENSIONS.
43506
43507 2009-01-25  Jim Meyering  <meyering@redhat.com>
43508
43509         c-strtod: avoid warnings
43510         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43511         "assignment discards qualifiers from pointer target type" warnings.
43512
43513 2009-01-24  Bruno Haible  <bruno@clisp.org>
43514
43515         Add support for non-UTF-8 locales on MacOS X.
43516         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43517         canonical encodings. For Darwin 7 and newer, don't map traditional
43518         encodings to UTF-8.
43519         Reported by Vincent Lefevre <vincent@vinc17.org>
43520         at <http://savannah.gnu.org/bugs/?25235>.
43521
43522 2009-01-24  Bruno Haible  <bruno@clisp.org>
43523
43524         * doc/gnulib.texi (Obsolete modules): New section.
43525         Reported by Mike Frysinger <vapier@gentoo.org>.
43526
43527 2009-01-24  Bruno Haible  <bruno@clisp.org>
43528
43529         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43530         (%.dvi): New rule.
43531
43532 2009-01-24  Bruno Haible  <bruno@clisp.org>
43533
43534         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43535         Reported by Eric Blake.
43536
43537 2009-01-24  Bruno Haible  <bruno@clisp.org>
43538
43539         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43540         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43541         Reported by Gary V. Vaughan <gary@gnu.org>.
43542
43543 2009-01-24  Bruno Haible  <bruno@clisp.org>
43544
43545         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43546
43547 2009-01-23  Bruno Haible  <bruno@clisp.org>
43548
43549         Make c-strtod, c-strtold usable in libraries.
43550         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43551         (C_STRTOD): Call strdup instead of xstrdup.
43552         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43553         * modules/c-strtold (Depends-on): Likewise.
43554         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43555         * NEWS: Mention the change.
43556         Reported by Michael Gold <mgold@ncf.ca>.
43557
43558 2009-01-23  Jim Meyering  <meyering@redhat.com>
43559
43560         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43561         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43562         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43563
43564 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43565
43566         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43567         GNU CoreUtils.
43568         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43569         * modules/version-etc (Description): Update.
43570
43571 2009-01-22  Bruno Haible  <bruno@clisp.org>
43572
43573         Cache the C locale object.
43574         * lib/c-strtod.c (c_locale_cache): New variable.
43575         (c_locale): New function.
43576         (C_STRTOD): Use it, and don't call freelocale.
43577         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43578         Suggested by Paolo Bonzini.
43579
43580 2009-01-21  Bruno Haible  <bruno@clisp.org>
43581
43582         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43583         conditions other than overflow.
43584
43585 2009-01-21  Bruno Haible  <bruno@clisp.org>
43586
43587         * lib/c-strtod.c: Include errno.h.
43588         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43589         value from STRTOD_L and STRTOD.
43590
43591 2009-01-21  Bruno Haible  <bruno@clisp.org>
43592         and Jim Meyering  <meyering@redhat.com>
43593
43594         nanosleep: skip configure test (fail it) for apple universal builds
43595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43596         universal builds, assume that nanosleep does not work.
43597         * modules/nanosleep (Depends-on): Add multiarch.
43598
43599         mktime: skip configure test (fail it) for apple universal builds
43600         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43601         universal builds, assume that mktime does not work.
43602         * modules/mktime (Depends-on): Add multiarch.
43603
43604 2009-01-21  Eric Blake  <ebb9@byu.net>
43605
43606         multiarch: avoid expand-before-require warning
43607         * modules/multiarch (configure.ac): Require, rather than expand,
43608         gl_MULTIARCH.
43609         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43610         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43611         enforce that all clients require it.  Partial reversion of
43612         2008-12-29 patch.
43613
43614         error: avoid expand-before-require warning
43615         * modules/errno (configure.ac): Require, rather than expand,
43616         gl_HEADER_ERRNO_H.
43617         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43618         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43619         enforce that all clients require it.
43620
43621         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43622         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43623         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43624         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43625
43626 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43627
43628         Revert:
43629         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43630
43631         regex: do not depend on obsolete modules.
43632         * modules/regex: Remove memcmp and memmove.
43633
43634 2009-01-20  Bruno Haible  <bruno@clisp.org>
43635
43636         Make the 'link' module link on Windows NT 4.
43637         * lib/link.c (_WIN32_WINNT): Don't define.
43638         (CreateHardLinkFuncType): New type.
43639         (CreateHardLinkFunc, initialized): New variables.
43640         (initialize): New function.
43641         (link): Invoke CreateHardLink indirectly through the function pointer.
43642
43643 2009-01-20  Bruno Haible  <bruno@clisp.org>
43644
43645         Fix compilation failure on mingw.
43646         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43647
43648 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43649
43650         * doc/c-strtod.texi: Mention a couple of restrictions.
43651
43652 2009-01-20  Jim Meyering  <meyering@redhat.com>
43653
43654         gettimeofday: move more declarations out of functions
43655         * lib/gettimeofday.c: Move extern declarations of tzset and
43656         gmtime out of containing functions.  Prompted by Bruno Haible.
43657
43658 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43659
43660         regex: do not depend on obsolete modules.
43661         * modules/regex: Remove memcmp and memmove.
43662
43663 2009-01-19  Bruno Haible  <bruno@clisp.org>
43664
43665         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43666         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43667         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43668         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43669         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43670
43671 2009-01-19  Bruno Haible  <bruno@clisp.org>
43672
43673         * tests/test-link.c: Include <errno.h>.
43674         (main): Exit with code 77 when a hard link cannot be created due to
43675         the file system.
43676         * tests/test-link.sh: Skip test when a hard link cannot be created due
43677         to the file system.
43678         Suggested by Eric Blake.
43679
43680 2009-01-19  Martin Lambers  <marlam@marlam.de>
43681
43682         * modules/link-tests: New file.
43683         * tests/test-link.sh: New file.
43684         * tests/test-link.c: New file.
43685
43686 2009-01-19  Eric Blake  <ebb9@byu.net>
43687
43688         doc: mention another function added in cygwin 1.7.0
43689         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43690         Another new function in cygwin 1.7.
43691
43692 2009-01-19  Bruno Haible  <bruno@clisp.org>
43693
43694         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43695         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43696         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43697         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43698         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43699         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43700         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43701         * m4/md4.m4 (gl_MD4): Likewise.
43702         * m4/md5.m4 (gl_MD5): Likewise.
43703         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43704         * m4/sha1.m4 (gl_SHA1): Likewise.
43705         * m4/sha256.m4 (gl_SHA256): Likewise.
43706         * m4/sha512.m4 (gl_SHA512): Likewise.
43707
43708 2009-01-19  Bruno Haible  <bruno@clisp.org>
43709
43710         * modules/uniname/uniname-tests (Depends-on): Add progname.
43711         * tests/uniname/test-uninames.c: Include progname.h.
43712         (main): Call set_program_name.
43713
43714         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43715         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43716         (main): Call set_program_name.
43717
43718         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43719         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43720         (main): Call set_program_name.
43721
43722         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43723         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43724         (main): Call set_program_name.
43725
43726         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43727         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43728         (main): Call set_program_name.
43729
43730         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43731         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43732         (main): Call set_program_name.
43733
43734         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43735         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43736         (main): Call set_program_name.
43737
43738         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43739         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43740         (main): Call set_program_name.
43741
43742         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43743         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43744         (main): Call set_program_name.
43745
43746 2009-01-19  Eric Blake  <ebb9@byu.net>
43747
43748         test-unistd: test previous patch
43749         * tests/test-unistd.c: Test *_FILENO macros.
43750
43751         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43752         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43753         Guarantee a definition.
43754         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43755         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43756         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43757         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43758         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43759         Likewise.
43760         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43761         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43762         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43763         Likewise.
43764         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43765         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43766         (STDERR_FILENO): Likewise.
43767         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43768         (STDERR_FILENO): Likewise.
43769         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43770         (STDERR_FILENO): Likewise.
43771         Reported by Elbert Pol.
43772
43773 2009-01-19  Eric Blake  <ebb9@byu.net>
43774
43775         doc: mention more functions added in cygwin 1.7.0
43776         * doc/posix-functions/abort.texi (abort): Update wording related
43777         to cygwin.
43778         * doc/posix-functions/daylight.texi (daylight): Likewise.
43779         * doc/posix-functions/optarg.texi (optarg): Likewise.
43780         * doc/posix-functions/optarg.texi (opterr): Likewise.
43781         * doc/posix-functions/optarg.texi (optind): Likewise.
43782         * doc/posix-functions/optarg.texi (optopt): Likewise.
43783         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43784         worked in 1.5.x, and was withdrawn in 1.7.
43785         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43786         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43787         cygwin versions.
43788         * doc/posix-functions/perror.texi (perror): Likewise.
43789         * doc/posix-functions/printf.texi (printf): Likewise.
43790         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43791         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43792         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43793         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43794         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43795         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43796         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43797         Likewise.
43798         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43799         Likewise.
43800         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43801         this function.
43802         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43803         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43804         Likewise.
43805         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43806         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43807         * doc/posix-functions/confstr.texi (confstr): Likewise.
43808         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43809         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43810         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43811         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43812         * doc/posix-functions/fputws.texi (fputws): Likewise.
43813         * doc/posix-functions/fwide.texi (fwide): Likewise.
43814         * doc/posix-functions/getwc.texi (getwc): Likewise.
43815         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43816         * doc/posix-functions/putwc.texi (putwc): Likewise.
43817         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43818         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43819         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43820         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43821         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43822         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43823         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43824         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43825         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43826         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43827         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43828
43829 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43830
43831         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43832         * lib/ioctl.c: Include <sys/ioctl.h>.
43833
43834 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43835
43836         * modules/getdate-tests (Depends-on): Add progname.
43837         * tests/test-getdate.c: Use progname module, to avoid link errors
43838         on non-glibc systems.
43839
43840 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43841
43842         * modules/filenamecat-tests (Depends-on): Add progname.
43843         * modules/fstrcmp-tests (Depends-on): Likewise.
43844
43845         * tests/test-filenamecat.c: Use progname module, to avoid link
43846         errors on non-glibc systems.
43847         * tests/test-fstrcmp.c: Likewise.
43848
43849 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43850
43851         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43852         * lib/gettimeofday.c: Move extern declaration out of function.
43853
43854 2009-01-18  Bruno Haible  <bruno@clisp.org>
43855
43856         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43857         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43858         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43859
43860 2009-01-18  Bruno Haible  <bruno@clisp.org>
43861
43862         * lib/strftime.c (MEMPCPY): Remove unused macro.
43863         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43864
43865 2009-01-18  Martin Lambers  <marlam@marlam.de>
43866
43867         New module 'link'.
43868         * lib/unistd.in.h (link): New declaration.
43869         * lib/link.c: New file.
43870         * m4/link.m4: New file.
43871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43872         HAVE_LINK.
43873         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43874         * modules/link: New file.
43875         * doc/posix-functions/link.texi: Mention the new module.
43876
43877 2009-01-18  Bruno Haible  <bruno@clisp.org>
43878
43879         * tests/test-avltree_list.c (main): Call set_program_name.
43880         * tests/test-avltree_oset.c (main): Likewise.
43881         * tests/test-obstack-printf.c: Include progname.h.
43882         (main): Call set_program_name.
43883         * tests/test-quotearg.c: Include progname.h.
43884         (main): Call set_program_name.
43885         * tests/test-xmemdup0.c: Include progname.h.
43886         (main): Call set_program_name.
43887
43888 2009-01-18  Bruno Haible  <bruno@clisp.org>
43889
43890         New module 'alphasort'.
43891         * lib/dirent.in.h (alphasort): New declaration.
43892         * lib/alphasort.c: New file, from glibc with modifications.
43893         * m4/alphasort.m4: New file.
43894         * modules/alphasort: New file.
43895         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43896         HAVE_ALPHASORT.
43897         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43898         HAVE_ALPHASORT.
43899         * doc/posix-functions/alphasort.texi: Mention the new module and the
43900         portability problems.
43901
43902 2009-01-18  Bruno Haible  <bruno@clisp.org>
43903
43904         New module 'scandir'.
43905         * lib/dirent.in.h (scandir): New declaration.
43906         * lib/scandir.c: New file, from glibc with modifications.
43907         * m4/scandir.m4: New file.
43908         * modules/scandir: New file.
43909         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43910         HAVE_SCANDIR.
43911         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43912         HAVE_SCANDIR.
43913         * doc/posix-functions/scandir.texi: Mention the new module and the
43914         portability problems.
43915
43916 2009-01-17  Bruno Haible  <bruno@clisp.org>
43917
43918         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43919         Update documentation.
43920         (func_remove_suffix): Escape all dots in the suffix. Update
43921         documentation.
43922         (func_filter_filelist): Update documentation.
43923         Reported by Ralf Wildenhues.
43924
43925 2009-01-17  Bruno Haible  <bruno@clisp.org>
43926
43927         * modules/dprintf-posix-tests: New file.
43928         * tests/test-dprintf-posix.sh: New file.
43929         * tests/test-dprintf-posix.c: New file.
43930
43931         New modules 'dprintf', 'dprintf-posix'.
43932         * lib/stdio.in.h (dprintf): New declaration.
43933         * lib/dprintf.c: New file.
43934         * m4/dprintf.m4: New file.
43935         * m4/dprintf-posix.m4: New file.
43936         * modules/dprintf: New file.
43937         * modules/dprintf-posix: New file.
43938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43939         HAVE_DPRINTF, REPLACE_DPRINTF.
43940         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43941         HAVE_DPRINTF, REPLACE_DPRINTF.
43942         * doc/posix-functions/dprintf.texi: Mention the new modules.
43943
43944 2009-01-17  Bruno Haible  <bruno@clisp.org>
43945
43946         * modules/vdprintf-posix-tests: New file.
43947         * tests/test-vdprintf-posix.sh: New file.
43948         * tests/test-vdprintf-posix.c: New file.
43949
43950         New modules 'vdprintf', 'vdprintf-posix'.
43951         * lib/stdio.in.h (vdprintf): New declaration.
43952         * lib/vdprintf.c: New file.
43953         * m4/vdprintf.m4: New file.
43954         * m4/vdprintf-posix.m4: New file.
43955         * modules/vdprintf: New file.
43956         * modules/vdprintf-posix: New file.
43957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43958         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43959         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43960         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43961         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43962
43963 2009-01-17  Bruno Haible  <bruno@clisp.org>
43964
43965         Fix replacement of fopen on mingw.
43966         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43967         mingw.
43968
43969 2009-01-17  Bruno Haible  <bruno@clisp.org>
43970
43971         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43972         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43973
43974 2009-01-17  Bruno Haible  <bruno@clisp.org>
43975
43976         Avoid test-fflush2.sh failure on mingw.
43977         * tests/test-fflush2.c: Include binary-io.h.
43978         (main): Put standard input into binary mode.
43979         * modules/fflush-tests (Depends-on): Add binary-io.
43980
43981 2009-01-17  Bruno Haible  <bruno@clisp.org>
43982
43983         * lib/wchar.in.h: In another particular situation, include only the
43984         system's <wchar.h> file.
43985         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43986         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43987         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43988
43989 2009-01-17  Bruno Haible  <bruno@clisp.org>
43990
43991         Support for stripping executables in --enable-relocatable.
43992         * build-aux/install-reloc: Expect one more argument, or an environment
43993         variable RELOC_STRIP_PROG. If set, strip the destination program and
43994         its wrapper.
43995         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43996         RELOC_STRIP_PROG.
43997         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43998         to set RELOCATABLE_STRIP.
43999         * NEWS: Mention the new Makefile requirement.
44000
44001 2009-01-17  Bruno Haible  <bruno@clisp.org>
44002
44003         * build-aux/install-reloc: Remove debugging information left over by
44004         C compiler on MacOS X.
44005
44006 2009-01-17  Bruno Haible  <bruno@clisp.org>
44007
44008         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44009         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44010         _NSGetExecutablePath.
44011
44012 2009-01-16  Jim Meyering  <meyering@redhat.com>
44013
44014         strerror: avoid warnings about discarding "const"
44015         * lib/strerror.c (rpl_strerror): Instead of returning a const
44016         string from each and every "case", use a variable, and add a single
44017         cast after the switch.
44018
44019 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44020
44021         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44022
44023 2009-01-16  Bruno Haible  <bruno@clisp.org>
44024
44025         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44026         array initializer syntax that also works in C++ mode.
44027         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44028
44029 2009-01-16  Jim Meyering  <meyering@redhat.com>
44030
44031         poll: suppress a warning
44032         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44033         to ignore "...unsigned expression < 0 is always false" warnings.
44034
44035 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44036
44037         poll: remove declarations of unused variables
44038         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44039         sockbuf and optlen.
44040
44041 2009-01-15  Bruno Haible  <bruno@clisp.org>
44042
44043         Make fflush-after-ungetc POSIX compliant on BSD systems.
44044         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44045         (clear_ungetc_buffer): Implement also for other systems.
44046         (rpl_fflush): On glibc systems, invoke
44047         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44048         clear_ungetc_buffer after fetching the stream's position, not before.
44049
44050 2009-01-15  Bruno Haible  <bruno@clisp.org>
44051
44052         Make fflush-after-ungetc POSIX compliant on glibc systems.
44053         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44054         after ungetc.
44055         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44056         (rpl_fflush): On glibc systems, simply call the system's fflush
44057         function after clearing the ungetc buffer.
44058         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44059         Instead, lseek only to the end of file, then use the system's fseeko
44060         for the rest. On glibc systems, reset the EOF indicator bit.
44061
44062 2009-01-15  Jim Meyering  <meyering@redhat.com>
44063
44064         openmp.m4: revert quote-adding change, for portability to older autoconf
44065         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44066         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44067         Simon Josefsson noticed the problem when using autoconf-2.61.
44068
44069 2009-01-15  Bruno Haible  <bruno@clisp.org>
44070
44071         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44072         * tests/test-fflush2.c (ASSERT): Always fail.
44073         (main): Add two tests for fflush() after ungetc(), taking into account
44074         the Austin Group's clarification.
44075         Suggested by Eric Blake.
44076
44077 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44078
44079         mktime.m4: remove K&R-style function prototypes
44080         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44081         for the Sun C++ compiler.
44082
44083 2009-01-14  Bruno Haible  <bruno@clisp.org>
44084
44085         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44086         while including <wchar.h>.
44087         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44088         the system's <wchar.h> file.
44089         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44090
44091 2009-01-14  Bruno Haible  <bruno@clisp.org>
44092
44093         * m4/csharp.m4: Don't mention gettext on the serial number line.
44094         * m4/csharpexec.m4: Likewise.
44095         * m4/eaccess.m4: Likewise.
44096         * m4/javaexec.m4: Likewise.
44097         * m4/sig_atomic_t.m4: Likewise.
44098         * m4/tmpdir.m4: Likewise.
44099         * m4/intldir.m4: Bump gettext version.
44100         * m4/lib-ld.m4: Likewise.
44101
44102 2009-01-14  Bruno Haible  <bruno@clisp.org>
44103
44104         * lib/progname.c (set_program_name): Add more comments.
44105         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44106
44107 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44108
44109         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44110         were sys/stat.h does not define it.
44111
44112 2009-01-14  Jim Meyering  <meyering@redhat.com>
44113
44114         many *.m4 files: improve m4 quoting
44115         99% of this change was performed by running the following commands:
44116         git ls-files | grep '\.m4$' | xargs perl -pi \
44117           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44118           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44119           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44120           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44121         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44122         The remainder were to add Copyright dates, increment serial numbers,
44123         undo some changes in comments, exclude m4/intl.m4, and add quotes
44124         around the "1" in ",1" where the unusual spacing prohibited the
44125         above regexps from doing the job.  For more details, see
44126         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44127         * m4/acl.m4: Modified.
44128         * m4/afs.m4: Likewise.
44129         * m4/alloca.m4: Likewise.
44130         * m4/argp.m4: Likewise.
44131         * m4/argz.m4: Likewise.
44132         * m4/atexit.m4: Likewise.
44133         * m4/bison-i18n.m4: Likewise.
44134         * m4/bison.m4: Likewise.
44135         * m4/byteswap.m4: Likewise.
44136         * m4/c-stack.m4: Likewise.
44137         * m4/c-strtod.m4: Likewise.
44138         * m4/calloc.m4: Likewise.
44139         * m4/canonicalize-lgpl.m4: Likewise.
44140         * m4/chown.m4: Likewise.
44141         * m4/clock_time.m4: Likewise.
44142         * m4/codeset.m4: Likewise.
44143         * m4/copy-file.m4: Likewise.
44144         * m4/csharp.m4: Likewise.
44145         * m4/csharpcomp.m4: Likewise.
44146         * m4/csharpexec.m4: Likewise.
44147         * m4/d-ino.m4: Likewise.
44148         * m4/d-type.m4: Likewise.
44149         * m4/dirfd.m4: Likewise.
44150         * m4/double-slash-root.m4: Likewise.
44151         * m4/eaccess.m4: Likewise.
44152         * m4/eealloc.m4: Likewise.
44153         * m4/environ.m4: Likewise.
44154         * m4/errno_h.m4: Likewise.
44155         * m4/euidaccess.m4: Likewise.
44156         * m4/execute.m4: Likewise.
44157         * m4/fatal-signal.m4: Likewise.
44158         * m4/fchdir.m4: Likewise.
44159         * m4/fcntl_h.m4: Likewise.
44160         * m4/fileblocks.m4: Likewise.
44161         * m4/filenamecat.m4: Likewise.
44162         * m4/findprog.m4: Likewise.
44163         * m4/flexmember.m4: Likewise.
44164         * m4/fnmatch.m4: Likewise.
44165         * m4/fopen.m4: Likewise.
44166         * m4/fpending.m4: Likewise.
44167         * m4/fprintf-posix.m4: Likewise.
44168         * m4/free.m4: Likewise.
44169         * m4/frexp.m4: Likewise.
44170         * m4/frexpl.m4: Likewise.
44171         * m4/fsusage.m4: Likewise.
44172         * m4/ftruncate.m4: Likewise.
44173         * m4/gc-camellia.m4: Likewise.
44174         * m4/gc-random.m4: Likewise.
44175         * m4/gc.m4: Likewise.
44176         * m4/getaddrinfo.m4: Likewise.
44177         * m4/getcwd-abort-bug.m4: Likewise.
44178         * m4/getcwd-path-max.m4: Likewise.
44179         * m4/getdate.m4: Likewise.
44180         * m4/getdomainname.m4: Likewise.
44181         * m4/getgroups.m4: Likewise.
44182         * m4/gethostname.m4: Likewise.
44183         * m4/gethrxtime.m4: Likewise.
44184         * m4/getline.m4: Likewise.
44185         * m4/getloadavg.m4: Likewise.
44186         * m4/getndelim2.m4: Likewise.
44187         * m4/getpass.m4: Likewise.
44188         * m4/gettext.m4: Likewise.
44189         * m4/gettime.m4: Likewise.
44190         * m4/gettimeofday.m4: Likewise.
44191         * m4/gnulib-common.m4: Likewise.
44192         * m4/group-member.m4: Likewise.
44193         * m4/host-os.m4: Likewise.
44194         * m4/iconv.m4: Likewise.
44195         * m4/iconv_open.m4: Likewise.
44196         * m4/inet_ntop.m4: Likewise.
44197         * m4/inet_pton.m4: Likewise.
44198         * m4/inline.m4: Likewise.
44199         * m4/intldir.m4: Likewise.
44200         * m4/intlmacosx.m4: Likewise.
44201         * m4/intmax.m4: Likewise.
44202         * m4/intmax_t.m4: Likewise.
44203         * m4/inttypes.m4: Likewise.
44204         * m4/inttypes_h.m4: Likewise.
44205         * m4/inttypes-pri.m4: Likewise.
44206         * m4/isapipe.m4: Likewise.
44207         * m4/isnand.m4: Likewise.
44208         * m4/isnanf.m4: Likewise.
44209         * m4/isnanl.m4: Likewise.
44210         * m4/javacomp.m4: Likewise.
44211         * m4/javaexec.m4: Likewise.
44212         * m4/jm-winsz1.m4: Likewise.
44213         * m4/jm-winsz2.m4: Likewise.
44214         * m4/lchown.m4: Likewise.
44215         * m4/lcmessage.m4: Likewise.
44216         * m4/ldexpl.m4: Likewise.
44217         * m4/lib-ld.m4: Likewise.
44218         * m4/lib-link.m4: Likewise.
44219         * m4/libsigsegv.m4: Likewise.
44220         * m4/link-follow.m4: Likewise.
44221         * m4/localcharset.m4: Likewise.
44222         * m4/locale-fr.m4: Likewise.
44223         * m4/locale-ja.m4: Likewise.
44224         * m4/locale-tr.m4: Likewise.
44225         * m4/locale-zh.m4: Likewise.
44226         * m4/lock.m4: Likewise.
44227         * m4/longlong.m4: Likewise.
44228         * m4/ls-mntd-fs.m4: Likewise.
44229         * m4/lstat.m4: Likewise.
44230         * m4/malloc.m4: Likewise.
44231         * m4/mathl.m4: Likewise.
44232         * m4/mbrtowc.m4: Likewise.
44233         * m4/mbstate_t.m4: Likewise.
44234         * m4/mbswidth.m4: Likewise.
44235         * m4/memchr.m4: Likewise.
44236         * m4/memcmp.m4: Likewise.
44237         * m4/memcpy.m4: Likewise.
44238         * m4/memmem.m4: Likewise.
44239         * m4/memmove.m4: Likewise.
44240         * m4/mempcpy.m4: Likewise.
44241         * m4/memrchr.m4: Likewise.
44242         * m4/memset.m4: Likewise.
44243         * m4/minmax.m4: Likewise.
44244         * m4/mkdir-slash.m4: Likewise.
44245         * m4/mkdtemp.m4: Likewise.
44246         * m4/mktime.m4: Likewise.
44247         * m4/mmap-anon.m4: Likewise.
44248         * m4/mountlist.m4: Likewise.
44249         * m4/nanosleep.m4: Likewise.
44250         * m4/nls.m4: Likewise.
44251         * m4/nocrash.m4: Likewise.
44252         * m4/open.m4: Likewise.
44253         * m4/openat.m4: Likewise.
44254         * m4/openmp.m4: Likewise.
44255         * m4/pathmax.m4: Likewise.
44256         * m4/perl.m4: Likewise.
44257         * m4/physmem.m4: Likewise.
44258         * m4/pipe.m4: Likewise.
44259         * m4/po.m4: Likewise.
44260         * m4/poll.m4: Likewise.
44261         * m4/posixtm.m4: Likewise.
44262         * m4/posixver.m4: Likewise.
44263         * m4/printf-frexp.m4: Likewise.
44264         * m4/printf-frexpl.m4: Likewise.
44265         * m4/printf-posix.m4: Likewise.
44266         * m4/printf-posix-rpl.m4: Likewise.
44267         * m4/printf.m4: Likewise.
44268         * m4/progtest.m4: Likewise.
44269         * m4/putenv.m4: Likewise.
44270         * m4/readline.m4: Likewise.
44271         * m4/readlink.m4: Likewise.
44272         * m4/readutmp.m4: Likewise.
44273         * m4/realloc.m4: Likewise.
44274         * m4/regex.m4: Likewise.
44275         * m4/relocatable.m4: Likewise.
44276         * m4/relocatable-lib.m4: Likewise.
44277         * m4/rename-dest-slash.m4: Likewise.
44278         * m4/rename.m4: Likewise.
44279         * m4/rmdir-errno.m4: Likewise.
44280         * m4/rmdir.m4: Likewise.
44281         * m4/roundf.m4: Likewise.
44282         * m4/roundl.m4: Likewise.
44283         * m4/rpmatch.m4: Likewise.
44284         * m4/save-cwd.m4: Likewise.
44285         * m4/selinux-selinux-h.m4: Likewise.
44286         * m4/setenv.m4: Likewise.
44287         * m4/settime.m4: Likewise.
44288         * m4/sig2str.m4: Likewise.
44289         * m4/sig_atomic_t.m4: Likewise.
44290         * m4/signalblocking.m4: Likewise.
44291         * m4/signbit.m4: Likewise.
44292         * m4/sigpipe.m4: Likewise.
44293         * m4/sockets.m4: Likewise.
44294         * m4/sockpfaf.m4: Likewise.
44295         * m4/st_dm_mode.m4: Likewise.
44296         * m4/stat-time.m4: Likewise.
44297         * m4/stdbool.m4: Likewise.
44298         * m4/stdint.m4: Likewise.
44299         * m4/stdint_h.m4: Likewise.
44300         * m4/stpcpy.m4: Likewise.
44301         * m4/stpncpy.m4: Likewise.
44302         * m4/strcase.m4: Likewise.
44303         * m4/strchrnul.m4: Likewise.
44304         * m4/strcspn.m4: Likewise.
44305         * m4/strdup.m4: Likewise.
44306         * m4/strftime.m4: Likewise.
44307         * m4/strndup.m4: Likewise.
44308         * m4/strnlen.m4: Likewise.
44309         * m4/strpbrk.m4: Likewise.
44310         * m4/strptime.m4: Likewise.
44311         * m4/strsep.m4: Likewise.
44312         * m4/strtod.m4: Likewise.
44313         * m4/strtoimax.m4: Likewise.
44314         * m4/strtok_r.m4: Likewise.
44315         * m4/strtol.m4: Likewise.
44316         * m4/strtoll.m4: Likewise.
44317         * m4/strtoul.m4: Likewise.
44318         * m4/strtoull.m4: Likewise.
44319         * m4/strtoumax.m4: Likewise.
44320         * m4/strverscmp.m4: Likewise.
44321         * m4/threadlib.m4: Likewise.
44322         * m4/timegm.m4: Likewise.
44323         * m4/tm_gmtoff.m4: Likewise.
44324         * m4/tmpdir.m4: Likewise.
44325         * m4/tmpfile.m4: Likewise.
44326         * m4/tzset.m4: Likewise.
44327         * m4/uintmax_t.m4: Likewise.
44328         * m4/unlinkdir.m4: Likewise.
44329         * m4/unlocked-io.m4: Likewise.
44330         * m4/uptime.m4: Likewise.
44331         * m4/userspec.m4: Likewise.
44332         * m4/utimbuf.m4: Likewise.
44333         * m4/utime.m4: Likewise.
44334         * m4/utimes-null.m4: Likewise.
44335         * m4/utimes.m4: Likewise.
44336         * m4/vararrays.m4: Likewise.
44337         * m4/vasnprintf.m4: Likewise.
44338         * m4/vfprintf-posix.m4: Likewise.
44339         * m4/vprintf-posix.m4: Likewise.
44340         * m4/wait-process.m4: Likewise.
44341         * m4/wchar_t.m4: Likewise.
44342         * m4/wint_t.m4: Likewise.
44343         * m4/write-any-file.m4: Likewise.
44344         * m4/yield.m4: Likewise.
44345
44346 2009-01-13  Bruno Haible  <bruno@clisp.org>
44347
44348         Avoid test-copy-file.sh failures when ACL support insufficient.
44349         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
44350         TESTS_ENVIRONMENT.
44351         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
44352         Reported by Jim Meyering.
44353
44354 2009-01-13  Bruno Haible  <bruno@clisp.org>
44355
44356         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
44357         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
44358         * modules/unistdio/u8-printf-parse (Files): Likewise.
44359         * modules/unistdio/u32-printf-parse (Files): Likewise.
44360         * modules/unistdio/ulc-printf-parse (Files): Likewise.
44361
44362 2009-01-13  Simon Josefsson  <simon@josefsson.org>
44363
44364         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
44365         and m4/inttypes_h.m4 too.
44366
44367 2009-01-12  Eric Blake  <ebb9@byu.net>
44368
44369         tests: IRIX 6.2 cc can't compile -0.0 into .data
44370         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44371         rather than at compile-time.
44372         * tests/test-floorl.c (minus_zero): Likewise.
44373         * tests/test-frexpl.c (minus_zero): Likewise.
44374         * tests/test-isnan.c (minus_zerol): Likewise.
44375         * tests/test-isnanl.h (minus_zero): Likewise.
44376         * tests/test-ldexpl.c (minus_zero): Likewise.
44377         * tests/test-roundl.c (minus_zero): Likewise.
44378         * tests/test-signbit.c (minus_zerol): Likewise.
44379         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44380         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44381         * tests/test-truncl.c (minus_zero): Likewise.
44382         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44383         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44384         Reported by Tom G. Christensen and Nelson H. F. Beebe.
44385
44386 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44387
44388         regex: fix glibc bug 9697
44389         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44390         handling.
44391
44392 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44393
44394         regex: fix glibc bug 697
44395         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44396         being NULL also if there are no backreferences.
44397
44398 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44399
44400         regex: merge glibc changes
44401         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44402         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44403         re_string_skip_chars, re_string_reconstruct): Likewise.
44404         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44405
44406 2009-01-07  Jim Meyering  <meyering@redhat.com>
44407
44408         poll: filter through cppi
44409         * lib/poll.c: Indent cpp directives to reflect nesting.
44410
44411 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44412
44413         poll: don't return uninitialized
44414         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44415
44416 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44417
44418         avoid compile failure on AIX 6.1
44419         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44420         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44421
44422 2009-01-04  Jim Meyering  <meyering@redhat.com>
44423
44424         remove duplicate inclusion of <stdio.h>
44425         * tests/test-fprintf-posix.c: Likewise.
44426         * tests/test-printf-posix.c: Likewise.
44427         * tests/test-snprintf-posix.c: Likewise.
44428         * tests/test-sprintf-posix.c: Likewise.
44429         * tests/test-vasprintf-posix.c: Likewise.
44430         * tests/test-vfprintf-posix.c: Likewise.
44431         * tests/test-vprintf-posix.c: Likewise.
44432         * tests/test-vsnprintf-posix.c: Likewise.
44433         * tests/test-vsprintf-posix.c: Likewise.
44434
44435 2009-01-03  Jim Meyering  <meyering@redhat.com>
44436
44437         gnulib-tool: fix sed-based filtering
44438         * gnulib-tool (func_filter_filelist): Remove extra backslash
44439         in sed_fff_filter definition.
44440
44441 2009-01-02  Jim Meyering  <meyering@redhat.com>
44442
44443         strftime: avoid compilation failure on Solaris 2.6
44444         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44445         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44446         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44447         be available.  Reported by Tom G. Christensen.  Details in
44448         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44449
44450 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44451             Bruno Haible  <bruno@clisp.org>
44452
44453         Speed up gnulib-tool by doing more string processing through shell
44454         built-ins.
44455         * gnulib-tool (fast_func_append): New variable.
44456         (func_remove_prefix, func_remove_suffix): New functions.
44457         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44458         (func_filter_filelist): New function.
44459         (func_get_dependencies): Use func_remove_suffix instead of sed.
44460         (func_get_automake_snippet): Use func_filter_filelist instead of a
44461         subshell and sed invocation.
44462
44463 2009-01-01  Bruno Haible  <bruno@clisp.org>
44464
44465         Fix a security bug.
44466         * gnulib-tool (func_import, import, update): Don't allow the characters
44467         '"', '$', '`', '\' in macro arguments that become part of commands that
44468         are evaluated.
44469
44470 2009-01-01  Bruno Haible  <bruno@clisp.org>
44471
44472         * gnulib-tool (func_reset_sigpipe): Add more comments.
44473
44474 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44475
44476         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44477         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44478         already know the answer.
44479
44480 2009-01-01  Jim Meyering  <meyering@redhat.com>
44481
44482         * lib/version-etc.c (version_etc_va): Update copyright year.
44483
44484 2008-12-30  Bruno Haible  <bruno@clisp.org>
44485
44486         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44487         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44488         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44489
44490 2008-12-29  Eric Blake  <ebb9@byu.net>
44491
44492         multiarch: avoid autoconf AC_REQUIRE bug
44493         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44494         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44495         2.63 and older.
44496         Reported by Bruno Haible, and analyzed in
44497         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44498
44499 2008-12-29  Bruno Haible  <bruno@clisp.org>
44500
44501         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44502         files in subdirectories correctly.
44503         Reported by Ralf Wildenhues.
44504
44505 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44506
44507         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44508         rather than 'join FILE -', for Solaris join.
44509
44510 2008-12-29  Bruno Haible  <bruno@clisp.org>
44511
44512         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44513         quoting.
44514         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44515         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44516         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44517         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44518         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44519         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44520         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44521         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44522         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44523         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44524         * m4/nls.m4 (AM_NLS): Likewise.
44525         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44526         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44527         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44528         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44529         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44530         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44531         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44532         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44533         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44534         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44535         * m4/xsize.m4 (gl_XSIZE): Likewise.
44536         Suggested by Jim Meyering.
44537
44538 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44539
44540         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44541         * lib/parse-duration.c: use a switch instead of cascading if's.
44542
44543 2008-12-29  Eric Blake  <ebb9@byu.net>
44544
44545         wchar.h: supply WEOF on Irix 5.3
44546         * lib/wchar.in.h (wint_t): Also supply WEOF.
44547         * lib/wctype.in.h (wint_t): Likewise.
44548         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44549         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44550         Reported by Tom G. Christensen.
44551
44552 2008-12-26  Bruno Haible  <bruno@clisp.org>
44553
44554         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44555         i486, i586, i686.
44556
44557 2008-12-26  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44560
44561 2008-12-26  Bruno Haible  <bruno@clisp.org>
44562
44563         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44564         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44565         not __STDC_CONSTANT_MACROS.
44566         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44567
44568 2008-12-25  Bruno Haible  <bruno@clisp.org>
44569
44570         Add support for universal builds to vasnprintf.
44571         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44572         universal builds, guess no.
44573         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44574         * modules/vasprintf-posix (Depends-on): Likewise.
44575         * modules/fprintf-posix (Depends-on): Likewise.
44576         * modules/vfprintf-posix (Depends-on): Likewise.
44577         * modules/snprintf-posix (Depends-on): Likewise.
44578         * modules/vsnprintf-posix (Depends-on): Likewise.
44579         * modules/sprintf-posix (Depends-on): Likewise.
44580         * modules/vsprintf-posix (Depends-on): Likewise.
44581         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44582         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44583         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44584         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44585         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44586         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44587         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44588
44589         Add support for universal builds to <inttypes.h>.
44590         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44591         _SCNu64_PREFIX): In Apple
44592         universal builds, define directly, using _LP64.
44593         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44594         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44595         * modules/inttypes (Depends-on): Add multiarch.
44596         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44597
44598         Add support for universal builds to <stdint.h>.
44599         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44600         universal builds, define directly, using _LP64.
44601         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44602         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44603         and size_t.
44604         * modules/stdint (Depends-on): Add multiarch.
44605         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44606
44607         New module 'multiarch'.
44608         * modules/multiarch: New file.
44609         * m4/multiarch.m4: New file.
44610
44611 2008-12-25  Bruno Haible  <bruno@clisp.org>
44612
44613         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44614
44615 2008-12-25  Bruno Haible  <bruno@clisp.org>
44616
44617         * modules/btowc (License): Relicense under LGPLv2+.
44618         * modules/mbsinit (License): Likewise.
44619         * modules/mbrtowc (License): Likewise.
44620         * modules/wcrtomb (License): Likewise.
44621         * modules/streq (License): Likewise.
44622         Reported by David Lutterkort <lutter@redhat.com>.
44623
44624 2008-12-23  Bruno Haible  <bruno@clisp.org>
44625
44626         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44627
44628 2008-12-23  Bruno Haible  <bruno@clisp.org>
44629
44630         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44631         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44632         GETADDRINFO_LIB, not in LIBS.
44633         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44634         * modules/canon-host (Link): Likewise.
44635         * NEWS: Mention the change.
44636         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44637         GETADDRINFO_LIB.
44638
44639 2008-12-22  Bruno Haible  <bruno@clisp.org>
44640
44641         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44642         * doc/posix-functions/iswalpha_l.texi: Likewise.
44643         * doc/posix-functions/iswblank_l.texi: Likewise.
44644         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44645         * doc/posix-functions/iswctype_l.texi: Likewise.
44646         * doc/posix-functions/iswdigit_l.texi: Likewise.
44647         * doc/posix-functions/iswgraph_l.texi: Likewise.
44648         * doc/posix-functions/iswlower_l.texi: Likewise.
44649         * doc/posix-functions/iswprint_l.texi: Likewise.
44650         * doc/posix-functions/iswpunct_l.texi: Likewise.
44651         * doc/posix-functions/iswspace_l.texi: Likewise.
44652         * doc/posix-functions/iswupper_l.texi: Likewise.
44653         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44654         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44655         * doc/posix-functions/open_wmemstream.texi: Likewise.
44656         * doc/posix-functions/swscanf.texi: Likewise.
44657         * doc/posix-functions/towctrans_l.texi: Likewise.
44658         * doc/posix-functions/towlower.texi: Likewise.
44659         * doc/posix-functions/towlower_l.texi: Likewise.
44660         * doc/posix-functions/towupper.texi: Likewise.
44661         * doc/posix-functions/towupper_l.texi: Likewise.
44662         * doc/posix-functions/vfwprintf.texi: Likewise.
44663         * doc/posix-functions/vfwscanf.texi: Likewise.
44664         * doc/posix-functions/vswscanf.texi: Likewise.
44665         * doc/posix-functions/vwprintf.texi: Likewise.
44666         * doc/posix-functions/vwscanf.texi: Likewise.
44667         * doc/posix-functions/wcpcpy.texi: Likewise.
44668         * doc/posix-functions/wcpncpy.texi: Likewise.
44669         * doc/posix-functions/wcscasecmp.texi: Likewise.
44670         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44671         * doc/posix-functions/wcscoll_l.texi: Likewise.
44672         * doc/posix-functions/wcsdup.texi: Likewise.
44673         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44674         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44675         * doc/posix-functions/wcsnlen.texi: Likewise.
44676         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44677         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44678         * doc/posix-functions/wctrans_l.texi: Likewise.
44679         * doc/posix-functions/wctype_l.texi: Likewise.
44680         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44681         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44682         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44683         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44684         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44685         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44686         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44687         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44688         * doc/glibc-functions/wcschrnul.texi: Likewise.
44689         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44690         * doc/glibc-functions/wcstod_l.texi: Likewise.
44691         * doc/glibc-functions/wcstof_l.texi: Likewise.
44692         * doc/glibc-functions/wcstol_l.texi: Likewise.
44693         * doc/glibc-functions/wcstold_l.texi: Likewise.
44694         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44695         * doc/glibc-functions/wcstoq.texi: Likewise.
44696         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44697         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44698         * doc/glibc-functions/wcstouq.texi: Likewise.
44699         * doc/glibc-functions/wmempcpy.texi: Likewise.
44700
44701 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44702             Eric Blake  <ebb9@byu.net>
44703             Paolo Bonzini  <bonzini@gnu.org>
44704             Bruno Haible  <bruno@clisp.org>
44705
44706         Make c-stack work on Haiku.
44707         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44708         (c_stack_action): Use SA_ONSTACK flag.
44709
44710 2008-12-22  Bruno Haible  <bruno@clisp.org>
44711
44712         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44713
44714 2008-12-22  Bruno Haible  <bruno@clisp.org>
44715
44716         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44717         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44718         being overridden.
44719         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44720         New macros.
44721         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44723         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44724         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44725
44726 2008-12-22  Bruno Haible  <bruno@clisp.org>
44727
44728         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44729         from test code.
44730
44731 2008-12-22  Eric Blake  <ebb9@byu.net>
44732
44733         Avoid gcc warnings on cygwin.
44734         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44735         Avoid unused variable.
44736         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44737         Likewise.
44738
44739 2008-12-22  Bruno Haible  <bruno@clisp.org>
44740
44741         Remove HAVE_MBRTOWC conditionals.
44742         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44743         (mbscasecmp): Assume mbrtowc function.
44744         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44745         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44746         * lib/mbschr.c: Include mbuiter.h unconditionally.
44747         (mbschr): Assume mbrtowc function.
44748         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44749         (mbscspn): Assume mbrtowc function.
44750         * lib/mbslen.c: Include mbuiter.h unconditionally.
44751         (mbslen): Assume mbrtowc function.
44752         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44753         (mbsncasecmp): Assume mbrtowc function.
44754         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44755         (mbsnlen): Assume mbrtowc function.
44756         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44757         (mbspbrk): Assume mbrtowc function.
44758         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44759         (mbspcasecmp): Assume mbrtowc function.
44760         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44761         (mbsrchr): Assume mbrtowc function.
44762         * lib/mbssep.c: Include mbuiter.h unconditionally.
44763         (mbssep): Assume mbrtowc function.
44764         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44765         (mbsspn): Assume mbrtowc function.
44766         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44767         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44768         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44769         (mbstok_r): Assume mbrtowc function.
44770         * lib/propername.c: Include mbuiter.h unconditionally.
44771         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44772         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44773         (trim2): Assume mbrtowc function.
44774         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44775         (mbsnwidth): Assume mbrtowc function.
44776         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44777         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44778         fallback definitions.
44779         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44780
44781 2008-12-22  Bruno Haible  <bruno@clisp.org>
44782
44783         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44784
44785 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44786
44787         * modules/regex: Request emulations for the mb*/wc* functions we need.
44788         * m4/regex.m4: Don't look for those functions here.
44789         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44790
44791 2008-12-22  Bruno Haible  <bruno@clisp.org>
44792
44793         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44794
44795 2008-12-21  Bruno Haible  <bruno@clisp.org>
44796
44797         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44798         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44799         (Include): Remove conditionalization.
44800         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44801         (Include): Remove conditionalization.
44802         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44803         (Include): Remove conditionalization.
44804         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44805         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44806         * NEWS: Mention the change.
44807         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44808         via Sergey Poznyakoff <gray@gnu.org.ua>.
44809
44810 2008-12-21  Bruno Haible  <bruno@clisp.org>
44811
44812         * MODULES.html.sh (Extended multibyte and wide character utilities
44813         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44814         wcrtomb, wcsrtombs.
44815         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44816         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44817         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44818         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44819
44820 2008-12-21  Bruno Haible  <bruno@clisp.org>
44821
44822         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44823
44824 2008-12-21  Bruno Haible  <bruno@clisp.org>
44825
44826         * modules/wcsnrtombs-tests: New file.
44827         * tests/test-wcsnrtombs1.sh: New file.
44828         * tests/test-wcsnrtombs2.sh: New file.
44829         * tests/test-wcsnrtombs3.sh: New file.
44830         * tests/test-wcsnrtombs4.sh: New file.
44831         * tests/test-wcsnrtombs.c: New file.
44832
44833         New module 'wcsnrtombs'.
44834         * lib/wchar.in.h (wcsnrtombs): New declaration.
44835         * lib/wcsnrtombs.c: New file.
44836         * lib/wcsrtombs-state.c: New file.
44837         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44838         (internal_state): Remove variable.
44839         * m4/wcsnrtombs.m4: New file.
44840         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44841         compilation units.
44842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44843         HAVE_WCSNRTOMBS.
44844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44845         HAVE_WCSNRTOMBS.
44846         * modules/wcsnrtombs: New file.
44847         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44848         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44849
44850 2008-12-21  Bruno Haible  <bruno@clisp.org>
44851
44852         * modules/wcsrtombs-tests: New file.
44853         * tests/test-wcsrtombs1.sh: New file.
44854         * tests/test-wcsrtombs2.sh: New file.
44855         * tests/test-wcsrtombs3.sh: New file.
44856         * tests/test-wcsrtombs4.sh: New file.
44857         * tests/test-wcsrtombs.c: New file.
44858
44859         New module 'wcsrtombs'.
44860         * lib/wchar.in.h (wcsrtombs): New declaration.
44861         * lib/wcsrtombs.c: New file.
44862         * m4/wcsrtombs.m4: New file.
44863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44864         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44865         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44866         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44867         * modules/wcsrtombs: New file.
44868         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44869         bugs.
44870
44871 2008-12-21  Bruno Haible  <bruno@clisp.org>
44872
44873         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44874         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44875         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44876         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44877         if not correct.
44878         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44879         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44880         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44881         m4/locale-zh.m4, m4/codeset.m4.
44882         * doc/posix-functions/wcrtomb.texi: Document the bug.
44883
44884 2008-12-21  Bruno Haible  <bruno@clisp.org>
44885
44886         Work around a btowc() bug on IRIX 6.5.
44887         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44888         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44889         REPLACE_WTOBC if not.
44890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44891         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44892         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44893
44894 2008-12-21  Bruno Haible  <bruno@clisp.org>
44895
44896         * modules/wcrtomb-tests: New file.
44897         * tests/test-wcrtomb.sh: New file.
44898         * tests/test-wcrtomb.c: New file.
44899
44900         New module 'wcrtomb'.
44901         * lib/wchar.in.h (wcrtomb): New declaration.
44902         * lib/wcrtomb.c: New file.
44903         * m4/wcrtomb.m4: New file.
44904         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44905         HAVE_WCRTOMB.
44906         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44907         HAVE_WCRTOMB.
44908         * modules/wcrtomb: New file.
44909         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44910
44911 2008-12-21  Bruno Haible  <bruno@clisp.org>
44912
44913         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44914         * modules/mbsrtowcs (Files): Likewise.
44915         * modules/wctob (Files): Likewise.
44916         * modules/c-strcase-tests (Files): Likewise.
44917         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44918         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44919         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44920         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44921         * modules/vasnprintf-posix-tests (Files): Likewise.
44922
44923 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44924
44925         gitlog-to-changelog: pass all command-line arguments to git-log
44926         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44927         it is sometimes convenient to filter the commits in various ways.
44928         gitlog-to-changelog only allows --since to specify a start date,
44929         but git-log itself supports many other filtering mechanisms.
44930         At the moment, I want to filter by branch name.  Rather than
44931         adding a --branch option to gitlog-to-changelog, it seems more
44932         flexible to simply pass all options directly to git-log and let
44933         git do the work.  Notice that this effectively makes --since a
44934         redundant option for gitlog-to-changelog, but removing it would
44935         require current usage to change since calls would then require
44936         an additional '--'.
44937
44938 2008-12-21  Bruno Haible  <bruno@clisp.org>
44939
44940         * modules/mbsnrtowcs-tests: New file.
44941         * tests/test-mbsnrtowcs1.sh: New file.
44942         * tests/test-mbsnrtowcs2.sh: New file.
44943         * tests/test-mbsnrtowcs3.sh: New file.
44944         * tests/test-mbsnrtowcs4.sh: New file.
44945         * tests/test-mbsnrtowcs.c: New file.
44946
44947         New module 'mbsnrtowcs'.
44948         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44949         * lib/mbsnrtowcs.c: New file.
44950         * lib/mbsrtowcs-state.c: New file.
44951         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44952         (internal_state): Remove variable.
44953         * m4/mbsnrtowcs.m4: New file.
44954         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44955         compilation units.
44956         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44957         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44958         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44959         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44960         * modules/mbsnrtowcs: New file.
44961         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44962         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44963         portability problem.
44964
44965 2008-12-21  Bruno Haible  <bruno@clisp.org>
44966
44967         Work around mbsrtowcs bug.
44968         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44969         (gl_FUNC_MBSRTOWCS): Invoke it.
44970         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44971         m4/locale-zh.m4.
44972         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44973
44974 2008-12-21  Bruno Haible  <bruno@clisp.org>
44975
44976         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44977
44978 2008-12-21  Bruno Haible  <bruno@clisp.org>
44979
44980         Update doc for AIX.
44981         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44982         16-bit wchar_t type.
44983         * doc/posix-functions/btowc.texi: Likewise.
44984         * doc/posix-functions/fgetwc.texi: Likewise.
44985         * doc/posix-functions/fgetws.texi: Likewise.
44986         * doc/posix-functions/fputwc.texi: Likewise.
44987         * doc/posix-functions/fputws.texi: Likewise.
44988         * doc/posix-functions/fwide.texi: Likewise.
44989         * doc/posix-functions/fwprintf.texi: Likewise.
44990         * doc/posix-functions/fwscanf.texi: Likewise.
44991         * doc/posix-functions/getwchar.texi: Likewise.
44992         * doc/posix-functions/getwc.texi: Likewise.
44993         * doc/posix-functions/iswalnum.texi: Likewise.
44994         * doc/posix-functions/iswalpha.texi: Likewise.
44995         * doc/posix-functions/iswblank.texi: Likewise.
44996         * doc/posix-functions/iswcntrl.texi: Likewise.
44997         * doc/posix-functions/iswctype.texi: Likewise.
44998         * doc/posix-functions/iswdigit.texi: Likewise.
44999         * doc/posix-functions/iswgraph.texi: Likewise.
45000         * doc/posix-functions/iswlower.texi: Likewise.
45001         * doc/posix-functions/iswprint.texi: Likewise.
45002         * doc/posix-functions/iswpunct.texi: Likewise.
45003         * doc/posix-functions/iswspace.texi: Likewise.
45004         * doc/posix-functions/iswupper.texi: Likewise.
45005         * doc/posix-functions/iswxdigit.texi: Likewise.
45006         * doc/posix-functions/mbrtowc.texi: Likewise.
45007         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45008         * doc/posix-functions/mbstowcs.texi: Likewise.
45009         * doc/posix-functions/mbtowc.texi: Likewise.
45010         * doc/posix-functions/putwchar.texi: Likewise.
45011         * doc/posix-functions/putwc.texi: Likewise.
45012         * doc/posix-functions/swprintf.texi: Likewise.
45013         * doc/posix-functions/tolower.texi: Likewise.
45014         * doc/posix-functions/toupper.texi: Likewise.
45015         * doc/posix-functions/towctrans.texi: Likewise.
45016         * doc/posix-functions/ungetwc.texi: Likewise.
45017         * doc/posix-functions/vswprintf.texi: Likewise.
45018         * doc/posix-functions/wcrtomb.texi: Likewise.
45019         * doc/posix-functions/wcscat.texi: Likewise.
45020         * doc/posix-functions/wcschr.texi: Likewise.
45021         * doc/posix-functions/wcscmp.texi: Likewise.
45022         * doc/posix-functions/wcscoll.texi: Likewise.
45023         * doc/posix-functions/wcscpy.texi: Likewise.
45024         * doc/posix-functions/wcscspn.texi: Likewise.
45025         * doc/posix-functions/wcsftime.texi: Likewise.
45026         * doc/posix-functions/wcslen.texi: Likewise.
45027         * doc/posix-functions/wcsncat.texi: Likewise.
45028         * doc/posix-functions/wcsncmp.texi: Likewise.
45029         * doc/posix-functions/wcsncpy.texi: Likewise.
45030         * doc/posix-functions/wcspbrk.texi: Likewise.
45031         * doc/posix-functions/wcsrchr.texi: Likewise.
45032         * doc/posix-functions/wcsrtombs.texi: Likewise.
45033         * doc/posix-functions/wcsspn.texi: Likewise.
45034         * doc/posix-functions/wcsstr.texi: Likewise.
45035         * doc/posix-functions/wcstod.texi: Likewise.
45036         * doc/posix-functions/wcstof.texi: Likewise.
45037         * doc/posix-functions/wcstoimax.texi: Likewise.
45038         * doc/posix-functions/wcstok.texi: Likewise.
45039         * doc/posix-functions/wcstold.texi: Likewise.
45040         * doc/posix-functions/wcstoll.texi: Likewise.
45041         * doc/posix-functions/wcstol.texi: Likewise.
45042         * doc/posix-functions/wcstombs.texi: Likewise.
45043         * doc/posix-functions/wcstoull.texi: Likewise.
45044         * doc/posix-functions/wcstoul.texi: Likewise.
45045         * doc/posix-functions/wcstoumax.texi: Likewise.
45046         * doc/posix-functions/wcswidth.texi: Likewise.
45047         * doc/posix-functions/wcsxfrm.texi: Likewise.
45048         * doc/posix-functions/wctob.texi: Likewise.
45049         * doc/posix-functions/wctomb.texi: Likewise.
45050         * doc/posix-functions/wctrans.texi: Likewise.
45051         * doc/posix-functions/wctype.texi: Likewise.
45052         * doc/posix-functions/wcwidth.texi: Likewise.
45053         * doc/posix-functions/wmemchr.texi: Likewise.
45054         * doc/posix-functions/wmemcmp.texi: Likewise.
45055         * doc/posix-functions/wmemcpy.texi: Likewise.
45056         * doc/posix-functions/wmemmove.texi: Likewise.
45057         * doc/posix-functions/wmemset.texi: Likewise.
45058         * doc/posix-functions/wprintf.texi: Likewise.
45059         * doc/posix-functions/wscanf.texi: Likewise.
45060
45061 2008-12-21  Bruno Haible  <bruno@clisp.org>
45062
45063         Update doc for HP-UX 11.11.
45064         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45065         in HP-UX version 11.00, not in all versions of HP-UX 11.
45066         * doc/posix-functions/fwide.texi: Likewise.
45067         * doc/posix-functions/fwprintf.texi: Likewise.
45068         * doc/posix-functions/fwscanf.texi: Likewise.
45069         * doc/posix-functions/inet_ntop.texi: Likewise.
45070         * doc/posix-functions/inet_pton.texi: Likewise.
45071         * doc/posix-functions/mbrlen.texi: Likewise.
45072         * doc/posix-functions/mbrtowc.texi: Likewise.
45073         * doc/posix-functions/mbsinit.texi: Likewise.
45074         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45075         * doc/posix-functions/swprintf.texi: Likewise.
45076         * doc/posix-functions/swscanf.texi: Likewise.
45077         * doc/posix-functions/towctrans.texi: Likewise.
45078         * doc/posix-functions/vfwprintf.texi: Likewise.
45079         * doc/posix-functions/vswprintf.texi: Likewise.
45080         * doc/posix-functions/vwprintf.texi: Likewise.
45081         * doc/posix-functions/wcrtomb.texi: Likewise.
45082         * doc/posix-functions/wcsrtombs.texi: Likewise.
45083         * doc/posix-functions/wcsstr.texi: Likewise.
45084         * doc/posix-functions/wctob.texi: Likewise.
45085         * doc/posix-functions/wctrans.texi: Likewise.
45086         * doc/posix-functions/wmemchr.texi: Likewise.
45087         * doc/posix-functions/wmemcmp.texi: Likewise.
45088         * doc/posix-functions/wmemcpy.texi: Likewise.
45089         * doc/posix-functions/wmemmove.texi: Likewise.
45090         * doc/posix-functions/wmemset.texi: Likewise.
45091         * doc/posix-functions/wprintf.texi: Likewise.
45092         * doc/posix-functions/wscanf.texi: Likewise.
45093
45094 2008-12-21  Bruno Haible  <bruno@clisp.org>
45095
45096         Work around a portability problem.
45097         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45098         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45099
45100 2008-12-20  Bruno Haible  <bruno@clisp.org>
45101
45102         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45103         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45104         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45106         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45107
45108         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45109         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45110         set.
45111         (GNULIB_defined_mbstate_t): New macro.
45112         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45113         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45114         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45115         reuses the system's mbrtowc function but works around the bugs.
45116         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45117         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45118         macros.
45119         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45120         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45121         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45122         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45123         REPLACE_MBSINIT if mbsinit needs to be overridden.
45124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45125         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45126         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45127         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45128         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45129         m4/locale-zh.m4.
45130         (Depends): Add mbsinit.
45131         * modules/mbsinit (Depends): Add mbrtowc.
45132         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45133
45134 2008-12-20  Bruno Haible  <bruno@clisp.org>
45135
45136         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45137         so that there are no conversion errors on AIX.
45138         * tests/test-mbsrtowcs.c (main): LIkewise.
45139
45140 2008-12-20  Bruno Haible  <bruno@clisp.org>
45141
45142         Work around wctob bug on Solaris <= 9.
45143         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45144         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45146         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45147         * modules/wctob (Files): Add m4/locale-fr.m4.
45148         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45149
45150 2008-12-20  Bruno Haible  <bruno@clisp.org>
45151
45152         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45153         /dev/null.
45154         * tests/test-select-in.sh: Likewise.
45155         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45156
45157 2008-12-20  Bruno Haible  <bruno@clisp.org>
45158
45159         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45160         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45161         Cygwin 1.5.x.
45162
45163 2008-12-20  Bruno Haible  <bruno@clisp.org>
45164
45165         Ensure mbstate_t is defined on HP-UX 11.11.
45166         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45167         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45168         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45169         AC_USE_SYSTEM_EXTENSIONS.
45170         * modules/fnmatch (Depends-on): Add extensions.
45171         * modules/mbrlen (Depends-on): Likewise.
45172         * modules/mbrtowc (Depends-on): Likewise.
45173         * modules/mbsinit (Depends-on): Likewise.
45174         * modules/mbsrtowcs (Depends-on): Likewise.
45175         * modules/mbswidth (Depends-on): Likewise.
45176         * modules/quotearg (Depends-on): Likewise.
45177         * modules/strftime (Depends-on): Likewise.
45178
45179 2008-12-20  Bruno Haible  <bruno@clisp.org>
45180
45181         Ensure wctob is declared on IRIX 6.5.
45182         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45183         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45184         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45186         of HAVE_WCTOB.
45187         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45188         HAVE_WCTOB.
45189         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45190
45191 2008-12-19  Bruno Haible  <bruno@clisp.org>
45192
45193         * modules/mbsrtowcs-tests: New file.
45194         * tests/test-mbsrtowcs1.sh: New file.
45195         * tests/test-mbsrtowcs2.sh: New file.
45196         * tests/test-mbsrtowcs3.sh: New file.
45197         * tests/test-mbsrtowcs4.sh: New file.
45198         * tests/test-mbsrtowcs.c: New file.
45199
45200         New module 'mbsrtowcs'.
45201         * lib/wchar.in.h (mbsrtowcs): New declaration.
45202         * lib/mbsrtowcs.c: New file.
45203         * m4/mbsrtowcs.m4: New file.
45204         * modules/mbsrtowcs: New file.
45205         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45206         HAVE_MBSRTOWCS.
45207         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45208         HAVE_MBSRTOWCS.
45209         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45210
45211 2008-12-19  Bruno Haible  <bruno@clisp.org>
45212
45213         New module 'mbrlen'.
45214         * lib/wchar.in.h (mbrlen): New declaration.
45215         * lib/mbrlen.c: New file.
45216         * m4/mbrlen.m4: New file.
45217         * modules/mbrlen: New file.
45218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45219         HAVE_MBRLEN.
45220         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45221         HAVE_MBRLEN.
45222         * doc/posix-functions/mbrlen.texi: Document the new module.
45223
45224 2008-12-19  Bruno Haible  <bruno@clisp.org>
45225
45226         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45227         * modules/mbrtowc (Depends-on): Add verify.
45228         Suggested by Paul Eggert.
45229
45230 2008-12-18  Bruno Haible  <bruno@clisp.org>
45231
45232         * modules/mbsinit-tests: New file.
45233         * tests/test-mbsinit.sh: New file.
45234         * tests/test-mbsinit.c: New file.
45235
45236 2008-12-18  Bruno Haible  <bruno@clisp.org>
45237
45238         * modules/mbrtowc-tests: New file.
45239         * tests/test-mbrtowc1.sh: New file.
45240         * tests/test-mbrtowc2.sh: New file.
45241         * tests/test-mbrtowc3.sh: New file.
45242         * tests/test-mbrtowc4.sh: New file.
45243         * tests/test-mbrtowc.c: New file.
45244
45245         New module 'mbrtowc'.
45246         * lib/wchar.in.h (mbstate_t): Override when the system does not have
45247         mbsinit and mbrtowc.
45248         (mbrtowc): New declaration.
45249         * lib/mbrtowc.c: New file.
45250         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
45251         * modules/mbrtowc: New file.
45252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
45253         HAVE_MBRTOWC.
45254         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
45255         HAVE_MBRTOWC.
45256         * doc/posix-functions/mbrtowc.texi: Document the new module.
45257
45258 2008-12-18  Bruno Haible  <bruno@clisp.org>
45259
45260         New module 'wctob'.
45261         * lib/wchar.in.h (wctob): New declaration.
45262         * lib/wctob.c: New file.
45263         * m4/wctob.m4: New file.
45264         * modules/wctob: New file.
45265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
45266         HAVE_WCTOB.
45267         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
45268         * doc/posix-functions/wctob.texi: Document the new module.
45269
45270 2008-12-18  Bruno Haible  <bruno@clisp.org>
45271
45272         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
45273         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
45274
45275 2008-12-18  Simon Josefsson  <simon@josefsson.org>
45276
45277         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
45278         G. Christensen" <tgc@jupiterrise.com>.
45279
45280         * lib/flock.c: Need to include errno.h.  Reported by "Tom
45281         G. Christensen" <tgc@jupiterrise.com>.
45282
45283         * lib/flock.c: Need to include string.h.  Reported by "Tom
45284         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
45285         <ebb9@byu.net>.
45286
45287 2008-12-18  Bruno Haible  <bruno@clisp.org>
45288
45289         * m4/locale-ja.m4: New file, from GNU gettext.
45290
45291 2008-12-17  Bruno Haible  <bruno@clisp.org>
45292
45293         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
45294         Suggested by Eric Blake.
45295
45296 2008-12-17  Bruno Haible  <bruno@clisp.org>
45297
45298         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
45299
45300 2008-12-17  Bruno Haible  <bruno@clisp.org>
45301
45302         * lib/mbsinit.c: Include verify.h. Verify an assumption.
45303         * modules/mbsinit (Depends-on): Add verify.
45304         Suggested by Paul Eggert.
45305
45306 2008-12-17  Bruno Haible  <bruno@clisp.org>
45307
45308         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
45309         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
45310         gl_FUNC_MBRTOWC.
45311         * m4/mbiter.m4 (gl_MBITER): LIkewise.
45312         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
45313         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
45314         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
45315         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
45316         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
45317         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
45318         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
45319         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
45320         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
45321         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
45322         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
45323         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
45324         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
45325         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
45326         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45327         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
45328         * modules/trim (configure.ac): Likewise.
45329
45330 2008-12-17  Bruno Haible  <bruno@clisp.org>
45331
45332         * modules/btowc-tests: New file.
45333         * tests/test-btowc1.sh: New file.
45334         * tests/test-btowc2.sh: New file.
45335         * tests/test-btowc.c: New file.
45336
45337         New module 'btowc'.
45338         * lib/wchar.in.h (btowc): New declaration.
45339         * lib/btowc.c: New file.
45340         * m4/btowc.m4: New file.
45341         * modules/btowc: New file.
45342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
45343         HAVE_BTOWC.
45344         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
45345         * doc/posix-functions/btowc.texi: Document the new module.
45346
45347 2008-12-17  Bruno Haible  <bruno@clisp.org>
45348
45349         New module 'mbsinit'.
45350         * lib/wchar.in.h (mbsinit): New declaration.
45351         * lib/mbsinit.c: New file.
45352         * m4/mbsinit.m4: New file.
45353         * modules/mbsinit: New file.
45354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
45355         HAVE_MBSINIT.
45356         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
45357         HAVE_MBSINIT.
45358         * doc/posix-functions/mbsinit.texi: Document the new module.
45359
45360 2008-12-16  Bruno Haible  <bruno@clisp.org>
45361
45362         * lib/unistd.in.h: Add comment.
45363         * tests/test-environ.c: Don't include <stdlib.h>.
45364
45365 2008-12-16  Bruno Haible  <bruno@clisp.org>
45366
45367         * lib/parse-duration.h (parse_duration): Document return value
45368         convention.
45369         * lib/parse-duration.c: Include specification header first. Add
45370         comments.
45371         (_): Remove macro.
45372         (parse_year_month_day, parse_hour_minute_second): Move side effects
45373         outside of strchr call.
45374         (parse_non_iso8601): Move side effects outside of isspace call.
45375         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45376         call.
45377
45378 2008-12-16  Bruno Haible  <bruno@clisp.org>
45379
45380         * tests/test-parse-duration.sh: Produce no output when the test
45381         succeeds.
45382
45383 2008-12-16  Bruno Haible  <bruno@clisp.org>
45384
45385         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
45386         expressions.
45387
45388 2008-12-15  Bruno Haible  <bruno@clisp.org>
45389
45390         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45391         * doc/glibc-functions/flistxattr.texi: Likewise.
45392         * doc/glibc-functions/fopencookie.texi: Likewise.
45393         * doc/glibc-functions/fremovexattr.texi: Likewise.
45394         * doc/glibc-functions/fsetxattr.texi: Likewise.
45395         * doc/glibc-functions/getxattr.texi: Likewise.
45396         * doc/glibc-functions/lgetxattr.texi: Likewise.
45397         * doc/glibc-functions/listxattr.texi: Likewise.
45398         * doc/glibc-functions/llistxattr.texi: Likewise.
45399         * doc/glibc-functions/lremovexattr.texi: Likewise.
45400         * doc/glibc-functions/lsetxattr.texi: Likewise.
45401         * doc/glibc-functions/removexattr.texi: Likewise.
45402         * doc/glibc-functions/setxattr.texi: Likewise.
45403         * doc/posix-functions/open_memstream.texi: Likewise.
45404
45405 2008-12-15  Eric Blake  <ebb9@byu.net>
45406
45407         Update doc for cygwin 1.7.
45408         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45409         functions.
45410         * doc/posix-functions/fchmodat.texi: Likewise.
45411         * doc/posix-functions/fchownat.texi: Likewise.
45412         * doc/posix-functions/fdopendir.texi: Likewise.
45413         * doc/posix-functions/fmemopen.texi: Likewise.
45414         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45415         * doc/posix-functions/fstatat.texi: Likewise.
45416         * doc/posix-functions/futimens.texi: Likewise.
45417         * doc/posix-functions/gai_strerror.texi: Likewise.
45418         * doc/posix-functions/getaddrinfo.texi: Likewise.
45419         * doc/posix-functions/getnameinfo.texi: Likewise.
45420         * doc/posix-functions/if_freenameindex.texi: Likewise.
45421         * doc/posix-functions/if_indextoname.texi: Likewise.
45422         * doc/posix-functions/if_nameindex.texi: Likewise.
45423         * doc/posix-functions/if_nametoindex.texi: Likewise.
45424         * doc/posix-functions/insque.texi: Likewise.
45425         * doc/posix-functions/linkat.texi: Likewise.
45426         * doc/posix-functions/llrint.texi: Likewise.
45427         * doc/posix-functions/llrintf.texi: Likewise.
45428         * doc/posix-functions/llrintl.texi: Likewise.
45429         * doc/posix-functions/lockf.texi: Likewise.
45430         * doc/posix-functions/lrintl.texi: Likewise.
45431         * doc/posix-functions/mkdirat.texi: Likewise.
45432         * doc/posix-functions/mkfifoat.texi: Likewise.
45433         * doc/posix-functions/mknodat.texi: Likewise.
45434         * doc/posix-functions/mq_close.texi: Likewise.
45435         * doc/posix-functions/mq_getattr.texi: Likewise.
45436         * doc/posix-functions/mq_notify.texi: Likewise.
45437         * doc/posix-functions/mq_open.texi: Likewise.
45438         * doc/posix-functions/mq_receive.texi: Likewise.
45439         * doc/posix-functions/mq_send.texi: Likewise.
45440         * doc/posix-functions/mq_setattr.texi: Likewise.
45441         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45442         * doc/posix-functions/mq_timedsend.texi: Likewise.
45443         * doc/posix-functions/mq_unlink.texi: Likewise.
45444         * doc/posix-functions/open_memstream.texi: Likewise.
45445         * doc/posix-functions/openat.texi: Likewise.
45446         * doc/posix-functions/posix_fadvise.texi: Likewise.
45447         * doc/posix-functions/posix_fallocate.texi: Likewise.
45448         * doc/posix-functions/posix_madvise.texi: Likewise.
45449         * doc/posix-functions/posix_memalign.texi: Likewise.
45450         * doc/posix-functions/posix_openpt.texi: Likewise.
45451         * doc/posix-functions/readlinkat.texi: Likewise.
45452         * doc/posix-functions/remque.texi: Likewise.
45453         * doc/posix-functions/renameat.texi: Likewise.
45454         * doc/posix-functions/rintl.texi: Likewise.
45455         * doc/posix-functions/sem_unlink.texi: Likewise.
45456         * doc/posix-functions/shm_open.texi: Likewise.
45457         * doc/posix-functions/shm_unlink.texi: Likewise.
45458         * doc/posix-functions/signgam.texi: Likewise.
45459         * doc/posix-functions/sigset.texi: Likewise.
45460         * doc/posix-functions/stpcpy.texi: Likewise.
45461         * doc/posix-functions/stpncpy.texi: Likewise.
45462         * doc/posix-functions/strerror.texi: Likewise.
45463         * doc/posix-functions/strtod.texi: Likewise.
45464         * doc/posix-functions/symlinkat.texi: Likewise.
45465         * doc/posix-functions/unlinkat.texi: Likewise.
45466         * doc/posix-functions/utimensat.texi: Likewise.
45467         * doc/glibc-functions/bindresvport.texi: Likewise.
45468         * doc/glibc-functions/dn_expand.texi: Likewise.
45469         * doc/glibc-functions/exp10.texi: Likewise.
45470         * doc/glibc-functions/exp10f.texi: Likewise.
45471         * doc/glibc-functions/fgetxattr.texi: Likewise.
45472         * doc/glibc-functions/flistxattr.texi: Likewise.
45473         * doc/glibc-functions/fopencookie.texi: Likewise.
45474         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45475         * doc/glibc-functions/fremovexattr.texi: Likewise.
45476         * doc/glibc-functions/fsetxattr.texi: Likewise.
45477         * doc/glibc-functions/getifaddrs.texi: Likewise.
45478         * doc/glibc-functions/getxattr.texi: Likewise.
45479         * doc/glibc-functions/lgetxattr.texi: Likewise.
45480         * doc/glibc-functions/listxattr.texi: Likewise.
45481         * doc/glibc-functions/llistxattr.texi: Likewise.
45482         * doc/glibc-functions/lremovexattr.texi: Likewise.
45483         * doc/glibc-functions/lsetxattr.texi: Likewise.
45484         * doc/glibc-functions/pow10.texi: Likewise.
45485         * doc/glibc-functions/pow10f.texi: Likewise.
45486         * doc/glibc-functions/rcmd_af.texi: Likewise.
45487         * doc/glibc-functions/removexattr.texi: Likewise.
45488         * doc/glibc-functions/res_init.texi: Likewise.
45489         * doc/glibc-functions/res_mkquery.texi: Likewise.
45490         * doc/glibc-functions/res_query.texi: Likewise.
45491         * doc/glibc-functions/res_querydomain.texi: Likewise.
45492         * doc/glibc-functions/res_send.texi: Likewise.
45493         * doc/glibc-functions/rresvport_af.texi: Likewise.
45494         * doc/glibc-functions/setxattr.texi: Likewise.
45495         * doc/glibc-functions/strcasestr.texi: Likewise.
45496
45497 2008-12-15  Bruno Haible  <bruno@clisp.org>
45498
45499         Fix compilation error on OSF/1 4.0.
45500         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45501         <sys/time.h>, simply delegate to the system header.
45502         Reported by Daniel Richard G. <oss@teragram.com>.
45503
45504 2008-12-15  Bruno Haible  <bruno@clisp.org>
45505
45506         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45507         * doc/posix-functions/fchmodat.texi: Likewise.
45508         * doc/posix-functions/fchownat.texi: Likewise.
45509         * doc/posix-functions/fdopendir.texi: Likewise.
45510         * doc/posix-functions/fstatat.texi: Likewise.
45511         * doc/posix-functions/mkdirat.texi: Likewise.
45512         * doc/posix-functions/unlinkat.texi: Likewise.
45513
45514 2008-12-14  Bruno Haible  <bruno@clisp.org>
45515
45516         Update doc for POSIX:2008.
45517         * doc/posix-functions/faccessat.texi: New file.
45518         * doc/posix-functions/fchmodat.texi: New file.
45519         * doc/posix-functions/fchownat.texi: New file.
45520         * doc/posix-functions/fdopendir.texi: New file.
45521         * doc/posix-functions/fstatat.texi: New file.
45522         * doc/posix-functions/futimens.texi: New file.
45523         * doc/posix-functions/linkat.texi: New file.
45524         * doc/posix-functions/mkdirat.texi: New file.
45525         * doc/posix-functions/mkfifoat.texi: New file.
45526         * doc/posix-functions/mknodat.texi: New file.
45527         * doc/posix-functions/open_wmemstream.texi: New file.
45528         * doc/posix-functions/openat.texi: New file.
45529         * doc/posix-functions/psiginfo.texi: New file.
45530         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45531         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45532         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45533         * doc/posix-functions/readlinkat.texi: New file.
45534         * doc/posix-functions/renameat.texi: New file.
45535         * doc/posix-functions/strerror_l.texi: New file.
45536         * doc/posix-functions/symlinkat.texi: New file.
45537         * doc/posix-functions/unlinkat.texi: New file.
45538         * doc/posix-functions/utimensat.texi: New file.
45539         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45540
45541 2008-12-14  Bruno Haible  <bruno@clisp.org>
45542
45543         Update doc for POSIX:2008.
45544         * doc/posix-functions/alphasort.texi: Renamed from
45545         doc/glibc-functions/alphasort.texi.
45546         * doc/posix-functions/dirfd.texi: Renamed from
45547         doc/glibc-functions/dirfd.texi.
45548         * doc/posix-functions/dprintf.texi: Renamed from
45549         doc/glibc-functions/dprintf.texi.
45550         * doc/posix-functions/duplocale.texi: Renamed from
45551         doc/glibc-functions/duplocale.texi.
45552         * doc/posix-functions/fexecve.texi: Renamed from
45553         doc/glibc-functions/fexecve.texi.
45554         * doc/posix-functions/fmemopen.texi: Renamed from
45555         doc/glibc-functions/fmemopen.texi.
45556         * doc/posix-functions/freelocale.texi: Renamed from
45557         doc/glibc-functions/freelocale.texi.
45558         * doc/posix-functions/getdate_err.texi: Renamed from
45559         doc/glibc-functions/getdate_err.texi.
45560         * doc/posix-functions/isalnum_l.texi: Renamed from
45561         doc/glibc-functions/isalnum_l.texi.
45562         * doc/posix-functions/isalpha_l.texi: Renamed from
45563         doc/glibc-functions/isalpha_l.texi.
45564         * doc/posix-functions/isblank_l.texi: Renamed from
45565         doc/glibc-functions/isblank_l.texi.
45566         * doc/posix-functions/iscntrl_l.texi: Renamed from
45567         doc/glibc-functions/iscntrl_l.texi.
45568         * doc/posix-functions/isdigit_l.texi: Renamed from
45569         doc/glibc-functions/isdigit_l.texi.
45570         * doc/posix-functions/isgraph_l.texi: Renamed from
45571         doc/glibc-functions/isgraph_l.texi.
45572         * doc/posix-functions/islower_l.texi: Renamed from
45573         doc/glibc-functions/islower_l.texi.
45574         * doc/posix-functions/isprint_l.texi: Renamed from
45575         doc/glibc-functions/isprint_l.texi.
45576         * doc/posix-functions/ispunct_l.texi: Renamed from
45577         doc/glibc-functions/ispunct_l.texi.
45578         * doc/posix-functions/isspace_l.texi: Renamed from
45579         doc/glibc-functions/isspace_l.texi.
45580         * doc/posix-functions/isupper_l.texi: Renamed from
45581         doc/glibc-functions/isupper_l.texi.
45582         * doc/posix-functions/iswalnum_l.texi: Renamed from
45583         doc/glibc-functions/iswalnum_l.texi.
45584         * doc/posix-functions/iswalpha_l.texi: Renamed from
45585         doc/glibc-functions/iswalpha_l.texi.
45586         * doc/posix-functions/iswblank_l.texi: Renamed from
45587         doc/glibc-functions/iswblank_l.texi.
45588         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45589         doc/glibc-functions/iswcntrl_l.texi.
45590         * doc/posix-functions/iswctype_l.texi: Renamed from
45591         doc/glibc-functions/iswctype_l.texi.
45592         * doc/posix-functions/iswdigit_l.texi: Renamed from
45593         doc/glibc-functions/iswdigit_l.texi.
45594         * doc/posix-functions/iswgraph_l.texi: Renamed from
45595         doc/glibc-functions/iswgraph_l.texi.
45596         * doc/posix-functions/iswlower_l.texi: Renamed from
45597         doc/glibc-functions/iswlower_l.texi.
45598         * doc/posix-functions/iswprint_l.texi: Renamed from
45599         doc/glibc-functions/iswprint_l.texi.
45600         * doc/posix-functions/iswpunct_l.texi: Renamed from
45601         doc/glibc-functions/iswpunct_l.texi.
45602         * doc/posix-functions/iswspace_l.texi: Renamed from
45603         doc/glibc-functions/iswspace_l.texi.
45604         * doc/posix-functions/iswupper_l.texi: Renamed from
45605         doc/glibc-functions/iswupper_l.texi.
45606         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45607         doc/glibc-functions/iswxdigit_l.texi.
45608         * doc/posix-functions/isxdigit_l.texi: Renamed from
45609         doc/glibc-functions/isxdigit_l.texi.
45610         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45611         doc/glibc-functions/mbsnrtowcs.texi.
45612         * doc/posix-functions/mkdtemp.texi: Renamed from
45613         doc/glibc-functions/mkdtemp.texi.
45614         * doc/posix-functions/newlocale.texi: Renamed from
45615         doc/glibc-functions/newlocale.texi.
45616         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45617         doc/glibc-functions/nl_langinfo_l.texi.
45618         * doc/posix-functions/open_memstream.texi: Renamed from
45619         doc/glibc-functions/open_memstream.texi.
45620         * doc/posix-functions/opterr.texi: Renamed from
45621         doc/glibc-functions/opterr.texi.
45622         * doc/posix-functions/optind.texi: Renamed from
45623         doc/glibc-functions/optind.texi.
45624         * doc/posix-functions/optopt.texi: Renamed from
45625         doc/glibc-functions/optopt.texi.
45626         * doc/posix-functions/psignal.texi: Renamed from
45627         doc/glibc-functions/psignal.texi.
45628         * doc/posix-functions/scandir.texi: Renamed from
45629         doc/glibc-functions/scandir.texi.
45630         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45631         doc/glibc-functions/sched_get_priority_min.texi.
45632         * doc/posix-functions/signgam.texi: Renamed from
45633         doc/glibc-functions/signgam.texi.
45634         * doc/posix-functions/stpcpy.texi: Renamed from
45635         doc/glibc-functions/stpcpy.texi.
45636         * doc/posix-functions/stpncpy.texi: Renamed from
45637         doc/glibc-functions/stpncpy.texi.
45638         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45639         doc/glibc-functions/strcasecmp_l.texi.
45640         * doc/posix-functions/strcoll_l.texi: Renamed from
45641         doc/glibc-functions/strcoll_l.texi.
45642         * doc/posix-functions/strfmon_l.texi: Renamed from
45643         doc/glibc-functions/strfmon_l.texi.
45644         * doc/posix-functions/strftime_l.texi: Renamed from
45645         doc/glibc-functions/strftime_l.texi.
45646         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45647         doc/glibc-functions/strncasecmp_l.texi.
45648         * doc/posix-functions/strndup.texi: Renamed from
45649         doc/glibc-functions/strndup.texi.
45650         * doc/posix-functions/strnlen.texi: Renamed from
45651         doc/glibc-functions/strnlen.texi.
45652         * doc/posix-functions/strsignal.texi: Renamed from
45653         doc/glibc-functions/strsignal.texi.
45654         * doc/posix-functions/strxfrm_l.texi: Renamed from
45655         doc/glibc-functions/strxfrm_l.texi.
45656         * doc/posix-functions/timer_gettime.texi: Renamed from
45657         doc/glibc-functions/timer_gettime.texi.
45658         * doc/posix-functions/tolower_l.texi: Renamed from
45659         doc/glibc-functions/tolower_l.texi.
45660         * doc/posix-functions/toupper_l.texi: Renamed from
45661         doc/glibc-functions/toupper_l.texi.
45662         * doc/posix-functions/towctrans_l.texi: Renamed from
45663         doc/glibc-functions/towctrans_l.texi.
45664         * doc/posix-functions/towlower_l.texi: Renamed from
45665         doc/glibc-functions/towlower_l.texi.
45666         * doc/posix-functions/towupper_l.texi: Renamed from
45667         doc/glibc-functions/towupper_l.texi.
45668         * doc/posix-functions/uselocale.texi: Renamed from
45669         doc/glibc-functions/uselocale.texi.
45670         * doc/posix-functions/vdprintf.texi: Renamed from
45671         doc/glibc-functions/vdprintf.texi.
45672         * doc/posix-functions/wcpcpy.texi:
45673         Renamed from doc/glibc-functions/wcpcpy.texi.
45674         * doc/posix-functions/wcpncpy.texi: Renamed from
45675         doc/glibc-functions/wcpncpy.texi.
45676         * doc/posix-functions/wcscasecmp.texi: Renamed from
45677         doc/glibc-functions/wcscasecmp.texi.
45678         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45679         doc/glibc-functions/wcscasecmp_l.texi.
45680         * doc/posix-functions/wcscoll_l.texi: Renamed from
45681         doc/glibc-functions/wcscoll_l.texi.
45682         * doc/posix-functions/wcsdup.texi: Renamed from
45683         doc/glibc-functions/wcsdup.texi.
45684         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45685         doc/glibc-functions/wcsncasecmp.texi.
45686         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45687         doc/glibc-functions/wcsncasecmp_l.texi.
45688         * doc/posix-functions/wcsnlen.texi: Renamed from
45689         doc/glibc-functions/wcsnlen.texi.
45690         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45691         doc/glibc-functions/wcsnrtombs.texi.
45692         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45693         doc/glibc-functions/wcsxfrm_l.texi.
45694         * doc/posix-functions/wctrans_l.texi: Renamed from
45695         doc/glibc-functions/wctrans_l.texi.
45696         * doc/posix-functions/wctype_l.texi: Renamed from
45697         doc/glibc-functions/wctype_l.texi.
45698         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45699         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45700         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45701         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45702         these subsections.
45703         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45704         Remove sections.
45705
45706 2008-12-14  Bruno Haible  <bruno@clisp.org>
45707
45708         Update doc for POSIX:2008.
45709         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45710
45711 2008-12-14  Bruno Haible  <bruno@clisp.org>
45712
45713         Update doc for POSIX:2008.
45714         * doc/pastposix-functions/bcmp.texi: Renamed from
45715         doc/posix-functions/bcmp.texi.
45716         * doc/pastposix-functions/bcopy.texi: Renamed from
45717         doc/posix-functions/bcopy.texi.
45718         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45719         doc/posix-functions/bsd_signal.texi.
45720         * doc/pastposix-functions/bzero.texi: Renamed from
45721         doc/posix-functions/bzero.texi.
45722         * doc/pastposix-functions/ecvt.texi: Renamed from
45723         doc/posix-functions/ecvt.texi.
45724         * doc/pastposix-functions/fcvt.texi: Renamed from
45725         doc/posix-functions/fcvt.texi.
45726         * doc/pastposix-functions/ftime.texi: Renamed from
45727         doc/posix-functions/ftime.texi.
45728         * doc/pastposix-functions/gcvt.texi: Renamed from
45729         doc/posix-functions/gcvt.texi.
45730         * doc/pastposix-functions/getcontext.texi: Renamed from
45731         doc/posix-functions/getcontext.texi.
45732         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45733         doc/posix-functions/gethostbyaddr.texi.
45734         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45735         doc/posix-functions/gethostbyname.texi.
45736         * doc/pastposix-functions/getwd.texi: Renamed from
45737         doc/posix-functions/getwd.texi.
45738         * doc/pastposix-functions/h_errno.texi: Renamed from
45739         doc/posix-functions/h_errno.texi.
45740         * doc/pastposix-functions/index.texi: Renamed from
45741         doc/posix-functions/index.texi.
45742         * doc/pastposix-functions/makecontext.texi: Renamed from
45743         doc/posix-functions/makecontext.texi.
45744         * doc/pastposix-functions/mktemp.texi: Renamed from
45745         doc/posix-functions/mktemp.texi.
45746         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45747         doc/posix-functions/pthread_attr_getstackaddr.texi.
45748         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45749         doc/posix-functions/pthread_attr_setstackaddr.texi.
45750         * doc/pastposix-functions/rindex.texi: Renamed from
45751         doc/posix-functions/rindex.texi.
45752         * doc/pastposix-functions/scalb.texi: Renamed from
45753         doc/posix-functions/scalb.texi.
45754         * doc/pastposix-functions/setcontext.texi: Renamed from
45755         doc/posix-functions/setcontext.texi.
45756         * doc/pastposix-functions/swapcontext.texi: Renamed from
45757         doc/posix-functions/swapcontext.texi.
45758         * doc/pastposix-functions/ualarm.texi: Renamed from
45759         doc/posix-functions/ualarm.texi.
45760         * doc/pastposix-functions/usleep.texi: Renamed from
45761         doc/posix-functions/usleep.texi.
45762         * doc/pastposix-functions/vfork.texi: Renamed from
45763         doc/posix-functions/vfork.texi.
45764         * doc/pastposix-functions/wcswcs.texi: Renamed from
45765         doc/posix-functions/wcswcs.texi.
45766         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45767         (Function Substitutes): Update.
45768
45769 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45770
45771         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45772         m4/strerror.m4.
45773
45774 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45775             Bruno Haible  <bruno@clisp.org>
45776
45777         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45778
45779 2008-12-13  Bruno Haible  <bruno@clisp.org>
45780
45781         * modules/strtoull (Depends-on): Remove unistd.
45782
45783 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45784
45785         * modules/strtoull (Depends-on): Add stdlib.
45786
45787 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45788
45789         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45790
45791 2008-12-10  Jim Meyering  <meyering@redhat.com>
45792
45793         gl_ASSERT: don't say assertions are disabled when they're not
45794         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45795         "checking whether to enable assertions... no", when they are in
45796         fact enabled.  This is solely a bug in the output of configure.
45797         In spite of saying "no", NDEBUG was not defined in that case.
45798         Also, as noted by Eric Blake, leave assertions enabled upon
45799         --enable-assert=INVALID.
45800
45801 2008-12-10  Bruno Haible  <bruno@clisp.org>
45802
45803         Change MODULES.html to refer to POSIX:2008 where possible.
45804         * MODULES.html.sh (POSIX2008_URL): New variable.
45805         (posix_headers): Remove sys/timeb, ucontext.
45806         (posix2001_headers): New variable.
45807         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45808         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45809         index, makecontext, mktemp, pthread_attr_getstackaddr,
45810         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45811         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45812         (posix2001_functions): New variable.
45813         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45814         otherwise.
45815
45816 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45817
45818         add missing include to parse-duration.c
45819         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45820         * modules/parse-duration (Depends-on): Add xalloc.
45821
45822         fix sed script reading maint.mk
45823         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45824         (syntax-check-rules): Use it.
45825
45826 2008-12-09  Bruno Haible  <bruno@clisp.org>
45827
45828         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45829         MacOS X 10.4/PowerPC.
45830         Reported by Simon Josefsson.
45831
45832 2008-12-08  Jim Meyering  <meyering@redhat.com>
45833
45834         work around mingw's lack of some S_IF definitions
45835         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45836         Reported by Simon Josefsson.
45837
45838 2008-12-08  Bruno Haible  <bruno@clisp.org>
45839
45840         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45841         applied to variables. Needed on MacOS X 10.4/PowerPC.
45842         Reported by Simon Josefsson.
45843
45844 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45845         and Eric Blake  <ebb9@byu.net>
45846
45847         assert: honor --enable-assert
45848         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45849         order to honor --enable-assert, rather than treating it as a
45850         synonym for --disable-assert.
45851
45852 2008-12-08  Jim Meyering  <meyering@redhat.com>
45853
45854         * lib/posixtm.c: Remove now-useless declaration of mktime.
45855
45856         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45857
45858 2008-12-07  Bruno Haible  <bruno@clisp.org>
45859
45860         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45861         test_once): Mark functions as static.
45862         * tests/test-tls.c (test_tls): Likewise.
45863
45864 2008-12-07  Bruno Haible  <bruno@clisp.org>
45865
45866         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45867         iconv_register_autodetect.
45868
45869 2008-12-07  Jim Meyering  <meyering@redhat.com>
45870
45871         posixtm.c: avoid a warning
45872         * lib/posixtm.c (posixtime): Don't initialize tm0.
45873         It's no longer needed to placate gcc4's -Wuninitialized,
45874         and the attempt to placate would elicit a new warning.
45875
45876         unicodeio.c: mark unused parameters
45877         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45878         (fallback_failure_callback): Likewise.
45879
45880 2008-12-07  Bruno Haible  <bruno@clisp.org>
45881
45882         * gnulib-tool (func_create_testdir): When building the tests
45883         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45884         Reported by Simon Josefsson.
45885
45886 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45887
45888         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45889
45890 2008-12-06  Bruno Haible  <bruno@clisp.org>
45891
45892         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45893         Suggested by Eric Blake.
45894
45895 2008-12-06  Bruno Haible  <bruno@clisp.org>
45896
45897         Fix a c-stack test failure on MacOS X.
45898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45899         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45900         handler for SIGBUS as well.
45901         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45902         install a signal handler for SIGBUS as well.
45903         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45904
45905 2008-12-06  Bruno Haible  <bruno@clisp.org>
45906
45907         Advocacy documentation.
45908         * doc/gnulib-intro.texi (Benefits): New section.
45909         * doc/gnulib.texi: Update.
45910
45911 2008-12-06  Bruno Haible  <bruno@clisp.org>
45912
45913         Document the 'manywarnings' module.
45914         * doc/manywarnings.texi: New file.
45915         * doc/gnulib.texi: Include it.
45916
45917 2008-12-05  Eric Blake  <ebb9@byu.net>
45918
45919         tests: silence some gcc warnings
45920         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45921         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45922         type mismatches.
45923
45924 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45925             Bruno Haible  <bruno@clisp.org>
45926
45927         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45928
45929 2008-11-29  Jim Meyering  <meyering@redhat.com>
45930
45931         unicodeio.c: mark unused parameters
45932         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45933         (fallback_failure_callback): Likewise.
45934
45935         fts: fix a thinko
45936         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45937         (set_stat_type): Return S_IF*-valued "type" directly.
45938         Prompted by James Youngman's spotting a related bug.
45939         Confirmed by further testing through find.
45940
45941         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45942         * lib/fts.c (D_TYPE): Define.
45943         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45944         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45945         (s_ifmt_shift_bits): New function.
45946         (set_stat_type): New function.
45947         (fts_build): When not calling fts_stat, call set_stat_type
45948         to propagate dirent.d_type info to fts_read caller.
45949         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45950         fts_statp->st_mode type information may be valid.
45951
45952 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45953
45954         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45955         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45956         <sds@gnu.org>.
45957
45958 2008-11-20  Bruno Haible  <bruno@clisp.org>
45959
45960         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45961         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45962         INCLUDE_NEXT.
45963         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45964         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45965         * modules/math (Makefile.am): Substitute
45966         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45967         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45968
45969 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45970             Bruno Haible  <bruno@clisp.org>
45971
45972         * lib/stdint.in.h: Define all type macros so that their expansion is
45973         a single typedef'ed token. Fixes a compilation failure in Boost which
45974         does "using ::int8_t;".
45975
45976 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45977
45978         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45979         gl_MANYWARN_ALL_GCC.
45980         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45981         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45982         * modules/manywarnings: New file.
45983         * MODULES.html.sh: Mention manywarnings module.
45984
45985 2008-11-18  Bruno Haible  <bruno@clisp.org>
45986
45987         * doc/gnulib-tool.texi (Unit tests): New section.
45988
45989 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45990
45991         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45992         paths like 'lib/po/foo.po'.
45993
45994 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45995
45996         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45997         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45998
45999 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46000
46001         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46002         parameter works.
46003
46004 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46005
46006         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46007
46008 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46009
46010         * modules/parse-duration-tests: New file.
46011         * tests/test-parse-duration.sh: New file.
46012         * tests/test-parse-duration.c: New file.
46013
46014         New module 'parse-duration'.
46015         * lib/parse-duration.h: New file.
46016         * lib/parse-duration.c: New file.
46017         * modules/parse-duration: New file.
46018
46019 2008-11-17  Bruno Haible  <bruno@clisp.org>
46020
46021         * tests/test-select-out.sh: Comment out the first pipe test.
46022         Reported by Simon Josefsson.
46023
46024 2008-11-17  Bruno Haible  <bruno@clisp.org>
46025
46026         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46027         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46028         gl_HOSTENT.
46029
46030 2008-11-17  Bruno Haible  <bruno@clisp.org>
46031
46032         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46033         -lnetwork and -lnet. Needed for Haiku and BeOS.
46034
46035 2008-11-16  Bruno Haible  <bruno@clisp.org>
46036
46037         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46038
46039 2008-11-16  Bruno Haible  <bruno@clisp.org>
46040
46041         Avoid test failure on Haiku.
46042         * tests/test-fsync.c: Include <errno.h>.
46043         (main): Don't require that fsync (0) fails.
46044
46045 2008-11-15  Bruno Haible  <bruno@clisp.org>
46046
46047         New module 'hostent'.
46048         * modules/hostent: New file.
46049         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46050
46051 2008-11-15  Bruno Haible  <bruno@clisp.org>
46052
46053         New module 'servent'.
46054         * modules/servent: New file.
46055         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46056
46057 2008-11-15  Bruno Haible  <bruno@clisp.org>
46058
46059         Avoid generating same test program with two different rules.
46060         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46061         test-frexp to test-frexp-nolibm.
46062         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46063         test-frexpl to test-frexpl-nolibm.
46064
46065 2008-11-15  Bruno Haible  <bruno@clisp.org>
46066
46067         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46068         $(FREXPL_LIBM).
46069
46070 2008-11-15  Bruno Haible  <bruno@clisp.org>
46071
46072         * lib/netdb.in.h: Activate the definitions also when the system's
46073         <netdb.h> has 'struct addrinfo'.
46074         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46075         EAI_OVERFLOW or AI_NUMERICSERV.
46076         * doc/posix-headers/netdb.texi: Document the problem.
46077
46078 2008-11-15  Bruno Haible  <bruno@clisp.org>
46079
46080         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46081
46082         Make the 'sched' module work on platforms where <sched.h> exists but
46083         is incomplete (such as Haiku).
46084         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46085         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46086         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46087         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46088         HAVE_STRUCT_SCHED_PARAM.
46089         * modules/sched (Depends-on): Add include_next.
46090         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46091         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46092         * doc/posix-headers/sched.texi: Document the issue.
46093
46094 2008-11-13  Jim Meyering  <meyering@redhat.com>
46095
46096         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46097         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46098         test would fail due to the difference in the Report bugs to ...
46099         line.  The expected address is empty, "<>", while the actual
46100         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46101
46102 2008-11-12  Bruno Haible  <bruno@clisp.org>
46103
46104         lstat: don't compile lstat.c on systems lacking lstat
46105         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46106         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46107         Reported by Daniel P. Berrange via Jim Meyering.
46108
46109 2008-11-12  Jim Meyering  <meyering@redhat.com>
46110
46111         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46112
46113 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46114
46115         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46116         instead.
46117
46118 2008-11-12  Bruno Haible  <bruno@clisp.org>
46119
46120         * lib/unicodeio.c: Include unistr.h.
46121         (utf8_wctomb): Remove function.
46122         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46123
46124 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46125
46126         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46127         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46128         <bruno@clisp.org>.
46129         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46130
46131 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46132
46133         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46134         * doc/gnulib.texi: Add section for warnings.
46135
46136 2008-11-11  Bruno Haible  <bruno@clisp.org>
46137
46138         * lib/sockets.h: Add a comment.
46139
46140 2008-11-11  Karl Berry  <karl@gnu.org>
46141
46142         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46143
46144 2008-11-11  Eric Blake  <ebb9@byu.net>
46145
46146         fdl.texi: avoid git symlinks
46147         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46148
46149 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46150
46151         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46152
46153 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46154
46155         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46156         (gl_WARN_ADD): Substitute $2 if literal.
46157
46158 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46159
46160         * m4/warning.m4: Remove.
46161
46162 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46163
46164         * m4/warnings.m4: Almost complete rewrite. :-)
46165
46166 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46167
46168         * modules/warnings: New module.
46169         * m4/warnings.m4: New file.
46170         * MODULES.html.sh: Mention warnings module.
46171         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46172         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46173
46174 2008-11-10  Eric Blake  <ebb9@byu.net>
46175
46176         fdl.texi: make a symlink to the latest version
46177         * doc/standards.texi: Revert today's earlier change.
46178         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46179         * doc/fdl.texi: ...and replace this with a symlink to the newer
46180         fdl-1.3.texi.
46181
46182 2008-11-10  Bruno Haible  <bruno@clisp.org>
46183
46184         * tests/test-select-fd.c (main): Accept the result file name as fourth
46185         argument.
46186         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46187         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46188
46189 2008-11-10  Bruno Haible  <bruno@clisp.org>
46190
46191         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46192         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46193         as autoconf-substituted macros.
46194         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46195         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46196         gl_NETDB_H_DEFAULTS. Set these variables.
46197         * modules/netdb (Makefile.am): Substitute these variables.
46198
46199 2008-11-10  Eric Blake  <ebb9@byu.net>
46200
46201         standards.texi: include correct file for FDL 1.3
46202         * doc/standards.texi (GNU Free Documentation License): Change
46203         include file to pull in FDL 1.3, not 1.2.
46204
46205         fdl.texi: revert accidental change to license
46206         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46207
46208 2008-11-10  Bruno Haible  <bruno@clisp.org>
46209
46210         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46211         cross-compiling guesses also when the native compile gives no result.
46212
46213 2008-11-10  Bruno Haible  <bruno@clisp.org>
46214
46215         * lib/spawni.c (__spawni): Force variable into the stack.
46216
46217 2008-11-10  Bruno Haible  <bruno@clisp.org>
46218
46219         Add support for Haiku.
46220         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46221         glibc and BeOS, but also on Haiku.
46222         * lib/fpurge.c (fpurge): Likewise.
46223         * lib/freadable.c (freadable): Likewise.
46224         * lib/freadahead.c (freadahead): Likewise.
46225         * lib/freading.c (freading): Likewise.
46226         * lib/freadptr.c (freadptr): Likewise.
46227         * lib/freadseek.c (freadptrinc): Likewise.
46228         * lib/fseeko.c (rpl_fseeko): Likewise.
46229         * lib/fseterr.c (fseterr): Likewise.
46230         * lib/fwritable.c (fwritable): Likewise.
46231         * lib/fwriting.c (fwriting): Likewise.
46232         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46233
46234 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46235
46236         * lib/config.charset: Treat Haiku like BeOS.
46237
46238 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46239
46240         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
46241         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
46242
46243 2008-11-08  Bruno Haible  <bruno@clisp.org>
46244
46245         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
46246         AC_CACHE_CHECK.
46247
46248 2008-11-08  Bruno Haible  <bruno@clisp.org>
46249
46250         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
46251
46252 2008-11-08  Bruno Haible  <bruno@clisp.org>
46253
46254         * tests/test-select-fd.c: New file.
46255         * tests/test-select-in.sh: New file.
46256         * tests/test-select-out.sh: New file.
46257         * tests/test-select-stdin.c: New file.
46258         * modules/select-tests (Files): Add the new files.
46259         (Depends-on): Add gettimeofday.
46260         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
46261         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
46262         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
46263
46264 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
46265             Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
46268
46269 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
46270
46271         * build-aux/pmccabe2html: Added support for C++ source files.
46272
46273 2008-11-05  Ben Pfaff  <blp@gnu.org>
46274
46275         Fix lib/close.c build on Windows.
46276         * modules/close (Files): Add lib/w32sock.h.
46277
46278 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
46279
46280         Accept Bison's NEWS format.
46281         * build-aux/announce-gen (print_news_deltas): Tweak
46282         $re_prefix.
46283
46284 2008-11-04  Bruno Haible  <bruno@clisp.org>
46285
46286         * modules/random_r (Maintainer): Add glibc.
46287
46288 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46289
46290         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
46291         by karl@freefriends.org (Karl Berry).
46292         * doc/alloca.texi: Likewise.
46293         * doc/c-ctype.texi: Likewise.
46294         * doc/c-strcase.texi: Likewise.
46295         * doc/c-strcaseeq.texi: Likewise.
46296         * doc/c-strcasestr.texi: Likewise.
46297         * doc/c-strstr.texi: Likewise.
46298         * doc/c-strtod.texi: Likewise.
46299         * doc/c-strtold.texi: Likewise.
46300         * doc/ctime.texi: Likewise.
46301         * doc/error.texi: Likewise.
46302         * doc/fdl.texi: Likewise.
46303         * doc/gcd.texi: Likewise.
46304         * doc/getdate.texi: Likewise.
46305         * doc/gnulib-intro.texi: Likewise.
46306         * doc/gnulib-tool.texi: Likewise.
46307         * doc/gnulib.texi: Likewise.
46308         * doc/inet_ntoa.texi: Likewise.
46309         * doc/maintain.texi: Likewise.
46310         * doc/make-stds.texi: Likewise.
46311         * doc/quote.texi: Likewise.
46312         * doc/regexprops-generic.texi: Likewise.
46313         * doc/standards.texi: Likewise.
46314         * doc/verify.texi: Likewise.
46315         * doc/visibility.texi: Likewise.
46316         * doc/gnulib.texi (GNU Free Documentation License): Include
46317         fdl-1.3.texi instead of fdl.texi.
46318
46319 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46320
46321         * doc/fdl-1.3.texi: New file, from
46322         <http://www.gnu.org/licenses/fdl-1.3.texi>.
46323         * modules/fdl-1.3: Add.
46324         * MODULES.html.sh: Add fdl-1.3.
46325
46326 2008-11-03  Bruno Haible  <bruno@clisp.org>
46327
46328         Make determination of absolute name of header file work with AIX xlc.
46329         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
46330         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
46331         preprocessing.
46332         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46333         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46334
46335 2008-11-03  Simon Josefsson  <simon@josefsson.org>
46336
46337         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
46338         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
46339         <ludo@gnu.org>.
46340
46341 2008-11-02  Bruno Haible  <bruno@clisp.org>
46342
46343         Mark 'strpbrk' obsolete.
46344         * modules/strpbrk (Status, Notice): New sections.
46345         * modules/strtok_r (Depends-on): Add strpbrk.
46346
46347 2008-11-02  Bruno Haible  <bruno@clisp.org>
46348
46349         Mark 'strdup' obsolete.
46350         * modules/strdup (Status, Notice): New sections.
46351         * modules/findprog (Depends-on): Add strdup.
46352         * modules/getaddrinfo (Depends-on): Likewise.
46353         * modules/localename (Depends-on): Likewise.
46354         * modules/relocatable-lib (Depends-on): Likewise.
46355         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
46356         * modules/relocatable-prog (Depends-on): Likewise.
46357         * modules/trim (Depends-on): Likewise.
46358         * modules/unictype/gen-ctype (Depends-on): Likewise.
46359         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46360
46361 2008-11-02  Bruno Haible  <bruno@clisp.org>
46362
46363         Mark 'strcspn' obsolete.
46364         * modules/strcspn (Status, Notice): New sections.
46365
46366 2008-11-02  Bruno Haible  <bruno@clisp.org>
46367
46368         Mark 'rmdir' obsolete.
46369         * modules/rmdir (Status, Notice): New sections.
46370         * modules/clean-temp (Depends-on): Add rmdir.
46371         * modules/openat (Depends-on): Likewise.
46372
46373 2008-11-02  Bruno Haible  <bruno@clisp.org>
46374
46375         Mark 'raise' obsolete.
46376         * modules/raise (Status, Notice): New sections.
46377         (Include): Specify <signal.h>.
46378         * modules/stdio (Depends-on): Add raise.
46379         * modules/write (Depends-on): Likewise.
46380
46381 2008-11-02  Bruno Haible  <bruno@clisp.org>
46382
46383         Mark 'memset' obsolete.
46384         * modules/memset (Status, Notice): New sections.
46385
46386 2008-11-02  Bruno Haible  <bruno@clisp.org>
46387
46388         Mark 'memmove' obsolete.
46389         * modules/memmove (Status, Notice): New sections.
46390         * modules/argp (Depends-on): Add memmove.
46391         * modules/argz (Depends-on): Likewise.
46392         * modules/canonicalize (Depends-on): Likewise.
46393         * modules/canonicalize-lgpl (Depends-on): Likewise.
46394         * modules/fts (Depends-on): Likewise.
46395         * modules/getcwd (Depends-on): Likewise.
46396         * modules/human (Depends-on): Likewise.
46397         * modules/regex (Depends-on): Likewise.
46398         * modules/striconveh (Depends-on): Likewise.
46399         * modules/trim (Depends-on): Likewise.
46400         * modules/unistr/u8-move (Depends-on): Likewise.
46401         * modules/unistr/u16-move (Depends-on): Likewise.
46402         * modules/unistr/u32-move (Depends-on): Likewise.
46403
46404 2008-11-02  Bruno Haible  <bruno@clisp.org>
46405
46406         Mark 'memcpy' obsolete.
46407         * modules/memcpy (Status, Notice): New sections.
46408
46409 2008-11-02  Bruno Haible  <bruno@clisp.org>
46410
46411         Mark 'memcmp' obsolete.
46412         * modules/memcmp (Status, Notice): New sections.
46413         * modules/argmatch (Depends-on): Add memchr.
46414         * modules/backupfile (Depends-on): Likewise.
46415         * modules/c-strcasestr (Depends-on): Likewise.
46416         * modules/crypto/des (Depends-on): Likewise.
46417         * modules/csharpcomp (Depends-on): Likewise.
46418         * modules/fnmatch (Depends-on): Likewise.
46419         * modules/git-merge-changelog (Depends-on): Likewise.
46420         * modules/isnand (Depends-on): Likewise.
46421         * modules/isnand-nolibm (Depends-on): Likewise.
46422         * modules/isnanf (Depends-on): Likewise.
46423         * modules/isnanf-nolibm (Depends-on): Likewise.
46424         * modules/isnanl (Depends-on): Likewise.
46425         * modules/isnanl-nolibm (Depends-on): Likewise.
46426         * modules/mbchar (Depends-on): Likewise.
46427         * modules/memcoll (Depends-on): Likewise.
46428         * modules/quotearg (Depends-on): Likewise.
46429         * modules/regex (Depends-on): Likewise.
46430         * modules/relocatable-prog (Depends-on): Likewise.
46431         * modules/same (Depends-on): Likewise.
46432         * modules/signbit (Depends-on): Likewise.
46433         * modules/strcasestr-simple (Depends-on): Likewise.
46434         * modules/unictype/gen-ctype (Depends-on): Likewise.
46435         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46436         * modules/uniname/uniname (Depends-on): Likewise.
46437         * modules/unistr/u8-cmp (Depends-on): Likewise.
46438
46439 2008-11-02  Bruno Haible  <bruno@clisp.org>
46440
46441         Mark 'memchr' obsolete.
46442         * modules/memchr (Status, Notice): New sections.
46443         * modules/argp (Depends-on): Add memchr.
46444         * modules/base64 (Depends-on): Likewise.
46445         * modules/c-strcasestr (Depends-on): Likewise.
46446         * modules/chdir-long (Depends-on): Likewise.
46447         * modules/fnmatch (Depends-on): Likewise.
46448         * modules/getsubopt (Depends-on): Likewise.
46449         * modules/git-merge-changelog (Depends-on): Likewise.
46450         * modules/glob (Depends-on): Likewise.
46451         * modules/strcasestr-simple (Depends-on): Likewise.
46452         * modules/strnlen (Depends-on): Likewise.
46453
46454 2008-11-02  Bruno Haible  <bruno@clisp.org>
46455
46456         Mark 'atexit' obsolete.
46457         * modules/atexit (Status, Notice): New sections.
46458         * modules/chdir-long (Depends-on): Add atexit.
46459         * modules/wait-process (Depends-on): Likewise.
46460
46461 2008-11-02  Bruno Haible  <bruno@clisp.org>
46462
46463         * gnulib-tool: New option --with-obsolete.
46464         (func_usage): Document it.
46465         (func_modules_transitive_closure): Drop obsolete dependencies if
46466         incobsolete is not true.
46467         (func_import): Read and save the incobsolete variable to the cache.
46468
46469 2008-11-02  Bruno Haible  <bruno@clisp.org>
46470
46471         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46472         * gnulib-tool: New option --extract-status.
46473         (func_usage): Document it.
46474         (sed_extract_prog): Recognize it.
46475         (func_get_status): New function.
46476
46477 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46478
46479         * modules/sockets (License): Change from LGPL to LGPLv2+.
46480
46481 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46482
46483         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46484
46485 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46486
46487         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46488         Mention times and sys_times.
46489         * modules/sys_times, modules/sys_times-tests: New modules.
46490         * modules/times, modules/times-tests: Likewise
46491         * m4/sys_times_h.m4: New file.
46492         * lib/sys_times.in.h: Likewise
46493         * lib/times.c: Likewise.
46494         * tests/test-sys_times.c: Likewise.
46495         * tests/test-times.c: Likewise.
46496         * doc/posix-headers/sys_times.texi: Update.
46497         * doc/posix-functions/times.texi: Update.
46498
46499 2008-10-28  Jim Meyering  <meyering@redhat.com>
46500
46501         * modules/tempname (Depends-on): Add lstat.
46502
46503         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46504
46505 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46506
46507         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46508         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46509         using idiom used elsewhere in gnulib.
46510
46511 2008-10-27  Jim Meyering  <meyering@redhat.com>
46512
46513         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46514
46515 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46516
46517         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46518         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46519         programs.
46520         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46521
46522 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46523
46524         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46525
46526 2008-10-27  Bruno Haible  <bruno@clisp.org>
46527
46528         * tests/test-lstat.c: Include <stdio.h>.
46529
46530 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46531
46532         * modules/lstat-tests: New module.
46533         * tests/test-lstat.c: New file.
46534
46535 2008-10-26  Jim Meyering  <meyering@redhat.com>
46536
46537         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46538
46539 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46540             Bruno Haible  <bruno@clisp.org>
46541
46542         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46543         * modules/configmake (Include): Add a note that the include must come
46544         after all system headers.
46545         * lib/javaversion.c: Include configmake.h after all other includes.
46546
46547 2008-10-26  Bruno Haible  <bruno@clisp.org>
46548
46549         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46550         HAVE_STRUCT_RANDOM_DATA to 1.
46551         (gl_STDLIB_H): Simplify.
46552
46553 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46554
46555         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46556         substitute HAVE_STRUCT_RANDOM_DATA.
46557         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46558         random_data.
46559         * modules/stdlib (Makefile.am): Substitute
46560         HAVE_STRUCT_RANDOM_DATA.
46561
46562 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46563
46564         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46565         * doc/gnulib-intro.texi (Copyright): Likewise.
46566
46567 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46568
46569         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46570         findings.
46571
46572 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46573             Bruno Haible  <bruno@clisp.org>
46574
46575         * lib/unistd.in.h: Include <winsock2.h>.
46576         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46577         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46578         Provide dummy declarations.
46579         (gethostname): Override.
46580         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46581         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46582         gl_PREREQ_SYS_H_WINSOCK2.
46583         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46584         * doc/posix-functions/gethostname.texi: More details.
46585
46586 2008-10-25  Bruno Haible  <bruno@clisp.org>
46587
46588         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46589         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46590         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46591
46592         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46593         here ...
46594         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46595         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46596         gl_UNISTD_H_DEFAULTS.
46597
46598 2008-10-25  Eric Blake  <ebb9@byu.net>
46599
46600         signbit: avoid spurious compiler failure
46601         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46602         declarations inside function.
46603
46604 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46605             Bruno Haible  <bruno@clisp.org>
46606
46607         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46608         * modules/random_r (Depends-on): Add stdint.
46609
46610 2008-10-24  Bruno Haible  <bruno@clisp.org>
46611
46612         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46613         Eggert.
46614         * modules/strerror (License): Likewise.
46615
46616 2008-10-24  Jim Meyering  <meyering@redhat.com>
46617
46618         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46619         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46620
46621 2008-10-24  Eric Blake  <ebb9@byu.net>
46622
46623         getgroups: fix compilation when getgroups is available
46624         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46625         but with <config.h> override of getgroups disabled.
46626
46627 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46628
46629         * doc/gnulib.texi (Header files): Add note about C++ problems.
46630         Explained by Bruno Haible <bruno@clisp.org>.
46631
46632 2008-10-23  Bruno Haible  <bruno@clisp.org>
46633
46634         Define a dummy SA_NODEFER macro on Interix.
46635         * lib/signal.in.h (SA_NODEFER): Define fallback.
46636         Reported by Aleksey Cheusov <cheusov@tut.by> via
46637         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46638
46639 2008-10-23  Bruno Haible  <bruno@clisp.org>
46640
46641         * modules/freadahead (License): Change to LGPLv2+.
46642         Suggested by Simon Josefsson.
46643
46644 2008-10-23  Jim Meyering  <meyering@redhat.com>
46645
46646         random_r: new module
46647         * modules/random_r: New file.
46648         * m4/random_r.m4: New file.
46649         * lib/random_r.c: New file, from glibc.
46650         * modules/random_r-tests: New file.
46651         * tests/test-random_r.c: New file.
46652         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46653          Declare.
46654         (RAND_MAX): Define.
46655         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46656         * modules/stdlib: Substitute them, too.
46657         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46658         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46659         * doc/glibc-functions/random_r.texi: Likewise.
46660         * doc/glibc-functions/setstate_r.texi: Likewise.
46661         * doc/glibc-functions/srandom_r.texi: Likewise.
46662         * config/srclist.txt: Mention it.
46663
46664 2008-10-23  David Lutterkort  <lutter@redhat.com>
46665
46666         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46667         link requirement
46668
46669 2008-10-23  Jim Meyering  <meyering@redhat.com>
46670
46671         selinux-h: mark parameters of stub functions as intentionally unused
46672         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46673         * lib/se-context.in.h: Likewise.
46674
46675 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46676
46677         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46678
46679 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46680
46681         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46682
46683 2008-10-22  Eric Blake  <ebb9@byu.net>
46684
46685         glthread/thread: avoid compiler warning
46686         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46687         Add unreachable abort to silence compiler.
46688
46689 2008-10-22  Eric Blake  <ebb9@byu.net>
46690
46691         netdb: also supply struct addrinfo for cygwin 1.5.x
46692         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46693         older cygwin.
46694         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46695         cygwin.
46696         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46697
46698 2008-10-22  Bruno Haible  <bruno@clisp.org>
46699
46700         * users.txt: Update entry about pspp.
46701
46702 2008-10-21  Bruno Haible  <bruno@clisp.org>
46703
46704         Simplification.
46705         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46706         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46707
46708         Simplification.
46709         * lib/ioctl.c (ioctl): Don't undefine.
46710         * lib/socket.c (socket): Don't undefine.
46711
46712         Remove unused module indicator macros.
46713         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46714         GNULIB_$1 as a C macro.
46715
46716         * doc/posix-functions/close.texi: Undo last change.
46717         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46718         Windows platforms.
46719
46720 2008-10-21  Bruno Haible  <bruno@clisp.org>
46721
46722         Add gethostname() declaration to <unistd.h>.
46723         * lib/unistd.in.h (gethostname): New declaration.
46724         * lib/gethostname.c: Include <unistd.h>.
46725         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46726         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46728         and HAVE_GETHOSTNAME.
46729         * modules/gethostname (Depends-on): Add unistd.
46730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46731         (Include): Specify <unistd.h>.
46732         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46733         HAVE_GETHOSTNAME.
46734         * tests/test-gethostname.c: Include <unistd.h> first.
46735
46736 2008-10-21  Bruno Haible  <bruno@clisp.org>
46737
46738         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46739         * modules/select-tests (Depends-on): Likewise.
46740         Reported by Simon Josefsson.
46741
46742 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46743
46744         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46745         * lib/accept.c: New file, based on winsock.c.
46746         * lib/bind.c: New file, based on winsock.c.
46747         * lib/connect.c: New file, based on winsock.c.
46748         * lib/getpeername.c: New file, based on winsock.c.
46749         * lib/getsockname.c: New file, based on winsock.c.
46750         * lib/getsockopt.c: New file, based on winsock.c.
46751         * lib/ioctl.c: New file, based on winsock.c.
46752         * lib/listen.c: New file, based on winsock.c.
46753         * lib/recv.c: New file, based on winsock.c.
46754         * lib/recvfrom.c: New file, based on winsock.c.
46755         * lib/send.c: New file, based on winsock.c.
46756         * lib/sendto.c: New file, based on winsock.c.
46757         * lib/setsockopt.c: New file, based on winsock.c.
46758         * lib/shutdown.c: New file, based on winsock.c.
46759         * lib/socket.c: New file, based on winsock.c.
46760         * lib/w32sock.h: New file, based on winsock.c.
46761         * lib/winsock.c: Remove file.
46762         * modules/accept: Likewise.
46763         * modules/bind: Likewise.
46764         * modules/connect: Likewise.
46765         * modules/getpeername: Likewise.
46766         * modules/getsockname: Likewise.
46767         * modules/getsockopt: Likewise.
46768         * modules/ioctl: Likewise.
46769         * modules/listen: Likewise.
46770         * modules/recv: Likewise.
46771         * modules/recvfrom: Likewise.
46772         * modules/send: Likewise.
46773         * modules/sendto: Likewise.
46774         * modules/setsockopt: Likewise.
46775         * modules/shutdown: Likewise.
46776         * modules/socket: Use socket.c instead of winsock.c.
46777         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46778         * doc/posix-functions/accept.texi: Doc fix.
46779         * doc/posix-functions/bind.texi: Doc fix.
46780         * doc/posix-functions/close.texi: Doc fix.
46781         * doc/posix-functions/connect.texi: Doc fix.
46782         * doc/posix-functions/getpeername.texi: Doc fix.
46783         * doc/posix-functions/getsockname.texi: Doc fix.
46784         * doc/posix-functions/getsockopt.texi: Doc fix.
46785         * doc/posix-functions/ioctl.texi: Doc fix.
46786         * doc/posix-functions/listen.texi: Doc fix.
46787         * doc/posix-functions/recv.texi: Doc fix.
46788         * doc/posix-functions/recvfrom.texi: Doc fix.
46789         * doc/posix-functions/send.texi: Doc fix.
46790         * doc/posix-functions/sendto.texi: Doc fix.
46791         * doc/posix-functions/setsockopt.texi: Doc fix.
46792         * doc/posix-functions/shutdown.texi: Doc fix.
46793         * doc/posix-functions/socket.texi: Doc fix.
46794
46795 2008-10-20  Bruno Haible  <bruno@clisp.org>
46796
46797         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46798         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46799         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46800         as an alias for SIGABRT.
46801         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46802         (sigaction): Map it to SIGABRT.
46803         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46804
46805 2008-10-20  Bruno Haible  <bruno@clisp.org>
46806
46807         * lib/fts.c: Don't include lstat.h.
46808         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46809
46810         Move the lstat() declaration to <sys/stat.h>.
46811         * lib/lstat.h: Remove file.
46812         * lib/sys_stat.in.h: Add special invocation convention.
46813         (lstat): New declaration.
46814         * lib/lstat.c (orig_lstat): New function.
46815         (rpl_lstat): Use orig_lstat instead of lstat.
46816         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46817         AC_C_INLINE. Set REPLACE_LSTAT.
46818         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46819         and REPLACE_LSTAT.
46820         * modules/lstat (Files): Remove lib/lstat.h.
46821         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46822         (Include): Specify <sys/stat.h> instead of lstat.h.
46823         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46824         REPLACE_LSTAT.
46825         * NEWS: Mention the change.
46826
46827 2008-10-20  Bruno Haible  <bruno@clisp.org>
46828
46829         * modules/posix_spawn-tests: New file.
46830         * tests/test-posix_spawn3.c: New file.
46831
46832 2008-10-20  Bruno Haible  <bruno@clisp.org>
46833
46834         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46835         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46836         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46837         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46838         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46839
46840 2008-10-20  Bruno Haible  <bruno@clisp.org>
46841
46842         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46843         of posix_spawn on AIX 5.3.
46844
46845 2008-10-20  Bruno Haible  <bruno@clisp.org>
46846
46847         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46848
46849 2008-10-20  Bruno Haible  <bruno@clisp.org>
46850
46851         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46852         of AC_LANG_PROGRAM.
46853
46854 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46855
46856         * lib/netdb.in.h: Don't define GNU specific constants until they
46857         are supported or needed.  Reported by Bruno Haible
46858         <bruno@clisp.org>.
46859
46860 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46861
46862         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46863
46864 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46865
46866         * lib/getaddrinfo.h: Remove file.
46867         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46868         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46869         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46870         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46871         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46872         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46873         * tests/test-getaddrinfo.c: Likewise.
46874         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46875         * NEWS: Mention change.
46876
46877 2008-10-19  Bruno Haible  <bruno@clisp.org>
46878
46879         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46880
46881 2008-10-19  Bruno Haible  <bruno@clisp.org>
46882
46883         * lib/wait-process.c: Include simply <sys/wait.h>.
46884         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46885         WIFSTOPPED): Remove fallback definitions.
46886         * modules/wait-process (Depends-on): Add sys_wait.
46887
46888         New module 'sys_wait'.
46889         * modules/sys_wait: New file.
46890         * lib/sys_wait.in.h: New file, partially copied from
46891         lib/wait-process.c.
46892         * m4/sys_wait_h.m4: New file.
46893         * doc/posix-headers/sys_wait.texi: Mention the new module.
46894
46895 2008-10-19  Bruno Haible  <bruno@clisp.org>
46896
46897         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46898
46899 2008-10-19  Bruno Haible  <bruno@clisp.org>
46900
46901         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46902         * lib/wait-process.c (WAIT_T): Remove type.
46903         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46904         (wait_subprocess): Update.
46905
46906 2008-10-19  Bruno Haible  <bruno@clisp.org>
46907
46908         New module 'atoll'.
46909         * modules/atoll: New file.
46910         * lib/stdlib.in.h (atoll): New declaration.
46911         * lib/atoll.c: New file, from glibc with modifications.
46912         * m4/atoll.m4: New file.
46913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46914         HAVE_ATOLL.
46915         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46916         * doc/posix-functions/atoll.texi: Mention the new module.
46917
46918 2008-10-19  Bruno Haible  <bruno@clisp.org>
46919
46920         Add strtoull() declaration to <stdlib.h>.
46921         * lib/stdlib.in.h (strtoull): New declaration.
46922         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46923         Set HAVE_STRTOULL.
46924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46925         HAVE_STRTOULL.
46926         * modules/strtoull (Depends-on): Add stdlib.
46927         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46928         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46929         HAVE_STRTOULL.
46930
46931 2008-10-19  Bruno Haible  <bruno@clisp.org>
46932
46933         Add strtoll() declaration to <stdlib.h>.
46934         * lib/stdlib.in.h (strtoll): New declaration.
46935         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46936         Set HAVE_STRTOLL.
46937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46938         HAVE_STRTOLL.
46939         * modules/strtoll (Depends-on): Add stdlib.
46940         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46941         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46942
46943 2008-10-19  Bruno Haible  <bruno@clisp.org>
46944
46945         * modules/bcopy (Depends-on): Add strings.
46946         (Include): Specify <strings.h>.
46947
46948 2008-10-19  Bruno Haible  <bruno@clisp.org>
46949
46950         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46951
46952 2008-10-19  Bruno Haible  <bruno@clisp.org>
46953
46954         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46955         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46956         mingw.
46957
46958 2008-10-19  Bruno Haible  <bruno@clisp.org>
46959
46960         * lib/atanl.c: Don't include isnanl.h.
46961         * lib/cosl.c: Likewise.
46962         * lib/ldexpl.c: Likewise.
46963         * lib/logl.c: Likewise.
46964         * lib/sinl.c: Likewise.
46965         * lib/sqrtl.c: Likewise.
46966         * lib/tanl.c: Likewise.
46967
46968         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46969         * lib/isnanf.h: Remove file.
46970         * lib/isnand.h: Remove file.
46971         * lib/isnanl.h: Remove file.
46972         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46973         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46974         macros.
46975         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46976         HAVE_ISNANF, don't define it as a C macro.
46977         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46978         HAVE_ISNAND, don't define it as a C macro.
46979         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46980         HAVE_ISNANL, don't define it as a C macro.
46981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46982         HAVE_ISNAN[FDL].
46983         * modules/isnanf (Files): Remove lib/isnanf.h.
46984         (Depends-on): Add math.
46985         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46986         (Include): Specify <math.h> instead of isnanf.h.
46987         * modules/isnand (Files): Remove lib/isnand.h.
46988         (Depends-on): Add math.
46989         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46990         (Include): Specify <math.h> instead of isnand.h.
46991         * modules/isnanl (Files): Remove lib/isnanl.h.
46992         (Depends-on): Add math.
46993         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46994         (Include): Specify <math.h> instead of isnanl.h.
46995         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46996         HAVE_ISNAN[FDL].
46997         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46998         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46999         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47000         * NEWS: Mention the change.
47001
47002 2008-10-18  Bruno Haible  <bruno@clisp.org>
47003
47004         Add getusershell(), setusershell(), endusershell() declarations to
47005         <unistd.h>.
47006         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47007         declarations.
47008         * lib/getusershell.c: Include unistd.h.
47009         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47010         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47011         HAVE_GETUSERSHELL.
47012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47013         and HAVE_GETUSERSHELL.
47014         * modules/getusershell (Depends-on): Add unistd, extensions.
47015         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47016         (Include): Specify <unistd.h>.
47017         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47018         HAVE_GETUSERSHELL.
47019
47020 2008-10-18  Bruno Haible  <bruno@clisp.org>
47021
47022         Add a getloadavg() declaration to <stdlib.h>.
47023         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47024         getloadavg declaration.
47025         (getloadavg): New declaration.
47026         * lib/getloadavg.c: Include <stdlib.h> first.
47027         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47028         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47029         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47031         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47032         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47033         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47034         (Include): Specify <stdlib.h>.
47035         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47036         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47037
47038 2008-10-18  Bruno Haible  <bruno@clisp.org>
47039
47040         * lib/dirchownmod.c: Don't include lchmod.h.
47041
47042         Move the lchmod() declaration to <sys/stat.h>.
47043         * lib/lchmod.h: Remove file.
47044         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47045         (lchmod): New declaration, moved here from lib/lchown.h.
47046         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47047         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47049         and HAVE_LCHMOD.
47050         * modules/lchmod (Files): Remove lib/lchmod.h.
47051         (Depends-on): Add sys_stat, extensions.
47052         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47053         (Include): Specify <sys/stat.h> instead of lchmod.h.
47054         * modules/sys_stat (Depends-on): Add link-warning.
47055         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47056         definition of GL_LINK_WARNING.
47057         * NEWS: Mention the change.
47058
47059 2008-10-18  Bruno Haible  <bruno@clisp.org>
47060
47061         * lib/fchdir.c: Don't include dirfd.h.
47062         * lib/fts.c: Likewise.
47063         * lib/getcwd.c: Likewise.
47064         * lib/glob.c: Likewise.
47065
47066         Move the dirfd() declaration to <dirent.h>.
47067         * lib/dirfd.h: Remove file.
47068         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47069         (dirfd): New declaration.
47070         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47071         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47072         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47073         HAVE_DECL_DIRFD.
47074         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47075         HAVE_DECL_DIRFD.
47076         * modules/dirfd (Files): Remove lib/dirfd.h.
47077         (Depends-on): Add dirent, extensions.
47078         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47079         (Include): Specify <dirent.h> instead of dirfd.h.
47080         * modules/dirent (Depends-on): Add link-warning.
47081         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47082         definition of GL_LINK_WARNING.
47083         * NEWS: Mention the change.
47084
47085 2008-10-18  Bruno Haible  <bruno@clisp.org>
47086
47087         Move the euidaccess() declaration to <unistd.h>.
47088         * lib/euidaccess.h: Remove file.
47089         * lib/unistd.in.h (euidaccess): New declaration.
47090         * lib/euidaccess.c: Don't include euidaccess.h.
47091         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47092         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47094         and HAVE_EUIDACCESS.
47095         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47096         (Depends-on): Add unistd.
47097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47098         (Include): Specify <unistd.h> instead of euidaccess.h.
47099         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47100         HAVE_EUIDACCESS.
47101         * NEWS: Mention the change.
47102
47103 2008-10-18  Bruno Haible  <bruno@clisp.org>
47104
47105         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47106
47107         Move the getdomainname() declaration to <unistd.h>.
47108         * lib/getdomainname.h: Remove file.
47109         * lib/unistd.in.h (getdomainname): New declaration.
47110         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47111         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47112         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47113         HAVE_GETDOMAINNAME.
47114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47115         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47116         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47117         (Depends-on): Add unistd, extensions.
47118         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47119         (Includes): Specify <unistd.h> instead of getdomainname.h.
47120         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47121         HAVE_GETDOMAINNAME.
47122         * NEWS: Mention the change.
47123
47124 2008-10-18  Bruno Haible  <bruno@clisp.org>
47125
47126         * modules/dirent: New file.
47127         * m4/dirent_h.m4: New file.
47128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47129         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47130         * modules/fchdir (Files): Remove lib/dirent.in.h.
47131         (Depends-on): Add dirent.
47132         (Makefile.am): Move rules to modules/dirent.
47133         * doc/posix-headers/dirent.texi: Mention the new module.
47134
47135 2008-10-18  Bruno Haible  <bruno@clisp.org>
47136
47137         Avoid -Wunused-parameter warnings in public gnulib header files.
47138         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47139         macro.
47140         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47141
47142 2008-10-18  Bruno Haible  <bruno@clisp.org>
47143
47144         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47145         * doc/glibc-functions/error.texi: Mention the module 'error'.
47146         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47147         * doc/glibc-functions/getdomainname.texi: Mention the module
47148         'getdomainname'.
47149         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47150         * doc/glibc-functions/getpagesize.texi: Mention the module
47151         'getpagesize'.
47152         * doc/glibc-functions/getusershell.texi: Mention the module
47153         'getusershell'.
47154         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47155         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47156         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47157         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47158         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47159         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47160         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47161         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47162         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47163         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47164         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47165         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47166         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47167         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47168
47169 2008-10-17  Bruno Haible  <bruno@clisp.org>
47170
47171         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47172         HP-UX and IRIX, use -0.0L.
47173         * tests/test-ceill.c (minus_zero): Likewise.
47174         * tests/test-floorl.c (minus_zero): Likewise.
47175         * tests/test-frexpl.c (minus_zero): Likewise.
47176         * tests/test-isnan.c (minus_zerol): Likewise.
47177         * tests/test-isnanl.h (minus_zero): Likewise.
47178         * tests/test-ldexpl.c (minus_zero): Likewise.
47179         * tests/test-roundl.c (minus_zero): Likewise.
47180         * tests/test-signbit.c (minus_zerol): Likewise.
47181         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47182         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47183         * tests/test-truncl.c (minus_zero): Likewise.
47184         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47185         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47186         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47187         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47188
47189 2008-10-17  Bruno Haible  <bruno@clisp.org>
47190
47191         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47192         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47193         that it gets activated only for gcc >= 3.0.
47194         * lib/dirent.in.h: Likewise.
47195         * lib/errno.in.h: Likewise.
47196         * lib/fcntl.in.h: Likewise.
47197         * lib/float.in.h: Likewise.
47198         * lib/iconv.in.h: Likewise.
47199         * lib/inttypes.in.h: Likewise.
47200         * lib/locale.in.h: Likewise.
47201         * lib/math.in.h: Likewise.
47202         * lib/netdb.in.h: Likewise.
47203         * lib/netinet_in.in.h: Likewise.
47204         * lib/search.in.h: Likewise.
47205         * lib/signal.in.h: Likewise.
47206         * lib/spawn.in.h: Likewise.
47207         * lib/stdarg.in.h: Likewise.
47208         * lib/stdint.in.h: Likewise.
47209         * lib/stdio.in.h: Likewise.
47210         * lib/stdlib.in.h: Likewise.
47211         * lib/string.in.h: Likewise.
47212         * lib/strings.in.h: Likewise.
47213         * lib/sys_file.in.h: Likewise.
47214         * lib/sys_ioctl.in.h: Likewise.
47215         * lib/sys_select.in.h: Likewise.
47216         * lib/sys_socket.in.h: Likewise.
47217         * lib/sys_stat.in.h: Likewise.
47218         * lib/sys_time.in.h: Likewise.
47219         * lib/sysexits.in.h: Likewise.
47220         * lib/time.in.h: Likewise.
47221         * lib/unistd.in.h: Likewise.
47222         * lib/wchar.in.h: Likewise.
47223         * lib/wctype.in.h: Likewise.
47224         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47225
47226 2008-10-17  Jim Meyering  <meyering@redhat.com>
47227
47228         ignore-value: don't depend on inline module
47229         * modules/ignore-value (Depends-on): Remove 'inline'.
47230         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47231         Suggestion from Bruno Haible.
47232
47233 2008-10-17  Bruno Haible  <bruno@clisp.org>
47234
47235         New implementation of condition variables for Win32.
47236         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
47237         (gl_linked_waitqueue_t): New type.
47238         (gl_cond_t): Use it.
47239         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
47240         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
47241         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
47242         (glthread_cond_init_func, glthread_cond_wait_func,
47243         glthread_cond_timedwait_func, glthread_cond_signal_func,
47244         glthread_cond_broadcast_func, glthread_cond_destroy_func):
47245         Reimplemented on the basis of gl_linked_waitqueue_t.
47246         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
47247         gl_waitqueue_t.
47248         (gl_rwlock_t): Update.
47249         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
47250
47251 2008-10-17  Simon Josefsson  <simon@josefsson.org>
47252
47253         * modules/recvfrom (Depends-on): Add dependency on getpeername.
47254         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47255
47256 2008-10-17  Jim Meyering  <meyering@redhat.com>
47257
47258         ignore-value: new module
47259         * modules/ignore-value: New file.
47260         * lib/ignore-value.h: New file.
47261         * MODULES.html.sh (Compiler warning management): New section,
47262         just for this module.  More to come.
47263
47264 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47265
47266         open-safer.c: avoid 'signed and unsigned in conditional...' warning
47267         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
47268         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
47269
47270 2008-10-16  Jim Meyering  <meyering@redhat.com>
47271
47272         openat-die.c: avoid 'no previous prototype' warning
47273         * lib/openat-die.c: Include "openat.h".
47274         Reported by Reuben Thomas <rrt@sc3d.org>.
47275
47276 2008-10-16  Simon Josefsson  <simon@josefsson.org>
47277
47278         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
47279         * lib/netdb.in.h: Fix typo.
47280         Reported by Bruno Haible  <bruno@clisp.org>
47281
47282         * lib/netdb.in.h: Include sys/socket.h for platforms without
47283         netdb.h, to get structures like hostent on MinGW.
47284         * modules/netdb (Depends-on): Add sys_socket.
47285
47286 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47287
47288         * modules/netdb, modules/netdb-tests: New file.
47289         * m4/netdb_h.m4: New file.
47290         * lib/netdb.in.h: Add, currently just an empty file pending
47291         definitions.
47292         * tests/test-netdb.c: New file.
47293         * doc/posix-headers/netdb.texi: Mention that we replace it if
47294         needed.
47295         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47296         netdb.
47297
47298 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47299
47300         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
47301         with code.
47302
47303 2008-10-13  Bruno Haible  <bruno@clisp.org>
47304
47305         * lib/glthread/cond.c (glthread_cond_wait_func,
47306         glthread_cond_timedwait_func): Add a comment.
47307
47308 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47309
47310         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
47311         * tests/test-select.c: Likewise,
47312
47313 2008-10-13  Bruno Haible  <bruno@clisp.org>
47314
47315         * lib/glthread/cond.c (glthread_cond_wait_func,
47316         glthread_cond_timedwait_func): Fix variable name.
47317         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47318
47319 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
47320
47321         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
47322         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
47323         struct sockaddr.sa_len.
47324         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
47325
47326 2008-10-13  Simon Josefsson  <simon@josefsson.org>
47327
47328         * build-aux/pmccabe2html: Add css and css_url parameters.
47329
47330 2008-10-12  Bruno Haible  <bruno@clisp.org>
47331
47332         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
47333         calling aclx_get.
47334         Reported by Rainer Tammer <tammer@tammer.net>.
47335
47336 2008-10-12  Bruno Haible  <bruno@clisp.org>
47337
47338         Use msvcrt aware primitives for creation/termination of Win32 threads.
47339         * lib/glthread/thread.c: Include <process.h>.
47340         (glthread_create_func): Use _beginthreadex instead of CreateThread.
47341         (wrapper_func): Update signature.
47342         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
47343
47344 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47345             Bruno Haible  <bruno@clisp.org>
47346
47347         Provide a Win32 implementation of the 'cond' module.
47348         * lib/glthread/cond.h [USE_WIN32]: New implementation.
47349         * lib/glthread/cond.c (glthread_cond_init_func,
47350         glthread_cond_wait_func, glthread_cond_timedwait_func,
47351         glthread_cond_signal_func, glthread_cond_broadcast_func,
47352         glthread_cond_destroy_func) [USE_WIN32]: New functions.
47353         * modules/cond (Dependencies): Add gettimeofday.
47354
47355 2008-10-11  Bruno Haible  <bruno@clisp.org>
47356
47357         Make sleep work on older versions of mingw.
47358         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
47359         only whether it exists.
47360         * doc/posix-functions/sleep.texi: Mention the problem with older
47361         versions of mingw.
47362
47363 2008-10-11  Bruno Haible  <bruno@clisp.org>
47364
47365         New module 'shutdown'.
47366         * modules/shutdown: New file.
47367         * lib/sys_socket.in.h (shutdown): New declaration.
47368         * lib/winsock.c (shutdown): New function.
47369         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47370         GNULIB_SHUTDOWN.
47371         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47372         * doc/posix-functions/shutdown.texi: Document the new module.
47373
47374 2008-10-11  Jim Meyering  <meyering@redhat.com>
47375
47376         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47377
47378 2008-10-11  Bruno Haible  <bruno@clisp.org>
47379
47380         New module 'fclose'.
47381         * modules/fclose: New file.
47382         * lib/stdio.in.h (fclose): New declaration.
47383         * lib/fclose.c: New file.
47384         * m4/fclose.m4: New file.
47385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
47386         REPLACE_FCLOSE.
47387         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
47388         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47389         REPLACE_FCLOSE.
47390         * modules/close (Depends-on): fclose.
47391         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47392
47393 2008-10-11  Bruno Haible  <bruno@clisp.org>
47394
47395         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47396         set errno and don't call _close.
47397
47398 2008-10-10  Bruno Haible  <bruno@clisp.org>
47399
47400         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47401         ACL, not afterwards. Fixes test failure on Cygwin.
47402
47403 2008-10-09  Ben Pfaff  <blp@gnu.org>
47404
47405         * build-aux/announce-gen: Fix gnulib version related part of usage
47406         message.  Die with a useful error message if no tarballs are
47407         found.
47408
47409 2008-10-10  Jim Meyering  <meyering@redhat.com>
47410
47411         bootstrap: use git's --depth=N option only if it's supported
47412         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47413         recognize the --depth option.  Reported by Pádraig Brady.
47414
47415 2008-10-09  Bruno Haible  <bruno@clisp.org>
47416
47417         New module 'ioctl'.
47418         * modules/ioctl: New file.
47419         * lib/sys_socket.in.h (ioctl): Remove declaration.
47420         * lib/winsock.c: Include <sys/ioctl.h>.
47421         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47422         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47423         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47424         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47425         * doc/posix-functions/ioctl.texi: Mention the new module.
47426
47427 2008-10-09  Bruno Haible  <bruno@clisp.org>
47428
47429         New module 'sys_ioctl'.
47430         * lib/sys_ioctl.in.h: New file.
47431         * m4/sys_ioctl_h.m4: New file.
47432         * modules/sys_ioctl: New file.
47433         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47434
47435 2008-10-09  Bruno Haible  <bruno@clisp.org>
47436
47437         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47438         * lib/winsock.c: Include <stdarg.h>.
47439         (rpl_ioctl): Change to second argument 'int' and then varargs.
47440
47441 2008-10-09  Bruno Haible  <bruno@clisp.org>
47442
47443         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47444         when the sys_socket module is present and the system has <winsock2.h>.
47445
47446 2008-10-09  Bruno Haible  <bruno@clisp.org>
47447
47448         * doc/posix-functions/close.texi: Mention module 'close' instead of
47449         module 'sys_socket'.
47450
47451 2008-10-09  Bruno Haible  <bruno@clisp.org>
47452
47453         * doc/glibc-headers/sys_ioctl.texi: New file.
47454         * doc/gnulib.texi: Include it.
47455
47456 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47457             Bruno Haible  <bruno@clisp.org>
47458
47459         Combine the two replacements of 'close'.
47460         * lib/sys_socket.in.h (close): Define to a reminder to include
47461         <unistd.h>.
47462         (_gl_close_fd_maybe_socket): New declaration.
47463         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47464         * lib/winsock.c (close): Remove undefinition.
47465         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47466         needed for the gnulib module 'close'.
47467         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47468         define to an error symbol or to a warning, if suitable.
47469         * lib/close.c: Include <sys/socket.h>.
47470         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47471         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47472         UNISTD_H_HAVE_WINSOCK2_H.
47473         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47475         UNISTD_H_HAVE_WINSOCK2_H.
47476         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47477         (configure.ac): Set a module indicator.
47478         (Makefile.am): Substitute GNULIB_CLOSE.
47479         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47480         * modules/poll-tests (Depends-on): Add close.
47481         * modules/select-tests (Depends-on): Likewise.
47482
47483 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47484             Bruno Haible  <bruno@clisp.org>
47485
47486         New module 'close'.
47487         * modules/close: New file.
47488         * lib/unistd.in.h (close): Move declaration out of the
47489         FCHDIR_REPLACEMENT scope.
47490         (_gl_unregister_fd): New declaration.
47491         * lib/close.c: New file.
47492         * lib/fchdir.c (rpl_close): Remove function.
47493         * m4/close.m4: New file.
47494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47495         close.
47496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47497         REPLACE_CLOSE.
47498         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47499         REPLACE_CLOSE.
47500         * modules/fchdir (Depends-on): Add close.
47501
47502 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47503             Bruno Haible  <bruno@clisp.org>
47504
47505         * lib/fcntl.in.h (open): Simplify conditionals.
47506         (_gl_register_fd): New declaration.
47507         * lib/fchdir.c (rpl_open): Remove function.
47508         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47509         also.
47510         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47511         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47512         open.
47513
47514 2008-10-09  Jim Meyering  <meyering@redhat.com>
47515
47516         GNUmakefile: use the more name-space-friendly "_version"
47517         * top/GNUmakefile (_dummy): Update.
47518         (_version): Rename from "version".
47519
47520 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47521             Bruno Haible  <bruno@clisp.org>
47522
47523         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47524         rpl_close.
47525         (_gl_register_fd): New function, extracted from rpl_open.
47526         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47527         (rpl_open, rpl_opendir): Use _gl_register_fd.
47528
47529 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47530
47531         Fix organization of 'open' replacement.
47532         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47533         (gl_FUNC_OPEN): Use it.
47534         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47535
47536 2008-10-08  Bruno Haible  <bruno@clisp.org>
47537
47538         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47539
47540 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47541
47542         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47543         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47544         listen).
47545
47546 2008-10-08  Eric Blake  <ebb9@byu.net>
47547
47548         GNUmakefile: add 'make version' target
47549         * top/GNUmakefile (_curr-ver): Split version update rules...
47550         (version): ...into a target.
47551
47552 2008-10-07  Bruno Haible  <bruno@clisp.org>
47553
47554         Use a more portable replacement expression for -0.0L.
47555         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47556         instead of -0.0L. Fix m4 quotation.
47557
47558         * tests/test-signbit.c: Include <float.h>.
47559         (minus_zero): New variable.
47560         (test_signbitl): Use minus_zero instead of -zero.
47561         * modules/signbit-tests (Depends-on): Add float.
47562
47563         * tests/test-ceill.c: Include <float.h>.
47564         (zero): Remove variable.
47565         (minus_zero): New variable.
47566         (main): Use minus_zero instead of -zero.
47567         * modules/ceill-tests (Depends-on): Add float.
47568
47569         * tests/test-floorl.c: Include <float.h>.
47570         (zero): Remove variable.
47571         (minus_zero): New variable.
47572         (main): Use minus_zero instead of -zero.
47573         * modules/floorl-tests (Depends-on): Add float.
47574
47575         * tests/test-roundl.c: Include <float.h>.
47576         (zero): Remove variable.
47577         (minus_zero): New variable.
47578         (main): Use minus_zero instead of -zero.
47579         * modules/roundl-tests (Depends-on): Add float.
47580
47581         * tests/test-truncl.c: Include <float.h>.
47582         (zero): Remove variable.
47583         (minus_zero): New variable.
47584         (main): Use minus_zero instead of -zero.
47585         * modules/truncl-tests (Depends-on): Add float.
47586
47587         * tests/test-frexpl.c (zero): Remove variable.
47588         (minus_zero): New variable.
47589         (main): Use minus_zero instead of -zero.
47590         * modules/frexpl-tests (Depends-on): Add float.
47591
47592         * tests/test-isnan.c (zerol): Remove variable.
47593         (minus_zerol): New variable.
47594         (test_long_double): Use minus_zerol instead of -zerol.
47595         * modules/isnan-tests (Depends-on): Add float.
47596
47597         * tests/test-isnanl.h (zero): Remove variable.
47598         (minus_zero): New variable.
47599         (main): Use minus_zero instead of -zero.
47600         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47601         * modules/isnanl-tests (Depends-on): Add float.
47602
47603         * tests/test-ldexpl.c (zero): Remove variable.
47604         (minus_zero): New variable.
47605         (main): Use minus_zero instead of -zero.
47606         * modules/ldexpl-tests (Depends-on): Add float.
47607
47608         * tests/test-snprintf-posix.h (zerol): Remove variable.
47609         (minus_zerol): New variable.
47610         (test_function): Use minus_zerol instead of -zerol.
47611         * modules/snprintf-posix-tests (Depends-on): Add float.
47612         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47613
47614         * tests/test-sprintf-posix.h (zerol): Remove variable.
47615         (minus_zerol): New variable.
47616         (test_function): Use minus_zerol instead of -zerol.
47617         * modules/sprintf-posix-tests (Depends-on): Add float.
47618         * modules/vsprintf-posix-tests (Depends-on): Add float.
47619
47620         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47621         (minus_zerol): New variable.
47622         (test_function): Use minus_zerol instead of -zerol.
47623         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47624
47625         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47626         (minus_zerol): New variable.
47627         (test_function): Use minus_zerol instead of -zerol.
47628         * modules/vasprintf-posix-tests (Depends-on): Add float.
47629
47630 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47631
47632         * MODULES.html.sh (Support for building documentation): Mention
47633         pmccabe2html.  Sort entries.
47634
47635         Add pmccabe2html module, from gnupdf.
47636         * build-aux/pmccabe.css: New file.
47637         * build-aux/pmccabe2html: New file.
47638         * m4/pmccabe2html.m4: New file.
47639         * modules/pmccabe2html: New file.
47640
47641 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47642
47643         flock: new module
47644         * MODULES.html.sh: Add to list of modules.
47645         * lib/flock.c: flock implementation for Windows and Unix systems
47646         which have fcntl.
47647         * doc/glibc-functions/flock.texi: Update documentation.
47648         * lib/sys_file.in.h: <sys/file.h> header file.
47649         * m4/flock.m4: M4 macros.
47650         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47651         * modules/flock: flock module.
47652         * modules/flock-tests: flock tests module.
47653         * modules/sys_file: sys/file.h module.
47654         * tests/test-flock.c: test suite for flock.
47655
47656 2008-10-06  Jim Meyering  <meyering@redhat.com>
47657
47658         bootstrap: check for LT_INIT more portably still ;-)
47659         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47660         Spotted by Bruno Haible.
47661
47662 2008-10-06  Eric Blake  <ebb9@byu.net>
47663
47664         test-signbit: avoid tripping Irix cc bug on -0.0L
47665         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47666         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47667         entire testsuite consistent and avoids an Irix 6.2 bug.
47668
47669 2008-10-05  Bruno Haible  <bruno@clisp.org>
47670             Jim Meyering  <jim@meyering.net>
47671
47672         Add an option for ignoring EPIPE during close_stdout.
47673         * lib/closeout.h: Include <stdbool.h>.
47674         (close_stdout_set_ignore_EPIPE): New declaration.
47675         * lib/closeout.c: Include <stdbool.h>.
47676         (ignore_EPIPE): New variable.
47677         (close_stdout_set_ignore_EPIPE): New function.
47678         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47679         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47680         failure.
47681         * modules/closeout (Depends-on): Add stdbool.
47682
47683 2008-10-05  Bruno Haible  <bruno@clisp.org>
47684
47685         * modules/accept: New file.
47686         * modules/bind: New file.
47687         * modules/connect: New file.
47688         * modules/getpeername: New file.
47689         * modules/getsockname: New file.
47690         * modules/getsockopt: New file.
47691         * modules/listen: New file.
47692         * modules/recv: New file.
47693         * modules/recvfrom: New file.
47694         * modules/send: New file.
47695         * modules/sendto: New file.
47696         * modules/setsockopt: New file.
47697         * modules/socket: New file.
47698         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47699         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47700         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47701         the particular module is requested. Add a link warning when the
47702         particular module is not requested.
47703         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47704         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47705         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47706         the particular module is requested.
47707         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47708         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47709         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47710         * modules/sys_socket (Depends-on): Add link-warning.
47711         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47712         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47713         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47714         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47715         GL_LINK_WARNING.
47716         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47717         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47718         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47719         * doc/posix-functions/getpeername.texi: Mention the new module
47720         'getpeername'.
47721         * doc/posix-functions/getsockname.texi: Mention the new module
47722         'getsockname'.
47723         * doc/posix-functions/getsockopt.texi: Mention the new module
47724         'getsockopt'.
47725         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47726         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47727         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47728         * doc/posix-functions/send.texi: Mention the new module 'send'.
47729         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47730         * doc/posix-functions/setsockopt.texi: Mention the new module
47731         'setsockopt'.
47732         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47733         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47734         listen, connect, accept.
47735         * modules/select-tests (Depends-on): Likewise.
47736
47737 2008-10-05  Bruno Haible  <bruno@clisp.org>
47738
47739         * lib/winsock.c (strerror): Remove unused #undef.
47740         (rpl_close): Remove unused local variable.
47741
47742         * modules/sys_socket (Depends-on); Add errno.
47743
47744 2008-10-05  Bruno Haible  <bruno@clisp.org>
47745
47746         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47747         (select): Add a link warning when the 'select' module is not used.
47748         * modules/sys_select (Depends-on): Add link-warning.
47749         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47750         Suggested by Paolo Bonzini.
47751
47752 2008-10-05  Jim Meyering  <meyering@redhat.com>
47753
47754         bootstrap: check for LT_INIT more portably
47755         * build-aux/bootstrap: Avoid using grep -E, since it's not
47756         portable enough.  Suggestion from Bruno Haible.
47757
47758 2008-10-05  Bruno Haible  <bruno@clisp.org>
47759
47760         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47761         as being fixed by gnulib.
47762
47763 2008-10-05  Bruno Haible  <bruno@clisp.org>
47764
47765         * modules/select-tests: New file, mostly copied from
47766         modules/sys_select-tests.
47767         * tests/test-select.c: New file, mostly copied from
47768         tests/test-sys_select.c.
47769         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47770         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47771         (Makefile.am): Remove test_sys_select_LDADD.
47772
47773         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47774         to an undefined symbol, for an error message.
47775         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47776         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47777         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47778         winsock-select.c here.
47779         * modules/sys_select (Files): Remove lib/winsock-select.c.
47780         (Depends-on): Remove alloca.
47781         (Makefile.am): Substitute GNULIB_SELECT.
47782         * modules/select: New file.
47783         * doc/posix-functions/select.texi: Update.
47784
47785 2008-10-05  Bruno Haible  <bruno@clisp.org>
47786
47787         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47788         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47789         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47790         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47791         getdtablesize.
47792         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47793         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47794
47795 2008-10-05  Bruno Haible  <bruno@clisp.org>
47796
47797         * modules/getdtablesize-tests: New file.
47798         * tests/test-getdtablesize.c: New file.
47799
47800         New module 'getdtablesize'.
47801         * lib/unistd.in.h (getdtablesize): New declaration.
47802         * lib/getdtablesize.c: New file.
47803         * m4/getdtablesize.m4: New file.
47804         * modules/getdtablesize: New file.
47805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47806         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47807         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47808         HAVE_GETDTABLESIZE.
47809         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47810
47811 2008-10-05  Bruno Haible  <bruno@clisp.org>
47812
47813         * modules/sched (Makefile.am): Fix typo.
47814         Reported by Simon Josefsson.
47815
47816 2008-10-05  Jim Meyering  <meyering@redhat.com>
47817
47818         bootstrap: check for LT_INIT, too
47819         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47820         are deprecated.  Suggestion from Ralf Wildenhues.
47821
47822 2008-10-05  Bruno Haible  <bruno@clisp.org>
47823
47824         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47825         overriding them by ours.
47826         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47827
47828 2008-10-05  Jim Meyering  <meyering@redhat.com>
47829
47830         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47831         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47832         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47833
47834 2008-10-04  Bruno Haible  <bruno@clisp.org>
47835
47836         * modules/dup2 (License): Change to LGPLv2+.
47837         * modules/sleep (License): Likewise.
47838         * modules/perror (License): Likewise.
47839         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47840         Blake.
47841         * modules/signal (License): Likewise.
47842         * modules/sigprocmask (License): Likewise.
47843         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47844         Meyering.
47845
47846 2008-10-04  Bruno Haible  <bruno@clisp.org>
47847
47848         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47849         Reported by Rainer Tammer <tammer@tammer.net>.
47850
47851 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47852             Bruno Haible  <bruno@clisp.org>
47853
47854         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47855         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47856         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47857
47858 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47859
47860         filevercmp: new module
47861         * lib/filevercmp.h: New function filevercmp comparing version strings.
47862         * lib/filevercmp.c: Implementation of filevercmp function.
47863         * modules/filevercmp: Module metadata.
47864         * tests/test-filevercmp.c: Unit test for new module.
47865         * modules/filevercmp-tests: Unit test metadata.
47866         * MODULES.html.sh: Add filevercmp module.
47867
47868 2008-10-03  Bruno Haible  <bruno@clisp.org>
47869
47870         * lib/c-ctype.h: Add comment.
47871         Reported by Jim Meyering.
47872
47873 2008-10-02  Bruno Haible  <bruno@clisp.org>
47874
47875         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47876
47877 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47878
47879         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47880         name of bootstrap.conf accordingly.
47881
47882 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47883
47884         * build-aux/bootstrap: Install git-merge-changelog configuration
47885         items into .gitconfig if needed.
47886
47887 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47888
47889         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47890         git repository, and initialize/update it accordingly.
47891
47892 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47893
47894         * modules/fsync-tests: New file.
47895         * tests/test-fsync.c: New file.
47896
47897         New module 'fsync'.
47898         * lib/fsync.c: New file.
47899         * m4/fsync.m4: New file.
47900         * modules/fsync: New file.
47901         * lib/unistd.in.h (fsync): New declaration.
47902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47903         GNULIB_FSYNC and HAVE_FSYNC.
47904         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47905         * MODULES.html.sh (posix_functions): Add fsync.
47906         * doc/posix-functions/fsync.texi: Mention the new module.
47907
47908 2008-10-02  Jim Meyering  <meyering@redhat.com>
47909
47910         fts.c: sync with similar code from coreutils' remove.c
47911         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47912         Guard also with "#if defined __linux__", since for now at least,
47913         this code is Linux-kernel-specific.
47914
47915 2008-10-02  Jim Meyering  <meyering@redhat.com>
47916
47917         fts: bug fixes
47918         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47919         Include <sys/vfs.h>, not <sys/statfs.h>.
47920
47921         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47922         Include <sys/vfs.h>, not <sys/statfs.h>.
47923
47924 2008-10-01  Bruno Haible  <bruno@clisp.org>
47925
47926         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47927         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47928         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47929         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47930         * doc/posix-functions/posix_spawnp.texi: Likewise.
47931         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47932         whether posix_spawn actually works.
47933         * m4/pipe.m4 (gl_PIPE): Likewise.
47934         * modules/execute (Files): Add m4/posix_spawn.m4.
47935         * modules/pipe (Files): Add m4/posix_spawn.m4.
47936         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47937
47938 2008-10-01  Jim Meyering  <meyering@redhat.com>
47939
47940         remove trailing spaces
47941         * NEWS: Likewise.
47942         * lib/poll.c (poll): Likewise.
47943         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47944         * lib/winsock.c (rpl_close): Likewise.
47945         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47946         * modules/yield: Likewise.
47947         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47948         * tests/test-sys_select.c (connect_to_socket): Likewise.
47949
47950         fts.c: adjust a new interface to be more generally useful
47951         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47952         (fts_build): Adjust caller.
47953
47954 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47955
47956         * modules/cond-tests: New file.
47957         * tests/test-cond.c: New file.
47958
47959 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47960             Bruno Haible  <bruno@clisp.org>
47961
47962         * modules/cond (Dependencies): Add errno, time.
47963         * lib/glthread/cond.h: Include <time.h>.
47964         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47965         across platforms.
47966
47967 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47968             Bruno Haible  <bruno@clisp.org>
47969
47970         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47971
47972 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47973             Bruno Haible  <bruno@clisp.org>
47974
47975         * modules/tls-tests (Depends-on): Add thread, yield.
47976         (configure.ac): Remove all checks.
47977         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47978         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47979         gl_thread_self): Remove definitions. Include glthread/thread.h and
47980         glthread/yield.h instead.
47981         (test_tls): Pass an additional NULL argument to gl_thread_join.
47982
47983 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47984             Bruno Haible  <bruno@clisp.org>
47985
47986         * modules/lock-tests (Depends-on): Add thread, yield.
47987         (configure.ac): Remove all checks.
47988         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47989         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47990         gl_thread_self): Remove definitions. Include glthread/thread.h and
47991         glthread/yield.h instead.
47992         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47993         additional NULL argument to gl_thread_join.
47994
47995 2008-09-30  Bruno Haible  <bruno@clisp.org>
47996
47997         Fix the Win32 implementation of the 'thread' module.
47998         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47999         pointer type.
48000         (gl_thread_self): Invoke gl_thread_self_func.
48001         (gl_thread_self_func): New declaration.
48002         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48003         (do_init_self_key, init_self_key): New functions.
48004         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48005         Remove some fields.
48006         (running_threads, running_lock): Remove variables.
48007         (get_current_thread_handle): New function.
48008         (gl_thread_self_func, wrapper_func, glthread_create_func,
48009         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48010         simplified.
48011
48012 2008-09-30  Bruno Haible  <bruno@clisp.org>
48013
48014         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48015         files.
48016
48017 2008-09-30  Jim Meyering  <meyering@redhat.com>
48018
48019         fts.m4: correct the test for statfs.f_type
48020         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48021         when checking for statfs.f_type.
48022
48023 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48024
48025         tests: avoid some compiler warnings
48026         * tests/test-memchr.c (main): Pass NULL indirectly.
48027         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48028
48029 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
48030
48031         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48032         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48033         exactly specified dayshifts.
48034         (dayshift): New rule.
48035         (rel): Add dayshift.
48036         (relative_time_table) [tomorrow, yesterday, today, now]:
48037         Use tDAY_SHIFT in place of tDAY_UNIT.
48038         * tests/test-getdate.c: Add tests for now-disallowed countable
48039         dayshifts, e.g., "4 yesterday ago".
48040
48041 2008-09-29  Bruno Haible  <bruno@clisp.org>
48042
48043         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48044         * tests/test-posix_spawn1.in.sh: Renamed from
48045         tests/test-posix_spawn.in.sh.
48046         * tests/test-posix_spawn2.c: New file.
48047         * tests/test-posix_spawn2.in.sh: New file.
48048         * modules/posix_spawnp-tests (Files): Update.
48049         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48050
48051 2008-09-29  Bruno Haible  <bruno@clisp.org>
48052
48053         Propagate effects of putenv/setenv/unsetenv to child processes.
48054         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48055         * lib/pipe.c (create_pipe): Likewise.
48056
48057 2008-09-29  Bruno Haible  <bruno@clisp.org>
48058
48059         Enable use of shell scripts as executables in mingw.
48060         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48061         run the program as a shell script.
48062         * lib/pipe.c (create_pipe): Likewise.
48063         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48064         resulting array.
48065
48066 2008-09-29  Eric Blake  <ebb9@byu.net>
48067
48068         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48069
48070 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48071
48072         * doc/posix-functions/accept.texi: Update mingw problems.
48073         * doc/posix-functions/bind.texi: Update mingw problems.
48074         * doc/posix-functions/close.texi: Update mingw problems.
48075         * doc/posix-functions/connect.texi: Update mingw problems.
48076         * doc/posix-functions/getpeername.texi: Update mingw problems.
48077         * doc/posix-functions/getsockname.texi: Update mingw problems.
48078         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48079         * doc/posix-functions/ioctl.texi: Update mingw problems.
48080         * doc/posix-functions/listen.texi: Update mingw problems.
48081         * doc/posix-functions/recv.texi: Update mingw problems.
48082         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48083         * doc/posix-functions/select.texi: Update mingw problems.
48084         * doc/posix-functions/send.texi: Update mingw problems.
48085         * doc/posix-functions/sendto.texi: Update mingw problems.
48086         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48087         * doc/posix-functions/socket.texi: Update mingw problems.
48088
48089 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48090             Bruno Haible  <bruno@clisp.org>
48091
48092         * lib/sys_select.in.h: Include sys/time.h.
48093         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48094         * modules/sys_select: Depend on sys_time.
48095         * tests/test-sys_select.c: Test that sys/select.h defines struct
48096         timeval fully.
48097
48098 2008-09-29  Bruno Haible  <bruno@clisp.org>
48099
48100         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48101         * lib/sys_select.in.h: Likewise.
48102
48103 2008-09-29  Bruno Haible  <bruno@clisp.org>
48104
48105         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48106
48107 2008-09-29  Bruno Haible  <bruno@clisp.org>
48108
48109         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48110         Set LIBSOCKET instead of augmenting LIBS.
48111         * modules/sockets (Link): New section.
48112         * modules/sockets-tests (test_sockets_LDADD): New variable.
48113         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48114         * modules/poll-tests (test_poll_LDADD): New variable.
48115         * NEWS: Document the change.
48116
48117 2008-09-29  Bruno Haible  <bruno@clisp.org>
48118
48119         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48120         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48121         ARPA_INET_H directly.
48122         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48123
48124 2008-09-28  Bruno Haible  <bruno@clisp.org>
48125
48126         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48127         from gl_HEADER_SYS_SOCKET.
48128         (gl_HEADER_SYS_SOCKET): Invoke it.
48129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48130
48131 2008-09-28  Bruno Haible  <bruno@clisp.org>
48132
48133         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48134         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48135         Needed on OSF/1 4.0.
48136
48137 2008-09-28  Bruno Haible  <bruno@clisp.org>
48138
48139         Override open more carefully.
48140         * lib/open.c (orig_open): New function.
48141         (rpl_open): Use orig_open instead of open.
48142         * lib/fcntl.in.h: Add special invocation convention.
48143         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48144         (gl_FUNC_OPEN): Invoke it.
48145
48146         Override freopen more carefully.
48147         * lib/freopen.c (orig_freopen): New function.
48148         (rpl_freopen): Use orig_freopen instead of freopen.
48149         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48150         (gl_FUNC_FREOPEN): Invoke it.
48151
48152         Override fopen more carefully.
48153         * lib/fopen.c (orig_fopen): New function.
48154         (rpl_fopen): Use orig_fopen instead of fopen.
48155         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48156         (gl_FUNC_FOPEN): Invoke it.
48157         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48158
48159 2008-09-28  Bruno Haible  <bruno@clisp.org>
48160
48161         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48162         SIGPIPE.
48163
48164 2008-09-28  Bruno Haible  <bruno@clisp.org>
48165
48166         * tests/test-sigaction.c (handler, main): Disable the check whether
48167         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48168         glibc systems with LinuxThreads.
48169
48170 2008-09-28  Bruno Haible  <bruno@clisp.org>
48171
48172         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48173
48174         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48175         with AIX xlc.
48176         * lib/fcntl.in.h (open): Likewise.
48177         Reported by Rainer Tammer <tammer@tammer.net>.
48178
48179 2008-09-28  Bruno Haible  <bruno@clisp.org>
48180
48181         * modules/posix_spawnp-tests: New file.
48182         * tests/test-posix_spawn.c: New file.
48183         * tests/test-posix_spawn.in.sh: New file.
48184
48185         New module 'posix_spawnp'.
48186         * modules/posix_spawnp: New file.
48187         * lib/spawnp.c: New file, from GNU libc with modifications.
48188         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48189
48190         New module 'posix_spawn'.
48191         * modules/posix_spawn: New file.
48192         * lib/spawn.c: New file, from GNU libc with modifications.
48193         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48194
48195         New module 'posix_spawnattr_destroy'.
48196         * modules/posix_spawnattr_destroy: New file.
48197         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48198         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48199         module.
48200
48201         New module 'posix_spawnattr_setsigmask'.
48202         * modules/posix_spawnattr_setsigmask: New file.
48203         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48204         modifications.
48205         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48206         new module.
48207
48208         New module 'posix_spawnattr_getsigmask'.
48209         * modules/posix_spawnattr_getsigmask: New file.
48210         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48211         modifications.
48212         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48213         new module.
48214
48215         New module 'posix_spawnattr_setsigdefault'.
48216         * modules/posix_spawnattr_setsigdefault: New file.
48217         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48218         modifications.
48219         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48220         new module.
48221
48222         New module 'posix_spawnattr_getsigdefault'.
48223         * modules/posix_spawnattr_getsigdefault: New file.
48224         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48225         modifications.
48226         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48227         new module.
48228
48229         New module 'posix_spawnattr_setschedpolicy'.
48230         * modules/posix_spawnattr_setschedpolicy: New file.
48231         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48232         modifications.
48233         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48234         new module.
48235
48236         New module 'posix_spawnattr_getschedpolicy'.
48237         * modules/posix_spawnattr_getschedpolicy: New file.
48238         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
48239         modifications.
48240         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
48241         new module.
48242
48243         New module 'posix_spawnattr_setschedparam'.
48244         * modules/posix_spawnattr_setschedparam: New file.
48245         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
48246         modifications.
48247         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
48248         new module.
48249
48250         New module 'posix_spawnattr_getschedparam'.
48251         * modules/posix_spawnattr_getschedparam: New file.
48252         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
48253         modifications.
48254         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
48255         new module.
48256
48257         New module 'posix_spawnattr_setpgroup'.
48258         * modules/posix_spawnattr_setpgroup: New file.
48259         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
48260         modifications.
48261         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
48262         module.
48263
48264         New module 'posix_spawnattr_getpgroup'.
48265         * modules/posix_spawnattr_getpgroup: New file.
48266         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
48267         modifications.
48268         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
48269         module.
48270
48271         New module 'posix_spawnattr_setflags'.
48272         * modules/posix_spawnattr_setflags: New file.
48273         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
48274         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
48275         module.
48276
48277         New module 'posix_spawnattr_getflags'.
48278         * modules/posix_spawnattr_getflags: New file.
48279         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
48280         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
48281         module.
48282
48283         New module 'posix_spawnattr_init'.
48284         * modules/posix_spawnattr_init: New file.
48285         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
48286         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
48287         module.
48288
48289         New module 'posix_spawn_file_actions_destroy'.
48290         * modules/posix_spawn_file_actions_destroy: New file.
48291         * lib/spawn_faction_destroy.c: New file, from GNU libc with
48292         modifications.
48293         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
48294         the new module.
48295
48296         New module 'posix_spawn_file_actions_addopen'.
48297         * modules/posix_spawn_file_actions_addopen: New file.
48298         * lib/spawn_faction_addopen.c: New file, from GNU libc with
48299         modifications.
48300         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
48301         the new module.
48302
48303         New module 'posix_spawn_file_actions_adddup2'.
48304         * modules/posix_spawn_file_actions_adddup2: New file.
48305         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
48306         modifications.
48307         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
48308         the new module.
48309
48310         New module 'posix_spawn_file_actions_addclose'.
48311         * modules/posix_spawn_file_actions_addclose: New file.
48312         * lib/spawn_faction_addclose.c: New file, from GNU libc with
48313         modifications.
48314         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
48315         the new module.
48316
48317         New module 'posix_spawn_file_actions_init'.
48318         * modules/posix_spawn_file_actions_init: New file.
48319         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
48320         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
48321         new module.
48322
48323         New module 'posix_spawn-internal'.
48324         * modules/posix_spawn-internal: New file.
48325         * lib/spawn_int.h: New file, from GNU libc with modifications.
48326         * lib/spawni.c: New file, from GNU libc with modifications.
48327         * m4/posix_spawn.m4: New file.
48328
48329         New module 'spawn'.
48330         * modules/spawn: New file.
48331         * lib/spawn.in.h: New file, from GNU libc with modifications.
48332         * m4/spawn_h.m4: New file.
48333         * doc/posix-headers/spawn.texi: Mention the new module.
48334
48335 2008-09-28  Bruno Haible  <bruno@clisp.org>
48336
48337         * modules/sched-tests: New file.
48338         * tests/test-sched.c: New file.
48339
48340         New module 'sched'.
48341         * modules/sched: New file.
48342         * lib/sched.in.h: New file.
48343         * m4/sched_h.m4: New file.
48344         * doc/posix-headers/sched.texi: Mention the new module.
48345
48346 2008-09-27  Eric Blake  <ebb9@byu.net>
48347
48348         Fix previous patch, and tweak references to $0.
48349         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
48350         (func_version, func_gnulib_dir): Don't call this program
48351         gnulib-tool.
48352         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
48353         with using $0 in function.
48354         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
48355         (func_fatal_error): Reuse the name the user invoked us with.
48356
48357 2008-09-27  Bruno Haible  <bruno@clisp.org>
48358
48359         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
48360         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
48361         (gl_ICONV_H): Not here.
48362         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48363         instead of assigning ICONV_H directly.
48364
48365         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
48366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48367         WCHAR_H directly.
48368
48369 2008-09-27  Bruno Haible  <bruno@clisp.org>
48370
48371         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48372         * modules/arpa_inet (Depends-on): Add link-warning.
48373         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48374         * modules/unistd (Makefile.am): Likewise.
48375
48376 2008-09-26  Bruno Haible  <bruno@clisp.org>
48377
48378         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48379         variables.
48380         (func_version): Essentially copied from gnulib-tool.
48381         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48382         func_readlink): Copied from gnulib-tool.
48383
48384 2008-09-26  Bruno Haible  <bruno@clisp.org>
48385
48386         * gnulib-tool (func_version): Change directory to $gnulib_dir before
48387         invoking git-version-gen.
48388
48389 2008-09-26  Bruno Haible  <bruno@clisp.org>
48390
48391         * posix-modules: Update to directory names changed on 2008-01-19.
48392         Remove commas in output before splitting into words. No more need to
48393         avoid 'ftruncate' since 2007-02-19.
48394
48395 2008-09-26  Bruno Haible  <bruno@clisp.org>
48396
48397         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48398
48399 2008-09-26  Bruno Haible  <bruno@clisp.org>
48400
48401         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48402         * modules/fwriteerror (Depends-on): Add errno.
48403
48404 2008-09-26  Bruno Haible  <bruno@clisp.org>
48405
48406         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48407         * tests/test-vc-list-files-cvs.sh: Likewise.
48408
48409 2008-09-26  Bruno Haible  <bruno@clisp.org>
48410
48411         * doc/posix-headers/sys_resource.texi: Reorder items.
48412
48413 2008-09-26  Jim Meyering  <meyering@redhat.com>
48414
48415         fts: tweak inode comparison function
48416         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48417         inode numbers, as documented.
48418
48419         fts: sort dirent entries on inode number before traversing
48420         This avoids a quadratic, seek-related performance penalty when
48421         operating on a directory containing many entries (measurable at 10k;
48422         3.5 hours at 2 million entries with a cold cache) on certain types
48423         of file systems, including ext3 and ext4, but not tmpfs.
48424         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48425         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48426         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48427         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48428         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48429         (fts_build): Set the stat.st_ino member from D_INO.
48430         If it is likely to be useful, sort dirent entries on inode number.
48431
48432         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48433         and the struct statfs.f_type member.
48434         * modules/fts (Depends-on): Add d-ino.
48435
48436 2008-09-26  Bruno Haible  <bruno@clisp.org>
48437
48438         * modules/sigpipe-die (Depends-on): Add sigpipe.
48439
48440         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48441         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48442         and GNULIB_STDIO_H_SIGPIPE are set.
48443         * lib/stdio-write.c: New file.
48444         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48445         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48446         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48447         REPLACE_STDIO_WRITE_FUNCS.
48448         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48449         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48450         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48451         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48452         * modules/stdio (Files): Add lib/stdio-write.c.
48453         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48454         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48455         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48456         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48457         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48458         REPLACE_FPRINTF_POSIX.
48459         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48460         REPLACE_PRINTF_POSIX.
48461         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48462         REPLACE_VFPRINTF_POSIX.
48463         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48464         REPLACE_VPRINTF_POSIX.
48465         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48466         SIGPIPE issue.
48467         * doc/posix-functions/fputc.texi: Likewise.
48468         * doc/posix-functions/fputs.texi: Likewise.
48469         * doc/posix-functions/fwrite.texi: Likewise.
48470         * doc/posix-functions/printf.texi: Likewise.
48471         * doc/posix-functions/putc.texi: Likewise.
48472         * doc/posix-functions/putchar.texi: Likewise.
48473         * doc/posix-functions/puts.texi: Likewise.
48474         * doc/posix-functions/vfprintf.texi: Likewise.
48475         * doc/posix-functions/vprintf.texi: Likewise.
48476
48477         * modules/safe-write (Depends-on): Add write.
48478
48479         * modules/sigpipe-tests: New file.
48480         * tests/test-sigpipe.c: New file.
48481         * tests/test-sigpipe.sh: New file.
48482
48483         * modules/write: New file.
48484         * lib/unistd.in.h: Include <sys/types.h>.
48485         (write): New declaration.
48486         * lib/write.c: New file.
48487         * m4/write.m4: New file.
48488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48489         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48490         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48491         GNULIB_WRITE, REPLACE_WRITE.
48492         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48493         and the SIGPIPE issue.
48494
48495         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48496         (raise): New declaration.
48497         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48498         (ext_signal): New function.
48499         (rpl_raise): New function.
48500         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48501         GNULIB_SIGNAL_H_SIGPIPE.
48502         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48503         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48504
48505         * modules/sigpipe: New file.
48506         * m4/sigpipe.m4: New file.
48507
48508 2008-09-25  Derek Price  <derek@ximbiot.com>
48509             Bruno Haible  <bruno@clisp.org>
48510
48511         * gnulib-tool (func_import): Report all license incompatibilities, not
48512         just the first one.
48513
48514 2008-09-25  Bruno Haible  <bruno@clisp.org>
48515
48516         * gnulib-tool (func_import): When computing the edits, consider not
48517         only the Makefile.ams that exist but also those that will be generated.
48518
48519 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48520
48521         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48522         fixes gnulib-tool --test warning about duplicate dependency.
48523
48524 2008-09-25  Bruno Haible  <bruno@clisp.org>
48525
48526         * gnulib-tool: Don't ask the user to perform edits in the generated
48527         Makefile.ams.
48528         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48529         apply to the Makefile.am being generated.
48530         (func_emit_tests_Makefile_am): Execute edits that apply to the
48531         Makefile.am being generated.
48532         (func_import): Setup list of Makefile.am edits before emitting the
48533         Makefile.ams, not at the end.
48534         (func_create_testdir): Update.
48535         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48536
48537 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48538
48539         * gnulib-tool (func_import): Store the --tests-base option in the
48540         comment in gnulib-cache.m4.
48541
48542 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48543
48544         * NEWS: Document increased portability that sys_select now provides.
48545
48546         * lib/sys_select.in.h: Install select wrapper.
48547         * lib/sys_socket.in.h: Use more descriptive name when there is no
48548         select wrapper.
48549         * lib/winsock-select.c: New.
48550         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48551         Require gl_HEADER_SYS_SOCKET.
48552         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48553         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48554         * tests/test-sys_select.c: Add functional tests.
48555
48556 2008-09-24  Eric Blake  <ebb9@byu.net>
48557
48558         open, fopen: close fd leak in last patch
48559         * lib/open.c (rpl_open): Close fd before returning error.
48560         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48561         * doc/posix-functions/open.texi (open): Document that Irix also
48562         has the bug.
48563         * doc/posix-functions/fopen.texi (fopen): Likewise.
48564         Reported by Paolo Bonzini.
48565
48566 2008-09-24  Bruno Haible  <bruno@clisp.org>
48567
48568         Ensure that a filename ending in a slash cannot be used to access a
48569         non-directory.
48570         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48571         to check whether it's really a directory.
48572         * lib/fopen.c: Include fcntl.h, unistd.h.
48573         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48574         and fdopen().
48575         * modules/fopen (Depends-on): Add unistd.
48576         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48577         * tests/test-fopen.c (main): Likewise.
48578         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48579         * doc/posix-functions/fopen.texi: Likewise.
48580         Reported by Eric Blake.
48581
48582 2008-09-23  Eric Blake  <ebb9@byu.net>
48583
48584         c-stack: avoid compiler optimizations when provoking overflow
48585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48586         recursion harder to optimize, to ensure a stack overflow occurs.
48587         * tests/test-c-stack.c (recurse): Likewise.
48588         Borrowed from libsigsegv.
48589
48590         c-stack: work around Irix sigaltstack bug
48591         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48592         whether sigaltstack uses wrong end of stack_t (copied in part from
48593         libsigsegv).
48594         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48595         Irix bug, without requiring an over-allocation.
48596         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48597         bug.
48598
48599         fopen: document mingw bug on directories
48600         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48601         not allowing a stream visiting a directory, even though reading
48602         from such a stream is not portable.
48603
48604 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48605
48606         * lib/poll.c: Rewrite.
48607         * modules/poll: Depend on alloca.
48608
48609 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48610
48611         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48612         instead define prototypes for a full set of wrappers.  Ensure
48613         that Cygwin does not use the compatibility code, which is only
48614         for MinGW.
48615         * lib/winsock.c: New.
48616         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48617         * modules/sys_socket: Add lib/winsock.c.
48618
48619         * modules/poll-tests: Add errno and perror.
48620         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48621
48622 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48623
48624         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48625
48626 2008-09-23  Bruno Haible  <bruno@clisp.org>
48627
48628         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48629         * doc/glibc-functions/*: Likewise.
48630
48631 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48632
48633         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48634         success.
48635
48636 2008-09-22  Eric Blake  <ebb9@byu.net>
48637             Bruno Haible  <bruno@clisp.org>
48638
48639         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48640         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48641         supply %A but mishandle pseudo-NaN.
48642         Reported by Simon Josefsson.
48643
48644 2008-09-21  Bruno Haible  <bruno@clisp.org>
48645
48646         * tests/test-lock.c (main): Tweak skip message.
48647         * tests/test-tls.c (main): Likewise.
48648
48649 2008-09-21  Bruno Haible  <bruno@clisp.org>
48650
48651         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48652         whether 'struct sigaction' has sa_sigaction here...
48653         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48654         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48655
48656 2008-09-21  Bruno Haible  <bruno@clisp.org>
48657
48658         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48659         section.
48660         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48661         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48662         the new section.
48663         (Support for obsolete systems lacking POSIX:2001): New section.
48664         (String handling <string.h>): Move strdup to the new section.
48665         Suggested by Simon Josefsson and Paolo Bonzini.
48666
48667 2008-09-21  Bruno Haible  <bruno@clisp.org>
48668
48669         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48670         exponents in %e and %g results on 'long double'. Needed for mingw's
48671         improved *printf functions.
48672         * tests/test-vasprintf-posix.c (test_function): Likewise.
48673         * tests/test-snprintf-posix.h (test_function): Likewise.
48674         * tests/test-sprintf-posix.h (test_function): Likewise.
48675         Reported by Eric Blake.
48676
48677 2008-09-21  Bruno Haible  <bruno@clisp.org>
48678
48679         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48680         * tests/test-sprintf-posix.h (test_function): Likewise.
48681
48682 2008-09-21  Bruno Haible  <bruno@clisp.org>
48683
48684         * modules/getpass (Depends-on): Add strdup-posix.
48685
48686         New module 'strdup-posix'.
48687         * modules/strdup-posix: New file.
48688         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48689         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48691         REPLACE_STRDUP.
48692         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48693         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48694         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48695         strdup-posix.
48696
48697         * modules/strdup (Depends-on): Remove malloc-posix.
48698
48699 2008-09-20  Bruno Haible  <bruno@clisp.org>
48700
48701         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48702         Wildenhues.
48703
48704 2008-09-20  Bruno Haible  <bruno@clisp.org>
48705
48706         Ensure that wint_t gets defined on IRIX 5.3.
48707         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48708         * lib/wctype.in.h (wint_t): Likewise.
48709         (__wctype_wint_t): Remove type.
48710         (isw*): Use wint_t instead of __wctype_wint_t.
48711         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48712         * modules/wchar (Files): Add m4/wint_t.m4.
48713         (Makefile.am): Substitute HAVE_WINT_T.
48714         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48715         * tests/test-wctype.c: Check that wint_t is defined.
48716         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48717         * doc/posix-headers/wctype.texi: Likewise.
48718         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48719
48720 2008-09-18  Bruno Haible  <bruno@clisp.org>
48721
48722         * gnulib-tool (func_exit): Update comment.
48723
48724 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48725
48726         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48727         assumes strdup exists and does not depend on strdup to return
48728         ENOMEM on out of memory conditions.
48729
48730 2008-09-18  Bruno Haible  <bruno@clisp.org>
48731
48732         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
48733         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48734         digits for the exponent.
48735
48736 2008-09-18  Jim Meyering  <meyering@redhat.com>
48737             Bruno Haible  <bruno@clisp.org>
48738
48739         * lib/vasnprintf.c (decimal_point_char): Define also if
48740         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48741
48742 2008-09-16  Bruno Haible  <bruno@clisp.org>
48743         and Eric Blake  <ebb9@byu.net>
48744
48745         vasnprintf: support Irix 5.3
48746         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48747         that mishandle long double infinity.
48748         Reported by Tom G. Christensen.
48749
48750 2008-09-16  Bruno Haible  <bruno@clisp.org>
48751
48752         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48753         Solaris 9.
48754         * doc/glibc-functions/alphasort.texi: Likewise.
48755         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48756
48757 2008-09-16  Jim Meyering  <meyering@redhat.com>
48758
48759         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48760         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48761         a umask modification leak out of a subshell.  Otherwise, the
48762         opensolaris /bin/sh would be accepted and thus cause unwarranted
48763         failures in the coreutils test suite.
48764
48765 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48766
48767         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48768         to succeed.
48769
48770 2008-09-16  Jim Meyering  <meyering@redhat.com>
48771
48772         avoid spurious test failure when library is built without ACL support
48773         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48774         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48775         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48776         * tests/test-copy-acl.sh: Likewise.
48777
48778 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48779
48780         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48781         based on character occurrence counts.
48782
48783 2008-09-15  Eric Blake  <ebb9@byu.net>
48784
48785         tests: avoid some compiler warnings
48786         * tests/test-memchr.c (main): Pass NULL indirectly.
48787         * tests/test-closein.c (main): Avoid unused variable.
48788
48789 2008-09-15  Bruno Haible  <bruno@clisp.org>
48790
48791         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48792         are missing on OpenBSD 4.0 individually.
48793         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48794
48795 2008-09-15  Bruno Haible  <bruno@clisp.org>
48796
48797         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48798         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48799         * doc/posix-functions/perror.texi: Likewise.
48800         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48801         is missing.
48802         Reported by Eric Blake.
48803
48804         * lib/errno.in.h: Use replacement values >= 2000.
48805         Reported by Eric Blake.
48806
48807 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48808
48809         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48810         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48811         limit.
48812         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48813         compareseq was aborted.
48814
48815 2008-09-14  Bruno Haible  <bruno@clisp.org>
48816
48817         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48818         yvec_edit_count.
48819         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48820         (fstrcmp_bounded): Simplify result computation accordingly.
48821
48822 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48823
48824         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48825         (fstrcmp): Define in terms of fstrcmp_bounded.
48826         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48827         lower_bound argument.
48828         Return quickly if the result is certainly < lower_bound.
48829         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48830
48831 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48832
48833         * lib/diffseq.h (EARLY_ABORT): New macro.
48834         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48835         evaluates to true.
48836
48837 2008-09-14  Bruno Haible  <bruno@clisp.org>
48838
48839         * modules/perror-tests: New file.
48840         * tests/test-perror.sh: New file.
48841         * tests/test-perror.c: New file.
48842
48843         New module 'perror'.
48844         * lib/stdio.in.h (perror): New declaration.
48845         * lib/perror.c: New file.
48846         * m4/perror.m4: New file.
48847         * modules/perror: New file.
48848         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48849         * doc/posix-functions/perror.texi: Mention the perror module.
48850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48851         REPLACE_PERROR.
48852         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48853         REPLACE_PERROR.
48854
48855 2008-09-14  Bruno Haible  <bruno@clisp.org>
48856
48857         * modules/stdio (Makefile.am): Reorder to match the order in
48858         lib/stdio.in.h.
48859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48860
48861 2008-09-13  Bruno Haible  <bruno@clisp.org>
48862
48863         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48864
48865 2008-09-13  Bruno Haible  <bruno@clisp.org>
48866
48867         Extend strerror to cover the added errno values.
48868         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48869         (rpl_strerror): Provide error messages for the added errno values and
48870         for the WSA* values.
48871         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48872         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48873         strerror.
48874         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48875         * modules/strerror (Depends-on): Add errno.
48876         * doc/posix-functions/strerror.texi: Document the change.
48877         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48878         and EOVERFLOW.
48879
48880 2008-09-13  Bruno Haible  <bruno@clisp.org>
48881
48882         * modules/EOVERFLOW: Remove file.
48883         * m4/eoverflow.m4: Remove file.
48884         * modules/EOVERFLOW-tests: Remove file.
48885         * tests/test-EOVERFLOW.c: Remove file.
48886         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48887         * modules/ftell (Depends-on): Likewise.
48888         * modules/getdelim (Depends-on): Likewise.
48889         * modules/getugroups (Depends-on): Likewise.
48890         * modules/poll (Depends-on): Likewise.
48891         * modules/snprintf (Depends-on): Likewise.
48892         * modules/sprintf-posix (Depends-on): Likewise.
48893         * modules/vasnprintf (Depends-on): Likewise.
48894         * modules/vasprintf (Depends-on): Likewise.
48895         * modules/vfprintf-posix (Depends-on): Likewise.
48896         * modules/vsnprintf (Depends-on): Likewise.
48897         * modules/vsprintf-posix (Depends-on): Likewise.
48898         * modules/xvasprintf (Depends-on): Likewise.
48899         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48900         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48901         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48902         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48903         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48904         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48905         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48906         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48907         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48908         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48909         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48910         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48911         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48912         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48913         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48914         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48915         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48916         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48917         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48918         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48919         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48920         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48921         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48922         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48923         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48924         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48925         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48926         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48927         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48928         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48929         * MODULES.html.sh: Remove EOVERFLOW.
48930         * NEWS: Mention the change.
48931
48932 2008-09-13  Bruno Haible  <bruno@clisp.org>
48933
48934         * modules/errno-tests: New file.
48935         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48936
48937         * lib/errno.in.h: New file.
48938         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48939         * modules/errno: New file.
48940         * doc/posix-headers/errno.texi: Update documentation.
48941         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48942
48943 2008-09-13  Bruno Haible  <bruno@clisp.org>
48944
48945         * tests/test-poll.c: Use #if for native Windows, rather than testing
48946         __MSVCRT__.
48947
48948 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48949             Bruno Haible  <bruno@clisp.org>
48950
48951         * lib/glob.c: Don't include <pwd.h> on native Windows.
48952         (WINDOWS32): New macro.
48953         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48954
48955 2008-09-13  Bruno Haible  <bruno@clisp.org>
48956
48957         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48958         (ETIMEDOUT): Remove macro.
48959         (glthread_cond_timedwait_multithreaded): New declaration.
48960         (glthread_cond_timedwait): Use it.
48961         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48962         (glthread_cond_timedwait_multithreaded): New function.
48963
48964 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48965
48966         * modules/poll-tests: Do not check for io.h.
48967         * tests/test-poll.c: Check for __MSVCRT__ instead.
48968
48969 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48970
48971         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48972         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48973         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48974
48975 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48976
48977         * modules/poll-tests: New.
48978         * tests/test-poll.c: New.
48979
48980 2008-09-12  Eric Blake  <ebb9@byu.net>
48981
48982         frexp: test for NetBSD failure on -0.0
48983         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48984         not all, bugs from NetBSD 3.0 have been fixed.
48985         * doc/posix-functions/frexp.texi (frexp): Document bug.
48986         Reported by Thomas Klausner.
48987
48988         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48989         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48990         literal -0.0.
48991         Reported by Jonathan C. Patschke <jp@centtech.com>.
48992
48993 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48994
48995         * lib/glthread/cond.h: Use dummy implementation also if
48996         USE_WIN32_THREADS.
48997
48998 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48999
49000         * modules/fnmatch-posix (License): Change to LGPLv2+.
49001         * modules/fnmatch-gnu (License): Likewise.
49002
49003 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49004
49005         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49006
49007 2008-09-11  Jim Meyering  <meyering@redhat.com>
49008
49009         * users.txt: Add gtk-vnc.
49010
49011 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49012
49013         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49014         rotate amounts.
49015
49016         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49017         required for 16-bit and 8-bit rotates.
49018         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49019         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49020         UINT8_MAX instead of hard-coded constants.
49021         Suggested by Paul Eggert.
49022
49023 2008-09-07  Bruno Haible  <bruno@clisp.org>
49024
49025         * tests/test-striconveh.c (main): Check behaviour when converting from
49026         UTF-7.
49027
49028         Make striconveh work better with stateful encodings.
49029         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49030         that iconv does not increment the inptr when returning -1/EINVAL.
49031
49032 2008-09-07  Bruno Haible  <bruno@clisp.org>
49033
49034         * build-aux/config.rpath: Update according to libtool-2.2.6.
49035         * build-aux/config.libpath: Likewise.
49036
49037 2008-09-06  Bruno Haible  <bruno@clisp.org>
49038
49039         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49040         * lib/freadptr.c (freadptr): Likewise.
49041         * lib/freadseek.c (freadptrinc): Likewise.
49042         Reported by Simon Josefsson.
49043
49044 2008-09-06  Bruno Haible  <bruno@clisp.org>
49045
49046         * modules/freadptr (License): Change to LGPLv2+.
49047         * modules/freadseek (License): Likewise.
49048         Suggested by Eric Blake.
49049
49050         * modules/memchr2 (License): Change to LGPLv2+.
49051         Approved by Eric Blake.
49052
49053 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49054             Bruno Haible  <bruno@clisp.org>
49055
49056         Make gnulib-tool work with native 'sed' on AIX.
49057         * gnulib-tool (sed_noop): New variable.
49058         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49059         func_add_or_update, func_create_testdir): Use it to initialize sed
49060         script variables.
49061         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49062
49063 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49064             Bruno Haible  <bruno@clisp.org>
49065
49066         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49067         also works after #include directives.
49068
49069 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
49070
49071         getdate.y: reject an out-of-range timezone value
49072         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49073         the range [-24...+24].  When specified with only one or two digits,
49074         * tests/test-getdate.c: Tests for the fix.
49075         * doc/getdate.texi: Document this change.
49076
49077 2008-09-03  Bruno Haible  <bruno@clisp.org>
49078
49079         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49080
49081 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49082
49083         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49084         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49085         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49086         Blake <ebb9@byu.net>.
49087
49088         * tests/test-bitrotate.c: Add more test vectors.
49089
49090 2008-09-02  Eric Blake  <ebb9@byu.net>
49091
49092         vasnprintf-posix: handle large precision via %.*d
49093         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49094         when handling it ourselves.
49095         * tests/test-vasnprintf-posix.c (test_function): Add test.
49096         * tests/test-snprintf-posix.h (test_function): Likewise.
49097         * tests/test-sprintf-posix.h (test_function): Likewise.
49098         * tests/test-vasprintf-posix.c (test_function): Likewise.
49099         Reported by Alain Guibert.
49100
49101 2008-09-01  Eric Blake  <ebb9@byu.net>
49102
49103         c-stack: make configure-time check more robust
49104         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49105         successful sigaction call.
49106         Reported by Tom G. Christensen.
49107
49108 2008-09-01  Bruno Haible  <bruno@clisp.org>
49109
49110         New module 'findprog-lgpl'.
49111         * modules/findprog-lgpl: New file.
49112         * lib/findprog-lgpl.c: New file.
49113         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49114         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49115         to decide whether to use strdup or xstrdup, concatenated_filename or
49116         xconcatenated_filename.
49117
49118 2008-09-01  Bruno Haible  <bruno@clisp.org>
49119
49120         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49121         'xconcat-filename' (GPL).
49122         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49123         (License): Change to LGPLv2+.
49124         * modules/xconcat-filename: New file.
49125         * lib/concat-filename.h (concatenated_filename): Change specification.
49126         (xconcatenated_filename): New declaration.
49127         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49128         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49129         memory situations.
49130         * lib/xconcat-filename.c: New file.
49131         * NEWS: Mention the change.
49132         * lib/findprog.c: Include concat-filename.h, not filename.h.
49133         (find_in_path): Use xconcatenated_filename instead of
49134         concatenated_filename.
49135         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49136         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49137         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49138         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49139         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49140         instead of concatenated_filename.
49141         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49142         (execute_java_class): Use xconcatenated_filename instead of
49143         concatenated_filename.
49144         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49145         * modules/javacomp (Depends-on): Likewise.
49146         * modules/javaexec (Depends-on): Likewise.
49147
49148 2008-09-01  Bruno Haible  <bruno@clisp.org>
49149
49150         Split module 'filename' into 'filename' and 'concat-filename'.
49151         * modules/filename: Keep only lib/filename.h.
49152         (License): Change to LGPLv2+.
49153         * modules/concat-filename: New file, extracted from modules/filename.
49154         * lib/filename.h (concatenated_filename): Remove declaration.
49155         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49156         * lib/concat-filename.c: Include concat-filename.h.
49157         * NEWS: Mention the change.
49158
49159 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49160
49161         * lib/bitrotate.h (rotl8, rotr8): Add.
49162
49163         * modules/bitrotate (configure.ac): Need
49164         AC_REQUIRE([AC_C_INLINE]).
49165         (Description): Mention stdint.h.  Reported by Bruno Haible
49166         <bruno@clisp.org>.
49167
49168         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49169         Paolo Bonzini <bonzini@gnu.org>.
49170
49171 2008-08-31  Bruno Haible  <bruno@clisp.org>
49172
49173         Assume Solaris specific bi-arch conventions on Solaris systems.
49174         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49175         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49176         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49177         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49178         like acl_libdirstem.
49179         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49180         acl_libdirstem.
49181         * NEWS: Mention the change.
49182         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49183
49184 2008-08-31  Jim Meyering  <meyering@redhat.com>
49185
49186         * lib/strftime.h: Add comments describing the two added arguments.
49187
49188         remove duplicate #include directives
49189         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49190         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49191
49192 2008-08-31  Bruno Haible  <bruno@clisp.org>
49193
49194         New module 'sigpipe-die'.
49195         * modules/sigpipe-die: New file.
49196         * lib/sigpipe-die.h: New file.
49197         * lib/sigpipe-die.c: New file.
49198         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49199
49200 2008-08-31  Bruno Haible  <bruno@clisp.org>
49201
49202         Don't override previously installed signal handlers.
49203         * lib/fatal-signal.c (saved_sigactions): New variable.
49204         (uninstall_handlers): Reset the signal to the saved handler, not
49205         to SIG_DFL (except when ignored).
49206         (install_handlers): Save the previous handlers.
49207
49208 2008-08-30  Bruno Haible  <bruno@clisp.org>
49209
49210         * gnulib-tool (func_reset_sigpipe): New function.
49211         (func_get_automake_snippet, func_modules_transitive_closure,
49212         func_import): Invoke it before a join command that reads from stdin,
49213         to avoid "echo: write error: Broken pipe" error messages on stderr.
49214         Reported by Sam Steingold <sds@gnu.org>.
49215
49216 2008-08-30  Bruno Haible  <bruno@clisp.org>
49217
49218         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49219         Code copied from m4/open.m4.
49220         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49221         access and the filename ends in a slash. Code copied from lib/open.c.
49222         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49223         * tests/test-fopen.c (main): Check against bug with trailing slash.
49224
49225 2008-08-29  Bruno Haible  <bruno@clisp.org>
49226
49227         Avoid some "gcc -pedantic" warnings.
49228         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49229         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49230         * lib/dirent.in.h: Likewise.
49231         * lib/fcntl.in.h: Likewise.
49232         * lib/float.in.h: Likewise.
49233         * lib/iconv.in.h: Likewise.
49234         * lib/inttypes.in.h: Likewise.
49235         * lib/locale.in.h: Likewise.
49236         * lib/math.in.h: Likewise.
49237         * lib/netinet_in.in.h: Likewise.
49238         * lib/search.in.h: Likewise.
49239         * lib/signal.in.h: Likewise.
49240         * lib/stdarg.in.h: Likewise.
49241         * lib/stdint.in.h: Likewise.
49242         * lib/stdio.in.h: Likewise.
49243         * lib/stdlib.in.h: Likewise.
49244         * lib/string.in.h: Likewise.
49245         * lib/strings.in.h: Likewise.
49246         * lib/sys_select.in.h: Likewise.
49247         * lib/sys_socket.in.h: Likewise.
49248         * lib/sys_stat.in.h: Likewise.
49249         * lib/sys_time.in.h: Likewise.
49250         * lib/sysexits.in.h: Likewise.
49251         * lib/time.in.h: Likewise.
49252         * lib/unistd.in.h: Likewise.
49253         * lib/wchar.in.h: Likewise.
49254         * lib/wctype.in.h: Likewise.
49255         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
49256         * modules/fchdir (Makefile.am): Likewise.
49257         * modules/fcntl (Makefile.am): Likewise.
49258         * modules/float (Makefile.am): Likewise.
49259         * modules/iconv_open (Makefile.am): Likewise.
49260         * modules/inttypes (Makefile.am): Likewise.
49261         * modules/locale (Makefile.am): Likewise.
49262         * modules/math (Makefile.am): Likewise.
49263         * modules/netinet_in (Makefile.am): Likewise.
49264         * modules/search (Makefile.am): Likewise.
49265         * modules/signal (Makefile.am): Likewise.
49266         * modules/stdarg (Makefile.am): Likewise.
49267         * modules/stdint (Makefile.am): Likewise.
49268         * modules/stdio (Makefile.am): Likewise.
49269         * modules/stdlib (Makefile.am): Likewise.
49270         * modules/string (Makefile.am): Likewise.
49271         * modules/strings (Makefile.am): Likewise.
49272         * modules/sys_select (Makefile.am): Likewise.
49273         * modules/sys_socket (Makefile.am): Likewise.
49274         * modules/sys_stat (Makefile.am): Likewise.
49275         * modules/sys_time (Makefile.am): Likewise.
49276         * modules/sysexits (Makefile.am): Likewise.
49277         * modules/time (Makefile.am): Likewise.
49278         * modules/unistd (Makefile.am): Likewise.
49279         * modules/wchar (Makefile.am): Likewise.
49280         * modules/wctype (Makefile.am): Likewise.
49281         Reported by Reuben Thomas <rrt@sc3d.org>.
49282
49283 2008-08-29  Bruno Haible  <bruno@clisp.org>
49284
49285         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
49286         any more.
49287
49288 2008-08-29  Simon Josefsson  <simon@josefsson.org>
49289
49290         * MODULES.html.sh (Misc): Add bitrotate.
49291
49292         * modules/bitrotate: New file.
49293
49294         * lib/bitrotate.h: New file.
49295
49296         * modules/bitrotate-tests: New file.
49297
49298         * tests/test-bitrotate.c: New file.
49299
49300         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
49301         on the bitrotate module.
49302
49303         * lib/arctwo.c: Use new bitrotate module.
49304
49305 2008-08-29  Jim Meyering  <meyering@redhat.com>
49306
49307         bootstrap: merge changes from coreutils
49308         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
49309         of copied files.  Remove a kludge, now that this is fixed.
49310         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
49311         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
49312         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
49313
49314 2008-08-29  Bruno Haible  <bruno@clisp.org>
49315
49316         * MODULES.html.sh: Remove --cvs-urls option.
49317
49318 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
49319
49320         maint.mk: adjust to file name change
49321         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
49322
49323 2008-08-28  Jim Meyering  <meyering@redhat.com>
49324
49325         * modules/getndelim2 (License): Relicense to LGPLv2+.
49326         Approved by Richard Stallman for the version of 1995, and by
49327         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
49328
49329 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
49330
49331         * lib/getdelim.c (flockfile, funlockfile): Make all of them
49332         dummy if one is not available.  Do not touch them if
49333         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
49334         (getc_maybe_unlocked): New.
49335         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
49336
49337 2008-08-26  Eric Blake  <ebb9@byu.net>
49338
49339         doc/INSTALL: resync from autoconf
49340         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
49341         (INSTALL_PRELUDE): Delete; this is done more efficiently by
49342         moving...
49343         * install.texi [!autoconf]: ...here.  Resync from autoconf.
49344         * INSTALL: Regenerate.
49345         * INSTALL.ISO: New file.
49346         * INSTALL.UTF-8: Likewise.
49347
49348 2008-08-26  Jim Meyering  <meyering@redhat.com>
49349
49350         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
49351         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
49352         these definitions conditional, so that they may be overridden, too.
49353
49354 2008-08-26  Bruno Haible  <bruno@clisp.org>
49355
49356         Generate INSTALL file variants with prettier quotes.
49357         * doc/Makefile (INSTALL_PRELUDE): New macro.
49358         (INSTALL): Use it.
49359         (INSTALL.ISO, INSTALL.UTF-8): New rules.
49360
49361 2008-08-26  Bruno Haible  <bruno@clisp.org>
49362
49363         Run makeinfo in an English locale.
49364         * doc/Makefile (MAKEINFO): New variable.
49365
49366 2008-08-26  Bruno Haible  <bruno@clisp.org>
49367
49368         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49369         Suggested by Eric Blake.
49370
49371 2008-08-25  Bruno Haible  <bruno@clisp.org>
49372
49373         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49374
49375 2008-08-25  Eric Blake  <ebb9@byu.net>
49376
49377         c-stack: test that stack overflow can be caught
49378         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49379         that platform allows handling stack overflow; at least OS/2 EMX
49380         has sigaltstack, but crashes before transferring control to
49381         handler on stack overflow.
49382         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49383         check for HAVE_STACK_OVERFLOW_HANDLING.
49384         Reported by Elbert Pol.
49385
49386 2008-08-25  Bruno Haible  <bruno@clisp.org>
49387
49388         * doc/posix-functions/strftime.texi: Fix description of strftime
49389         module.
49390
49391 2008-08-24  Bruno Haible  <bruno@clisp.org>
49392
49393         * tests/uniwidth/test-uc_width2.c: New file.
49394         * tests/uniwidth/test-uc_width2.sh: New file.
49395         * modules/uniwidth/width-tests (Files): Add the new files.
49396         (TESTS): Add uniwidth/test-uc_width2.sh.
49397         (TESTS_ENVIRONMENT): New variable.
49398         (check_PROGRAMS): Add test-uc_width2.
49399         (test_uc_width2_SOURCES): New variable.
49400
49401         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49402         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49403         not 0x00AB.
49404         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49405
49406 2008-08-22  Eric Blake  <ebb9@byu.net>
49407
49408         test-lock, test-tls: mention why a test is skipped
49409         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49410         skipped.
49411         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49412
49413         count-one-bits: relax license
49414         * modules/count-one-bits (License): Relicense to LGPLv2+.
49415         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49416
49417 2008-08-22  Andreas Schwab  <schwab@suse.de>
49418
49419         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49420         Remove spurious space in assignment.
49421
49422 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49423
49424         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49425         Paul Eggert <eggert@CS.UCLA.EDU>.
49426
49427 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49428
49429         * modules/gettext: Add m4/threadlib.m4.
49430
49431 2008-08-19  Eric Blake  <ebb9@byu.net>
49432
49433         test-c-stack: fix compilation failure on FreeBSD 5.0
49434         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49435         headers before <sys/resource.h>.
49436         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49437         the bug.
49438         Reported by Nelson H. F. Beebe.
49439
49440         strverscmp: migrate from "strverscmp.h" to <string.h>
49441         * modules/string (Makefile.am): Add new hooks.
49442         * modules/strverscmp (Files): Remove strverscmp.h.
49443         (Depends-on): Add string.
49444         (configure.ac): Add indicator.
49445         (Include): Mention new header.
49446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49447         defaults.
49448         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49449         results.
49450         * lib/strverscmp.h: Delete.
49451         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49452         * tests/test-strverscmp.c (includes): Adjust client.
49453         * lib/check-version.c (includes): Likewise.
49454         * NEWS: Document the change.
49455
49456         strverscmp: add unit test
49457         * modules/strverscmp-tests: New file.
49458         * tests/test-strverscmp.c: Likewise.
49459
49460 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49461
49462         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49463         regarding Windows crypto stuff, from Mono.
49464
49465 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49466
49467         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49468         if present, for intel RND.  Return error on failures.
49469
49470 2008-08-18  Ben Pfaff  <blp@gnu.org>
49471
49472         gitlog-to-changelog: give better diagnostic for failed pipe-open
49473         * build-aux/gitlog-to-changelog: Improve error message: suggest
49474         that the version of Git may be too old.
49475
49476 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49477
49478         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49479         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49480
49481 2008-08-18  Bruno Haible  <bruno@clisp.org>
49482
49483         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49484         pthread_in_use().
49485
49486 2008-08-18  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/glthread/threadlib.c: Include <pthread.h>.
49489
49490 2008-08-18  Bruno Haible  <bruno@clisp.org>
49491
49492         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49493         glthread_recursive_lock_* macros.
49494         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49495         Fix syntax error.
49496
49497 2008-08-18  Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/glthread/thread.c: Avoid forcing a context switch right after
49500         thread creation.
49501
49502 2008-08-17  Bruno Haible  <bruno@clisp.org>
49503
49504         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49505         * lib/glthread/thread.h: Provide Win32 specific implementation.
49506         * modules/thread (Files): Add lib/glthread/thread.c.
49507         (Depends-on): Add lock.
49508         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49509
49510 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49511
49512         New module 'yield'.
49513         * modules/yield: New file.
49514         * lib/glthread/yield.h: New file.
49515         * m4/yield.m4: New file.
49516         * MODULES.html.sh (Multithreading): Add yield.
49517
49518 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49519
49520         New module 'thread'.
49521         * modules/thread: New file.
49522         * lib/glthread/thread.h: New file.
49523         * m4/thread.m4: New file.
49524         * MODULES.html.sh (Multithreading): Add thread.
49525
49526 2008-08-17  Bruno Haible  <bruno@clisp.org>
49527
49528         * lib/glthread/lock.h: Include <stdlib.h> always.
49529         * lib/glthread/tls.h: Likewise.
49530         * lib/glthread/cond.h: Likewise.
49531
49532 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49533
49534         New module 'cond'.
49535         * modules/cond: New file.
49536         * lib/glthread/cond.h: New file.
49537         * lib/glthread/cond.c: New file.
49538         * m4/cond.m4: New file.
49539         * MODULES.html.sh (Multithreading): Add cond.
49540
49541 2008-08-16  Eric Blake  <ebb9@byu.net>
49542
49543         c-stack: fix regression on Irix 5.3 from 2008-06-21
49544         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49545         sa_sigaction...
49546         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49547         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49548         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49549         * modules/signal (Makefile.am): Use the value.
49550         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49551         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49552         * doc/posix-headers/signal.texi (signal.h): Document this
49553         portability issue.
49554         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49555         Reported by Tom G. Christensen.
49556
49557 2008-08-17  Bruno Haible  <bruno@clisp.org>
49558
49559         New module 'threadlib'.
49560         * modules/threadlib: New file.
49561         * lib/glthread/threadlib.c: New file, extracted from
49562         lib/glthread/lock.c.
49563         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49564         functions.
49565         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49566         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49567         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49568         macros.
49569         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49570         (gl_DISABLE_THREADS): Remove macro.
49571         * modules/lock (Files): Remove build-aux/config.rpath.
49572         (Depends-on): Remove havelib. Add threadlib.
49573         (configure.ac-early): Remove section.
49574         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49575         * modules/tls (Depends-on): Remove lock. Add threadlib.
49576         (Link): New section, copied from threadlib.
49577         * MODULES.html.sh (Multithreading): Add threadlib.
49578
49579 2008-08-14  Bruno Haible  <bruno@clisp.org>
49580
49581         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49582         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49583         glthread_rwlock_unlock, glthread_rwlock_destroy,
49584         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49585         glthread_recursive_lock_destroy): Define as macros always.
49586         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49587         glthread_lock_lock.
49588         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49589         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49590         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49591         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49592         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49593         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49594         (glthread_recursive_lock_lock_func): Renamed from
49595         glthread_recursive_lock_lock.
49596         (glthread_recursive_lock_unlock_func): Renamed from
49597         glthread_recursive_lock_unlock.
49598         (glthread_recursive_lock_destroy_func): Renamed from
49599         glthread_recursive_lock_destroy.
49600
49601 2008-08-14  Bruno Haible  <bruno@clisp.org>
49602
49603         * lib/glthread/lock.h: Renamed from lib/lock.h.
49604         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49605         * lib/glthread/tls.h: Renamed from lib/tls.h.
49606         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49607         * lib/fstrcmp.c: Update includes.
49608         * lib/strsignal.c: Update includes.
49609         * modules/lock (Files, Makefile.am): Update.
49610         (Include): Change to "glthread/lock.h".
49611         * modules/tls (Files, Makefile.am): Update.
49612         (Include): Change to "glthread/tls.h".
49613         * tests/test-lock.c: Update includes.
49614         * tests/test-tls.c: Update includes.
49615         * NEWS: Mention the renamed header files.
49616
49617 2008-08-11  Jim Meyering  <meyering@redhat.com>
49618
49619         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49620
49621 2008-08-11  Eric Blake  <ebb9@byu.net>
49622
49623         test-c-stack: avoid C99-ism
49624         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49625         before statement.
49626         Reported by Alain Guibert.
49627
49628 2008-08-10  Jim Meyering  <meyering@redhat.com>
49629
49630         ensure that return value of uinttostr et al are not ignored
49631         * lib/inttostr.h (__GNUC_PREREQ): Define.
49632         (__attribute_warn_unused_result__): Define.
49633         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49634
49635 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49636
49637         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49638         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49639
49640 2008-08-07  Jim Meyering  <meyering@redhat.com>
49641
49642         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49643
49644         * modules/mkstemp (License): Relicense under LGPLv2+.
49645         * modules/tempname (License): Likewise.
49646
49647 2008-08-06  Bruno Haible  <bruno@clisp.org>
49648
49649         * lib/poll.c (poll): Further micro-optimization.
49650
49651 2008-08-06  Jim Meyering  <meyering@redhat.com>
49652
49653         inet_pton.c: use locale-independent tolower
49654         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49655         (inet_pton6): Use c_tolower rather than tolower.
49656         * modules/inet_pton (Depends-on): Add c-ctype.
49657
49658 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49659
49660         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49661         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49662
49663 2008-08-06  Jim Meyering  <meyering@redhat.com>
49664
49665         * modules/inet_pton (License): Relicense under LGPLv2+.
49666
49667 2008-08-03  Bruno Haible  <bruno@clisp.org>
49668
49669         Additional non-aborting API for lock and tls.
49670         * lib/lock.h: Include <errno.h>.
49671         (glthread_lock_init): New macro/function.
49672         (gl_lock_init): Define as wrapper around glthread_lock_init.
49673         (glthread_lock_lock): New macro/function.
49674         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49675         (glthread_lock_unlock): New macro/function.
49676         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49677         (glthread_lock_destroy): New macro/function.
49678         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49679         (glthread_rwlock_init): New macro/function.
49680         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49681         (glthread_rwlock_rdlock): New macro/function.
49682         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49683         (glthread_rwlock_wrlock): New macro/function.
49684         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49685         (glthread_rwlock_unlock): New macro/function.
49686         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49687         (glthread_rwlock_destroy): New macro/function.
49688         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49689         (glthread_recursive_lock_init): New macro/function.
49690         (gl_recursive_lock_init): Define as wrapper around
49691         glthread_recursive_lock_init.
49692         (glthread_recursive_lock_lock): New macro/function.
49693         (gl_recursive_lock_lock): Define as wrapper around
49694         glthread_recursive_lock_lock.
49695         (glthread_recursive_lock_unlock): New macro/function.
49696         (gl_recursive_lock_unlock): Define as wrapper around
49697         glthread_recursive_lock_unlock.
49698         (glthread_recursive_lock_destroy): New macro/function.
49699         (gl_recursive_lock_destroy): Define as wrapper around
49700         glthread_recursive_lock_destroy.
49701         (glthread_once): New macro/function.
49702         (gl_once): Define as wrapper around glthread_once.
49703         Update function declarations.
49704         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49705         glthread_rwlock_init. Return error code.
49706         (glthread_rwlock_rdlock_multithreaded): Renamed from
49707         glthread_rwlock_rdlock. Return error code.
49708         (glthread_rwlock_wrlock_multithreaded): Renamed from
49709         glthread_rwlock_wrlock. Return error code.
49710         (glthread_rwlock_unlock_multithreaded): Renamed from
49711         glthread_rwlock_unlock. Return error code.
49712         (glthread_rwlock_destroy_multithreaded): Renamed from
49713         glthread_rwlock_destroy. Return error code.
49714         (glthread_recursive_lock_init_multithreaded): Renamed from
49715         glthread_recursive_lock_init. Return error code.
49716         (glthread_recursive_lock_lock_multithreaded): Renamed from
49717         glthread_recursive_lock_lock. Return error code.
49718         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49719         glthread_recursive_lock_unlock. Return error code.
49720         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49721         glthread_recursive_lock_destroy. Return error code.
49722         (glthread_once_call): Make static.
49723         (glthread_once_multithreaded): Renamed from glthread_once.
49724         * lib/tls.h: Include <errno.h>.
49725         (glthread_tls_key_init): New macro/function.
49726         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49727         (glthread_tls_set): New macro/function.
49728         (gl_tls_set): Define as wrapper around glthread_tls_set.
49729         (glthread_tls_key_destroy): New macro/function.
49730         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49731         Update function declarations.
49732         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49733         glthread_tls_get.
49734         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49735
49736 2008-08-04  Eric Blake  <ebb9@byu.net>
49737
49738         gnumakefile: use space, not TAB, outside of targets
49739         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49740
49741 2008-08-02  Jim Meyering  <meyering@redhat.com>
49742
49743         getdate.y: avoid locale-dependent date parsing failure
49744         In Turkish locales, getdate would fail to recognize keywords
49745         containing a lowercase "i".  The solution is not to rely on
49746         locale-sensitive case-conversion.
49747         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49748         (lookup_word): Use c_toupper in place of toupper.
49749         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49750         Reported by Vefa Bicakci <bicave@superonline.com> in
49751         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49752         * modules/getdate (Depends-on): Add c-ctype.
49753
49754 2008-08-02  Bruno Haible  <bruno@clisp.org>
49755
49756         * gnulib-tool (func_import): When updating or creating a .gitignore
49757         file, prepend each added line with a slash, and ignore leading slashes
49758         from the existing lines.
49759         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49760
49761 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49762
49763         Portability fix for GNU make 3.79.1.
49764         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49765         versions do not understand.
49766
49767 2008-08-01  Bruno Haible  <bruno@clisp.org>
49768
49769         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49770         * tests/test-isnanf.h (zero): New variable.
49771         (main): Avoid literal -0.0f.
49772         * tests/test-isnand.h (zero): New variable.
49773         (main): Avoid literal -0.0.
49774         * tests/test-isnanl.h (zero): New variable.
49775         (main): Avoid literal -0.0L.
49776         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49777         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49778         -0.0, -0.0L.
49779         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49780         (test_signbitd): Avoid literal -0.0.
49781         (test_signbitl): Avoid literal -0.0L.
49782         * tests/test-ceilf1.c (zero): New variable.
49783         (main): Avoid literal -0.0f.
49784         * tests/test-ceill.c (zero): New variable.
49785         (main): Avoid literal -0.0L.
49786         * tests/test-floorf1.c (zero): New variable.
49787         (main): Avoid literal -0.0f.
49788         * tests/test-floorl.c (zero): New variable.
49789         (main): Avoid literal -0.0L.
49790         * tests/test-roundf1.c (zero): New variable.
49791         (main): Avoid literal -0.0f.
49792         * tests/test-round1.c (zero): New variable.
49793         (main): Avoid literal -0.0.
49794         * tests/test-roundl.c (zero): New variable.
49795         (main): Avoid literal -0.0L.
49796         * tests/test-truncf1.c (zero): New variable.
49797         (main): Avoid literal -0.0f.
49798         * tests/test-trunc1.c (zero): New variable.
49799         (main): Avoid literal -0.0.
49800         * tests/test-truncl.c (zero): New variable.
49801         (main): Avoid literal -0.0L.
49802         * tests/test-frexp.c (zero): New variable.
49803         (main): Avoid literal -0.0.
49804         * tests/test-frexpl.c (zero): New variable.
49805         (main): Avoid literal -0.0L.
49806         * tests/test-ldexpl.c (zero): New variable.
49807         (main): Avoid literal -0.0L.
49808         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49809         (zerod, zerol): New variables.
49810         (test_function): Avoid literals -0.0, -0.0L.
49811         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49812         (zerod, zerol): New variables.
49813         (test_function): Avoid literals -0.0, -0.0L.
49814         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49815         (zerod, zerol): New variables.
49816         (test_function): Avoid literals -0.0, -0.0L.
49817         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49818         (zerod, zerol): New variables.
49819         (test_function): Avoid literals -0.0, -0.0L.
49820         * tests/test-strtod.c (zero): New variable.
49821         (main): Avoid literal -0.0.
49822         Reported by Jonathan C. Patschke <jp@centtech.com>.
49823
49824 2008-07-31  Jim Meyering  <meyering@redhat.com>
49825
49826         sha256.h: correct definition of SHA224_DIGEST_SIZE
49827         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49828         Reported by Paulie Pena IV <paulie4@gmail.com>.
49829         Define as 224 / 8, rather than as a literal.
49830         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49831         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49832         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49833
49834 2008-07-31  Bruno Haible  <bruno@clisp.org>
49835
49836         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49837         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49838         Reported by Jonathan Patschke <jp@centtech.com>.
49839
49840 2008-07-31  Bruno Haible  <bruno@clisp.org>
49841
49842         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49843         Reported by Paolo Bonzini <bonzini@gnu.org>.
49844
49845 2008-07-30  Eric Blake  <ebb9@byu.net>
49846
49847         test-strtod: allow compilation without -lm
49848         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49849         Reported by Dennis Clarke <blastwave@gmail.com>.
49850
49851 2008-07-28  Jim Meyering  <meyering@redhat.com>
49852
49853         bootstrap: work also when there are no .po files in po/
49854         * build-aux/bootstrap (update_po_files): Complete the change
49855         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49856
49857 2008-07-27  Jim Meyering  <meyering@redhat.com>
49858
49859         * users.txt: Add zile.
49860
49861 2008-07-26  Ben Pfaff  <blp@gnu.org>
49862
49863         Add missing dependencies on new m4/exponent[fdl].m4 files.
49864         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49865         * modules/isnand-nolibm: Add m4/exponentd.m4.
49866         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49867         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49868         m4/isnan[fdl].m4, because the macros actually used moved.
49869         Reported by Jim Meyering.
49870
49871 2008-07-14  Ben Pfaff  <blp@gnu.org>
49872
49873         Add isinf module.
49874         * lib/isinf.c: New file.
49875         * lib/math.in.h: Define isinf macro if we have decided to replace
49876         it.
49877         * m4/isinf.m4: New file.
49878         * m4/math_h.m4: Initialize and substitute variables for isinf
49879         module.
49880         * modules/isinf: New file.
49881         * modules/isinf-tests: New file.
49882         * modules/math: Add substitutions for new module.
49883         * tests/test-isinf.c: New file.
49884         * doc/posix-functions/isinf.texi: Mention new module.
49885         * MODULES.html.sh: Mention new module.
49886
49887 2008-07-14  Ben Pfaff  <blp@gnu.org>
49888
49889         Factor out some macros for use by additional modules.
49890         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49891         exponentf.m4.
49892         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49893         exponentd.m4.
49894         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49895         file exponentl.m4.
49896         * m4/exponentf.m4: New file.
49897         * m4/exponentd.m4: New file.
49898         * m4/exponentl.m4: New file.
49899         * modules/isnanf: Use new file m4/exponentf.m4.
49900         * modules/isnand: Use new file m4/exponentd.m4.
49901         * modules/isnanl: Use new file m4/exponentl.m4.
49902
49903 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49904
49905         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49906         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49907         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49908         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49909
49910         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49911         readlink on platforms without PATH_MAX.
49912
49913 2008-07-21  Eric Blake  <ebb9@byu.net>
49914
49915         Warn, not fail, on stale version.
49916         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49917
49918         Don't allow installation with stale devel version number.
49919         * top/GNUmakefile (_is-install-target): New macro.
49920         (_curr-ver): Forbid installation with stale version number.
49921
49922 2008-07-20  Bruno Haible  <bruno@clisp.org>
49923
49924         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49925         TESTS_ENVIRONMENT.
49926         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49927
49928 2008-07-20  Bruno Haible  <bruno@clisp.org>
49929
49930         * lib/c-stack.h (c_stack_action): Add documentation.
49931         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49932
49933 2008-07-20  Bruno Haible  <bruno@clisp.org>
49934
49935         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49936         * modules/readlink (License): Likewise.
49937
49938 2008-07-17  Eric Blake  <ebb9@byu.net>
49939
49940         * modules/c-stack (Link): Fix typo.
49941
49942         Make c-stack use libsigsegv, when available.
49943         * modules/c-stack (Depends-on): Add libsigsegv.
49944         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49945         needed.
49946         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49947         (segv_handler, overflow_handler, c_stack_action)
49948         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49949         implementation when libsigsegv is available, but only when using
49950         the library is necessary.
49951         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49952         comment, explaining why XSI check fails on Linux.
49953         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49954         * tests/test-c-stack2.sh: Tweak skip message.
49955         * NEWS: Document new link-time requirements.
49956
49957 2008-07-16  Eric Blake  <ebb9@byu.net>
49958
49959         c-stack: Expose false positives when not using libsigsegv.
49960         * modules/c-stack-tests (Files): Expand test.
49961         * tests/test-c-stack.c (main): Add means to conditionally trigger
49962         non-overflow SIGSEGV.
49963         * tests/test-c-stack2.sh: New file.
49964
49965 2008-07-14  Bruno Haible  <bruno@clisp.org>
49966
49967         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49968         Reported by Eric Blake.
49969
49970 2008-07-14  Sam Steingold  <sds@gnu.org>
49971             Bruno Haible  <bruno@clisp.org>
49972
49973         New module libsigsegv.
49974         * modules/libsigsegv: New file.
49975         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49976         modifications.
49977         * MODULES.html.sh (Signal handling): New section.
49978
49979 2008-07-14  Bruno Haible  <bruno@clisp.org>
49980
49981         * modules/unictype/ctype-* (Description): Add the word "function".
49982         Improves the resulting doc in MODULES.html.
49983
49984 2008-07-12  Ben Pfaff  <blp@gnu.org>
49985
49986         Add longlong module.
49987         * modules/longlong: New file.
49988
49989 2008-07-12  Bruno Haible  <bruno@clisp.org>
49990
49991         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49992         to empty.
49993
49994 2008-07-10  Ben Pfaff  <blp@gnu.org>
49995
49996         Add isnan module.
49997         * doc/posix-functions/isnan.texi: Mention new module.
49998         * lib/math.in.h: Define isnan macro if we have decided to replace
49999         it.
50000         * m4/isnan.m4: New file.
50001         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50002         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50003         also.
50004         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50005         redundancy.
50006         * m4/math_h.m4: Initialize and substitute variables for isnan
50007         module.
50008         * modules/isnan: New file.
50009         * modules/isnan-tests: New file.
50010         * modules/math: Add substitutions for new module.
50011         * tests/test-isnan.c: New file.
50012         * MODULES.html.sh: Mention new module.
50013
50014 2008-07-10  Ben Pfaff  <blp@gnu.org>
50015
50016         Add isnanf module.
50017         * lib/isnanf.m4: New file.
50018         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50019         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50020         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50021         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50022         * modules/isnanf: New file.
50023         * modules/isnanf-tests: New file.
50024         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50025         files.
50026         * tests/test-isnanf-nolibm.c: factored most of its contents into
50027         new file tests/test-isnanf.h.
50028         * tests/test-isnanf.h: New file.
50029         * tests/test-isnanf.c: New file.
50030         * MODULES.html.sh: Mention new module.
50031         * doc/glibc-functions/isnanf.texi: Mention new module.
50032
50033 2008-07-10  Ben Pfaff  <blp@gnu.org>
50034
50035         Add isnand module.
50036         * lib/isnand.h: New file.
50037         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50038         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50039         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50040         functionality also.
50041         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50042         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50043         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50044         * modules/isnand: New file.
50045         * modules/isnand-tests: New file.
50046         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50047         files.
50048         * tests/test-isnand-nolibm.c: factored most of its contents into
50049         new file tests/test-isnand.h.
50050         * tests/test-isnand.h: New file.
50051         * tests/test-isnand.c: New file.
50052         * MODULES.html.sh: Mention new module.
50053
50054 2008-07-10  Ben Pfaff  <blp@gnu.org>
50055
50056         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50057         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50058         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50059         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50060         * modules/isnanf-nolibm: Update references to renamed files.
50061         * modules/isnand-nolibm: Likewise.
50062         * modules/isnanf-nolibm-tests: Likewise.
50063         * modules/isnand-nolibm-tests: Likewise.
50064         * lib/frexp.c: Likewise.
50065         * lib/isfinite.c: Likewise.
50066         * lib/signbitd.c: Likewise.
50067         * lib/signbitf.c: Likewise.
50068         * lib/vasnprintf.c: Likewise.
50069         * tests/test-ceilf1.c: Likewise.
50070         * tests/test-ceilf2.c: Likewise.
50071         * tests/test-floorf1.c: Likewise.
50072         * tests/test-floorf2.c: Likewise.
50073         * tests/test-frexp.c: Likewise.
50074         * tests/test-round1.c: Likewise.
50075         * tests/test-round2.c: Likewise.
50076         * tests/test-roundf1.c: Likewise.
50077         * tests/test-strtod.c: Likewise.
50078         * tests/test-trunc1.c: Likewise.
50079         * tests/test-trunc2.c: Likewise.
50080         * tests/test-truncf1.c: Likewise.
50081         * tests/test-truncf2.c: Likewise.
50082         * NEWS: Mention the renamed header files.
50083
50084 2008-07-11  Jim Meyering  <meyering@redhat.com>
50085
50086         vc-list-files: make the last-resort awk code more portable
50087         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50088         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50089         does not support it.
50090
50091 2008-07-10  Eric Blake  <ebb9@byu.net>
50092
50093         Work with tar's bootstrap.
50094         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50095         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50096         an m4 comment.
50097
50098 2008-07-09  Jim Meyering  <meyering@redhat.com>
50099
50100         posix-shell.m4: fix typo that made this test malfunction
50101         * m4/posix-shell.m4: Remove capitalization in variable name.
50102
50103 2008-07-08  Bruno Haible  <bruno@clisp.org>
50104
50105         * m4/onceonly.m4: Update comments.
50106         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50107
50108 2008-07-04  Jim Meyering  <meyering@redhat.com>
50109
50110         * users.txt: Add vc-dwim.
50111         (bison, coreutils): Use the gitweb URL.
50112
50113 2008-07-03  Jim Meyering  <meyering@redhat.com>
50114
50115         * users.txt: Add libffcall.  From Sam Steingold.
50116
50117 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
50118
50119         getdate.y: do not ignore TZ with relative day, month or year offset
50120         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50121         relative-date-handling, since otherwise, the latter would clobber the
50122         sole output (an updated Start value) of the tz-handling block.
50123         * tests/test-getdate.c: Tests for the fix
50124
50125 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50126
50127         Recognize 'foo_LIBRARIES += libgnu.a'.
50128         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50129         makefile snippet has already specified an installation location,
50130         also using '+='.
50131
50132 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
50133
50134         getdate.y: factor out common actions
50135         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50136         Use them in place of open-coded actions.
50137
50138 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50139
50140         Add self-test for getdate module.
50141         * modules/getdate-tests: New file.
50142         * tests/test-getdate.c: New file.
50143
50144 2008-06-29  Bruno Haible  <bruno@clisp.org>
50145
50146         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50147         .gitignore.
50148         Reported by Sylvain Beucler <beuc@beuc.net>.
50149
50150 2008-06-29  Bruno Haible  <bruno@clisp.org>
50151
50152         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50153         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50154
50155 2008-06-29  Bruno Haible  <bruno@clisp.org>
50156
50157         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50158         EXTRA_DIST.
50159         Reported by Sylvain Beucler <beuc@beuc.net>.
50160
50161 2008-06-26  Jim Meyering  <meyering@redhat.com>
50162
50163         make several modules depend on the "open" module
50164         This provides slightly increased consistency when opening-for-write
50165         the name of a non-directory spelled with a trailing slash.
50166         * modules/chdir-safer: Likewise.
50167         * modules/chown: Likewise.
50168         * modules/clean-temp: Likewise.
50169         * modules/copy-file: Likewise.
50170         * modules/fchdir: Likewise.
50171         * modules/fcntl-safer: Likewise.
50172         * modules/pipe: Likewise.
50173         * modules/utime: Likewise.
50174         Prompted by Eric Blake and Bruno Haible.
50175
50176 2008-06-24  Andreas Schwab  <schwab@suse.de>
50177
50178         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50179         literals can be used as initializers for global variables.
50180
50181 2008-06-23  Eric Blake  <ebb9@byu.net>
50182
50183         Make gnulib-cache.m4 easier to diff.
50184         * gnulib-tool (func_import): Allow newlines when reading cached
50185         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50186
50187 2008-06-23  Bruno Haible  <bruno@clisp.org>
50188
50189         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50190         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50191         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50192         m4/signalblocking.m4.
50193         (gl_PREREQ_SIGACTION): Don't invoke it.
50194         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50195         gl_PREREQ_SIG_HANDLER_H.
50196         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50197         Don't check for sigaction here.
50198
50199 2008-06-23  Bruno Haible  <bruno@clisp.org>
50200
50201         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50202         (install_handlers): Don't set the SA_RESETHAND flag.
50203
50204 2008-06-23  Bruno Haible  <bruno@clisp.org>
50205
50206         * m4/sigaction.m4: Comment fixes.
50207         * lib/signal.in.h: Likewise.
50208
50209 2008-06-23  Eric Blake  <ebb9@byu.net>
50210
50211         Fix typo.
50212         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50213
50214         Avoid SA_ namespace.
50215         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50216         Reported by Ralf Wildenhues.
50217
50218         Avoid test failure due to SA_RESTORER.
50219         * tests/test-sigaction.c (SA_MASK): New macro.
50220         (main): Avoid failing due to extension flags being set.
50221         Reported by Jim Meyering.
50222
50223         Revert use of sig-handler.h in sigprocmask.c.
50224         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50225         it requires the existence of struct sigaction.
50226         * lib/sigprocmask.c (handler_t): Restore typedef.
50227         (rpl_signal, old_handlers): Use local type.
50228
50229 2008-06-22  Bruno Haible  <bruno@clisp.org>
50230
50231         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50232         conditionally.
50233         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50234
50235 2008-06-22  Bruno Haible  <bruno@clisp.org>
50236
50237         * doc/posix-functions/siginterrupt.texi: Move note.
50238
50239         * lib/signal.in.h (SA_RESTART): New macro.
50240         * lib/sigaction.c: Update comment.
50241
50242         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
50243
50244         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
50245         (gl_PREREQ_SIGPROCMASK): Invoke it.
50246         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
50247
50248         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
50249
50250         * lib/sigprocmask.c: Update a comment.
50251
50252 2008-06-21  Eric Blake  <ebb9@byu.net>
50253
50254         Use sigaction module rather than signal().
50255         * modules/c-stack (Depends-on): Add sigaction.
50256         * modules/fatal-signal (Depends-on): Likewise.
50257         * modules/nanosleep (Depends-on): Likewise.
50258         * modules/sigprocmask (Files): Add sig-handler.h.
50259         * modules/sigaction (Files): Likewise.
50260         * lib/sig-handler.h (get_handler): New file, suggested by Paul
50261         Eggert.
50262         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
50263         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
50264         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
50265         (init_fatal_signals): Likewise.
50266         * lib/nanosleep.c (rpl_nanosleep): Likewise.
50267         (siginterrupt): Delete fallback.
50268         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
50269         instead.
50270         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
50271         siginterrupt.
50272
50273         New module sigaction, for mingw.
50274         * modules/sigaction: New module...
50275         * modules/sigaction-tests: ...and its test.
50276         * m4/sigaction.m4: New file.
50277         * lib/sigaction.c: Likewise.
50278         * tests/test-sigaction.c: Likewise.
50279         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
50280         * modules/signal (Makefile.am): Likewise.
50281         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
50282         needed.
50283         * doc/posix-headers/signal.texi (signal.h): Mention provided
50284         types.
50285         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
50286         that sigaction is preferable.
50287         * doc/posix-functions/sigaction.texi (sigaction): Mention new
50288         module.
50289         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50290         sigaction.
50291
50292         Improve robustness of sigprocmask by overriding signal.
50293         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
50294         is in use.
50295         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
50296         (SIGKILL, SIGSTOP): Provide fallbacks.
50297         (rpl_signal): Implement.
50298         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
50299         signal can be called inside handlers.
50300
50301         Fix nanosleep module on mingw.
50302         * modules/nanosleep (Depends-on): Add sys_select.
50303         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
50304
50305         Fix licensing of sigprocmask.
50306         * modules/raise (License): Relicense as LGPL.
50307
50308 2008-06-21  Bruno Haible  <bruno@clisp.org>
50309
50310         * lib/propername.c (proper_name_utf8): Don't use the transliterated
50311         result if it contains question marks.
50312         Reported by Michael Geng <linux@michaelgeng.de>.
50313
50314 2008-06-19  Bruno Haible  <bruno@clisp.org>
50315
50316         Fix CVS-ism.
50317         * doc/gnulib.texi: Include updated-stamp.texi.
50318         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
50319         (updated-stamp.texi): New rule.
50320         (gnulib.info): Depend on it.
50321         * doc/.gitignore: Add updated-stamp.texi.
50322         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
50323
50324 2008-06-19  Bruno Haible  <bruno@clisp.org>
50325
50326         * doc/Makefile (gnulib.info): Update and simplify dependencies.
50327         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50328
50329 2008-06-19  Eric Blake  <ebb9@byu.net>
50330
50331         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
50332         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
50333         Reported by Stepan Kasal.
50334
50335 2008-06-18  Bruno Haible  <bruno@clisp.org>
50336
50337         * lib/fatal-signal.c (init_fatal_signals): Add comment.
50338         Reported by Eric Blake.
50339
50340 2008-06-18  Eric Blake  <ebb9@byu.net>
50341
50342         Work around cygwin 1.5.25 strsignal bug.
50343         * tests/test-strsignal.c: Allow for const char *.
50344         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
50345
50346 2008-06-18  Simon Josefsson  <simon@josefsson.org>
50347
50348         * users.txt: Update URL to article and add author/date
50349         information.
50350
50351 2008-06-17  Bruno Haible  <bruno@clisp.org>
50352
50353         New macro gl_DISABLE_THREADS.
50354         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
50355         if the user did not pass --enable-threads or --disable-threads option.
50356         (gl_DISABLE_THREADS): New macro.
50357         Reported by Eric Blake <ebb9@byu.net>.
50358
50359 2008-06-17  Bruno Haible  <bruno@clisp.org>
50360
50361         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
50362         when the macro ignores it.
50363         Based on a patch by Eric Blake <ebb9@byu.net>.
50364
50365 2008-06-17  Bruno Haible  <bruno@clisp.org>
50366
50367         * modules/tls (License): Change to LGPLv2+.
50368         Reported by Eric Blake.
50369
50370 2008-06-17  Eric Blake  <ebb9@byu.net>
50371
50372         Simplify c-stack prerequisites.
50373         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50375         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50376         check.
50377         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50378         <sys/resource.h>.
50379
50380         Move c-stack test into testsuite.
50381         * modules/c-stack-tests: New file.
50382         * lib/c-stack.c [DEBUG]: Move test program...
50383         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50384         fail test if sigaltstack is lacking.
50385         * tests/test-c-stack.sh: New driver file.
50386
50387 2008-06-16  Eric Blake  <ebb9@byu.net>
50388
50389         Use raise module consistently.
50390         * modules/fatal-signal (Depends-on): Add raise.
50391         * modules/sigprocmask (Depends-on): Likewise.
50392         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50393         * lib/sigprocmask.c (sigprocmask): Likewise.
50394         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50395         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50396
50397         Fix compliance bug in sigpending.
50398         * lib/sigprocmask.c (sigpending): Return pending array via
50399         parameter, not return value.
50400
50401 2008-06-14  Eric Blake  <ebb9@byu.net>
50402
50403         Improve obstack-printf test code.
50404         * tests/test-obstack-printf.c (test_function): Fix comment, and
50405         simplify usage of obstack_* in macros.  Add a test for coverage.
50406         Reported by Bruno Haible.
50407
50408 2008-06-14  Bruno Haible  <bruno@clisp.org>
50409
50410         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50411         array size as a constant, not as a const variable.
50412         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50413         AC_USE_SYSTEM_EXTENSIONS.
50414         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50415         Test whether the obstack_printf function actually exists.
50416         * modules/obstack-printf (Depends-on): Add extensions.
50417         (Include): Remove obstack.h.
50418         * modules/obstack-printf-posix (Depends-on): Add extensions.
50419         (Include): Remove obstack.h.
50420
50421 2008-06-13  Eric Blake  <ebb9@byu.net>
50422
50423         Add obstack-printf and obstack-printf-posix modules.
50424         * modules/obstack-printf: New file.
50425         * modules/obstack-printf-posix: Likewise.
50426         * MODULES.html.sh (Misc): Mention them.
50427         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50428         Likewise.
50429         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50430         Likewise.
50431         * modules/stdio (Makefile.am): Accomodate new modules.
50432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50433         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50434         Declare.
50435         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50436         functions.
50437         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50438         (gl_REPLACE_OBSTACK_PRINTF): New macros
50439         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50440         * tests/test-obstack-printf.c: New file.
50441         * modules/obstack-printf-tests: Likewise.
50442         * modules/obstack-printf-posix-tests: Likewise.
50443
50444 2008-06-11  Bruno Haible  <bruno@clisp.org>
50445
50446         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50447         * lib/open.c: Include errno.h.
50448         (open): Fail when attempting to write to a file that has a trailing
50449         slash.
50450         * tests/test-open.c (main): Test against trailing slash bug.
50451         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50452
50453 2008-06-10  Bruno Haible  <bruno@clisp.org>
50454
50455         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50456         for $? to work inside the trap command, with various /bin/sh-s.
50457         * tests/test-vc-list-files-cvs.sh: Likewise.
50458
50459 2008-06-10  Bruno Haible  <bruno@clisp.org>
50460
50461         * lib/acl-internal.h: Don't include gettext.h here.
50462         * lib/set-mode-acl.c: Include gettext.h here.
50463         * lib/copy-acl.c: Likewise.
50464
50465 2008-06-10  Bruno Haible  <bruno@clisp.org>
50466
50467         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50468         * lib/wait-process.c (wait_subprocess): Likewise.
50469         * lib/execute.h (execute): Add termsigp argument.
50470         * lib/execute.c (execute): Likewise.
50471         * lib/csharpcomp.c (compile_csharp_using_pnet,
50472         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50473         * lib/csharpexec.c (execute_csharp_using_pnet,
50474         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50475         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50476         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50477         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50478         is_jikes_present): Update.
50479         * lib/javaexec.c (execute_java_class): Update.
50480         * lib/javaversion.c (execute_and_read_line): Update.
50481         * NEWS: Document the changes.
50482         Reported by Eric Blake.
50483
50484 2008-06-10  Eric Blake  <ebb9@byu.net>
50485
50486         Add missing include.
50487         * tests/test-strstr.c (includes): Add <signal.h>.
50488         * tests/test-strcasestr.c (includes): Likewise.
50489         * tests/test-memmem.c (includes): Likewise.
50490
50491 2008-06-10  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/wait-process.c (wait_subprocess): Add an assertion.
50494
50495 2008-06-10  Bruno Haible  <bruno@clisp.org>
50496
50497         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50498
50499 2008-06-10  Bruno Haible  <bruno@clisp.org>
50500
50501         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50502         using alarm().
50503         * tests/test-strcasestr.c (main): Likewise.
50504         * tests/test-strstr.c (main): Likewise.
50505
50506 2008-06-09  Bruno Haible  <bruno@clisp.org>
50507
50508         Work around the Solaris 10 ACE ACLs ABI change.
50509         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50510         declare if ACL_NO_TRIVIAL is present.
50511         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50512         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50513         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50514         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50515         define if ACL_NO_TRIVIAL is present.
50516         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50517         and use the current ABI.
50518         (file_has_acl): Use same #if condition as elsewhere.
50519         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50520         in use, and use the current ABI.
50521         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50522         Reported by Jim Meyering.
50523
50524 2008-06-09  Eric Blake  <ebb9@byu.net>
50525
50526         Work around environments that (stupidly) ignore SIGALRM.
50527         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50528         before using alarm().
50529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50530         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50531         Reported by Ian Beckwith <ianb@erislabs.net>.
50532
50533         Produce autobuild blurb earlier in log.
50534         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50535
50536 2008-06-09  Jim Meyering  <meyering@redhat.com>
50537         and Ondřej Vašík  <ovasik@redhat.com>
50538
50539         utimens.c: correct kernel bug work-around
50540         Ondřej Vašík found that the invalid return value of 280 indicates
50541         failure, not success, and the kernel bug we're trying to work
50542         around affects not just the utimensat call, but also the fallback
50543         futimens call.
50544         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50545         not success.
50546         [HAVE_FUTIMENS]: Use the same work-around, here.
50547
50548 2008-06-09  Jim Meyering  <meyering@redhat.com>
50549
50550         add more guards around definition of ACE_-related code
50551         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50552         ALLOW and ACE_OWNER are also defined.
50553
50554 2008-06-08  Bruno Haible  <bruno@clisp.org>
50555
50556         * lib/acl-internal.h: Add me as co-author.
50557         * lib/file-has-acl.c: Likewise.
50558         * lib/set-mode-acl.c: Likewise.
50559         * lib/copy-acl.c: Likewise.
50560
50561 2008-06-08  Bruno Haible  <bruno@clisp.org>
50562
50563         Add support for AIX ACLs.
50564         * lib/acl-internal.h (acl_nontrivial): New declaration.
50565         * lib/file-has-acl.c (acl_nontrivial): New function.
50566         (file_has_acl): Add implementation using AIX 4 ACL API.
50567         * lib/set-mode-acl.c (qset_acl): Likewise.
50568         * lib/copy-acl.c (qcopy_acl): Likewise.
50569
50570 2008-06-08  Bruno Haible  <bruno@clisp.org>
50571
50572         Add support for HP-UX ACLs.
50573         * lib/acl-internal.h (acl_nontrivial): New declaration.
50574         * lib/file-has-acl.c (acl_nontrivial): New function.
50575         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50576         * lib/set-mode-acl.c (qset_acl): Likewise.
50577         * lib/copy-acl.c (qcopy_acl): Likewise.
50578
50579 2008-06-08  Bruno Haible  <bruno@clisp.org>
50580
50581         Add support for Cygwin ACLs.
50582         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50583         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50584         the chmod_or_fchmod call.
50585         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50586
50587 2008-06-08  Bruno Haible  <bruno@clisp.org>
50588
50589         Fix bug with setuid modes in Solaris 10+ code.
50590         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50591         succeeded, when the mode contains some special bits.
50592
50593 2008-06-08  Bruno Haible  <bruno@clisp.org>
50594
50595         Add support for Solaris 7..10 ACLs.
50596         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50597         declarations.
50598         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50599         functions.
50600         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50601         * lib/set-mode-acl.c (qset_acl): Likewise.
50602         * lib/copy-acl.c (qcopy_acl): Likewise.
50603
50604 2008-06-08  Bruno Haible  <bruno@clisp.org>
50605
50606         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50607         declaration.
50608         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50609         (acl_access_nontrivial): Remove MacOS X case.
50610         (file_has_acl): Use acl_extended_nontrivial.
50611         * lib/copy-acl.c (qcopy_acl): Likewise.
50612
50613 2008-06-08  Bruno Haible  <bruno@clisp.org>
50614
50615         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50616
50617 2008-06-08  Jim Meyering  <meyering@redhat.com>
50618
50619         * modules/acl (Maintainer): Add Bruno Haible.
50620
50621 2008-06-07  Bruno Haible  <bruno@clisp.org>
50622
50623         Improve support for Tru64 ACLs.
50624         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50625         ACL on OSF/1.
50626
50627 2008-06-07  Bruno Haible  <bruno@clisp.org>
50628
50629         Add support for MacOS X ACLs.
50630         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50631         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50632         * lib/set-mode-acl.c (qset_acl): Likewise.
50633         * lib/copy-acl.c (qcopy_acl): Likewise.
50634
50635 2008-06-07  Bruno Haible  <bruno@clisp.org>
50636
50637         Fix memory leak introduced on 2008-05-22.
50638         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50639         use.
50640
50641 2008-06-07  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50644         to construct an empty ACL.
50645
50646 2008-06-07  Bruno Haible  <bruno@clisp.org>
50647
50648         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50649         precisely.
50650         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50651
50652 2008-06-07  Bruno Haible  <bruno@clisp.org>
50653
50654         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50655         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50656
50657 2008-06-07  Bruno Haible  <bruno@clisp.org>
50658
50659         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50660         regardless of POSIX.
50661         * doc/posix-functions/_longjmp.texi: Likewise.
50662         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50663         SystemV platform in this case.
50664
50665 2008-06-06  Eric Blake  <ebb9@byu.net>
50666
50667         Document abort() bugs.
50668         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50669
50670         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50671         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50672         sigsetjmp.
50673         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50674         siglongjmp, but only as a macro.
50675         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50676         is obsolete.
50677         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50678
50679         Tweak documentation to cover cygwin argz bugs.
50680         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50681         argz bug fix; no code change needed since no cygwin releases
50682         occurred between the last fix and the bug being tested.
50683         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50684         module and recently fixed cygwin bugs.
50685         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50686         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50687         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50688         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50689         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50690         Likewise.
50691         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50692         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50693         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50694         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50695         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50696         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50697         Likewise.
50698
50699         Avoid gcc warning on cygwin.
50700         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50701         !ACL_NO_TRIVIAL]: Avoid unused variable.
50702
50703 2008-06-05  Eric Blake  <ebb9@byu.net>
50704
50705         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50706         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50707         git-version-gen fails to come up with a version.
50708         Reported by Simon Josefsson.
50709
50710 2008-06-05  Jim Meyering  <meyering@redhat.com>
50711             Paul Eggert  <eggert@cs.ucla.edu>
50712
50713         utimens.c: work around a probable Linux kernel bug
50714         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50715         appears to be a kernel bug that causes utimensat to return 280
50716         instead of 0, indicating success.
50717
50718 2008-06-04  Bruno Haible  <bruno@clisp.org>
50719
50720         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50721         2008-06-01 commit.
50722
50723 2008-06-04  Bruno Haible  <bruno@clisp.org>
50724
50725         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50726         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50727         (file_has_acl): Use it. Save errno afterwards.
50728         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50729
50730 2008-06-03  Bruno Haible  <bruno@clisp.org>
50731
50732         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50733         draft code. Simplify #ifs.
50734         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50735         Put Solaris code after POSIX-draft code. Fix comments regarding
50736         Solaris 10, HP-UX. Mention Cygwin.
50737         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50738
50739 2008-06-03  Eric Blake  <ebb9@byu.net>
50740
50741         Provide fallback for older kernels.
50742         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50743         Provide runtime fallback if kernel lacks support.
50744         Reported by Mike Frysinger.
50745
50746 2008-06-02  Bruno Haible  <bruno@clisp.org>
50747
50748         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50749         it exists.
50750
50751 2008-06-02  Bruno Haible  <bruno@clisp.org>
50752
50753         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50754         * lib/copy-acl.c (qcopy_acl): Update comment.
50755
50756 2008-06-02  Bruno Haible  <bruno@clisp.org>
50757
50758         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50759         like ACL APIs.
50760
50761 2008-06-02  Bruno Haible  <bruno@clisp.org>
50762
50763         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50764         * tests/test-set-mode-acl.sh: Likewise.
50765         * tests/test-copy-acl.sh: Likewise.
50766         * tests/test-copy-file.sh: Likewise.
50767
50768 2008-06-02  Bruno Haible  <bruno@clisp.org>
50769
50770         * tests/test-file-has-acl.sh: Remove unused code.
50771
50772 2008-06-01  Bruno Haible  <bruno@clisp.org>
50773
50774         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50775         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50776         messages.
50777         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50778
50779 2008-06-01  Bruno Haible  <bruno@clisp.org>
50780
50781         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50782         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50783         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50784         APIs.
50785         * modules/acl-tests (configure.ac): Remove tests now contained in
50786         m4/acl.m4.
50787
50788 2008-06-02  Jim Meyering  <meyering@redhat.com>
50789
50790         announce-gen: use a better key-server host name
50791         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50792         it may be more consistently reliable.  Suggested by Werner Koch
50793         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50794
50795 2008-06-01  Bruno Haible  <bruno@clisp.org>
50796
50797         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50798         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50799
50800 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50801
50802         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50803
50804 2008-06-01  Bruno Haible  <bruno@clisp.org>
50805
50806         New ACL tests.
50807         * tests/test-file-has-acl.sh: New file.
50808         * tests/test-file-has-acl.c: New file.
50809         * tests/test-set-mode-acl.sh: New file.
50810         * tests/test-set-mode-acl.c: New file.
50811         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50812         * tests/test-copy-acl.c: New file.
50813         * modules/acl-tests: New file, based on modules/copy-file-tests.
50814         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50815         (Depends-on): Add acl-tests.
50816         (configure.ac): Remove checks.
50817         (Makefile.am): Don't create test-sameacls program here any more.
50818
50819 2008-06-01  Bruno Haible  <bruno@clisp.org>
50820
50821         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50822         * tests/test-sameacls.c: Include progname.h.
50823         (main): Invoke set_program_name. Portability fixes for MacOS X,
50824         Solaris, HP-UX.
50825
50826 2008-06-01  Bruno Haible  <bruno@clisp.org>
50827
50828         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50829         function.
50830         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50831
50832 2008-06-01  Bruno Haible  <bruno@clisp.org>
50833
50834         * modules/rpmatch (Depends-on): Add strdup.
50835
50836 2008-06-01  Bruno Haible  <bruno@clisp.org>
50837
50838         * lib/pipe.c: Include unistd-safer.h.
50839         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50840         * modules/pipe (Depends-on): Add unistd-safer.
50841
50842 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50843
50844         * modules/autobuild (configure.ac): Call AB_INIT.
50845
50846 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50847
50848         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50849         Suggested by Bruno Haible <bruno@clisp.org>.
50850
50851 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50852
50853         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50854         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50855         <bruno@clisp.org>.
50856
50857 2008-05-29  Eric Blake  <ebb9@byu.net>
50858
50859         Prefer new POSIX 200x interfaces over futimesat.
50860         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50861         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50862         when available.
50863         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50864
50865 2008-05-28  Bruno Haible  <bruno@clisp.org>
50866
50867         * modules/stpcpy (License): Change to LGPLv2+.
50868         Requested by David Lutterkort <dlutter@redhat.com>.
50869
50870 2008-05-27  Bruno Haible  <bruno@clisp.org>
50871
50872         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50873         current mingw.
50874         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50875
50876 2008-05-27  Bruno Haible  <bruno@clisp.org>
50877
50878         * modules/iconv_open (Link): New section, from module 'iconv'.
50879         * modules/striconv (Link): Likewise.
50880         * modules/striconveh (Link): Likewise.
50881         * modules/xstriconv (Link): Likewise.
50882         * modules/unicodeio (Link): Likewise.
50883         * modules/propername (Link): Likewise.
50884         Reported by Jim Meyering.
50885
50886 2008-05-26  Jim Meyering  <meyering@redhat.com>
50887
50888         sha256: do not artificially restrict buffer length to be < 2^32
50889         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50890         uint32_t to size_t.
50891         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50892         to match.
50893
50894         avoid unaligned access errors, e.g., on sparc
50895         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50896         direct access through a possibly-unaligned uint64* pointer.
50897         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50898         direct access through a possibly-unaligned uint32* pointer.
50899         Prompted by this patch from Tom "spot" Callaway:
50900         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50901
50902         sha512.c: fix typo in comment
50903         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50904
50905 2008-05-25  Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50908         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50909         (Makefile.am): Update lib_SOURCES.
50910
50911 2008-05-25  Bruno Haible  <bruno@clisp.org>
50912
50913         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50914
50915 2008-05-25  Jim Meyering  <meyering@redhat.com>
50916
50917         useless-if-before-free: freed expr may have white-space differences
50918         * build-aux/useless-if-before-free: Recognize cases in which the
50919         freed expression differs from the tested one in embedded white
50920         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50921         $1 was used, so we can't make any regexp shy.  Improved tests now
50922         detect this.
50923
50924         useless-if-before-free: accept white space in the expression.
50925         * build-aux/useless-if-before-free: For now, any white space
50926         in the expression must be identical in the free argument.
50927
50928         useless-if-before-free: efficiency tweak
50929         * build-aux/useless-if-before-free: Make the expression-matching
50930         regexp "shy".
50931         Make the *outer* regexp shy, not the expr-matching one.
50932
50933         update code-in-comment to accept cast of free arg
50934         * build-aux/useless-if-before-free: Update regexp.
50935
50936 2008-05-25  Bruno Haible  <bruno@clisp.org>
50937
50938         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50939         * modules/copy-file-tests (Files, Makefile.am): Update.
50940         * tests/test-copy-file.c (func_test_copy): Update.
50941
50942 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50943
50944         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50945
50946 2008-05-23  Bruno Haible  <bruno@clisp.org>
50947
50948         Improve support for ACLs on OSF/1.
50949         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50950         Remove fallback for unknown flavors of ACLs.
50951
50952 2008-05-22  Bruno Haible  <bruno@clisp.org>
50953
50954         Add support for ACLs on OSF/1.
50955         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50956         replacements.
50957         (acl_free_text): New macro fallback.
50958         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50959         acl_free.
50960         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50961         acl_free_text function. Require AC_C_INLINE.
50962
50963 2008-05-22  Bruno Haible  <bruno@clisp.org>
50964
50965         Make copy_acl work on MacOS X 10.5.
50966         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50967         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50968         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50969         If MODE_INSIDE_ACL, don't assume that every system has the same text
50970         representation for ACLs as FreeBSD.
50971         * lib/copy-acl.c (copy_acl): Add support for platforms with
50972         !MODE_INSIDE_ACL.
50973         * lib/file-has-acl.c (file_has_acl): Likewise.
50974         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50975         FreeBSD, MacOS X, or IRIX, respectively.
50976
50977 2008-05-22  Bruno Haible  <bruno@clisp.org>
50978
50979         * lib/acl.h: Don't include <sys/acl.h>.
50980         (GETACLCNT): Move fallback to lib/acl-internal.h.
50981         * lib/acl-internal.h: Include <sys/acl.h> here.
50982         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50983
50984 2008-05-22  Bruno Haible  <bruno@clisp.org>
50985
50986         Split off copy_acl function to separate file.
50987         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50988         * lib/acl.c (copy_acl): Moved function to separate file.
50989         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50990         * modules/acl (Files): Add lib/copy-acl.c.
50991         (Makefiles.am): Augment lib_SOURCES.
50992
50993 2008-05-22  Bruno Haible  <bruno@clisp.org>
50994
50995         * modules/copy-file-tests: New file.
50996         * tests/test-copy-file.sh: New file.
50997         * tests/test-copy-file.c: New file.
50998         * tests/test-copy-file-sameacls.c: New file.
50999
51000 2008-05-22  Eric Blake  <ebb9@byu.net>
51001
51002         Avoid gcc warning.
51003         * tests/test-memcmp.c (main): Pass NULL indirectly.
51004
51005 2008-05-21  Bruno Haible  <bruno@clisp.org>
51006
51007         Add reference doc about ACLs.
51008         * doc/acl-resources.txt: New file.
51009         * doc/acl-cygwin.txt: New file.
51010
51011 2008-05-21  Bruno Haible  <bruno@clisp.org>
51012
51013         Avoid one more warning from gcc.
51014         * lib/vasnprintf.c (IF_LINT): Update comments.
51015         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51016
51017 2008-05-21  Jim Meyering  <meyering@redhat.com>
51018
51019         avoid a warning from gcc
51020         * lib/vasnprintf.c (IF_LINT): Define.
51021         (scale10_round_decimal_long_double):
51022         Use it to avoid a "may be used uninitialized" warning.
51023         (scale10_round_decimal_double): Likewise.
51024
51025 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51026
51027         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51028         declared.
51029
51030 2008-05-20  Bruno Haible  <bruno@clisp.org>
51031
51032         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51033         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51034
51035 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51036
51037         * modules/memcmp-tests: New file.
51038         * tests/test-memcmp.c: New file.
51039
51040 2008-05-19  Bruno Haible  <bruno@clisp.org>
51041
51042         * modules/propername (Notice, configure.ac): Put quoted "..." into
51043         --keyword option.
51044         * lib/propername.h: Update comments accordingly.
51045         Reported by Eric Blake.
51046
51047 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51048
51049         * modules/getpass-gnu (Depends-on): Add fseeko.
51050
51051 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51052
51053         * modules/base64-tests: New file.
51054
51055 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51056
51057         * lib/base64.c (base64_decode_ctx): If a decode context structure
51058         was passed in use it to ignore newlines.  If a context structure
51059         was _not_ passed in, continue to treat newlines as garbage (this
51060         is the historical behavior).  Formerly base64_decode.
51061         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51062         takes a decode context structure.
51063         * lib/base64.h (base64_decode): Macro for four-argument calls.
51064         (base64_decode_alloc): Likewise.
51065         * lib/base64.c (base64_decode_ctx): If a decode context structure
51066         was passed in use it to ignore newlines.  If a context structure
51067         was _not_ passed in, continue to treat newlines as garbage (this
51068         is the historical behavior).  Formerly base64_decode.
51069         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51070         takes a decode context structure.
51071         * lib/base64.h (base64_decode): Macro for four-argument calls.
51072         (base64_decode_alloc): Likewise.
51073
51074 2008-05-19  Jim Meyering  <meyering@redhat.com>
51075
51076         avoid a warning from gcc
51077         * lib/trim.c (IF_LINT): Define.
51078         (trim2): Use it to avoid a "may be used uninitialized" warning.
51079
51080         Fix doc typo.
51081         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51082
51083 2008-05-19  Bruno Haible  <bruno@clisp.org>
51084
51085         * doc/glibc-functions/getpass.texi: Document limits of other
51086         implementations.
51087
51088 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51089             Bruno Haible <bruno@clisp.org>
51090
51091         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51092
51093 2008-05-18  Bruno Haible  <bruno@clisp.org>
51094
51095         * modules/propername: New file, from GNU gettext.
51096         * lib/propername.h: New file, from GNU gettext.
51097         * lib/propername.c: New file, from GNU gettext.
51098         * MODULES.html.sh (Internationalization functions): Add propername.
51099
51100 2008-05-16  Jim Meyering  <meyering@redhat.com>
51101             Bruno Haible  <bruno@clisp.org>
51102
51103         Avoid some warnings from "gcc -Wshadow".
51104         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51105
51106 2008-05-15  Eric Blake  <ebb9@byu.net>
51107
51108         Extend previous patch to cygwin 1.7.0.
51109         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51110         fast implementation in cygwin >= 1.7.0.
51111         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51112         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51113
51114 2008-05-15  Bruno Haible  <bruno@clisp.org>
51115
51116         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51117         implementation in glibc >= 2.9.
51118         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51120
51121 2008-05-15  Bruno Haible  <bruno@clisp.org>
51122
51123         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51124         (Unicode string functions): Add unilbrk/*.
51125         Reported by Karl Berry.
51126
51127 2008-05-15  Eric Blake  <ebb9@byu.net>
51128
51129         Fix violation of <stdbool.h> replacement in regex.
51130         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51131         * lib/regexec.c (re_search_internal): Likewise.
51132         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51133
51134 2008-05-15  Jim Meyering  <meyering@redhat.com>
51135
51136         avoid distracting test output when git or cvs is not found
51137         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51138         * tests/test-vc-list-files-git.sh: Likewise.
51139
51140 2008-05-15  Eric Blake  <ebb9@byu.net>
51141
51142         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51143         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51144         glibc version.
51145         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51146         * doc/posix-functions/strstr.texi (strstr): Likewise.
51147         * lib/str-two-way.h (MAX): Sychronize with glibc.
51148
51149 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51150
51151         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51152         opr.ctx_type.
51153         (calc_first): Initialize constraint field.
51154         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51155         Fix grammar.
51156         (duplicate_node): Merge constraint field for all node types.
51157         (calc_eclosure_iter): Look at constraint field for all node types.
51158         * lib/regex_internal.c (create_cd_newstate): Don't look at
51159         opr.ctx_type.
51160
51161 2008-05-14  Bruno Haible  <bruno@clisp.org>
51162
51163         Help GCC to do better code generation.
51164         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51165         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51166         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51167         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51168         Declare with attribute 'malloc' if supported.
51169
51170 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51171
51172         use "echo STR|wc -c" rather than unportable "expr length STR"
51173         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51174         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51175
51176 2008-05-14  Jim Meyering  <meyering@redhat.com>
51177
51178         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51179         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51180         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51181         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51182         via Collin Lasse.
51183
51184 2008-05-14  Eric Blake  <ebb9@byu.net>
51185
51186         Avoid quadratic growth in gl_LIBSOURCES.
51187         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51188         Suggested by Bruno Haible.
51189
51190         Test xmemdup0.
51191         * modules/xmemdup0-tests: New file.
51192         * tests/test-xmemdup0.c: Likewise.
51193
51194 2008-05-13  Eric Blake  <ebb9@byu.net>
51195
51196         Split xmemdup0 into its own module.
51197         * modules/xmemdup0: New file.
51198         * lib/xmemdup0.h: Likewise.
51199         * lib/xmemdup0.c: Likewise.
51200         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51201         * lib/xalloc.h (xmemdup0): Remove.
51202         * lib/xmalloc.c (xmemdup0): Likewise.
51203
51204 2008-05-13  Eric Blake  <ebb9@byu.net>
51205             Bruno Haible  <bruno@clisp.org>
51206
51207         Reduce number of forks required during autoconf.
51208         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51209         and gl_LIBSOURCES_DIR.
51210         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51211         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51212         m4_syscmd per file.
51213         <m4_foreach_w>: Move...
51214         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51215
51216 2008-05-13  Eric Blake  <ebb9@byu.net>
51217
51218         * gnulib-tool: Fix various comment typos.
51219
51220 2008-05-12  Bruno Haible  <bruno@clisp.org>
51221
51222         Tailor the linebreaking algorithm.
51223         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51224
51225 2008-05-12  Bruno Haible  <bruno@clisp.org>
51226
51227         Update to Unicode 5.0.0.
51228         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51229         LBP_JV, LBP_JT. Redistribute values.
51230         (unilbrk_table): Change size.
51231         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51232         Unicode TR#14 rev. 22.
51233         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51234         LBP_JV, LBP_JT. Redistribute values.
51235         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
51236         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
51237         Update.
51238         * lib/unilbrk/lbrkprop1.h: Regenerated.
51239         * lib/unilbrk/lbrkprop2.h: Regenerated.
51240         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
51241         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
51242         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
51243         Likewise.
51244         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
51245         Likewise.
51246         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
51247         result.
51248         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
51249         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
51250         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
51251         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
51252         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
51253         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
51254
51255 2008-05-11  Bruno Haible  <bruno@clisp.org>
51256
51257         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
51258
51259 2008-05-11  Bruno Haible  <bruno@clisp.org>
51260
51261         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
51262         * modules/unilbrk/gen-lbrk: New file.
51263
51264 2008-05-11  Bruno Haible  <bruno@clisp.org>
51265
51266         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
51267         * m4/sha512.m4 (gl_SHA512): Likewise.
51268
51269 2008-05-11  Jim Meyering  <meyering@redhat.com>
51270
51271         New modules: crypto/sha256, crypto/sha512 (from coreutils)
51272         * modules/crypto/sha256: New file.
51273         * modules/crypto/sha512: Likewise.
51274         * lib/sha256.c: Likewise.
51275         * lib/sha256.h: Likewise.
51276         * lib/sha512.c: Likewise.
51277         * lib/sha512.h: Likewise.
51278         * lib/u64.h: Likewise.
51279         * m4/sha256.m4: Likewise.
51280         * m4/sha512.m4: Likewise.
51281         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
51282
51283 2008-05-10  Bruno Haible  <bruno@clisp.org>
51284
51285         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
51286         (Input/Output <stdio.h>): Add xprintf.
51287         (Signal handling <signal.h>): Add strsignal.
51288         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
51289         (Core language properties): Add func.
51290         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
51291         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
51292         strings.
51293         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
51294         (Input/output): New section.
51295         (File system functions): Add openat-die, stat-macros.
51296         (Networking functions): Add sockets.
51297         (Unicode string functions): Add unictype/*.
51298         (Support for building libraries and executables): Add gperf.
51299         (Support for building documentation): Add agpl-3.0.
51300         (Misc): Add nocrash.
51301
51302 2008-05-10  Bruno Haible  <bruno@clisp.org>
51303
51304         * modules/unictype/gen-ctype: New file.
51305
51306 2008-05-10  Jim Meyering  <meyering@redhat.com>
51307
51308         Make chdir-safer.c more efficient on a system with no symlinks.
51309         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
51310         also if ELOOP is zero.  Suggested by Bruno Haible.
51311
51312         Make chdir-safer.c slightly safer.
51313         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
51314         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
51315
51316         Avoid compile failure on systems without ELOOP (like mingw).
51317         * lib/chdir-safer.c (ELOOP): Define if not already defined.
51318         Reported by Bruno Haible.
51319
51320 2008-05-10  Bruno Haible  <bruno@clisp.org>
51321
51322         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
51323         (is_utf8_encoding): Use a case-insensitive comparison.
51324         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
51325         streq.
51326
51327 2008-05-10  Bruno Haible  <bruno@clisp.org>
51328
51329         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
51330         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
51331         * lib/unilbrk/ulc-common.h (iconv_string_length,
51332         iconv_string_keeping_offsets): Remove declarations.
51333         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
51334         Don't include <iconv.h>, streq.h, xsize.h.
51335         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
51336         conversion.
51337         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
51338         <iconv.h>, streq.h, xsize.h.
51339         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
51340         conversion.
51341         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
51342         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
51343         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
51344         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
51345
51346 2008-05-10  Bruno Haible  <bruno@clisp.org>
51347
51348         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
51349         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
51350
51351         * modules/unilbrk/u32-width-linebreaks-tests: New file.
51352         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
51353
51354         * modules/unilbrk/u16-width-linebreaks-tests: New file.
51355         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
51356
51357         * modules/unilbrk/u8-width-linebreaks-tests: New file.
51358         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
51359
51360         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
51361         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
51362
51363         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
51364         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
51365
51366         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51367         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51368
51369         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51370         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51371
51372 2008-05-10  Bruno Haible  <bruno@clisp.org>
51373
51374         Split up 'linebreak' module.
51375         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51376         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51377         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51378         modifications.
51379         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51380         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51381         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51382         lib/linebreak.c.
51383         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51384         lib/linebreak.c.
51385         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
51386         lib/linebreak.c.
51387         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
51388         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51389         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51390         lib/linebreak.c.
51391         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51392         lib/linebreak.c.
51393         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51394         lib/linebreak.c.
51395         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51396         lib/linebreak.c.
51397         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51398         lib/linebreak.c.
51399         * modules/unilbrk/base: New file.
51400         * modules/unilbrk/tables: New file.
51401         * modules/unilbrk/u8-possible-linebreaks: New file.
51402         * modules/unilbrk/u16-possible-linebreaks: New file.
51403         * modules/unilbrk/u32-possible-linebreaks: New file.
51404         * modules/unilbrk/ulc-common: New file.
51405         * modules/unilbrk/ulc-possible-linebreaks: New file.
51406         * modules/unilbrk/u8-width-linebreaks: New file.
51407         * modules/unilbrk/u16-width-linebreaks: New file.
51408         * modules/unilbrk/u32-width-linebreaks: New file.
51409         * modules/unilbrk/ulc-width-linebreaks: New file.
51410         * lib/linebreak.h: Remove file.
51411         * lib/linebreak.c: Remove file.
51412         * m4/linebreak.m4: Remove file.
51413         * modules/linebreak: Remove file.
51414         * NEWS: Mention the changes.
51415
51416 2008-05-09  Eric Blake  <ebb9@byu.net>
51417
51418         Add xmemdup0.
51419         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51420         implementation.
51421         * lib/xmalloc.c (xmemdup0): New C implementation.
51422
51423 2008-05-08  Bruno Haible  <bruno@clisp.org>
51424
51425         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51426
51427 2008-05-07  Eric Blake  <ebb9@byu.net>
51428
51429         Support cross-compilation of <wctype.h>.
51430         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51431         AC_CACHE_CHECK.
51432
51433 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51434
51435         * build-aux/vc-list-files: Add support for bzr.
51436
51437 2008-05-03  Jim Meyering  <meyering@redhat.com>
51438
51439         avoid failed assertion with tight malloc
51440         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51441
51442 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51443
51444         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51445         are needed from arpa/inet.h.
51446         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51447         Reported by Bruno Haible.
51448
51449 2008-05-02  Jim Meyering  <meyering@redhat.com>
51450
51451         avoid compilation error on FreeBSD 6
51452         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51453
51454 2008-05-01  Jim Meyering  <meyering@redhat.com>
51455
51456         useless-if-before-free: correct --help's exit status description
51457         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51458         for one or more matches, etc.  Reported by Bruno Haible.
51459
51460         vc-list-files: make the stand-alone gnulib test work
51461         * modules/vc-list-files-tests (configure.ac):
51462         Define and AC_SUBST abs_aux_dir.
51463         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51464         $(abs_top_srcdir) to each script and having each of them
51465         duplicate the work of setting PATH, set PATH here, using
51466         the new variable, abs_aux_dir instead.
51467         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51468         * tests/test-vc-list-files-git.sh: Likewise.
51469         Reported by Bruno Haible.
51470
51471 2008-05-01  Bruno Haible  <bruno@clisp.org>
51472
51473         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51474         reallocation. Rename 'done' to 'found_delimiter'.
51475
51476 2008-05-01  Jim Meyering  <meyering@redhat.com>
51477
51478         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51479         * build-aux/vc-list-files: Use `...`, not $(...).
51480
51481 2008-04-30  Jim Meyering  <meyering@redhat.com>
51482
51483         add tests for vc-list-files
51484         * modules/vc-list-files-tests: New module.
51485         * tests/test-vc-list-files-cvs.sh: New file.
51486         * tests/test-vc-list-files-git.sh: New file.
51487
51488         avoid a warning from gcc
51489         * lib/getndelim2.c (IF_LINT): Define.
51490         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51491
51492         vc-list-files: work properly with build-aux/cvsu, too
51493         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51494         to all cvs-based clauses.
51495
51496         vc-list-files: work properly in the CVS+awk case, too
51497         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51498
51499         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51500         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51501         take more than one file argument, so .  Add quotes, just in case $dir
51502         ever contains a shell meta-character.  Prompted by Soren Hansen in
51503         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51504
51505 2008-04-29  Eric Blake  <ebb9@byu.net>
51506
51507         Optimize getndelim2 to use block operations when possible.
51508         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51509         freadseek, and memchr2.
51510         * lib/getndelim2.c (getndelim2): Use them for block reads.
51511
51512 2008-04-29  Bruno Haible  <bruno@clisp.org>
51513
51514         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51515         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51516         * modules/inet_ntop (Depends-on): Add extensions.
51517         * modules/inet_pton (Depends-on): Likewise.
51518         Reported by Simon Josefsson.
51519
51520 2008-04-29  Jim Meyering  <meyering@redhat.com>
51521
51522         When the is more than one match in a block, match all of them.
51523         * build-aux/useless-if-before-free: Iterate through each block
51524         until there are no more matches.
51525
51526         Fix broken useless-if-before-free script.
51527         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51528         the expression to match cast of argument to free-like function.
51529
51530 2008-04-29  Eric Blake  <ebb9@byu.net>
51531
51532         Use new header.
51533         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51534
51535 2008-04-29  Jim Meyering  <meyering@redhat.com>
51536
51537         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51538         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51539         by gnulib to exist and to declare e.g., inet_ntop.
51540         Don't include "inet_ntop.h", now removed.
51541
51542         * m4/arpa_inet_h.m4: Remove trailing blanks.
51543
51544 2008-04-29  Eric Blake  <ebb9@byu.net>
51545
51546         Silence valgrind on safe reads beyond potential array bounds.
51547         * lib/rawmemchr.valgrind: New file.
51548         * lib/strchrnul.valgrind: Likewise.
51549         * modules/rawmemchr (Files): Distribute new file.
51550         * modules/strchrnul (Files): Likewise.
51551         Suggested by Bruno Haible.
51552
51553 2008-04-29  Bruno Haible  <bruno@clisp.org>
51554
51555         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51556         (inet_ntop, inet_pton): Change portability warning's wording.
51557         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51558         Invoke gl_CHECK_NEXT_HEADERS.
51559         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51560         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51561         set ARPA_INET_H.
51562         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51563         * modules/arpa_inet (Description): No longer only for systems that
51564         lack it.
51565         (Depends-on): Add include_next.
51566         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51567         HAVE_ARPA_INET_H.
51568
51569 2008-04-29  Jim Meyering  <meyering@redhat.com>
51570
51571         * modules/mkdir (License): Re-license as LGPLv2+.
51572
51573 2008-04-29  Bruno Haible  <bruno@clisp.org>
51574
51575         * modules/rawmemchr (Maintainer): Set to Eric.
51576         * modules/strchrnul (Maintainer): Likewise.
51577
51578 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51579
51580         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51581         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51582
51583         * modules/arpa_inet (arpa/inet.h): Use them.
51584
51585 2008-04-28  Eric Blake  <ebb9@byu.net>
51586
51587         Test getndelim2.
51588         * modules/getndelim2-tests: New file.
51589         * tests/test-getndelim2.c: Likewise.
51590         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51591         stream.
51592         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51593
51594         * MODULES.html.sh: Document new module.
51595
51596 2008-04-20  Bruno Haible  <bruno@clisp.org>
51597
51598         * lib/c-stack.c (die): Use raise.
51599         * modules/c-stack (Depends-on): Add raise.
51600
51601 2008-04-28  Bruno Haible  <bruno@clisp.org>
51602
51603         Expect rpmatch to be declared.
51604         * lib/yesno.c (rpmatch): Remove declaration.
51605
51606         Declare rpmatch.
51607         * lib/stdlib.in.h (rpmatch): New declaration.
51608         * lib/rpmatch.c: Include <stdlib.h> first.
51609         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51610         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51612         HAVE_RPMATCH.
51613         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51614         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51615         (Include): Set to <stdlib.h>.
51616         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51617         HAVE_RPMATCH.
51618         * NEWS: Document the change.
51619
51620 2008-04-28  Bruno Haible  <bruno@clisp.org>
51621
51622         Change rpmatch to use nl_langinfo when appropriate.
51623         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51624         (N_): New macro.
51625         (localized_pattern): New function/macro.
51626         (try): Remove match, nomatch arguments. Copy the pattern into safe
51627         memory before caching it.
51628         (rpmatch): Use localized_pattern. Add translator comments.
51629         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51630         Suggested by Eric Blake.
51631         * modules/rpmatch (Depends-on): Add stdbool.
51632
51633 2008-04-28  Eric Blake  <ebb9@byu.net>
51634
51635         Add rawmemchr module, matching glibc.
51636         * modules/string (Makefile.am): New indicator.
51637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51638         * lib/string.in.h (rawmemchr): Declare when appropriate.
51639         * modules/rawmemchr: New file.
51640         * m4/rawmemchr.m4: Likewise.
51641         * lib/rawmemchr.c: Likewise.
51642         * modules/rawmemchr-tests: Likewise.
51643         * tests/test-rawmemchr.c: Likewise.
51644         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51645         module.
51646         * modules/strchrnul (Depends-on): Add rawmemchr.
51647         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51648
51649         Whitespace cleanup.
51650         * tests/test-strchrnul.c: Reindent.
51651         * lib/strchrnul.c: Likewise.
51652
51653         Optimize and test strchrnul.
51654         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51655         * modules/strchrnul-tests: New file.
51656         * tests/test-strchrnul.c: Likewise.
51657
51658         Remove intprops dependency.
51659         * modules/memchr (Depends-on): Remove intprops.
51660         * modules/memrchr (Depends-on): Likewise.
51661         * modules/memchr2 (Depends-on): Likewise.
51662         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51663         * lib/memrchr.c (__memrchr): Likewise.
51664         * lib/memrchr2.c (memchr2): Likewise.
51665         Reported by Simon Josefsson.
51666
51667 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51668
51669         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51670         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51671
51672 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51673
51674         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51675
51676         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51677
51678         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51679
51680         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51681         declarations.
51682         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51683
51684         * m4/inet_pton.m4: Don't check for header files.
51685
51686         * m4/inet_ntop.m4: Don't check for header files.
51687
51688 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51689
51690         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51691         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51692         trigger for cygwin).
51693         Reported by Bruno Haible  <bruno@clisp.org>.
51694
51695 2008-04-28  Bruno Haible  <bruno@clisp.org>
51696
51697         * doc/posix-functions/strdup.texi: Mention mingw problem.
51698
51699 2008-04-27  Bruno Haible  <bruno@clisp.org>
51700
51701         * modules/stat-time-tests (Depends-on): Add sleep.
51702         * tests/test-stat-time.c (force_unlink): New function.
51703         (cleanup): Use it.
51704         (test_mtime): Remove the ctime related tests.
51705         (test_ctime): New function, containing the ctime related tests.
51706         (main): Call test_ctime, except on native Windows platforms.
51707
51708 2008-04-27  Bruno Haible  <bruno@clisp.org>
51709
51710         * lib/rpmatch.c (rpmatch): Add some comments.
51711         Reported by James Youngman <jay@gnu.org>.
51712
51713 2008-04-27  Bruno Haible  <bruno@clisp.org>
51714
51715         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51716         quiet NaNs.
51717
51718 2008-04-27  Bruno Haible  <bruno@clisp.org>
51719
51720         Make test-yesno.sh work on mingw.
51721         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51722         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51723         (main): Set stdin to binary mode.
51724         * modules/yesno-tests (Depends-on): Add binary-io.
51725
51726 2008-04-27  Bruno Haible  <bruno@clisp.org>
51727
51728         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51729         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51730         argument that lie outside the IEEE 854 domain.
51731         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51732         (gl_ISFINITE): Use it.
51733         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51734
51735 2008-04-27  Bruno Haible  <bruno@clisp.org>
51736
51737         Allow local renaming in config.h.
51738         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51739
51740 2008-04-27  Bruno Haible  <bruno@clisp.org>
51741
51742         * lib/memchr.c (__memchr): Change type of 'i'.
51743         * lib/memchr2.c (memchr2): Likewise.
51744
51745 2008-04-26  Eric Blake  <ebb9@byu.net>
51746         and Bruno Haible  <bruno@clisp.org>
51747
51748         Optimize and test memrchr.
51749         * modules/memrchr (Depends-on): Add intprops.
51750         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51751         * modules/memrchr-tests: New file.
51752         * tests/test-memrchr.c: New file.
51753
51754 2008-04-26  Bruno Haible  <bruno@clisp.org>
51755
51756         Add tentative support for DragonFly BSD.
51757         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51758         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51759         fp.
51760         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51761         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51762         * lib/fpurge.c (fpurge): Likewise.
51763         * lib/freadable.c (freaadable): Likewise.
51764         * lib/freadahead.c (freadahead): Likewise.
51765         * lib/freading.c (freading): Likewise.
51766         * lib/freadptr.c (freadptr): Likewise.
51767         * lib/freadseek.c (freadptrinc): Likewise.
51768         * lib/fseeko.c (fseeko): Likewise.
51769         * lib/fseterr.c (fseterr): Likewise.
51770         * lib/fwritable.c (fwritable): Likewise.
51771         * lib/fwriting.c (fwriting): Likewise.
51772
51773 2008-04-26  Bruno Haible  <bruno@clisp.org>
51774
51775         * lib/stdio-impl.h: New file.
51776         * lib/fbufmode.c: Include stdio-impl.h.
51777         (fbufmode): Use fp_, remove redundant #defines.
51778         * lib/fflush.c: Include stdio-impl.h.
51779         (clear_ungetc_buffer): Remove redundant #defines.
51780         * lib/fpurge.c: Include stdio-impl.h.
51781         (fpurge): Remove redundant #defines.
51782         * lib/freadable.c: Include stdio-impl.h.
51783         (freadable): Remove redundant #defines.
51784         * lib/freadahead.c: Include stdio-impl.h.
51785         (freadahead): Remove redundant #defines.
51786         * lib/freading.c: Include stdio-impl.h.
51787         (freading): Remove redundant #defines.
51788         * lib/freadptr.c: Include stdio-impl.h.
51789         (freadptr): Remove redundant #defines.
51790         * lib/freadseek.c: Include stdio-impl.h.
51791         (freadptrinc): Remove redundant #defines.
51792         * lib/fseeko.c: Include stdio-impl.h.
51793         (rpl_fseeko): Remove redundant #defines.
51794         * lib/fseterr.c: Include stdio-impl.h.
51795         (fseterr): Remove redundant #defines.
51796         * lib/fwritable.c: Include stdio-impl.h.
51797         (fwritable: Remove redundant #defines.
51798         * lib/fwriting.c: Include stdio-impl.h.
51799         (fwriting): Remove redundant #defines.
51800         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51801         * modules/fflush (Files): Likewise.
51802         * modules/fpurge (Files): Likewise.
51803         * modules/freadable (Files): Likewise.
51804         * modules/freadahead (Files): Likewise.
51805         * modules/freading (Files): Likewise.
51806         * modules/freadptr (Files): Likewise.
51807         * modules/freadseek (Files): Likewise.
51808         * modules/fseeko (Files): Likewise.
51809         * modules/fseterr (Files): Likewise.
51810         * modules/fwritable (Files): Likewise.
51811         * modules/fwriting (Files): Likewise.
51812
51813 2008-04-26  Bruno Haible  <bruno@clisp.org>
51814
51815         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51816         restore_seek_optimization, update_fpos_cache): New functions, extracted
51817         from rpl_fflush.
51818         (rpl_fflush): Use them.
51819         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51820         (gl_REPLACE_FFLUSH): Use it.
51821
51822 2008-04-26  Bruno Haible  <bruno@clisp.org>
51823
51824         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51825         on Solaris.
51826         * tests/test-xstrtoimax.sh: Likewise.
51827         * tests/test-xstrtoumax.sh: Likewise.
51828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51829
51830 2008-04-26  Bruno Haible  <bruno@clisp.org>
51831
51832         * modules/memchr-tests: New file.
51833         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51834
51835 2008-04-26  Eric Blake  <ebb9@byu.net>
51836             Bruno Haible  <bruno@clisp.org>
51837
51838         * lib/memchr.c: Include intprops.h.
51839         (__memchr): Optimize parallel detection of matching bytes. Rename local
51840         variables. Add explanatory comments.
51841
51842 2008-04-26  Bruno Haible  <bruno@clisp.org>
51843
51844         Fix module 'memchr', broken since 2000-10-28.
51845         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51846
51847 2008-04-26  Bruno Haible  <bruno@clisp.org>
51848
51849         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51850         comments.
51851
51852 2008-04-25  Eric Blake  <ebb9@byu.net>
51853
51854         Use native fstatat on cygwin 1.7.0.
51855         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51856         first.
51857
51858 2008-04-23  Eric Blake  <ebb9@byu.net>
51859
51860         Improve memchr2 performance.
51861         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51862         NUL bytes.
51863         * modules/memchr2 (Depends-on): Use intprops.h.
51864
51865 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51866
51867         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51868         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51869         <blp@cs.stanford.edu>.
51870
51871 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51872
51873         * lib/arpa_inet.in.h: New file.
51874
51875         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51876         (Makefile.am): Sed in substitute header file.
51877
51878         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51879         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51880
51881         * modules/inet_ntop (configure.ac): Use
51882         gl_ARPA_INET_MODULE_INDICATOR.
51883
51884         * modules/inet_pton (configure.ac): Use
51885         gl_ARPA_INET_MODULE_INDICATOR.
51886
51887 2008-04-22  Jim Meyering  <meyering@redhat.com>
51888
51889         * modules/verify (License): Re-license as LGPLv2+.
51890
51891 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51892
51893         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51894         parameter to void* as per POSIX standard (MinGW uses char*).
51895
51896 2008-04-21  Bruno Haible  <bruno@clisp.org>
51897
51898         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51899         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51900         Define to replacements if REPLACE_ISWCNTRL is 1.
51901         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51902         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51903         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51904         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51905         what it fixes.
51906         * doc/posix-functions/iswalpha.texi: Likewise.
51907         * doc/posix-functions/iswblank.texi: Likewise.
51908         * doc/posix-functions/iswcntrl.texi: Likewise.
51909         * doc/posix-functions/iswdigit.texi: Likewise.
51910         * doc/posix-functions/iswgraph.texi: Likewise.
51911         * doc/posix-functions/iswlower.texi: Likewise.
51912         * doc/posix-functions/iswprint.texi: Likewise.
51913         * doc/posix-functions/iswpunct.texi: Likewise.
51914         * doc/posix-functions/iswspace.texi: Likewise.
51915         * doc/posix-functions/iswupper.texi: Likewise.
51916         * doc/posix-functions/iswxdigit.texi: Likewise.
51917         Reported by Alain Guibert.
51918
51919 2008-04-21  Bruno Haible  <bruno@clisp.org>
51920
51921         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51922         Patch by Alain Guibert.
51923
51924 2008-04-21  Bruno Haible  <bruno@clisp.org>
51925
51926         Fix test failures on mingw.
51927         * tests/test-xstrtol.c (print_no_progname): New function.
51928         (main): Install it in error_print_progname hook.
51929         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51930         * tests/test-xstrtoimax.sh: Likewise.
51931         * tests/test-xstrtoumax.sh: Likewise.
51932
51933 2008-04-21  Bruno Haible  <bruno@clisp.org>
51934
51935         Fix test failure on mingw.
51936         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51937
51938 2008-04-21  Bruno Haible  <bruno@clisp.org>
51939
51940         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51941         Actually assign a value.
51942
51943 2008-04-20  Bruno Haible  <bruno@clisp.org>
51944
51945         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51946         take 2.
51947         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51948         'canonicalize-lgpl' module is also used.
51949         * lib/canonicalize-lgpl.c: Undo last change.
51950         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51951
51952 2008-04-20  Bruno Haible  <bruno@clisp.org>
51953
51954         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51955         config.h. Provide _mkdir based fallback for mingw.
51956         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51957         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51958         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51959         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51960         rather than defining mkdir in config.h.
51961         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51962         (gl_SYS_STAT_H_DEFAULTS): New macro.
51963         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51964         HAVE_IO_H any more.
51965         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51966         HAVE_DECL_MKDIR and HAVE_IO_H.
51967
51968 2008-04-20  Bruno Haible  <bruno@clisp.org>
51969
51970         * lib/isapipe.c: Port to native Windows platforms.
51971
51972 2008-04-20  Bruno Haible  <bruno@clisp.org>
51973
51974         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51975
51976 2008-04-21  Eric Blake  <ebb9@byu.net>
51977
51978         Work around preprocessors that don't handle UINTMAX_MAX.
51979         * lib/memchr2.c (memchr2): Avoid embedded #if.
51980         Reported by Alain Guibert, fix suggested by Bruno Haible.
51981
51982 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51983
51984         * doc/posix-functions/strftime.texi (strftime): Explain better
51985         Windows incompatibility.  Suggested by Micah Cowan
51986         <micah@cowan.name>.
51987
51988 2008-04-20  Bruno Haible  <bruno@clisp.org>
51989
51990         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51991         unistr/u8-mblen.
51992
51993 2008-04-20  Bruno Haible  <bruno@clisp.org>
51994
51995         Fix test failure on platforms with non-GNU iconv.
51996         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51997         (U_TO_U8): Use it, rather than u16_to_u8.
51998         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51999         units at the end of the input string.
52000         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52001
52002 2008-04-20  Bruno Haible  <bruno@clisp.org>
52003
52004         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52005         when the resulting length is 0.
52006         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52007
52008 2008-04-20  Bruno Haible  <bruno@clisp.org>
52009
52010         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52011         works.
52012         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52013
52014 2008-04-20  Bruno Haible  <bruno@clisp.org>
52015
52016         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52017         * modules/tsearch-tests (configure.ac): Test for initstate function.
52018
52019 2008-04-20  Bruno Haible  <bruno@clisp.org>
52020
52021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52022         for nlink_t if missing.
52023         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52024
52025 2008-04-19  Bruno Haible  <bruno@clisp.org>
52026
52027         Work around snprintf bug on Linux libc5.
52028         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52029         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52030         gl_SNPRINTF_SIZE1.
52031         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52032         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52033         that test failed.
52034         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52035         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52036         * modules/snprintf (Files): Add m4/printf.m4.
52037         * modules/vsnprintf (Files): Likewise.
52038         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52039         * doc/posix-functions/vsnprintf.texi: Likewise.
52040
52041 2008-04-19  Bruno Haible  <bruno@clisp.org>
52042
52043         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52044         from 0.0058 to less than 10^-7.
52045
52046 2008-04-19  Bruno Haible  <bruno@clisp.org>
52047
52048         Fix rounding when a precision is given.
52049         * lib/vasnprintf.c (is_borderline): New function.
52050         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52051         9...9x.
52052         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52053         %e, %g.
52054         * tests/test-vasprintf-posix.c (test_function): Likewise.
52055         * tests/test-snprintf-posix.h (test_function): Likewise.
52056         * tests/test-sprintf-posix.h (test_function): Likewise.
52057         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52058         * tests/test-printf-posix.h (test_function): Likewise.
52059         * tests/test-printf-posix.output: Update.
52060         Reported by John Darrington <john@darrington.wattle.id.au> via
52061         Ben Pfaff <blp@cs.stanford.edu>.
52062
52063 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52064
52065         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52066         Suggested by Bruno Haible <bruno@clisp.org>.
52067
52068 2008-04-17  Bruno Haible  <bruno@clisp.org>
52069
52070         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52071         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52072         implementation.
52073         Patch by Bruce Merry <bmerry@gmail.com>.
52074
52075 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52076
52077         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52078         doesn't work under Windows.
52079
52080 2008-04-16  Bruno Haible  <bruno@clisp.org>
52081
52082         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52083         New macros.
52084         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52085         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52086         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52087         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52088         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52089         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52090         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52091         macros.
52092         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52093         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52094         Northern Sotho, Uighur.
52095
52096 2008-04-16  Bruno Haible  <bruno@clisp.org>
52097
52098         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52099         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52100         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52101         Reported by Daniel Bergström <daniel@octocode.com>.
52102
52103 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52104             Bruno Haible  <bruno@clisp.org>
52105
52106         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52107         function.
52108         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52109         New functions, mostly extracted from gl_locale_name_default.
52110         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52111
52112 2008-04-16  Eric Blake  <ebb9@byu.net>
52113
52114         Adjust strtod detection to catch glibc 2.7 bug.
52115         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52116         Reported by John Gatewood Ham.
52117
52118 2008-04-16  Bruno Haible  <bruno@clisp.org>
52119
52120         Add tentative support for Linux libc5.
52121         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52122         * lib/fpurge.c (fpurge): Likewise.
52123         * lib/freadable.c (freadable): Likewise.
52124         * lib/freadahead.c (freadahead): Likewise.
52125         * lib/freading.c (freading): Likewise.
52126         * lib/freadptr.c (freadptr): Likewise.
52127         * lib/freadseek.c (freadptrinc): Likewise.
52128         * lib/fseeko.c (rpl_fseeko): Likewise.
52129         * lib/fseterr.c (fseterr): Likewise.
52130         * lib/fwritable.c (fwritable): Likewise.
52131         * lib/fwriting.c (fwriting): Likewise.
52132         Reported by Alain Guibert <alguibert+bts@free.fr>.
52133
52134 2008-04-15  Bruno Haible  <bruno@clisp.org>
52135
52136         * modules/mathl (configure.ac): Define module indicator.
52137
52138 2008-04-15  Bruno Haible  <bruno@clisp.org>
52139
52140         * lib/logl.c (logl): Remove unused variables.
52141
52142 2008-04-15  Bruno Haible  <bruno@clisp.org>
52143
52144         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52145         fails.
52146
52147 2008-04-15  Bruno Haible  <bruno@clisp.org>
52148
52149         * lib/trim.c (trim2): Fix argument of isspace() macro.
52150
52151 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52152
52153         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52154         to 0.
52155         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52156
52157 2008-04-14  Bruno Haible  <bruno@clisp.org>
52158
52159         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52160         AC_LANG_PROGRAM argument.
52161         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52162         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52164         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52165         * m4/math_h.m4 (gl_MATH_H): Likewise.
52166         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52167         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52168         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52169         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52170         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52171         * m4/regex.m4 (gl_REGEX): Likewise.
52172         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52173         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52174         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52175         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52176         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52177         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52178         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52179         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52180
52181 2008-04-14  Jim Meyering  <meyering@redhat.com>
52182
52183         test-strtod: fix typos: s/abs/fabs/
52184         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52185
52186 2008-04-13  Bruno Haible  <bruno@clisp.org>
52187
52188         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52189         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52190         module is also used and while not building the reloc-wrapper.
52191
52192 2008-04-13  Bruno Haible  <bruno@clisp.org>
52193
52194         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52195
52196 2008-04-13  Bruno Haible  <bruno@clisp.org>
52197
52198         Fix AIX compilation failure introduced on 2008-04-02.
52199         * tests/test-frexp.c (exp): Undefine before redefining.
52200         * tests/test-frexpl.c (exp): Likewise.
52201
52202 2008-04-13  Bruno Haible  <bruno@clisp.org>
52203
52204         Work around a HP-UX stdio bug.
52205         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52206         * tests/test-ftello.c (main): Likewise.
52207         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52208         * doc/posix-functions/ftello.texi: Likewise.
52209
52210 2008-04-13  Bruno Haible  <bruno@clisp.org>
52211
52212         Make test-signbit pass on HP-UX/hppa.
52213         * tests/test-signbit.c (minus_zerol): New variable.
52214         (test_signbitl): Use it.
52215
52216 2008-04-13  Bruno Haible  <bruno@clisp.org>
52217
52218         Make truncl work on OSF/1 4.0.
52219         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52220         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52221         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52223         HAVE_DECL_TRUNCL.
52224         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52225         HAVE_DECL_TRUNCL.
52226         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52227
52228 2008-04-13  Bruno Haible  <bruno@clisp.org>
52229
52230         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52231
52232 2008-04-13  Bruno Haible  <bruno@clisp.org>
52233
52234         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52235         expression, so as to avoid HP-UX 11 cc compiler bug.
52236
52237 2008-04-13  Bruno Haible  <bruno@clisp.org>
52238
52239         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
52240
52241 2008-04-13  Bruno Haible  <bruno@clisp.org>
52242
52243         * lib/git-merge-changelog.c: Remove empty declaration outside of
52244         functions.
52245
52246 2008-04-13  Bruno Haible  <bruno@clisp.org>
52247
52248         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
52249
52250 2008-04-13  Bruno Haible  <bruno@clisp.org>
52251
52252         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
52253         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
52254         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
52255         also if it exists but lacks definitions of the SHUT_* macros.
52256         * modules/sys_socket (Description): Update.
52257         Reported by Elbert Pol <e.pol@chello.nl>.
52258
52259 2008-04-13  Bruno Haible  <bruno@clisp.org>
52260
52261         * lib/localcharset.c (OS2): Don't redefine if already defined.
52262         Reported by Elbert Pol <e.pol@chello.nl>.
52263
52264 2008-04-13  Bruno Haible  <bruno@clisp.org>
52265
52266         * lib/binary-io.h [__EMX__]: Include <io.h>.
52267         Reported by Elbert Pol <e.pol@chello.nl>.
52268
52269 2008-04-12  Bruno Haible  <bruno@clisp.org>
52270
52271         * lib/fpucw.h: Enable the definitions also for x86_64.
52272         Needed for NetBSD/x86_64.
52273         Reported by Thomas Klausner <tk@giga.or.at>.
52274
52275 2008-04-12  Bruno Haible  <bruno@clisp.org>
52276
52277         * tests/test-strtod.c: Include isnand.h.
52278         (main): Use isnand instead of isnan.
52279         Reported by Jim Meyering.
52280
52281 2008-04-12  Bruno Haible  <bruno@clisp.org>
52282
52283         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
52284         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52285
52286 2008-04-12  Jim Meyering  <meyering@redhat.com>
52287
52288         * m4/math_h.m4 (gl_MATH_H): Fix typos.
52289
52290 2008-04-12  Bruno Haible  <bruno@clisp.org>
52291
52292         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
52293         Reported by Elbert Pol <e.pol@chello.nl>.
52294
52295 2008-04-12  Eric Blake  <ebb9@byu.net>
52296
52297         Work around Solaris 10 math.h bug.
52298         * m4/math_h.m4 (gl_MATH_H): Check for bug.
52299         (gl_MATH_H_DEFAULTS): Set up default.
52300         * modules/math (Makefile.am): Replace new indicators.
52301         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
52302         * tests/test-math.c (main): Test this.
52303         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
52304         * doc/posix-headers/math.texi (math.h): Mention bug.
52305         Reported by Nelson H. F. Beebe and Jim Meyering.
52306
52307 2008-04-11  Bruno Haible  <bruno@clisp.org>
52308
52309         Adapt to future versions of Apple GCC.
52310         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
52311         Reported by Peter O'Gorman <peter@pogma.com>.
52312
52313 2008-04-11  Bruno Haible  <bruno@clisp.org>
52314
52315         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
52316
52317 2008-04-11  Bruno Haible  <bruno@clisp.org>
52318
52319         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
52320
52321         * modules/getaddrinfo-tests (Makefile.am): Define
52322         test_getaddrinfo_LDADD.
52323
52324 2008-04-11  Bruno Haible  <bruno@clisp.org>
52325
52326         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
52327         (init): Fix syntax error.
52328         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
52329         is declared.
52330
52331 2008-04-11  Bruno Haible  <bruno@clisp.org>
52332
52333         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
52334         * modules/glob (Depends-on): Add stdbool.
52335
52336 2008-04-11  Bruno Haible  <bruno@clisp.org>
52337
52338         * lib/trim.c: Include <string.h>.
52339
52340 2008-04-11  Eric Blake  <ebb9@byu.net>
52341
52342         Avoid compile failure on OS/2.
52343         * lib/regex_internal.h (internal_function): Disable optimization
52344         on OS/2 (__EMX__), where it caused compiler error.
52345         Reported by Elbert Pol.
52346
52347 2008-04-11  Bruno Haible  <bruno@clisp.org>
52348
52349         Flush the standard error stream before aborting. Needed on mingw.
52350         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
52351         * tests/test-array_list.c (ASSERT): Likewise.
52352         * tests/test-array_oset.c (ASSERT): Likewise.
52353         * tests/test-avltree_list.c (ASSERT): Likewise.
52354         * tests/test-avltree_oset.c (ASSERT): Likewise.
52355         * tests/test-avltreehash_list.c (ASSERT): Likewise.
52356         * tests/test-binary-io.c (ASSERT): Likewise.
52357         * tests/test-byteswap.c (ASSERT): Likewise.
52358         * tests/test-c-ctype.c (ASSERT): Likewise.
52359         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
52360         * tests/test-c-strcasestr.c (ASSERT): Likewise.
52361         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
52362         * tests/test-c-strstr.c (ASSERT): Likewise.
52363         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
52364         * tests/test-canonicalize.c (ASSERT): Likewise.
52365         * tests/test-carray_list.c (ASSERT): Likewise.
52366         * tests/test-ceilf1.c (ASSERT): Likewise.
52367         * tests/test-ceilf2.c (ASSERT): Likewise.
52368         * tests/test-ceill.c (ASSERT): Likewise.
52369         * tests/test-count-one-bits.c (ASSERT): Likewise.
52370         * tests/test-fbufmode.c (ASSERT): Likewise.
52371         * tests/test-fflush2.c (ASSERT): Likewise.
52372         * tests/test-floorf1.c (ASSERT): Likewise.
52373         * tests/test-floorf2.c (ASSERT): Likewise.
52374         * tests/test-floorl.c (ASSERT): Likewise.
52375         * tests/test-fopen.c (ASSERT): Likewise.
52376         * tests/test-fpending.c (ASSERT): Likewise.
52377         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52378         * tests/test-fpurge.c (ASSERT): Likewise.
52379         * tests/test-freadable.c (ASSERT): Likewise.
52380         * tests/test-freadahead.c (ASSERT): Likewise.
52381         * tests/test-freading.c (ASSERT): Likewise.
52382         * tests/test-freadptr.c (ASSERT): Likewise.
52383         * tests/test-freadptr2.c (ASSERT): Likewise.
52384         * tests/test-freadseek.c (ASSERT): Likewise.
52385         * tests/test-freopen.c (ASSERT): Likewise.
52386         * tests/test-frexp.c (ASSERT): Likewise.
52387         * tests/test-frexpl.c (ASSERT): Likewise.
52388         * tests/test-fseek.c (ASSERT): Likewise.
52389         * tests/test-fseeko.c (ASSERT): Likewise.
52390         * tests/test-fstrcmp.c (ASSERT): Likewise.
52391         * tests/test-ftell.c (ASSERT): Likewise.
52392         * tests/test-ftello.c (ASSERT): Likewise.
52393         * tests/test-func.c (ASSERT): Likewise.
52394         * tests/test-fwritable.c (ASSERT): Likewise.
52395         * tests/test-fwriting.c (ASSERT): Likewise.
52396         * tests/test-getdelim.c (ASSERT): Likewise.
52397         * tests/test-getline.c (ASSERT): Likewise.
52398         * tests/test-i-ring.c (ASSERT): Likewise.
52399         * tests/test-iconv-utf.c (ASSERT): Likewise.
52400         * tests/test-iconv.c (ASSERT): Likewise.
52401         * tests/test-isfinite.c (ASSERT): Likewise.
52402         * tests/test-isnand.c (ASSERT): Likewise.
52403         * tests/test-isnanf.c (ASSERT): Likewise.
52404         * tests/test-isnanl.h (ASSERT): Likewise.
52405         * tests/test-ldexpl.c (ASSERT): Likewise.
52406         * tests/test-linked_list.c (ASSERT): Likewise.
52407         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52408         * tests/test-localename.c (ASSERT): Likewise.
52409         * tests/test-lseek.c (ASSERT): Likewise.
52410         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52411         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52412         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52413         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52414         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52415         * tests/test-mbschr.c (ASSERT): Likewise.
52416         * tests/test-mbscspn.c (ASSERT): Likewise.
52417         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52418         * tests/test-mbspbrk.c (ASSERT): Likewise.
52419         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52420         * tests/test-mbsrchr.c (ASSERT): Likewise.
52421         * tests/test-mbsspn.c (ASSERT): Likewise.
52422         * tests/test-mbsstr1.c (ASSERT): Likewise.
52423         * tests/test-mbsstr2.c (ASSERT): Likewise.
52424         * tests/test-mbsstr3.c (ASSERT): Likewise.
52425         * tests/test-memchr2.c (ASSERT): Likewise.
52426         * tests/test-memmem.c (ASSERT): Likewise.
52427         * tests/test-open.c (ASSERT): Likewise.
52428         * tests/test-printf-frexp.c (ASSERT): Likewise.
52429         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52430         * tests/test-printf-posix.c (ASSERT): Likewise.
52431         * tests/test-quotearg.c (ASSERT): Likewise.
52432         * tests/test-rbtree_list.c (ASSERT): Likewise.
52433         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52434         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52435         * tests/test-round1.c (ASSERT): Likewise.
52436         * tests/test-roundf1.c (ASSERT): Likewise.
52437         * tests/test-roundl.c (ASSERT): Likewise.
52438         * tests/test-signbit.c (ASSERT): Likewise.
52439         * tests/test-sleep.c (ASSERT): Likewise.
52440         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52441         * tests/test-snprintf.c (ASSERT): Likewise.
52442         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52443         * tests/test-stat-time.c (ASSERT): Likewise.
52444         * tests/test-strcasestr.c (ASSERT): Likewise.
52445         * tests/test-strerror.c (ASSERT): Likewise.
52446         * tests/test-striconv.c (ASSERT): Likewise.
52447         * tests/test-striconveh.c (ASSERT): Likewise.
52448         * tests/test-striconveha.c (ASSERT): Likewise.
52449         * tests/test-strsignal.c (ASSERT): Likewise.
52450         * tests/test-strstr.c (ASSERT): Likewise.
52451         * tests/test-strtod.c (ASSERT): Likewise.
52452         * tests/test-trunc1.c (ASSERT): Likewise.
52453         * tests/test-trunc2.c (ASSERT): Likewise.
52454         * tests/test-truncf1.c (ASSERT): Likewise.
52455         * tests/test-truncf2.c (ASSERT): Likewise.
52456         * tests/test-truncl.c (ASSERT): Likewise.
52457         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52458         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52459         * tests/test-vasnprintf.c (ASSERT): Likewise.
52460         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52461         * tests/test-vasprintf.c (ASSERT): Likewise.
52462         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52463         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52464         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52465         * tests/test-vsnprintf.c (ASSERT): Likewise.
52466         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52467         * tests/test-wcwidth.c (ASSERT): Likewise.
52468         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52469         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52470         * tests/test-xvasprintf.c (ASSERT): Likewise.
52471         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52472         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52473         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52474         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52475         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52476         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52477         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52478         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52479         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52480         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52481         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52482         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52483         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52484         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52485         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52486         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52487         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52488         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52489         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52490         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52491         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52492         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52493         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52494         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52495         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52496         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52497         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52498         * tests/unictype/test-combining.c (ASSERT): Likewise.
52499         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52500         * tests/unictype/test-digit.c (ASSERT): Likewise.
52501         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52502         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52503         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52504         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52505         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52506         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52507         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52508         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52509         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52510         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52511         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52512         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52513         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52514         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52515         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52516         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52517         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52518         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52519         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52520         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52521         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52522         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52523         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52524         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52525         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52526         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52527         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52528         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52529         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52530         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52531         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52532         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52533         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52534         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52535         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52536         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52537         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52538         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52539         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52540         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52541         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52542         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52543         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52544         Reported by Eric Blake.
52545
52546 2008-04-11  Bruno Haible  <bruno@clisp.org>
52547
52548         * lib/wchar.in.h: Tweak comment.
52549
52550 2008-04-11  Bruno Haible  <bruno@clisp.org>
52551
52552         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52553         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52554         gl_COMMON.
52555         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52556
52557 2008-04-11  Bruno Haible  <bruno@clisp.org>
52558
52559         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52560
52561 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52562
52563         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52564         of attempting to use non-existing /dev/*random.  Based on patch
52565         from Adam Strzelecki <ono@java.pl> in
52566         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52567
52568 2008-04-08  Bruno Haible  <bruno@clisp.org>
52569
52570         Add tentative support for emx+gcc.
52571         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52572         * lib/fpurge.c (fpurge): Likewise.
52573         * lib/freadable.c (freadable): Likewise.
52574         * lib/freadahead.c (freadahead): Likewise.
52575         * lib/freading.c (freading): Likewise.
52576         * lib/freadptr.c (freadptr): Likewise.
52577         * lib/freadseek.c (freadptrinc): Likewise.
52578         * lib/fseeko.c (rpl_fseeko): Likewise.
52579         * lib/fseterr.c (fseterr): Likewise.
52580         * lib/fwritable.c (fwritable): Likewise.
52581         * lib/fwriting.c (fwriting): Likewise.
52582         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52583
52584 2008-04-09  Eric Blake  <ebb9@byu.net>
52585
52586         Avoid some autoconf warnings.
52587         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52588         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52589         * m4/afs.m4 (gl_AFS): Likewise.
52590         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52591         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52592         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52593         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52594         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52595         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52596         (AC_CHECK_DECLS_ONCE): Likewise.
52597         Rename file...
52598         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52599         gnulib-tool requires autoconf 2.59 or better.
52600         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52601
52602 2008-04-08  Eric Blake  <ebb9@byu.net>
52603
52604         Use 'git describe --match' if present (added in git 1.5.5).
52605         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52606         if possible.
52607
52608 2008-04-08  Bruno Haible  <bruno@clisp.org>
52609
52610         Add tentative support for OpenServer.
52611         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52612         _ptr, _cnt.
52613         * lib/fpurge.c (fpurge): Likewise.
52614         * lib/freadable.c (freadable): Likewise.
52615         * lib/freadahead.c (freadahead): Likewise.
52616         * lib/freading.c (freading): Likewise.
52617         * lib/freadptr.c (freadptr): Likewise.
52618         * lib/freadseek.c (freadptrinc): Likewise.
52619         * lib/fseeko.c (rpl_fseeko): Likewise.
52620         * lib/fseterr.c (fseterr): Likewise.
52621         * lib/fwritable.c (fwritable): Likewise.
52622         * lib/fwriting.c (fwriting): Likewise.
52623         Reported by Roger Cornelius <rac@tenzing.org> and
52624         Brian K. White <brian@aljex.com>.
52625
52626 2008-04-06  Jim Meyering  <meyering@redhat.com>
52627
52628         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52629
52630 2008-04-06  Bruno Haible  <bruno@clisp.org>
52631
52632         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52633         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52634         * tests/test-printf-posix.sh: Likewise.
52635         * tests/test-vfprintf-posix.sh: Likewise.
52636         * tests/test-vprintf-posix.sh: Likewise.
52637         * tests/test-xprintf-posix.sh: Likewise.
52638
52639 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52640
52641         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52642         hide error from 'ls', needed on OS/2.
52643         Report by Elbert Pol <elbert.pol@gmail.com>.
52644
52645 2008-04-04  Eric Blake  <ebb9@byu.net>
52646
52647         Make test-fseeko.c failures meaningful.
52648         * tests/test-fseeko.c: Print line number on failure.
52649         * tests/test-fseek.c: Likewise.
52650         Reported by Nelson H. F. Beebe.
52651
52652         Improve strtod bug detection check.
52653         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52654         required for Solaris 10.
52655         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52656
52657 2008-04-04  Bruno Haible  <bruno@clisp.org>
52658
52659         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52660         by m4/setenv.m4.
52661
52662 2008-04-03  Eric Blake  <ebb9@byu.net>
52663
52664         Ensure sane .version contents.
52665         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52666         version string.
52667         * build-aux/git-version-gen: Improve documentation.
52668
52669         Make GNU make output nicer.
52670         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52671         MAKECMDGOALS to enforce message for all command line targets.  Set
52672         srcdir for use in maint.mk.
52673
52674         Another maintainer tweak.
52675         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52676         a target that regenerates version.
52677
52678 2008-04-03  Jim Meyering  <meyering@redhat.com>
52679
52680         vc-list-files: don't cause coreutils "make po-check" failure
52681         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52682
52683 2008-04-03  Eric Blake  <ebb9@byu.net>
52684
52685         Allow VPATH usage of vc-list-files.
52686         * build-aux/vc-list-files (scriptversion): Add timestamp.
52687         (options): Add --help, --version, -C.
52688         (CVS): Support installed cvsu.
52689
52690 2008-04-02  Bruno Haible  <bruno@clisp.org>
52691
52692         Avoid some "statement with no effect" warnings from gcc.
52693         * tests/test-wctype.c (main): Explicitly ignore unused values.
52694         Reported by Jim Meyering.
52695
52696 2008-04-02  Jim Meyering  <meyering@redhat.com>
52697
52698         Avoid some warnings from "gcc -Wshadow".
52699         * tests/test-frexp.c (exp): Define to a different identifier.
52700         * tests/test-frexpl.c (exp): Likewise.
52701
52702 2008-04-03  Jim Meyering  <meyering@redhat.com>
52703
52704         bootstrap: remove dangling *.[ch] symlinks from lib
52705         * build-aux/bootstrap [dangling symlink removal]: Move find's
52706         -depth option to precede all others, to avoid a warning.
52707         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52708
52709 2008-04-02  Bruno Haible  <bruno@clisp.org>
52710
52711         Avoid some warnings from "gcc -Wshadow".
52712         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52713         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52714         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52715         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52716         Reported by Jim Meyering.
52717
52718 2008-04-01  Bruno Haible  <bruno@clisp.org>
52719
52720         Fix test to work on IRIX 6.5 with cc.
52721         * tests/test-math.c (numeric_equal): New function.
52722         (main): Use it.
52723
52724 2008-04-01  Bruno Haible  <bruno@clisp.org>
52725
52726         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52727
52728 2008-04-01  Bruno Haible  <bruno@clisp.org>
52729
52730         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52731         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52732         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52733         (Depends-on): Remove math.
52734
52735         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52736         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52737         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52738         (Depends-on): Remove math.
52739
52740         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52741         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52742         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52743         (Depends-on): Remove math.
52744         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52745         (Depends-on): Remove math.
52746
52747         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52748         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52749         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52750         (Depends-on): Remove math.
52751         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52752         (Depends-on): Remove math.
52753
52754         * tests/test-round1.c: Include nan.h.
52755         (main): Use NaNd instead of NAN.
52756         * modules/round-tests (Files): Add tests/nan.h.
52757
52758         * tests/test-trunc1.c: Include nan.h.
52759         (main): Use NaNd instead of NAN.
52760         * modules/trunc-tests (Files): Add tests/nan.h.
52761
52762         * tests/test-roundf1.c: Include nan.h.
52763         (main): Use NaNf instead of NAN.
52764         * modules/roundf-tests (Files): Add tests/nan.h.
52765
52766         * tests/test-truncf1.c: Include nan.h.
52767         (main): Use NaNf instead of NAN.
52768         * modules/truncf-tests (Files): Add tests/nan.h.
52769
52770         * tests/test-ceilf1.c: Include nan.h.
52771         (main): Use NaNf instead of NAN.
52772         * modules/ceilf-tests (Files): Add tests/nan.h.
52773
52774         * tests/test-floorf1.c: Include nan.h.
52775         (main): Use NaNf instead of NAN.
52776         * modules/floorf-tests (Files): Add tests/nan.h.
52777
52778         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52779         (main): Use NaNf instead of NAN.
52780         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52781
52782         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52783         (main): Use NaNd instead of NAN.
52784         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52785
52786         * tests/test-frexp.c: Include nan.h.
52787         (main): Use NaNd instead of NAN.
52788         * modules/frexp-tests (Files): Add tests/nan.h.
52789
52790         * lib/isnan.c: Don't include <math.h>.
52791         (FUNC): Don't use NAN macro.
52792         * modules/isnand-nolibm (Depends-on): Remove math.
52793         * modules/isnanf-nolibm (Depends-on): Remove math.
52794         * modules/isnanl (Depends-on): Remove math.
52795         * modules/isnanl-nolibm (Depends-on): Remove math.
52796
52797         * tests/nan.h: New file.
52798
52799 2008-04-01  Eric Blake  <ebb9@byu.net>
52800
52801         Fix typos.
52802         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52803         values to be the right type.
52804
52805         For now, cater to gnulib strtod inaccuracies.
52806         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52807         fractional results.  While not as nice from a QoI perspective, it
52808         is a quicker patch than correctly implementing decimal to binary
52809         rounding.
52810
52811 2008-03-31  Eric Blake  <ebb9@byu.net>
52812
52813         Guarantee a definition of NAN.
52814         * lib/math.in.h (NAN): Define if missing.
52815         * tests/test-math.c (main): Test it.
52816         * doc/posix-headers/math.texi (math.h): Document this.
52817         * lib/isnan.c (rpl_isnand): Use it.
52818         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52819         * tests/test-floorf1.c (NaN): Likewise.
52820         * tests/test-frexp.c (NaN): Likewise.
52821         * tests/test-isnand.c (NaN): Likewise.
52822         * tests/test-isnanf.c (NaN): Likewise.
52823         * tests/test-round1.c (NaN): Likewise.
52824         * tests/test-roundf1.c (NaN): Likewise.
52825         * tests/test-snprintf-posix.h (NaN): Likewise.
52826         * tests/test-sprintf-posix.h (NaN): Likewise.
52827         * tests/test-trunc1.c (NaN): Likewise.
52828         * tests/test-truncf1.c (NaN): Likewise.
52829         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52830         * tests/test-vasprintf-posix.c (NaN): Likewise.
52831         * modules/isnand-nolibm (Depends-on): Add math.
52832         * modules/isnanf-nolibm (Depends-on): Likewise.
52833         * modules/isnanl (Depends-on): Likewise.
52834         * modules/isnanl-nolibm (Depends-on): Likewise.
52835         * modules/snprintf-posix-tests (Depends-on): Likewise.
52836         * modules/sprintf-posix-tests (Depends-on): Likewise.
52837         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52838         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52839         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52840         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52841
52842 2008-03-31  Bruno Haible  <bruno@clisp.org>
52843
52844         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52845         * doc/posix-functions/strtod.texi: Likewise.
52846
52847 2008-03-31  Bruno Haible  <bruno@clisp.org>
52848
52849         * tests/test-strtod.c (main): Don't use C99 syntax.
52850
52851 2008-03-31  Bruno Haible  <bruno@clisp.org>
52852
52853         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52854         Reported by Eric Blake.
52855
52856 2008-03-31  Jim Meyering  <meyering@redhat.com>
52857
52858         Don't compare actual signbit return values.
52859         * tests/test-strtod.c (main): Rather, compare only their
52860         zero/non-zero nature.
52861
52862 2008-03-31  Eric Blake  <ebb9@byu.net>
52863
52864         More strtod documentation.
52865         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52866         failures as distinct bugs.
52867
52868 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52869
52870         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52871         Problem reported by Erik Benada in
52872         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52873
52874 2008-03-30  Bruno Haible  <bruno@clisp.org>
52875
52876         * tests/test-strtod.c: Add comments about which assertion fails on which
52877         platform.
52878         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52879
52880 2008-03-30  Eric Blake  <ebb9@byu.net>
52881
52882         Test signbit behavior on zeros.
52883         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52884         (test_signbitd, test_signbitl): Likewise.
52885
52886         More strtod touchups.
52887         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52888         sign of negative underflow, for now.  Use .5, not .1.
52889         * doc/posix-functions/strtod.texi (strtod): Mention these
52890         limitations.
52891         Reported by Jim Meyering.
52892
52893 2008-03-30  Bruno Haible  <bruno@clisp.org>
52894
52895         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52896         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52897
52898 2008-03-30  Bruno Haible  <bruno@clisp.org>
52899
52900         Avoid failure when attempting to return empty iconv results on some
52901         platforms.
52902         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52903         allocation, don't report ENOMEM when the resulting string is empty.
52904
52905 2008-03-30  Bruno Haible  <bruno@clisp.org>
52906
52907         Fix buffer overrun.
52908         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52909         Don't consider the width for tmp_length. Check count against tmp_length
52910         before doing the padding. Ensure enough allocation during padding.
52911
52912 2008-03-30  Eric Blake  <ebb9@byu.net>
52913
52914         strtod touchups.
52915         * lib/strtod.c (strtod): Avoid compiler warnings.
52916         Reported by Jim Meyering.
52917
52918 2008-03-30  Bruno Haible  <bruno@clisp.org>
52919
52920         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52921         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52922         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52923         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52924         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52925         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52926         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52927         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52928
52929         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52930         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52931         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52932         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52933         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52934         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52935         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52936         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52937
52938         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52939         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52940         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52941         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52942         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52943         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52944         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52945         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52946
52947         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52948         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52949
52950         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52951         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52952
52953         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52954         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52955
52956         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52957         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52958         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52959
52960         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52961         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52962         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52963
52964         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52965         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52966         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52967
52968         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52969         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52970         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52971
52972         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52973         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52974         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52975         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52976         (Depends-on): Add EOVERFLOW.
52977         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52978         (Depends-on): Add EOVERFLOW.
52979         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52980         (Depends-on): Add EOVERFLOW.
52981         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52982         (Depends-on): Add EOVERFLOW.
52983         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52984         (Depends-on): Add EOVERFLOW.
52985         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52986         (Depends-on): Add EOVERFLOW.
52987         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52988         (Depends-on): Add EOVERFLOW.
52989         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52990         (Depends-on): Add EOVERFLOW.
52991
52992         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52993         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52994         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52995
52996         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52998         * modules/snprintf (Depends-on): Add EOVERFLOW.
52999
53000         * lib/poll.c (EOVERFLOW): Remove fallback.
53001         * modules/poll (Depends-on): Add EOVERFLOW.
53002
53003         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53004         * modules/getugroups (Depends-on): Add EOVERFLOW.
53005
53006         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53007         * modules/getdelim (Depends-on): Add EOVERFLOW.
53008
53009         * lib/ftell.c (EOVERFLOW): Remove fallback.
53010         * modules/ftell (Depends-on): Add EOVERFLOW.
53011
53012         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53013         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53014         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53015
53016         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53017
53018         * modules/EOVERFLOW-tests: New file.
53019         * tests/test-EOVERFLOW.c: New file.
53020
53021         * modules/EOVERFLOW: New file.
53022         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53023
53024 2008-03-30  Bruno Haible  <bruno@clisp.org>
53025
53026         Fix bug introduced on 2007-06-10.
53027         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53028         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53029
53030 2008-03-30  Bruno Haible  <bruno@clisp.org>
53031
53032         Improve freadseek's efficiency after ungetc.
53033         * lib/freadseek.c: Include freadahead.h.
53034         (freadptrinc): New function, extracted from freadseek.
53035         (freadseek): Use it in a loop. Use freadahead to determine the number
53036         of loop iterations.
53037         * modules/freadseek (Depends-on): Add freadahead.
53038         (configure.ac): Require AC_C_INLINE.
53039
53040 2008-03-30  Bruno Haible  <bruno@clisp.org>
53041
53042         * lib/freadseek.c (freadseek): Don't ignore the return value of
53043         freadptr.
53044
53045 2008-03-29  Eric Blake  <ebb9@byu.net>
53046
53047         Add hex float support.
53048         * modules/strtod (Depends-on): Add c-ctype.
53049         (Link): Mention POW_LIB.
53050         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53051         whitespace between 'e' and exponent.
53052         * tests/test-strtod.c (main): Enable hex float tests.
53053         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53054         now provides.
53055
53056         Document various strtod bugs, with some fixes.
53057         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53058         "-0x", "inf", "nan", and hex constants.
53059         * doc/posix-functions/atof.texi (atof): Likewise.
53060         * modules/stdlib (Makefile.am): Support strtod.
53061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53062         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53063         detect additional strtod bugs.
53064         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53065         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53066         bool where appropriate.  Parse 'inf' and 'nan'.
53067         * tests/test-strtod.c: New file.
53068         * modules/strtod (Depends-on): Add stdbool, stdlib.
53069         (configure.ac): Turn on module indicator.
53070         * modules/strtod-tests: New module.
53071
53072 2008-03-29  Eric Blake  <ebb9@byu.net>
53073
53074         Fix ftell on mingw.
53075         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53076         * modules/ftell-tests (Depends-on): Add binary-io.
53077         * modules/ftello-tests (Depends-on): Likewise.
53078         * tests/test-ftell.c (main): Enhance test to cover behavior after
53079         ungetc.  Enforce binary mode.
53080         * tests/test-ftello.c (main): Likewise.
53081
53082         Pass test-freadseek on cygwin.
53083         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53084         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53085         ungetc buffer.
53086
53087         * tests/test-fflush2.c (main): Fix typo.
53088
53089 2008-03-29  Bruno Haible  <bruno@clisp.org>
53090
53091         * tests/test-fflush2.c (main): Temporarily disable the contents of
53092         this test.
53093         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53094         Reported by Eric Blake.
53095
53096 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53097
53098         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53099         (GC_SHA224_DIGEST_SIZE): Add.
53100
53101         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53102         (gc_hash_digest_length): Likewise.
53103         (gc_hash_buffer): Likewise.
53104
53105 2008-03-25  Bruno Haible  <bruno@clisp.org>
53106
53107         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53108         detail which gettext release to use.
53109         Reported by Simon Josefsson.
53110
53111 2008-03-26  Jim Meyering  <meyering@redhat.com>
53112
53113         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53114         * modules/gnumakefile (clean-GNUmakefile): Also, use
53115         test ... && ... || : syntax rather than if-then ... fi.
53116
53117         gnumakefile: Don't double-quote-expand $(VPATH) value.
53118         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53119
53120 2008-03-24  Eric Blake  <ebb9@byu.net>
53121
53122         Alter GNUmakefile to install into top directory.
53123         * modules/maintainer-makefile: Split, and add dependency...
53124         * modules/gnumakefile: to this new module.
53125         * build-aux/GNUmakefile: Move...
53126         * top/GNUmakefile: ...here.
53127         * build-aux/maint.mk: Move...
53128         * top/maint.mk: ...here.
53129         * MODULES.html.sh (Support for maintaining...): Document new
53130         module.
53131
53132 2008-03-23  Bruno Haible  <bruno@clisp.org>
53133
53134         * gnulib-tool: New options --vc-files, --no-vc-files.
53135         (func_usage): Document them.
53136         (vc_files): New variable.
53137         (func_import): Consider vc_files.
53138         (func_create_testdir): Set vc_files to empty.
53139         Suggested by Jim Meyering and Karl Berry.
53140
53141 2008-03-23  Bruno Haible  <bruno@clisp.org>
53142
53143         Fix regex compilation error on HP-UX 11.
53144         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53145         * modules/regex (Files): Add m4/mbstate_t.m4.
53146         Reported by Ton Voon <ton.voon@altinity.com>.
53147
53148 2008-03-23  Bruno Haible  <bruno@clisp.org>
53149
53150         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53151
53152 2008-03-23  Eric Blake  <ebb9@byu.net>
53153             Bruno Haible  <bruno@clisp.org>
53154
53155         Install files from top/ in the destination directory.
53156         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53157         augmentation also for the files from top/.
53158         (func_import, func_create_testdir): Rewrite file names:
53159         top/filename -> filename.
53160
53161 2008-03-23  Bruno Haible  <bruno@clisp.org>
53162
53163         Tweak "gnulib --version" output.
53164         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53165
53166 2008-03-23  Bruno Haible  <bruno@clisp.org>
53167
53168         Tweak "gnulib --version" output.
53169         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53170         rather than contents of ChangeLog, when possible.
53171
53172 2008-03-21  Eric Blake  <ebb9@byu.net>
53173
53174         More --version tweaks.
53175         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53176         date of last ChangeLog entry.
53177
53178 2008-03-21  Jim Meyering  <meyering@redhat.com>
53179
53180         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53181
53182 2008-03-20  Eric Blake  <ebb9@byu.net>
53183
53184         VPATH fix.
53185         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53186
53187 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53188
53189         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53190         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53191
53192 2008-03-20  Eric Blake  <ebb9@byu.net>
53193
53194         Sync GNUmakefile with coreutils.
53195         * build-aux/GNUmakefile (have-Makefile): Rename...
53196         (_have-Makefile): ...to this, for namespace consideration.
53197         (GNUmakefile.cfg): Include, if present.
53198         (_autoreconf): Define a default.
53199         (_is-dist-target): New rule for rebuilds to pick up intra-release
53200         version.
53201         (maint-cfg.mk): Rename...
53202         (cfg.mk): ...to this.
53203
53204 2008-03-18  Jim Meyering  <meyering@redhat.com>
53205
53206         New script and module: mktempd
53207         * MODULES.html.sh (maint+release support): Add mktempd.
53208         * build-aux/mktempd: New file.
53209         * modules/mktempd: New file.
53210
53211 2008-03-15  Jim Meyering  <meyering@redhat.com>
53212
53213         Undo last change.
53214         * lib/sha1.c, lib/md5.c: 63 != ~63.
53215         Reported by Andreas Schwab.
53216
53217         sha1.c, md5.c: Hoist a redundant expression.
53218         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53219         "ctx->buflen" only once, before calling *_process_block.
53220         * lib/md5.c (md5_process_bytes): Likewise.
53221
53222 2008-03-14  Eric Blake  <ebb9@byu.net>
53223
53224         Bump copyright year in files generated by gnulib-tool.
53225         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53226         gnulib-tool, rather than hard-coding it.
53227
53228         Fix 'gnulib-tool --version' output to work with git.
53229         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53230         (startup): ...here.
53231         (func_version): Use it to invoke git-version-gen, rather than
53232         relying on CVS keyword expansion.  Modernize wording.
53233         (cvsdatestamp, last_checkin_date, version): Kill unused
53234         variables.
53235
53236 2008-03-12  Jim Meyering  <meyering@redhat.com>
53237
53238         Recognize optional cast of the argument to free.
53239         * build-aux/useless-if-before-free: Update regexps.
53240
53241         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
53242
53243 2008-03-11  Bruno Haible  <bruno@clisp.org>
53244
53245         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
53246         by a single package.
53247         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
53248         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
53249         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
53250         Reported by Sam Steingold <sds@gnu.org>.
53251
53252 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53253
53254         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
53255         repositories.
53256
53257 2008-03-11  Bruno Haible  <bruno@clisp.org>
53258
53259         Avoid conflicts between local macro definitions.
53260         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53261         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
53262
53263 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
53264             Bruno Haible  <bruno@clisp.org>
53265
53266         Make va_copy work with some version of xlc on AIX 5.1.
53267         * lib/stdarg.in.h: New file.
53268         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
53269         On AIX, use a <stdarg.h> file substitute.
53270         * modules/stdarg (Files): Add lib/stdarg.in.h.
53271         (Depends-on): Add include_next.
53272         (Makefile.am): Build a stdarg.h substitute if requested.
53273         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
53274
53275 2008-03-10  Bruno Haible  <bruno@clisp.org>
53276
53277         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
53278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53279         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53280
53281 2008-03-10  Bruno Haible  <bruno@clisp.org>
53282
53283         * modules/stdlib (Depends-on): Add include_next, remove
53284         absolute-header.
53285
53286 2008-03-09  Bruno Haible  <bruno@clisp.org>
53287
53288         * lib/freadahead.h (freadahead): Document more precisely.
53289         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
53290         the sum of both buffer sizes.
53291         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
53292         * NEWS: Document the change.
53293
53294 2008-03-09  Bruno Haible  <bruno@clisp.org>
53295
53296         Extend freadptr to return also the buffer size.
53297         * lib/freadptr.h (freadptr): Add sizep argument.
53298         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
53299         (freadptr): Add sizep argument. Determine buffer size like freadahead
53300         does.
53301         * tests/test-freadptr.c: Don't include freadahead.h.
53302         (main): Adapt for new calling convention of freadptr.
53303         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
53304         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
53305         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
53306         tests/test-freadptr2.sh.
53307         (Depends): Remove freadahead.
53308         (TESTS): Add test-freadptr2.sh.
53309         (check_PROGRAMS): Add test-freadptr2.
53310
53311 2008-03-09  Bruno Haible  <bruno@clisp.org>
53312
53313         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
53314         Report and solution by Simon Josefsson.
53315
53316 2008-03-06  Bruno Haible  <bruno@clisp.org>
53317
53318         Make fflush after ungetc work on BSD platforms.
53319         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
53320         * tests/test-fflush2.c: New file.
53321         * tests/test-fflush2.sh: New file.
53322         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
53323         tests/test-fflush2.c.
53324         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
53325         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
53326
53327 2008-03-06  Eric Blake  <ebb9@byu.net>
53328
53329         Likewise for ftello.
53330         * modules/ftello (Dependencies): Add extensions.
53331         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
53332
53333 2008-03-06  Bruno Haible  <bruno@clisp.org>
53334
53335         * modules/fseeko (Dependencies): Add extensions.
53336         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
53337         Needed on glibc systems.
53338
53339 2008-03-06  Bruno Haible  <bruno@clisp.org>
53340
53341         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
53342         email address.
53343         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53344
53345 2008-03-06  Bruno Haible  <bruno@clisp.org>
53346
53347         * users.txt: Add libgnupdf.
53348
53349 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53350
53351         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
53352         (Header File Substitutes, Function Substitutes,
53353         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
53354         (Build robot for gnulib): Fix typo.
53355
53356 2008-03-06  Bruno Haible  <bruno@clisp.org>
53357
53358         * doc/gnulib-tool.texi (VCS Issues): Small updates.
53359         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53360
53361 2008-03-06  Bruno Haible  <bruno@clisp.org>
53362
53363         * doc/func.texi: New file, extracted from doc/gnulib.texi.
53364         * doc/gnulib.texi: Include it.
53365
53366 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53367
53368         * modules/func (License): Change license to unlimited; there was
53369         no LGPL parts in the module anyway.
53370
53371 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53372
53373         * modules/__func__: Renamed to modules/func.
53374         * modules/__func__-tests: Renamed to modules/func-tests.
53375         * tests/test-__func__.c: Renamed to tests/test-func.c.
53376         * m4/__func__.m4: Renamed to m4/func.m4.
53377         * doc/gnulib.texi (__func__): Section renamed to func.
53378         Suggested by Eric Blake <ebb9@byu.net>.
53379
53380 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53381
53382         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53383         about __func__.  Make example self-contained.  Suggested by Eric
53384         Blake <ebb9@byu.net>.
53385
53386         * tests/test-__func__.c (main): Avoid extraneous () around __func.
53387         Suggested by Eric Blake <ebb9@byu.net>.
53388
53389 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53390
53391         * modules/__func__: New file.
53392         * modules/__func__-tests: New file.
53393         * tests/test-__func__.c: New file.
53394         * m4/__func__.m4: New file.
53395         * doc/gnulib.texi (__func__): Document __func__ module.
53396
53397 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53398
53399         * modules/byteswap (License): Re-license as LGPLv2+.
53400
53401 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53402
53403         * doc/Makefile: Add pdf target.
53404
53405 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53406
53407         * modules/inline (License): Use 'unlimited', since there are only
53408         *.m4 files in this module.
53409
53410 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53411             Bruno Haible  <bruno@clisp.org>
53412
53413         Add support for HP C 7.1 on OpenVMS 8.3.
53414         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53415
53416 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53417
53418         Update VMS specifics.
53419         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53420
53421 2008-03-02  Jim Meyering  <meyering@redhat.com>
53422
53423         Remove the last dependency on the "free" module.
53424         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53425         Reported by Bob Proulx.
53426
53427         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53428
53429         Remove useless "if" tests before free.  Deprecate "free" module.
53430         * doc/posix-functions/free.texi: Mention that this
53431         module is no longer useful.
53432         * modules/free (Notice): Say this module is obsolete.
53433         * modules/readutmp (Depends-on): Remove free.
53434         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53435         * lib/putenv.c (putenv): Likewise.
53436         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53437         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53438         * tests/test-c-strcasestr.c (main): Likewise.
53439         * tests/test-c-strstr.c (main): Likewise.
53440         * tests/test-mbscasestr1.c (main): Likewise.
53441         * tests/test-mbscasestr2.c (main): Likewise.
53442         * tests/test-mbsstr1.c (main): Likewise.
53443         * tests/test-mbsstr2.c (main): Likewise.
53444         * tests/test-memmem.c (main): Likewise.
53445         * tests/test-strcasestr.c (main): Likewise.
53446         * tests/test-striconv.c (main): Likewise.
53447         * tests/test-striconveh.c (main): Likewise.
53448         * tests/test-striconveha.c (main): Likewise.
53449         * tests/test-strstr.c (main): Likewise.
53450
53451         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53452
53453         bootstrap: sync from coreutils again
53454         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53455
53456 2008-03-01  Jim Meyering  <meyering@redhat.com>
53457
53458         bootstrap: sync from coreutils
53459         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53460         also when the target doesn't exist.
53461
53462 2008-03-01  Eric Blake  <ebb9@byu.net>
53463
53464         Fix bugs in last patch.
53465         * lib/memchr2.c (memchr2): Fix typo.
53466         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53467         extension.
53468         Reported by Bruce Korb.
53469
53470         New module 'memchr2'.
53471         * modules/memchr2: New file.
53472         * modules/memchr2-tests: Likewise.
53473         * lib/memchr2.h: Likewise.
53474         * lib/memchr2.c: Likewise, based on memchr.c.
53475         * tests/test-memchr2.c: New test.
53476         * MODULES.html.sh (String handling): Add memchr2.
53477
53478 2008-02-29  Bruno Haible  <bruno@clisp.org>
53479
53480         * modules/freadseek-tests: New file.
53481         * tests/test-freadseek.sh: New file.
53482         * tests/test-freadseek.c: New file.
53483
53484         New module 'freadseek'.
53485         * modules/freadseek: New file.
53486         * lib/freadseek.h: New file.
53487         * lib/freadseek.c: New file.
53488         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53489
53490 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53491
53492         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53493         wydawca.
53494
53495         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53496         program_invocation_name and program_invocation_short_name are
53497         present.
53498
53499 2008-02-28  Bruno Haible  <bruno@clisp.org>
53500
53501         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53502         * tests/test-freadptr.sh: Also test non-seekable stdin.
53503
53504 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53505
53506         * build-aux/bootstrap (source_base, m4_base)
53507         (doc_base, tests_base): New variables.
53508         (gnulib_tool_options): Do not hardcode base directories, use
53509         the above variables instead.
53510
53511 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53512
53513         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53514
53515 2008-02-28  Bruno Haible  <bruno@clisp.org>
53516
53517         * modules/freadptr-tests: New file.
53518         * tests/test-freadptr.sh: New file.
53519         * tests/test-freadptr.c: New file.
53520
53521         New module 'freadptr'.
53522         * modules/freadptr: New file.
53523         * lib/freadptr.h: New file.
53524         * lib/freadptr.c: New file.
53525         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53526
53527 2008-02-26  Karl Berry  <karl@freefriends.org>
53528
53529         Sync from Libtool:
53530         * libltdl/argz.c (argz_add, argz_count): New functions.
53531         * libltdl/argz.in.h: Declare them.
53532         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53533
53534 2008-02-22  Bruno Haible  <bruno@clisp.org>
53535
53536         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53537         is a pointer type.  Needed for HP-UX 10.
53538         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53539         * doc/posix-functions/gmtime_r.texi: Likewise.
53540         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53541
53542 2008-02-24  Bruno Haible  <bruno@clisp.org>
53543
53544         * modules/environ-tests: New file.
53545         * tests/test-environ.c: New file.
53546
53547         New module 'environ'.
53548         * modules/environ: New file.
53549         * lib/unistd.in.h (environ): New declaration.
53550         * m4/environ.m4: New file.
53551         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53552         after use.
53553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53554         HAVE_DECL_ENVIRON.
53555         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53556         HAVE_DECL_ENVIRON.
53557         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53558         wrong claim that 'environ' is missing on some systems.
53559         * modules/execute (Depends-on): Add environ.
53560         * lib/execute.c (environ): Remove fallback declaration.
53561         * modules/pipe (Depends-on): Add environ.
53562         * lib/pipe.c (environ): Remove fallback declaration.
53563         * modules/setenv (Depends-on): Add environ.
53564         * lib/setenv.c (environ): Remove fallback declaration.
53565         * modules/unsetenv (Depends-on): Add environ.
53566         * lib/unsetenv.c (environ): Remove fallback declaration.
53567         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53568         m4/environ.m4.
53569         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53570         (gl_PREREQ_UNSETENV): Likewise.
53571
53572 2008-02-24  Bruno Haible  <bruno@clisp.org>
53573
53574         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53575
53576 2008-02-20  Bob Proulx  <bob@proulx.com>
53577
53578         Enable use of older two part flavor 'git describe'.
53579         * build-aux/git-version-gen: If using the older two part flavor of
53580         git version then recreate the third part now present in the
53581         newer three part flavor of git describe.
53582
53583 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53584
53585         * lib/fts.c (fts_build): Typo correction to comment.
53586
53587 2008-02-17  Bruno Haible  <bruno@clisp.org>
53588
53589         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53590         generating no-op conflicts.
53591
53592 2008-02-17  Bruno Haible  <bruno@clisp.org>
53593
53594         Speed up by 10%.
53595         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53596         result_entries, rather than an index-based loop.
53597
53598 2008-02-17  Bruno Haible  <bruno@clisp.org>
53599
53600         Speed up by 25%.
53601         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53602         'hashcode_cached'.
53603         (entry_create): New function.
53604         (entry_hashcode): Use the cached hashcode if possible.
53605         (read_changelog_file, try_split_merged_entry): Use entry_create.
53606
53607 2008-02-17  Bruno Haible  <bruno@clisp.org>
53608
53609         Speed up from O(n^2) to O(n) for long ChangeLog files.
53610         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53611         (read_changelog_file): Change implementation of entries_reversed list
53612         to rbtreehash.
53613         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53614
53615 2008-02-17  Bruno Haible  <bruno@clisp.org>
53616
53617         New option --split-merged-entry.
53618         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53619         (find_paragraph_end, try_split_merged_entry): New functions.
53620         (long_options): Add option --split-merged-entry.
53621         (usage): Document option --split-merged-entry.
53622         (main): Implement option --split-merged-entry.
53623         Reported by Eric Blake.
53624
53625 2008-02-17  Bruno Haible  <bruno@clisp.org>
53626
53627         * lib/git-merge-changelog.c: Include c-strstr.h.
53628         (main): Support the "git pull --rebase" situation.
53629         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53630         Reported by Eric Blake.
53631
53632 2008-02-16  Eric Blake  <ebb9@byu.net>
53633
53634         Avoid doubling \ in common case of "c-maybe" quoting style.
53635         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53636         eliding outer quotes.
53637         * lib/quotearg.h: Document this.
53638         * tests/test-quotearg.c (result_strings, inputs, results_g)
53639         (flag_results, locale_results): Test it by adding a new string to
53640         each test group.
53641         (compare_strings): Test new string.
53642
53643 2008-02-13  Eric Blake  <ebb9@byu.net>
53644
53645         Avoid trigraph quoting in default output.
53646         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53647         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53648         unless explicitly requested.
53649         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53650
53651 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53652
53653         Don't rely on signed integer overflowing to negative value.
53654         * lib/getugroups.c (getugroups): Include <limits.h>.
53655         Instead, compare against INT_MAX, and increment only if the test passes.
53656
53657 2008-02-13  Jim Meyering  <meyering@redhat.com>
53658         and Eric Blake  <ebb9@byu.net>
53659
53660         Avoid shadowing warning and compile errors on Linux.
53661         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53662         forwarding macros on Linux.
53663         (dcgettext): Define a stub, for Linux.
53664         (results_g, main): Avoid warnings.
53665
53666 2008-02-12  Eric Blake  <ebb9@byu.net>
53667
53668         Silence warning in last patch.
53669         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53670
53671         Quotearg part 4: add tests, fix c-maybe colon quoting.
53672         * lib/quotearg.h: Improve documentation.
53673         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53674         escapes when adding outer quotes.  When quoting trigraphs, use
53675         valid C notation.  When quoting NUL, omit extra characters if next
53676         character is not digit.  Alter prototype.
53677         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53678         callers.
53679         * modules/quotearg-tests: New module.
53680         * tests/test-quotearg.c: New test.
53681
53682 2008-02-07  Eric Blake  <ebb9@byu.net>
53683
53684         Quotearg part 3: add flag to control outer quote elision.
53685         * lib/quotearg.h (c_maybe_quoting_style): New style.
53686         (enum quoting_flags): Better documentation of flags.
53687         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53688         c-maybe style.
53689         (quotearg_buffer_restyled): Handle new flag to elide outer
53690         quotes.
53691
53692         Quotearg part 2: add flag that can control NUL elision.
53693         * lib/quotearg.h (set_quoting_flags): New prototype.
53694         * lib/quotearg.c (struct quoting_options): Add flag field.
53695         (set_quoting_flags): New function.
53696         (quotearg_buffer_restyled): Add flags parameter.
53697         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53698         (quotearg_n_options): Set the flag, since length cannot be
53699         returned.
53700         (quoting_options_from_style): Default flags correctly.
53701
53702         Quotearg part 1: more wrappers, restore quotearg_char state.
53703         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53704         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53705         (quotearg_colon_mem): New wrappers.
53706         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53707         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53708         functions.
53709         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53710         (quotearg_colon_mem): New functions.
53711
53712 2008-02-11  Bruno Haible  <bruno@clisp.org>
53713
53714         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53715         library in the current directory: it does not work with parallel make.
53716         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53717
53718 2008-02-11  Bruno Haible  <bruno@clisp.org>
53719
53720         * .gitattributes: New file.
53721
53722 2008-02-11  Jim Meyering  <meyering@redhat.com>
53723
53724         useless-if-before-free: Fix reversed exit values.
53725         * build-aux/useless-if-before-free: Use correct values
53726         for EXIT_MATCH and EXIT_NO_MATCH.
53727
53728         * build-aux/useless-if-before-free: Close stdout carefully.
53729
53730 2008-02-10  Bruno Haible  <bruno@clisp.org>
53731
53732         New module 'git-merge-changelog'.
53733         * modules/git-merge-changelog: New file.
53734         * lib/git-merge-changelog.c: New file.
53735
53736 2008-02-10  Jim Meyering  <meyering@redhat.com>
53737
53738         useless-if-before-free: New option: --list (-l).
53739
53740         useless-if-before-free: Don't exit immediately upon open failure.
53741         * build-aux/useless-if-before-free: Exit 2 for errors.
53742         Upon failure to open a file, don't exit immediately.
53743         Rather, just warn and continue with any remaining files.
53744
53745 2008-02-10  Bruno Haible  <bruno@clisp.org>
53746
53747         New abstract list operation 'node_set_value'.
53748         * lib/gl_list.h (gl_list_node_set_value): New function.
53749         (struct gl_list_implementation): New field node_set_value.
53750         * lib/gl_list.c (gl_list_node_set_value): New function.
53751         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53752         (gl_array_list_implementation): Update.
53753         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53754         (gl_carray_list_implementation): Update.
53755         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53756         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53757         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53758         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53759         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53760         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53761         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53762         Update.
53763         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53764         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53765         (gl_sublist_list_implementation): Update.
53766
53767 2008-02-10  Bruno Haible  <bruno@clisp.org>
53768
53769         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53770         Needed when ELEMENT is #defined to 'some_type *'.
53771
53772 2008-02-10  Jim Meyering  <meyering@redhat.com>
53773
53774         New script and module: useless-if-before-free
53775         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53776         * build-aux/useless-if-before-free: New file.
53777         * modules/useless-if-before-free: New file.
53778
53779         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53780
53781         xstrtol_error: Fix typo.
53782         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53783         s/exit_failure/exit_status/.
53784
53785 2008-02-09  Jim Meyering  <meyering@redhat.com>
53786
53787         New script and module: gitlog-to-changelog
53788         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53789         * modules/gitlog-to-changelog: New file.
53790         * build-aux/gitlog-to-changelog: New file.
53791
53792 2008-02-08  Jim Meyering  <meyering@redhat.com>
53793
53794         Avoid two "parameter unused" warnings.
53795         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53796         Mark "st" as used.
53797
53798         Use "git COMMAND", not "git-COMMAND".
53799         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53800         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53801         * build-aux/git-version-gen: Use "git status", not "git-status".
53802
53803 2008-02-07  Bruno Haible  <bruno@clisp.org>
53804
53805         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53806         Avoids a crash on Windows Vista.
53807         Reported by Adam Strzelecki <ono@java.pl> via
53808         Simon Josefsson <simon@josefsson.org>.
53809
53810 2008-02-06  Bruno Haible  <bruno@clisp.org>
53811
53812         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53813         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53814         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53816         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53817         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53818         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53819         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53820         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53821         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53822         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53823         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53824         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53825         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53826         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53827         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53828         left-adjust flag.
53829         * tests/test-snprintf-posix.h (test_function): Likewise.
53830         * tests/test-sprintf-posix.h (test_function): Likewise.
53831         * tests/test-vasprintf-posix.c (test_function): Likewise.
53832         * doc/posix-functions/fprintf.texi: Update.
53833         * doc/posix-functions/printf.texi: Update.
53834         * doc/posix-functions/snprintf.texi: Update.
53835         * doc/posix-functions/sprintf.texi: Update.
53836         * doc/posix-functions/vfprintf.texi: Update.
53837         * doc/posix-functions/vprintf.texi: Update.
53838         * doc/posix-functions/vsnprintf.texi: Update.
53839         * doc/posix-functions/vsprintf.texi: Update.
53840         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53841
53842 2008-02-06  Bruno Haible  <bruno@clisp.org>
53843
53844         Fix bug introduced on 2008-01-26.
53845         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53846
53847 2008-02-06  Bruno Haible  <bruno@clisp.org>
53848
53849         Fix bug introduced on 2007-06-10.
53850         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53851         !NEED_PRINTF_FLAG_ZERO.
53852
53853 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53854
53855         getloadavg: use libperfstat on AIX5
53856         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53857
53858 2008-02-03  Bruno Haible  <bruno@clisp.org>
53859
53860         * lib/diffseq.h: Add comments about required #includes.
53861         Reported by Michael Biggs <gnulib@doubleplum.net>.
53862
53863 2008-02-01  Bruno Haible  <bruno@clisp.org>
53864
53865         * users.txt: Add gnuit.
53866
53867 2008-01-31  Bruno Haible  <bruno@clisp.org>
53868
53869         * lib/md4.c (set_uint32): Mark as inline.
53870         * lib/md5.c (set_uint32): Likewise.
53871         * lib/sha1.c (set_uint32): Likewise.
53872         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53873         * m4/md5.m4 (gl_MD5): Likewise.
53874         * m4/sha1.m4 (gl_SHA1): Likewise.
53875
53876 2008-01-31  Jim Meyering  <meyering@redhat.com>
53877
53878         Use "sizeof VAR", rather than a literal "4".
53879         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53880         * lib/md4.c (md4_read_ctx): Likewise.
53881         * lib/sha1.c (sha1_read_ctx): Likewise.
53882
53883 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53884
53885         * tests/test-sha1.c: New file, based on test-md5.c.
53886
53887         * modules/crypto/sha1-tests: New file.
53888
53889 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53890
53891         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53892
53893 2008-01-31  Jim Meyering  <meyering@redhat.com>
53894
53895         Prefer "sizeof v" over the equivalent "4".
53896         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53897         * lib/md5.c (set_uint32): Likewise.
53898         * lib/sha1.c (set_uint32): Likewise.
53899
53900 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53901
53902         * lib/sha1.c (set_uint32): Mark function as static.
53903
53904 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53905
53906         md2: clarify comments to say that alignment is not required.
53907         * lib/md2.h: Remove warning about alignment in comment.
53908         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53909         never been required.
53910
53911 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53912
53913         md4: adapt alignment constraint fix from sha1.
53914         * lib/md4.c (set_uint32): New function, from sha1.c
53915         (md4_read_ctx): Use it.
53916         (md4_finish_ctx): Doc fix.
53917         * lib/md4.h: Doc fix.
53918
53919 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53920
53921         md5: adapt alignment constraint fix from sha1.
53922         * lib/md5.c (set_uint32): New function, from sha1.c
53923         (md5_read_ctx): Use it.
53924         (md5_finish_ctx): Doc fix.
53925         * lib/md5.h: Doc fix.
53926
53927 2008-01-30  Peter Palfrader  <weasel@debian.org>
53928
53929         sha1: remove the result buffer alignment constraint
53930         * lib/sha1.c (set_uint32): New function.
53931         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53932         constraint.
53933         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53934         * lib/sha1.h: Likewise.
53935
53936 2008-01-30  Andreas Schwab  <schwab@suse.de>
53937             Bruno Haible  <bruno@clisp.org>
53938
53939         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53940         correct definition of LDBL_MIN_EXP.
53941
53942 2008-01-30  Karl Berry  <karl@gnu.org>
53943
53944         * config/srclist-update: try to preserve x bit on updates.
53945         * config/srclistvars.sh: update for karl.
53946
53947 2008-01-29  Jim Meyering  <meyering@redhat.com>
53948
53949         vasnprintf.c: Avoid warning about unused label
53950         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53951         "overflow" label definition and associated code with the
53952         same cpp condition that guards the sole use of that label.
53953
53954 2008-01-26  Bruno Haible  <bruno@clisp.org>
53955
53956         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53957         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53958         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53959         * lib/isnanl-nolibm.h (isnanl): Likewise.
53960         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53961
53962 2008-01-26  Bruno Haible  <bruno@clisp.org>
53963
53964         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53965         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53966
53967 2008-01-26  Bruno Haible  <bruno@clisp.org>
53968
53969         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53970         GCC >= 4.0 built-in.
53971         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53972
53973 2008-01-26  Bruno Haible  <bruno@clisp.org>
53974
53975         Rename isnan, applicable to 'double' only, to isnand.
53976         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53977         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53978         (configure.ac): Update.
53979         (Include): Replace "isnan.h" with "isnand.h".
53980         * m4/isnand.m4: Renamed from m4/isnan.m4.
53981         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53982         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53983         instead of isnan.c.
53984         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53985         instead of HAVE_ISNAN_IN_LIBC.
53986         (isnand): Renamed from isnan.
53987         * lib/isnand.c: New file.
53988         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53989         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53990         (Makefile.am): Update.
53991         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53992         Include isnand.h instead of isnan.h.
53993         (main): Test isnand instead of isnan.
53994         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53995         isnan-nolibm.
53996         * modules/frexp (Depends-on): Likewise.
53997         * modules/frexp-tests (Depends-on): Likewise.
53998         * modules/frexp-nolibm (Depends-on): Likewise.
53999         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54000         * modules/isfinite (Depends-on): Likewise.
54001         * modules/round-tests (Depends-on): Likewise.
54002         * modules/signbit (Depends-on): Likewise.
54003         * modules/signbit-tests (Depends-on): Likewise.
54004         * modules/snprintf-posix (Depends-on): Likewise.
54005         * modules/sprintf-posix (Depends-on): Likewise.
54006         * modules/trunc-tests (Depends-on): Likewise.
54007         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54008         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54009         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54010         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54011         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54012         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54013         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54014         * modules/vasnprintf-posix (Depends-on): Likewise.
54015         * modules/vasprintf-posix (Depends-on): Likewise.
54016         * modules/vfprintf-posix (Depends-on): Likewise.
54017         * modules/vsnprintf-posix (Depends-on): Likewise.
54018         * modules/vsprintf-posix (Depends-on): Likewise.
54019         * lib/frexp.c: Include isnand.h instead of isnan.h.
54020         (ISNAN): Set to isnand instead of isnan.
54021         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54022         (gl_isfinited): Use isnand instead of isnan.
54023         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54024         (gl_signbitd): Use isnand instead of isnan.
54025         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54026         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54027         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54028         (main): Use isnand instead of isnan.
54029         * tests/test-round1.c: Include isnand.h.
54030         (main): Use isnand instead of isnan.
54031         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54032         (ISNAN): Set to isnand instead of isnan.
54033         * tests/test-trunc1.c: Include isnand.h.
54034         (main): Use isnand instead of isnan.
54035         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54036         (equal): Use isnand instead of isnan.
54037         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54038         isnand-nolibm.
54039         * NEWS: Mention the change.
54040
54041 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54042             Bruno Haible  <bruno@clisp.org>
54043
54044         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54045         the GCC builtins for signbits are present and set
54046         REPLACE_SIGNBIT_USING_GCC if so.
54047         * lib/math.in.h (signbit): Define using GCC builtins if
54048         REPLACE_SIGNBIT_USING_GCC is set.
54049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54050         REPLACE_SIGNBIT_USING_GCC.
54051         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54052
54053 2008-01-25  Jim Meyering  <meyering@redhat.com>
54054
54055         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54056         * lib/poll.c: Include <config.h>, not "config.h".
54057         * tests/test-getaddrinfo.c: Likewise.
54058
54059 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54060
54061         * modules/sockets-tests: New file.
54062
54063 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54064
54065         * modules/sockets: New module, can be used to call WSA_Startup and
54066         WSA_Cleanup when needed.
54067
54068         * lib/sockets.h, lib/sockets.c: New files.
54069
54070         * m4/sockets.m4: New file.
54071
54072         * tests/test-sockets.c: New file.
54073
54074 2008-01-19  Bruno Haible  <bruno@clisp.org>
54075
54076         * doc/posix-headers: Renamed from doc/headers.
54077         * doc/posix-functions: Renamed from doc/functions.
54078         * doc/gnulib.texi: Update.
54079
54080 2008-01-19  Bruno Haible  <bruno@clisp.org>
54081
54082         * doc/glibc-functions/strcasestr.texi: Include contents of
54083         doc/functions/strcasestr.texi, fixing the list of platforms.
54084         * doc/functions/strcasestr.texi: Remove file.
54085
54086 2008-01-19  Bruno Haible  <bruno@clisp.org>
54087
54088         * doc/glibc-functions/memmem.texi: Include contents of
54089         doc/functions/memmem.texi.
54090         * doc/functions/memmem.texi: Remove file.
54091
54092 2008-01-18  Bruno Haible  <bruno@clisp.org>
54093
54094         * doc/glibc-functions/*.texi: New files.
54095         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54096         to use the new files.
54097
54098 2008-01-17  Bruno Haible  <bruno@clisp.org>
54099
54100         * tests/test-gethostname.c (main): Fix printf statement.
54101
54102 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54103
54104         * modules/gethostname-tests: New file.
54105
54106         * tests/test-gethostname.c: New file.
54107
54108 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54109
54110         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54111         used by the UNAME case.  Reported by Bruno Haible
54112         <bruno@clisp.org>.
54113
54114 2008-01-17  Eric Blake  <ebb9@byu.net>
54115
54116         Convert c-strcasestr to be more efficient.
54117         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54118         (Depends-on): Add c-strcase, remove malloca, strnlen.
54119         * tests/test-c-strcasestr.c (main): Enhance test.
54120         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54121
54122 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54123
54124         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54125         Use it in creating po/Makevars.
54126
54127 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54128
54129         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54130         Applications that requires it should initialize libgcrypt
54131         manually.
54132
54133 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54134
54135         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54136
54137 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54138
54139         Fix problem with getdate on mingw32 reported by Simon Josefsson
54140         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54141         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54142         tzname", when deciding whether to declare tzname.
54143         * lib/strftime.c (tzname): Likewise.
54144
54145 2008-01-15  Bruno Haible  <bruno@clisp.org>
54146
54147         Work around a MacOS X 10.5 bug in frexpl().
54148         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54149         * doc/functions/frexpl.texi: Document the bug.
54150         Reported by Elias Pipping <pipping@gentoo.org>.
54151
54152 2008-01-14  Eric Blake  <ebb9@byu.net>
54153
54154         Touch up previous patch.
54155         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54156         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54157
54158         Convert strcasestr module to use Two-Way algorithm.
54159         * modules/strcasestr-simple: New module, based on the old
54160         strcasestr, but with Two-Way rather than KMP.
54161         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54162         * lib/string.in.h (rpl_strcasestr): Declare.
54163         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54164         performance.
54165         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54166         * modules/string (Makefile.am): Support strcasestr.
54167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54168         * modules/strcasestr-tests (Depends-on): Check for alarm.
54169         * tests/test-strcasestr.c: Augment test.
54170         * lib/str-two-way.h: Clean up stray macro.
54171         * NEWS: Document new module.
54172         * MODULES.html.sh (string handling): Likewise.
54173         * doc/functions/strcasestr.texi: New file.
54174         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54175         here, since it is not a POSIX function.
54176
54177 2008-01-14  Colin Watson  <cjwatson@debian.org>
54178             Bruno Haible  <bruno@clisp.org>
54179
54180         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54181         works fine; if not, set REPLACE_STRSIGNAL.
54182         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54184         REPLACE_STRSIGNAL.
54185         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54186         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54187         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54188
54189 2008-01-14  Bruno Haible  <bruno@clisp.org>
54190
54191         * modules/strsignal (Include): Change to <string.h>.
54192
54193 2008-01-14  Colin Watson  <cjwatson@debian.org>
54194
54195         * modules/argp (Notice): Add a notice recommending to change
54196         XGETTEXT_OPTIONS.
54197         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54198
54199 2008-01-13  Colin Watson  <cjwatson@debian.org>
54200
54201         * modules/strsignal-tests: New file.
54202         * tests/test-strsignal.c: New file.
54203
54204         * lib/strsignal.c: New file, from glibc with modifications.
54205         * lib/siglist.h: New file, from glibc with modifications.
54206         * lib/string.in.h (strsignal): New declaration.
54207         * m4/strsignal.m4: New file.
54208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54209         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54210         * modules/strsignal: New file.
54211         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54212         HAVE_DECL_STRSIGNAL.
54213
54214 2008-01-13  Bruno Haible  <bruno@clisp.org>
54215
54216         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54217         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54218         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54219         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54220
54221 2008-01-13  Bruno Haible  <bruno@clisp.org>
54222
54223         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54224         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54225         * lib/argp.h (__attribute__): Likewise.
54226         * lib/c-stack.c (__attribute__): Likewise.
54227         * lib/error.h (__attribute__): Likewise.
54228         * lib/fts.c (__attribute__): Likewise.
54229         * lib/openat.h (__attribute__): Likewise.
54230         * lib/stdio.in.h (__attribute__): Likewise.
54231         * lib/string.in.h (__attribute__): Likewise.
54232         * lib/utimens.c (__attribute__): Likewise.
54233         * lib/vasnprintf.h (__attribute__): Likewise.
54234         * lib/xalloc.h (__attribute__): Likewise.
54235         * lib/xprintf.h (__attribute__): Likewise.
54236         * lib/xstrtol.h (__attribute__): Likewise.
54237         * lib/xvasprintf.h (__attribute__): Likewise.
54238
54239 2008-01-12  Bruno Haible  <bruno@clisp.org>
54240
54241         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
54242         * doc/glibc-headers/a.out.texi: New file.
54243         * doc/glibc-headers/aliases.texi: New file.
54244         * doc/glibc-headers/alloca.texi: New file.
54245         * doc/glibc-headers/ar.texi: New file.
54246         * doc/glibc-headers/argp.texi: New file.
54247         * doc/glibc-headers/argz.texi: New file.
54248         * doc/glibc-headers/byteswap.texi: New file.
54249         * doc/glibc-headers/crypt.texi: New file.
54250         * doc/glibc-headers/endian.texi: New file.
54251         * doc/glibc-headers/envz.texi: New file.
54252         * doc/glibc-headers/err.texi: New file.
54253         * doc/glibc-headers/error.texi: New file.
54254         * doc/glibc-headers/execinfo.texi: New file.
54255         * doc/glibc-headers/fpu_control.texi: New file.
54256         * doc/glibc-headers/fstab.texi: New file.
54257         * doc/glibc-headers/fts.texi: New file.
54258         * doc/glibc-headers/getopt.texi: New file.
54259         * doc/glibc-headers/ieee754.texi: New file.
54260         * doc/glibc-headers/ifaddrs.texi: New file.
54261         * doc/glibc-headers/libintl.texi: New file.
54262         * doc/glibc-headers/mcheck.texi: New file.
54263         * doc/glibc-headers/mntent.texi: New file.
54264         * doc/glibc-headers/obstack.texi: New file.
54265         * doc/glibc-headers/paths.texi: New file.
54266         * doc/glibc-headers/printf.texi: New file.
54267         * doc/glibc-headers/pty.texi: New file.
54268         * doc/glibc-headers/resolv.texi: New file.
54269         * doc/glibc-headers/shadow.texi: New file.
54270         * doc/glibc-headers/sysexits.texi: New file.
54271         * doc/glibc-headers/ttyent.texi: New file.
54272
54273 2008-01-12  Jim Meyering  <meyering@redhat.com>
54274
54275         announce-gen: emit Gnulib's git-based version string.
54276         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
54277         New option --gnulib-version=V, where V is expected to be
54278         the output of running git describe in the gnulib directory.
54279         (get_tool_versions): Request feedback on xdelta.  I suspect it's
54280         not useful, and plan to stop publishing an xdelta file with each
54281         coreutils release.
54282
54283         * build-aux/announce-gen: Also check for lzma-compressed files.
54284
54285 2008-01-11  Bruno Haible  <bruno@clisp.org>
54286
54287         * tests/test-memmem.c (main): Increase maximum allowed time.
54288         * tests/test-strstr.c (main): Likewise.
54289
54290 2008-01-11  Bruno Haible  <bruno@clisp.org>
54291
54292         * doc/functions/memmem.texi: Add more precisions about platforms.
54293         * doc/functions/strstr.texi: Likewise.
54294
54295 2008-01-10  Eric Blake  <ebb9@byu.net>
54296
54297         * m4/strstr.m4: Delete cruft from copy-n-paste.
54298         Reported by Bruno Haible.
54299
54300 2008-01-10  Bruno Haible  <bruno@clisp.org>
54301
54302         Make c-strstr rely on strstr.
54303         * lib/c-strstr.c: Don't include str-kmp.h.
54304         (c_strstr): Define in terms of strstr.
54305         * modules/c-strstr (Files): Remove lib/str-kmp.h.
54306         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
54307
54308 2008-01-10  Bruno Haible  <bruno@clisp.org>
54309
54310         * doc/gnulib.texi (String Functions in C Locale): New section.
54311         * doc/c-ctype.texi: New file.
54312         * doc/c-strcase.texi: New file.
54313         * doc/c-strcaseeq.texi: New file.
54314         * doc/c-strcasestr.texi: New file.
54315         * doc/c-strstr.texi: New file.
54316         * doc/c-strtod.texi: New file.
54317         * doc/c-strtold.texi: New file.
54318
54319 2008-01-10  Eric Blake  <ebb9@byu.net>
54320
54321         * lib/relocatable.h: Fix a comment.
54322
54323 2008-01-10  Eric Blake  <ebb9@byu.net>
54324
54325         Share two-way algorithm.
54326         * lib/str-two-way.h: New file, merged from...
54327         * lib/memmem.c: ...here...
54328         * lib/strstr.c: ...and here.
54329         * modules/memmem (Files): Use it.
54330         * modules/strstr (Files): Likewise.
54331
54332         Avoid quadratic strstr implementations.
54333         * lib/strstr.c: New file.
54334         * m4/strstr.m4: Likewise.
54335         * modules/strstr: Likewise.
54336         * modules/strstr-tests: Likewise.
54337         * tests/test-strstr.c: Likewise.
54338         * lib/string.in.h (rpl_strstr): Declare.
54339         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
54340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
54341         * modules/string (Makefile.am): Likewise.
54342         * MODULES.html.sh (string handling): Mention new module.
54343         * doc/functions/strstr.texi (strstr): Document the bug.
54344
54345 2008-01-10  Bruno Haible  <bruno@clisp.org>
54346
54347         * lib/relocatable.h (relocate): State whether result is freshly
54348         allocated or not.
54349         * lib/relocatable.c (relocate): Return a freshly allocated string
54350         instead of a pointer to a privately held string.
54351         Reported by Sylvain Beucler <beuc@gnu.org>.
54352
54353 2008-01-10  Colin Watson  <cjwatson@debian.org>
54354
54355         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
54356         s/S_ISNLK/S_ISLNK/.
54357
54358 2008-01-09  Bruno Haible  <bruno@clisp.org>
54359
54360         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
54361         and other files.
54362         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
54363         if it's only a guess.
54364         * modules/memmem: Simplify by depending on memmem-simple.
54365
54366 2008-01-09  Bruno Haible  <bruno@clisp.org>
54367
54368         Work around OpenBSD 4.0 tdelete() bug.
54369         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54370         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54371         macros and don't redefine the enum values.
54372         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54373         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54374         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54375
54376 2008-01-09  Bruno Haible  <bruno@clisp.org>
54377
54378         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54379         (main): Don't perform the tests if setlocale did not install a UTF-8
54380         locale. Needed on OpenBSD 4.0.
54381         * modules/wcwidth-tests (Depends-on): Add localcharset.
54382
54383 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54384
54385         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
54386         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
54387         * NEWS: announce this.
54388         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54389
54390 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54391         and Eric Blake  <ebb9@byu.net>
54392
54393         Add memmem-simple module.
54394         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54395         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54396         * modules/memmem-simple: New file.
54397         * modules/memmem (Description): Tweak.
54398         * MODULES.html.sh (string handling): Mention new module.
54399         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54400         addressed by memmem-simple.
54401         * NEWS: Document the difference.
54402
54403 2008-01-09  Eric Blake  <ebb9@byu.net>
54404
54405         Give gcc some memmem optimization hints.
54406         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54407         (strcasestr): Declare as pure.
54408         * modules/memmem (Maintainer): Claim my implementation.
54409
54410 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54411
54412         Support AIX 6.1 and higher.
54413         * build-aux/config.libpath: Likewise.
54414         * build-aux/config.rpath: Likewise.
54415
54416 2008-01-08  Jim Meyering  <meyering@redhat.com>
54417             Bruno Haible  <bruno@clisp.org>
54418
54419         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54420         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54421         Reported by Peter Fales in
54422         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54423
54424 2008-01-08  Bruno Haible  <bruno@clisp.org>
54425
54426         * modules/unictype/category-of (Depends-on): Add
54427         unictype/category-none.
54428         * modules/unictype/category-and-tests (Depends-on): Add
54429         unictype/category-{L,N,Lu,Nd}.
54430         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54431         * modules/unictype/category-or-tests (Depends-on): Add
54432         unictype/category-{L,N}.
54433         * modules/unictype/category-name-tests (Depends-on): Add
54434         unictype/category-{Z,Nl}.
54435         Reported by Simon Josefsson.
54436
54437 2008-01-08  Bruno Haible  <bruno@clisp.org>
54438
54439         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54440         convention better.
54441         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54442         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54443         Reported by Peter Miller <millerp@canb.auug.org.au>.
54444
54445 2008-01-08  Eric Blake  <ebb9@byu.net>
54446
54447         Rewrite memmem to guarantee linear complexity without malloc.
54448         * lib/memmem.c (memmem): Use Two-Way rather than
54449         Knuth-Morris-Pratt, to allow O(1) space usage.
54450         (critical_factorization, two_way_short_needle)
54451         (two_way_long_needle): New functions.
54452         (knuth_morris_pratt): Delete.
54453         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54454         Add stdint.
54455         * tests/test-memmem.c (main): Add tests for periodic needle and
54456         sublinear performance.
54457         * doc/functions/memmem.texi (memmem): Document other deficiencies
54458         in cygwin and older glibc.
54459
54460 2008-01-08  Bruno Haible  <bruno@clisp.org>
54461
54462         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54463         augmentation.
54464
54465 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54466
54467         Add a configure time option: --disable-acl.
54468         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54469         AC_ARG_ENABLE(acl).
54470
54471 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54472
54473         * tests/test-localename.c: Don't include obsolete "setenv.h".
54474
54475         * modules/localename-tests (Depends-on): Need unsetenv.
54476
54477 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54478
54479         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54480
54481 2008-01-06  Colin Watson  <cjwatson@debian.org>
54482
54483         * users.txt: Add man-db.
54484
54485 2008-01-07  Bruno Haible  <bruno@clisp.org>
54486
54487         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54488         previous section name.
54489
54490 2008-01-07  Bruno Haible  <bruno@clisp.org>
54491
54492         * lib/progname.c (set_program_name): Don't strip off a leading
54493         "lt-" prefix outside a .libs directory.
54494         Suggested by Paul Eggert.
54495
54496 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54497             Bruno Haible  <bruno@clisp.org>
54498
54499         Improve memory cleanup in 'relocatable' module.
54500         * lib/relocatable.h (compute_curr_prefix): Change return type to
54501         'char *'.
54502         * lib/relocatable.c (compute_curr_prefix): Change return type to
54503         'char *'. Free curr_installdir after use.
54504         (relocate): Free curr_prefix_better after use.
54505         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54506
54507 2008-01-01  Bruno Haible  <bruno@clisp.org>
54508
54509         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54510         failure on older glibc systems.
54511         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54512
54513 2008-01-05  Eric Blake  <ebb9@byu.net>
54514
54515         Avoid quadratic system memmem.
54516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54517         Reported by Ralf Wildenhues.
54518
54519         Fix memmem test for mingw.
54520         * modules/memmem-tests (configure.ac): Check for alarm.
54521         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54522         it.
54523         * doc/functions/memmem.texi: New file.
54524         * doc/gnulib.texi (Function Substitutes): Add memmem.
54525         Reported by Bruno Haible.
54526
54527 2008-01-04  Bruno Haible  <bruno@clisp.org>
54528
54529         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54530         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54531         gl_HEADER_STRING_H_DEFAULTS.
54532
54533 2008-01-04  Eric Blake  <ebb9@byu.net>
54534
54535         Shorten duration of memmem test.
54536         * tests/test-memmem.c (main): Use alarm to declare failure if test
54537         is taking too long.
54538         Reported by Ralf Wildenhues.
54539
54540 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54541
54542         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54543         string, needed by strerror.
54544
54545 2008-01-03  Colin Watson  <cjwatson@debian.org>
54546             Bruno Haible  <bruno@clisp.org>
54547
54548         * doc/gnulib-tool.texi (Localization): New section.
54549
54550 2008-01-02  Bruno Haible  <bruno@clisp.org>
54551
54552         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54553         variables to 'unsigned char *' type.
54554         Reported by Paul Eggert.
54555
54556 2008-01-02  Jim Meyering  <jim@meyering.net>
54557
54558         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54559
54560 2007-12-31  Jim Meyering  <jim@meyering.net>
54561
54562         Avoid use of private FTS type name.
54563         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54564
54565 2007-12-30  Karl Berry  <karl@gnu.org>
54566
54567         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54568         work around defect in Texinfo and/or the standalone Info browser.
54569
54570 2007-12-30  Bruno Haible  <bruno@clisp.org>
54571
54572         Unify 5 copies of the KMP code.
54573         * lib/str-kmp.h: New file.
54574         * lib/c-strcasestr.c: Include str-kmp.h.
54575         (knuth_morris_pratt): Remove function.
54576         (c_strcasestr): Update.
54577         * lib/c-strstr.c: Include str-kmp.h.
54578         (knuth_morris_pratt): Remove function.
54579         (c_strcasestr): Update.
54580         * lib/mbscasestr.c: Include str-kmp.h.
54581         (knuth_morris_pratt_unibyte): Remove function.
54582         * lib/mbsstr.c: Include str-kmp.h.
54583         (knuth_morris_pratt_unibyte): Remove function.
54584         * lib/strcasestr.c: Include str-kmp.h.
54585         (knuth_morris_pratt): Remove function.
54586         (strcasestr): Update.
54587         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54588         * modules/c-strstr (Files): Likewise.
54589         * modules/mbscasestr (Files): Likewise.
54590         * modules/mbsstr (Files): Likewise.
54591         * modules/strcasestr (Files): Likewise.
54592         Suggested by Paul Eggert.
54593
54594 2007-12-30  Bruno Haible  <bruno@clisp.org>
54595
54596         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54597         defined.
54598
54599 2007-12-30  Bruno Haible  <bruno@clisp.org>
54600
54601         * lib/xmalloca.h: Include xalloc.h.
54602         (xnmalloca): New macro.
54603
54604 2007-12-30  Bruno Haible  <bruno@clisp.org>
54605
54606         * lib/malloca.h (nmalloca): New macro.
54607         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54608         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54609         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54610         knuth_morris_pratt_multibyte): Likewise.
54611         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54612         knuth_morris_pratt_multibyte): Likewise.
54613         * lib/memmem.c (knuth_morris_pratt): Likewise.
54614         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54615
54616 2007-12-25  Bruno Haible  <bruno@clisp.org>
54617
54618         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54619         * lib/glob.c: Don't include openat.h.
54620         (link_exists2_p): Add back the code that deals with the
54621         !GLOB_ALTDIRFUNC case.
54622         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54623         let it do the filename concatenation.
54624         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54625         * modules/glob (Depends-on): Remove openat.
54626
54627 2007-12-31  Bruno Haible  <bruno@clisp.org>
54628
54629         * modules/dirfd (License): Change to LGPLv2+.
54630         Approved by Jim Meyering.
54631
54632 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54633
54634         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54635         when multiplying M by sizeof (size_t).
54636
54637 2007-12-10  Martin Lambers  <marlam@marlam.de>
54638
54639         Override getpagesize on mingw.
54640         * lib/getpagesize.c: New file.
54641         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54642         * modules/getpagesize (Files): Add lib/getpagesize.c.
54643         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54645         REPLACE_GETPAGESIZE.
54646         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54647
54648 2007-12-25  Bruno Haible  <bruno@clisp.org>
54649
54650         * modules/localcharset (Notice): New field.
54651         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54652         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54653
54654 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54655             Bruno Haible  <bruno@clisp.org>
54656
54657         Avoid using the syntax symbol() in formatted documentation.
54658         * MODULES.html.sh (func_module): When replacing symbol() with a
54659         hyperlink, remove the parentheses. Show an error if some remain.
54660         Recognize and render the '...' syntax.
54661         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54662         Rework. Add paragraph about GCC's inlining.
54663         * doc/alloca.texi: Likewise.
54664         * doc/error.texi: Remove parentheses from symbol reference.
54665         * doc/gnulib-intro.texi: Likewise.
54666         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54667         * modules/fnmatch (Description): Reword to say "the ... function".
54668         * modules/full-read (Description): Likewise.
54669         * modules/full-write (Description): Likewise.
54670         * modules/safe-read (Description): Likewise.
54671         * modules/safe-write (Description): Likewise.
54672         * modules/strchrnul (Description): Likewise.
54673         * modules/trim (Description): Likewise.
54674         * modules/error (Description): Remove parentheses from symbol
54675         references.
54676         * modules/verror (Description): Likewise.
54677         Reported by Karl Berry.
54678
54679 2007-12-25  Bruno Haible  <bruno@clisp.org>
54680
54681         Fixup after 2007-10-16 commit.
54682         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54683
54684 2007-12-24  Bruno Haible  <bruno@clisp.org>
54685
54686         Make --enable-relocatable work with DESTDIR.
54687         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54688         to compute installdir from destprog.
54689         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54690         also set the RELOC_DESTDIR variable.
54691         Reported by Левашев Иван <octagram@bluebottle.com>.
54692
54693 2007-12-24  Bruno Haible  <bruno@clisp.org>
54694
54695         Fix link error due to xalloc_die().
54696         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54697         of xreadlink.
54698         * lib/relocwrapper.c: Update comments.
54699         * build-aux/install-reloc: Remove xreadlink.c from file list.
54700         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54701         xreadlink.c.
54702         Reported by Левашев Иван <octagram@bluebottle.com>.
54703
54704 2007-12-24  Bruno Haible  <bruno@clisp.org>
54705
54706         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54707         * lib/setenv.h: Remove file.
54708         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54709         lib/setenv.h.
54710         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54711         (Depends-on): Add stdlib.
54712         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54713         gl_FUNC_UNSETENV.
54714         (Include): Replace setenv.h with <stdlib.h>.
54715         * modules/unsetenv: New file.
54716         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54717         * lib/unsetenv.c: Include <stdlib.h> first.
54718         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54719         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54720         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54721         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54722         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54723         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54725         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54726         * doc/functions/unsetenv.texi: Update.
54727         * modules/xsetenv (Depends-on): Add unsetenv.
54728         * modules/getdate (Depends-on): Likewise.
54729         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54730         * lib/xsetenv.c: Don't include setenv.h.
54731         * lib/getdate.y: Likewise.
54732         * lib/relocwrapper.c: Likewise.
54733         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54734         (Depends-on): Add stdlib.
54735         * NEWS: Mention the changes.
54736         Reported by Левашев Иван <octagram@bluebottle.com>.
54737
54738 2007-12-23  Bruno Haible  <bruno@clisp.org>
54739
54740         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54741         indentation.
54742
54743 2007-12-23  Bruno Haible  <bruno@clisp.org>
54744
54745         * lib/c-strcasestr.c: Add more comments.
54746         * lib/c-strstr.c: Likewise.
54747         * lib/mbscasestr.c: Likewise.
54748         * lib/mbsstr.c: Likewise.
54749         * lib/strcasestr.c: Likewise.
54750         * lib/memmem.c: Likewise.
54751
54752 2007-12-23  Bruno Haible  <bruno@clisp.org>
54753
54754         * tests/test-memmem.c: Include <string.h> first.
54755
54756 2007-12-22  Bruno Haible  <bruno@clisp.org>
54757
54758         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54759         the contents of $testsbase.
54760         Reported by Ralf Wildenhues.
54761
54762 2007-12-22  Bruno Haible  <bruno@clisp.org>
54763
54764         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54765         two variables local_ldadd_before, local_ldadd_last.
54766
54767 2007-12-20  Eric Blake  <ebb9@byu.net>
54768
54769         Work around circular library issue when cross-compiling.
54770         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54771         that progname.o does not need to pull in rpl_memcmp.
54772
54773 2007-12-19  Eric Blake  <ebb9@byu.net>
54774
54775         Fix memmem to avoid O(n^2) worst-case complexity.
54776         * lib/memmem.c (knuth_morris_pratt): New function.
54777         (memmem): Use it if first few naive iterations fail.
54778         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54779         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54780         * modules/memchr (License): Likewise.
54781         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54782         malloca.
54783         * tests/test-memmem.c: Rewrite, borrowing ideas from
54784         test-mbsstr1.c; the old version wouldn't even compile!
54785         * modules/memmem-tests: New file.
54786         * lib/string.in.h (rpl_memmem): Add declaration.
54787         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54789         REPLACE_MEMMEM.
54790
54791 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54792
54793         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54794         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54795         before any system include files, and undef after them all.  This
54796         should fix a problem on VMS reported by John E. Malmberg in
54797         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54798
54799 2007-12-17  Eric Blake  <ebb9@byu.net>
54800
54801         Revert addition of verify, for BSD/OS.
54802         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54803         can't handle large files, for the sake of obsolete platforms.
54804         * modules/fseeko (Depends-on): Remove verify.
54805         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54806         * doc/functions/ftello.texi (ftello): Likewise.
54807         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54808         Reported by Larry Jones.
54809
54810 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54811
54812         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54813         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54814
54815 2007-12-17  Jim Meyering  <meyering@redhat.com>
54816
54817         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54818         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54819         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54820         * modules/getcwd (Depends-on): Add openat.
54821         Reported by Petr Salinger.
54822
54823 2007-12-17  Bruno Haible  <bruno@clisp.org>
54824
54825         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54826         avoid a segmentation fault of the configure test on x86_64 systems.
54827
54828 2007-12-15  Jim Meyering  <meyering@redhat.com>
54829
54830         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54831
54832 2007-12-13  Eric Blake  <ebb9@byu.net>
54833
54834         Another fseek test.
54835         * tests/test-fseek.c (main): Also test ungetc handling.
54836         * tests/test-fseeko.c (main): Likewise.
54837         * modules/fseeko (Depends-on): Add verify.
54838         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54839         large.
54840         Reported by Larry Jones.
54841
54842         Fix fseeko on mingw.
54843         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54844         seek.
54845
54846         Beef up fseek tests.
54847         * tests/test-fseek.c (main): Also test eof handling.
54848         * tests/test-fseeko.c (main): Likewise.
54849         Reported by Larry Jones.
54850
54851 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54852
54853         Fix fseeko on BSD-based platforms.
54854         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54855         successful seek.
54856
54857 2007-12-12  Eric Blake  <ebb9@byu.net>
54858
54859         Allow circular dependency of separate libtests.a
54860         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54861         when use_libtests.
54862
54863 2007-12-11  Eric Blake  <ebb9@byu.net>
54864
54865         Fix bug with -0.0L in previous patch.
54866         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54867         * tests/test-isnan.c (main): Also test on zeroes.
54868         * tests/test-isnanf.c (main): Likewise.
54869         * tests/test-isnanl.h (main): Likewise.
54870
54871         Detect pseudo-denormals on x86 even when cross-compiling.
54872         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54873         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54874         invalid bit patterns that happen to satisfy ==.
54875
54876         Avoid link failures with separate libtests.a.
54877         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54878         last, to satisfy circular dependencies.
54879
54880 2007-12-11  Eric Blake  <ebb9@byu.net>
54881         and Bruno Haible  <bruno@clisp.org>
54882
54883         Fix OpenBSD 4.0 <float.h> handling of long double.
54884         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54885         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54886         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54887
54888 2007-12-11  Jim Meyering  <meyering@redhat.com>
54889
54890         * users.txt: Add libvirt.
54891
54892         Support versions of autoconf prior to 2.59c.
54893         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54894         if it is not already defined.
54895
54896 2007-12-09  Bruno Haible  <bruno@clisp.org>
54897
54898         Let 'gnulib-tool --import' collect sources needed for the tests in
54899         tests/ rather than in lib/.
54900         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54901         argument. If true, add rules to generate libtests.a, and put libtests.a
54902         into $(LDADD). Consider source files in subdirectories and set
54903         uses_subdirs.
54904         (func_emit_initmacro_start, func_emit_initmacro_end,
54905         func_emit_initmacro_done): Pass all arguments explicitly.
54906         (func_import): Determine two module lists main_modules,
54907         testsrelated_modules. Determine use_libtests. Determine two variables
54908         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54909         instead of just sed_transform_lib_file. Determine two variables
54910         main_files and testsrelated_files. Compute 'files' as the union of
54911         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54912         func_add_or_update. In the generated gnulib-comp.m4, collect the
54913         object files for tests/ in different variables than those for lib/.
54914         Substitute LIBTESTS_LIBDEPS.
54915         (func_create_testdir): Combine the uses_subdirs results from
54916         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54917
54918 2007-12-09  Bruno Haible  <bruno@clisp.org>
54919
54920         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54921         the build-aux directory.
54922
54923 2007-12-09  Bruno Haible  <bruno@clisp.org>
54924
54925         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54926         introduced on 2006-09-09.
54927
54928 2007-12-07  Jim Meyering  <meyering@redhat.com>
54929
54930         Let these macros work also with autoconf-2.59.
54931         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54932         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54933         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54934
54935 2007-12-06  Jim Meyering  <meyering@redhat.com>
54936
54937         Avoid a configure-time syntax error in gl_FUNC_ACL.
54938         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54939         function in each branch, before testing the cache variable.
54940
54941 2007-12-04  Eric Blake  <ebb9@byu.net>
54942
54943         Make scripts executable.
54944         * build-aux/config.guess: Add execute permissions.
54945         * build-aux/config.sub: Likewise.
54946         * build-aux/gendocs.sh: Likewise.
54947
54948         Fix frexp on mingw.
54949         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54950         cross-compiling.
54951         * doc/functions/frexp.texi (frexp): Document the bug.
54952
54953         Make cygwin fseeko check more reliable.
54954         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54955         version numbers, rather than unrelated feature check.
54956         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54957         * doc/functions/ftello.texi (ftello): Likewise.
54958         Reported by Bruno Haible.
54959
54960         * m4/strerror.m4: Bump version number.
54961
54962 2007-12-03  Bruno Haible  <bruno@clisp.org>
54963
54964         * doc/functions/mprotect.texi: Mention the mingw problem.
54965
54966 2007-12-03  Eric Blake  <ebb9@byu.net>
54967
54968         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54969         REPLACE_STRERROR is initialized before this macro.
54970
54971 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54972
54973         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54974         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54975         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54976         put -lsec in even for programs other than 'ls'.  This fixes a problem
54977         for gettext reported by Bruno Haible in
54978         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54979         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54980         Add support for Solaris 10.  This isn't efficient, but should get the
54981         job done for now.
54982
54983 2007-12-03  James Youngman  <jay@gnu.org>
54984
54985         * doc/regexprops-generic.texi: change "an close-group" to "a
54986         close-group" and "illegal" to "not allowed".
54987
54988 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54989
54990         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54991         pr_byname.h. Needed for the rare case when the maintainer has done
54992         "make maintainer-clean" in the source directory and then attempts a
54993         build outside the source directory.
54994         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54995         scripts_byname.h.
54996
54997 2007-12-02  Martin Lambers <marlam@marlam.de>
54998             Bruno Haible  <bruno@clisp.org>
54999
55000         * lib/getpagesize.h: Remove file.
55001         * lib/unistd.in.h: Include declaration of getpagesize here.
55002         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55003         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55004         HAVE_SYS_PARAM_H.
55005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55006         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55007         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55008         (Depends-on): Add unistd.
55009         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55010         (Include): Use <unistd.h> instead of getpagesize.h.
55011         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55012         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55013         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55014         gl_GETPAGESIZE invocation, already handled by module dependency.
55015         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55016
55017 2007-12-02  Bruno Haible  <bruno@clisp.org>
55018
55019         * modules/strings-tests: New file.
55020         * tests/test-strings.c: New file.
55021
55022         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55023         * lib/strings.in.h: New file.
55024         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55025         * m4/strings_h.m4: New file.
55026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55027         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55028         * modules/strings: New file.
55029         * modules/string (Makefile.am): Update.
55030         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55031         Reported by Karl Berry.
55032
55033 2007-12-01  Eric Blake  <ebb9@byu.net>
55034
55035         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55036         accomodate fix in cygwin 1.5.25.
55037
55038 2007-12-01  Jim Meyering  <meyering@redhat.com>
55039
55040         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55041         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55042         that would inhibit utf8-optimization of a regexp containing line-
55043         or buffer-anchors, e.g., `^', `$'.
55044
55045 2007-11-30  Bruno Haible  <bruno@clisp.org>
55046
55047         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55048         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55049         glthread_recursive_lock_init.
55050         * lib/lock.c (glthread_recursive_lock_init)
55051         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55052         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55053
55054 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55055
55056         New function qset_acl, like set_acl but with syscall semantics.
55057         * lib/acl.h (qset_acl): New decl.
55058         * lib/acl.c (qset_acl): New function.
55059         (set_acl): Use new function.  Use more-consistent diagnostics.
55060
55061 2007-11-28  Jim Meyering  <meyering@redhat.com>
55062
55063         * modules/physmem (License): Change from GPL to LGPLv2+.
55064
55065 2007-11-26  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55068         'long double' type has excess precision.
55069         Reported by Jim Meyering in
55070         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55071
55072 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55073
55074         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55075         Sync from <http://gnu.org/licenses>.
55076         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55077         with license text from same location.
55078         * doc/maintain.texi, doc/standards.texi:  Sync from
55079         <http://savannah.gnu.org/projects/gnustandards>.
55080
55081 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
55082         and Jim Meyering  <meyering@redhat.com>
55083
55084         Adjust getdate' grammar to accept a slightly more regular language.
55085         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55086         Before, the former was rejected.
55087         * lib/getdate.y (digits_to_date_time): New function, factored
55088         out of ...
55089         (number): ...here.  Just call digits_to_date_time.
55090         (hybrid): New non-terminal to handle an <unsigned number,
55091         signed relative offset> sequence consistently.
55092
55093 2007-11-18  Jim Meyering  <meyering@redhat.com>
55094
55095         Pull my changes from coreutils:
55096         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55097         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55098         use of $gnulib_tool_option_extras, so that it's separated from the
55099         preceding argument.
55100
55101         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55102         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55103         parent destination directories before copying a file into place.
55104
55105 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55106
55107         bootstrap: work also with 4-argument variant of AC_INIT
55108         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55109
55110 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55111
55112         Port test-getaddrinfo to Solaris.
55113         Problem reported by Bruno Haible in
55114         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55115         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55116         explanation of setting 'hints'.
55117         Don't reject an implementation merely because it returns EAI_SERVICE.
55118         (EAI_SERVICE): Define to 0 if not defined.
55119
55120 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55121
55122         The license of gnu-make and posix-shell is now "GPLed build tool".
55123         * modules/gnu-make (License): Likewise.
55124         * modules/posix-shell (License): Likewise.
55125
55126         New module posix-shell, for determining a POSIX shell
55127         or perhaps something that is close enough to a POSIX shell.
55128         * m4/posix-shell.m4: New file.
55129         * modules/posix-shell: New file.
55130
55131         * MODULES.html.sh: Mention new module.
55132
55133         New module gnu-make, for determining whether we're using GNU Make.
55134         * m4/gnu-make.m4: New file.
55135         * modules/gnu-make: New file.
55136         * MODULES.html.sh: Mention new module.
55137
55138 2007-11-14  Jim Meyering  <meyering@redhat.com>
55139
55140         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55141         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55142         use this macro to create a function _definition_.
55143         Remove useless "#undef ARGMATCH_DIE".
55144
55145 2007-11-14  Bruno Haible  <bruno@clisp.org>
55146
55147         * lib/config.charset: Update for OpenBSD 4.1.
55148         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55149
55150 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55151
55152         Document 64-bit #if problems in stdint.texi.
55153         * doc/headers/stdint.texi (stdint.h): Mention problems with
55154         64-bit-#if, and how to work around them.
55155
55156         Don't insist on 'long long int' support in the preprocessor.  It
55157         breaks too many things.  For example, PRIdMAX still uses a 'long
55158         long int' format with the latest Sun compiler, even though
55159         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55160         preprocessor problem.  This causes the latest coreutils to dump
55161         core on Solaris 10 sparc with the Sun C compiler.
55162         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55163         the troublesome expressions at configure-time, not at #if-time.
55164         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55165         preprocessor.
55166         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55167         compile-time C checks, done at 'configure'-time.
55168         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55169         * modules/inttypes (Makefile): Substitute the new symbols that
55170         gl_INTTYPES_H now generates.
55171         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55172
55173 2007-11-12  Bruno Haible  <bruno@clisp.org>
55174
55175         Tests for Unicode character classification functions.
55176
55177         * modules/unictype/bidicategory-byname-tests: New file.
55178         * modules/unictype/bidicategory-name-tests: New file.
55179         * modules/unictype/bidicategory-of-tests: New file.
55180         * modules/unictype/bidicategory-test-tests: New file.
55181         * modules/unictype/block-list-tests: New file.
55182         * modules/unictype/block-of-tests: New file.
55183         * modules/unictype/block-test-tests: New file.
55184         * modules/unictype/category-C-tests: New file.
55185         * modules/unictype/category-Cc-tests: New file.
55186         * modules/unictype/category-Cf-tests: New file.
55187         * modules/unictype/category-Cn-tests: New file.
55188         * modules/unictype/category-Co-tests: New file.
55189         * modules/unictype/category-Cs-tests: New file.
55190         * modules/unictype/category-L-tests: New file.
55191         * modules/unictype/category-Ll-tests: New file.
55192         * modules/unictype/category-Lm-tests: New file.
55193         * modules/unictype/category-Lo-tests: New file.
55194         * modules/unictype/category-Lt-tests: New file.
55195         * modules/unictype/category-Lu-tests: New file.
55196         * modules/unictype/category-M-tests: New file.
55197         * modules/unictype/category-Mc-tests: New file.
55198         * modules/unictype/category-Me-tests: New file.
55199         * modules/unictype/category-Mn-tests: New file.
55200         * modules/unictype/category-N-tests: New file.
55201         * modules/unictype/category-Nd-tests: New file.
55202         * modules/unictype/category-Nl-tests: New file.
55203         * modules/unictype/category-No-tests: New file.
55204         * modules/unictype/category-P-tests: New file.
55205         * modules/unictype/category-Pc-tests: New file.
55206         * modules/unictype/category-Pd-tests: New file.
55207         * modules/unictype/category-Pe-tests: New file.
55208         * modules/unictype/category-Pf-tests: New file.
55209         * modules/unictype/category-Pi-tests: New file.
55210         * modules/unictype/category-Po-tests: New file.
55211         * modules/unictype/category-Ps-tests: New file.
55212         * modules/unictype/category-S-tests: New file.
55213         * modules/unictype/category-Sc-tests: New file.
55214         * modules/unictype/category-Sk-tests: New file.
55215         * modules/unictype/category-Sm-tests: New file.
55216         * modules/unictype/category-So-tests: New file.
55217         * modules/unictype/category-Z-tests: New file.
55218         * modules/unictype/category-Zl-tests: New file.
55219         * modules/unictype/category-Zp-tests: New file.
55220         * modules/unictype/category-Zs-tests: New file.
55221         * modules/unictype/category-and-not-tests: New file.
55222         * modules/unictype/category-and-tests: New file.
55223         * modules/unictype/category-byname-tests: New file.
55224         * modules/unictype/category-name-tests: New file.
55225         * modules/unictype/category-none-tests: New file.
55226         * modules/unictype/category-of-tests: New file.
55227         * modules/unictype/category-or-tests: New file.
55228         * modules/unictype/category-test-withtable-tests: New file.
55229         * modules/unictype/combining-class-tests: New file.
55230         * modules/unictype/ctype-alnum-tests: New file.
55231         * modules/unictype/ctype-alpha-tests: New file.
55232         * modules/unictype/ctype-blank-tests: New file.
55233         * modules/unictype/ctype-cntrl-tests: New file.
55234         * modules/unictype/ctype-digit-tests: New file.
55235         * modules/unictype/ctype-graph-tests: New file.
55236         * modules/unictype/ctype-lower-tests: New file.
55237         * modules/unictype/ctype-print-tests: New file.
55238         * modules/unictype/ctype-punct-tests: New file.
55239         * modules/unictype/ctype-space-tests: New file.
55240         * modules/unictype/ctype-upper-tests: New file.
55241         * modules/unictype/ctype-xdigit-tests: New file.
55242         * modules/unictype/decimal-digit-tests: New file.
55243         * modules/unictype/digit-tests: New file.
55244         * modules/unictype/mirror-tests: New file.
55245         * modules/unictype/numeric-tests: New file.
55246         * modules/unictype/property-alphabetic-tests: New file.
55247         * modules/unictype/property-ascii-hex-digit-tests: New file.
55248         * modules/unictype/property-bidi-arabic-digit-tests: New file.
55249         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
55250         * modules/unictype/property-bidi-block-separator-tests: New file.
55251         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
55252         * modules/unictype/property-bidi-common-separator-tests: New file.
55253         * modules/unictype/property-bidi-control-tests: New file.
55254         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
55255         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
55256         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
55257         * modules/unictype/property-bidi-european-digit-tests: New file.
55258         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
55259         * modules/unictype/property-bidi-left-to-right-tests: New file.
55260         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
55261         * modules/unictype/property-bidi-other-neutral-tests: New file.
55262         * modules/unictype/property-bidi-pdf-tests: New file.
55263         * modules/unictype/property-bidi-segment-separator-tests: New file.
55264         * modules/unictype/property-bidi-whitespace-tests: New file.
55265         * modules/unictype/property-byname-tests: New file.
55266         * modules/unictype/property-combining-tests: New file.
55267         * modules/unictype/property-composite-tests: New file.
55268         * modules/unictype/property-currency-symbol-tests: New file.
55269         * modules/unictype/property-dash-tests: New file.
55270         * modules/unictype/property-decimal-digit-tests: New file.
55271         * modules/unictype/property-default-ignorable-code-point-tests: New file.
55272         * modules/unictype/property-deprecated-tests: New file.
55273         * modules/unictype/property-diacritic-tests: New file.
55274         * modules/unictype/property-extender-tests: New file.
55275         * modules/unictype/property-format-control-tests: New file.
55276         * modules/unictype/property-grapheme-base-tests: New file.
55277         * modules/unictype/property-grapheme-extend-tests: New file.
55278         * modules/unictype/property-grapheme-link-tests: New file.
55279         * modules/unictype/property-hex-digit-tests: New file.
55280         * modules/unictype/property-hyphen-tests: New file.
55281         * modules/unictype/property-id-continue-tests: New file.
55282         * modules/unictype/property-id-start-tests: New file.
55283         * modules/unictype/property-ideographic-tests: New file.
55284         * modules/unictype/property-ids-binary-operator-tests: New file.
55285         * modules/unictype/property-ids-trinary-operator-tests: New file.
55286         * modules/unictype/property-ignorable-control-tests: New file.
55287         * modules/unictype/property-iso-control-tests: New file.
55288         * modules/unictype/property-join-control-tests: New file.
55289         * modules/unictype/property-left-of-pair-tests: New file.
55290         * modules/unictype/property-line-separator-tests: New file.
55291         * modules/unictype/property-logical-order-exception-tests: New file.
55292         * modules/unictype/property-lowercase-tests: New file.
55293         * modules/unictype/property-math-tests: New file.
55294         * modules/unictype/property-non-break-tests: New file.
55295         * modules/unictype/property-not-a-character-tests: New file.
55296         * modules/unictype/property-numeric-tests: New file.
55297         * modules/unictype/property-other-alphabetic-tests: New file.
55298         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
55299         * modules/unictype/property-other-grapheme-extend-tests: New file.
55300         * modules/unictype/property-other-id-continue-tests: New file.
55301         * modules/unictype/property-other-id-start-tests: New file.
55302         * modules/unictype/property-other-lowercase-tests: New file.
55303         * modules/unictype/property-other-math-tests: New file.
55304         * modules/unictype/property-other-uppercase-tests: New file.
55305         * modules/unictype/property-paired-punctuation-tests: New file.
55306         * modules/unictype/property-paragraph-separator-tests: New file.
55307         * modules/unictype/property-pattern-syntax-tests: New file.
55308         * modules/unictype/property-pattern-white-space-tests: New file.
55309         * modules/unictype/property-private-use-tests: New file.
55310         * modules/unictype/property-punctuation-tests: New file.
55311         * modules/unictype/property-quotation-mark-tests: New file.
55312         * modules/unictype/property-radical-tests: New file.
55313         * modules/unictype/property-sentence-terminal-tests: New file.
55314         * modules/unictype/property-soft-dotted-tests: New file.
55315         * modules/unictype/property-space-tests: New file.
55316         * modules/unictype/property-terminal-punctuation-tests: New file.
55317         * modules/unictype/property-test-tests: New file.
55318         * modules/unictype/property-titlecase-tests: New file.
55319         * modules/unictype/property-unassigned-code-value-tests: New file.
55320         * modules/unictype/property-unified-ideograph-tests: New file.
55321         * modules/unictype/property-uppercase-tests: New file.
55322         * modules/unictype/property-variation-selector-tests: New file.
55323         * modules/unictype/property-white-space-tests: New file.
55324         * modules/unictype/property-xid-continue-tests: New file.
55325         * modules/unictype/property-xid-start-tests: New file.
55326         * modules/unictype/property-zero-width-tests: New file.
55327         * modules/unictype/scripts-tests: New file.
55328         * modules/unictype/syntax-c-ident-tests: New file.
55329         * modules/unictype/syntax-c-whitespace-tests: New file.
55330         * modules/unictype/syntax-java-ident-tests: New file.
55331         * modules/unictype/syntax-java-whitespace-tests: New file.
55332         * tests/unictype/test-bidi_byname.c: New file.
55333         * tests/unictype/test-bidi_name.c: New file.
55334         * tests/unictype/test-bidi_of.c: New file.
55335         * tests/unictype/test-bidi_test.c: New file.
55336         * tests/unictype/test-block_list.c: New file.
55337         * tests/unictype/test-block_of.c: New file.
55338         * tests/unictype/test-block_test.c: New file.
55339         * tests/unictype/test-categ_and.c: New file.
55340         * tests/unictype/test-categ_and_not.c: New file.
55341         * tests/unictype/test-categ_byname.c: New file.
55342         * tests/unictype/test-categ_name.c: New file.
55343         * tests/unictype/test-categ_none.c: New file.
55344         * tests/unictype/test-categ_of.c: New file.
55345         * tests/unictype/test-categ_or.c: New file.
55346         * tests/unictype/test-categ_test_withtable.c: New file.
55347         * tests/unictype/test-combining.c: New file.
55348         * tests/unictype/test-decdigit.c: New file.
55349         * tests/unictype/test-digit.c: New file.
55350         * tests/unictype/test-mirror.c: New file.
55351         * tests/unictype/test-numeric.c: New file.
55352         * tests/unictype/test-pr_byname.c: New file.
55353         * tests/unictype/test-pr_test.c: New file.
55354         * tests/unictype/test-predicate-part1.h: New file.
55355         * tests/unictype/test-predicate-part2.h: New file.
55356         * tests/unictype/test-scripts.c: New file.
55357         * tests/unictype/test-sy_c_ident.c: New file.
55358         * tests/unictype/test-sy_java_ident.c: New file.
55359
55360         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
55361         for Unicode 5.0.0.
55362         * tests/unictype/test-categ_Cc.c: Likewise.
55363         * tests/unictype/test-categ_Cf.c: Likewise.
55364         * tests/unictype/test-categ_Cn.c: Likewise.
55365         * tests/unictype/test-categ_Co.c: Likewise.
55366         * tests/unictype/test-categ_Cs.c: Likewise.
55367         * tests/unictype/test-categ_L.c: Likewise.
55368         * tests/unictype/test-categ_Ll.c: Likewise.
55369         * tests/unictype/test-categ_Lm.c: Likewise.
55370         * tests/unictype/test-categ_Lo.c: Likewise.
55371         * tests/unictype/test-categ_Lt.c: Likewise.
55372         * tests/unictype/test-categ_Lu.c: Likewise.
55373         * tests/unictype/test-categ_M.c: Likewise.
55374         * tests/unictype/test-categ_Mc.c: Likewise.
55375         * tests/unictype/test-categ_Me.c: Likewise.
55376         * tests/unictype/test-categ_Mn.c: Likewise.
55377         * tests/unictype/test-categ_N.c: Likewise.
55378         * tests/unictype/test-categ_Nd.c: Likewise.
55379         * tests/unictype/test-categ_Nl.c: Likewise.
55380         * tests/unictype/test-categ_No.c: Likewise.
55381         * tests/unictype/test-categ_P.c: Likewise.
55382         * tests/unictype/test-categ_Pc.c: Likewise.
55383         * tests/unictype/test-categ_Pd.c: Likewise.
55384         * tests/unictype/test-categ_Pe.c: Likewise.
55385         * tests/unictype/test-categ_Pf.c: Likewise.
55386         * tests/unictype/test-categ_Pi.c: Likewise.
55387         * tests/unictype/test-categ_Po.c: Likewise.
55388         * tests/unictype/test-categ_Ps.c: Likewise.
55389         * tests/unictype/test-categ_S.c: Likewise.
55390         * tests/unictype/test-categ_Sc.c: Likewise.
55391         * tests/unictype/test-categ_Sk.c: Likewise.
55392         * tests/unictype/test-categ_Sm.c: Likewise.
55393         * tests/unictype/test-categ_So.c: Likewise.
55394         * tests/unictype/test-categ_Z.c: Likewise.
55395         * tests/unictype/test-categ_Zl.c: Likewise.
55396         * tests/unictype/test-categ_Zp.c: Likewise.
55397         * tests/unictype/test-categ_Zs.c: Likewise.
55398         * tests/unictype/test-ctype_alnum.c: Likewise.
55399         * tests/unictype/test-ctype_alpha.c: Likewise.
55400         * tests/unictype/test-ctype_blank.c: Likewise.
55401         * tests/unictype/test-ctype_cntrl.c: Likewise.
55402         * tests/unictype/test-ctype_digit.c: Likewise.
55403         * tests/unictype/test-ctype_graph.c: Likewise.
55404         * tests/unictype/test-ctype_lower.c: Likewise.
55405         * tests/unictype/test-ctype_print.c: Likewise.
55406         * tests/unictype/test-ctype_punct.c: Likewise.
55407         * tests/unictype/test-ctype_space.c: Likewise.
55408         * tests/unictype/test-ctype_upper.c: Likewise.
55409         * tests/unictype/test-ctype_xdigit.c: Likewise.
55410         * tests/unictype/test-decdigit.h: Likewise.
55411         * tests/unictype/test-digit.h: Likewise.
55412         * tests/unictype/test-numeric.h: Likewise.
55413         * tests/unictype/test-pr_alphabetic.c: Likewise.
55414         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55415         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55416         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55417         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55418         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55419         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55420         * tests/unictype/test-pr_bidi_control.c: Likewise.
55421         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55422         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55423         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55424         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55425         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55426         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55427         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55428         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55429         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55430         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55431         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55432         * tests/unictype/test-pr_combining.c: Likewise.
55433         * tests/unictype/test-pr_composite.c: Likewise.
55434         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55435         * tests/unictype/test-pr_dash.c: Likewise.
55436         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55437         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55438         * tests/unictype/test-pr_deprecated.c: Likewise.
55439         * tests/unictype/test-pr_diacritic.c: Likewise.
55440         * tests/unictype/test-pr_extender.c: Likewise.
55441         * tests/unictype/test-pr_format_control.c: Likewise.
55442         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55443         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55444         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55445         * tests/unictype/test-pr_hex_digit.c: Likewise.
55446         * tests/unictype/test-pr_hyphen.c: Likewise.
55447         * tests/unictype/test-pr_id_continue.c: Likewise.
55448         * tests/unictype/test-pr_id_start.c: Likewise.
55449         * tests/unictype/test-pr_ideographic.c: Likewise.
55450         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55451         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55452         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55453         * tests/unictype/test-pr_iso_control.c: Likewise.
55454         * tests/unictype/test-pr_join_control.c: Likewise.
55455         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55456         * tests/unictype/test-pr_line_separator.c: Likewise.
55457         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55458         * tests/unictype/test-pr_lowercase.c: Likewise.
55459         * tests/unictype/test-pr_math.c: Likewise.
55460         * tests/unictype/test-pr_non_break.c: Likewise.
55461         * tests/unictype/test-pr_not_a_character.c: Likewise.
55462         * tests/unictype/test-pr_numeric.c: Likewise.
55463         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55464         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55465         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55466         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55467         * tests/unictype/test-pr_other_id_start.c: Likewise.
55468         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55469         * tests/unictype/test-pr_other_math.c: Likewise.
55470         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55471         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55472         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55473         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55474         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55475         * tests/unictype/test-pr_private_use.c: Likewise.
55476         * tests/unictype/test-pr_punctuation.c: Likewise.
55477         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55478         * tests/unictype/test-pr_radical.c: Likewise.
55479         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55480         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55481         * tests/unictype/test-pr_space.c: Likewise.
55482         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55483         * tests/unictype/test-pr_titlecase.c: Likewise.
55484         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55485         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55486         * tests/unictype/test-pr_uppercase.c: Likewise.
55487         * tests/unictype/test-pr_variation_selector.c: Likewise.
55488         * tests/unictype/test-pr_white_space.c: Likewise.
55489         * tests/unictype/test-pr_xid_continue.c: Likewise.
55490         * tests/unictype/test-pr_xid_start.c: Likewise.
55491         * tests/unictype/test-pr_zero_width.c: Likewise.
55492         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55493         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55494
55495 2007-11-12  Bruno Haible  <bruno@clisp.org>
55496
55497         Unicode character classification functions.
55498         * lib/unictype.h: New file.
55499         * modules/unictype/base: New file.
55500         * modules/unictype/category-L: New file.
55501         * modules/unictype/category-Lu: New file.
55502         * modules/unictype/category-Ll: New file.
55503         * modules/unictype/category-Lt: New file.
55504         * modules/unictype/category-Lm: New file.
55505         * modules/unictype/category-Lo: New file.
55506         * modules/unictype/category-M: New file.
55507         * modules/unictype/category-Mn: New file.
55508         * modules/unictype/category-Mc: New file.
55509         * modules/unictype/category-Me: New file.
55510         * modules/unictype/category-N: New file.
55511         * modules/unictype/category-Nd: New file.
55512         * modules/unictype/category-Nl: New file.
55513         * modules/unictype/category-No: New file.
55514         * modules/unictype/category-P: New file.
55515         * modules/unictype/category-Pc: New file.
55516         * modules/unictype/category-Pd: New file.
55517         * modules/unictype/category-Ps: New file.
55518         * modules/unictype/category-Pe: New file.
55519         * modules/unictype/category-Pi: New file.
55520         * modules/unictype/category-Pf: New file.
55521         * modules/unictype/category-Po: New file.
55522         * modules/unictype/category-S: New file.
55523         * modules/unictype/category-Sm: New file.
55524         * modules/unictype/category-Sc: New file.
55525         * modules/unictype/category-Sk: New file.
55526         * modules/unictype/category-So: New file.
55527         * modules/unictype/category-Z: New file.
55528         * modules/unictype/category-Zs: New file.
55529         * modules/unictype/category-Zl: New file.
55530         * modules/unictype/category-Zp: New file.
55531         * modules/unictype/category-C: New file.
55532         * modules/unictype/category-Cc: New file.
55533         * modules/unictype/category-Cf: New file.
55534         * modules/unictype/category-Cs: New file.
55535         * modules/unictype/category-Co: New file.
55536         * modules/unictype/category-Cn: New file.
55537         * modules/unictype/category-or: New file.
55538         * modules/unictype/category-of: New file.
55539         * modules/unictype/category-test: New file.
55540         * modules/unictype/category-test-withtable: New file.
55541         * modules/unictype/category-byname: New file.
55542         * modules/unictype/category-none: New file.
55543         * modules/unictype/category-and: New file.
55544         * modules/unictype/category-and-not: New file.
55545         * modules/unictype/category-name: New file.
55546         * modules/unictype/combining-class: New file.
55547         * modules/unictype/category-all: New file.
55548         * modules/unictype/bidicategory-all: New file.
55549         * modules/unictype/bidicategory-byname: New file.
55550         * modules/unictype/bidicategory-name: New file.
55551         * modules/unictype/bidicategory-of: New file.
55552         * modules/unictype/bidicategory-test: New file.
55553         * modules/unictype/decimal-digit: New file.
55554         * modules/unictype/digit: New file.
55555         * modules/unictype/numeric: New file.
55556         * modules/unictype/mirror: New file.
55557         * modules/unictype/property-white-space: New file.
55558         * modules/unictype/property-alphabetic: New file.
55559         * modules/unictype/property-other-alphabetic: New file.
55560         * modules/unictype/property-not-a-character: New file.
55561         * modules/unictype/property-default-ignorable-code-point: New file.
55562         * modules/unictype/property-other-default-ignorable-code-point: New
55563         file.
55564         * modules/unictype/property-deprecated: New file.
55565         * modules/unictype/property-logical-order-exception: New file.
55566         * modules/unictype/property-variation-selector: New file.
55567         * modules/unictype/property-private-use: New file.
55568         * modules/unictype/property-unassigned-code-value: New file.
55569         * modules/unictype/property-uppercase: New file.
55570         * modules/unictype/property-other-uppercase: New file.
55571         * modules/unictype/property-lowercase: New file.
55572         * modules/unictype/property-other-lowercase: New file.
55573         * modules/unictype/property-titlecase: New file.
55574         * modules/unictype/property-soft-dotted: New file.
55575         * modules/unictype/property-id-start: New file.
55576         * modules/unictype/property-other-id-start: New file.
55577         * modules/unictype/property-id-continue: New file.
55578         * modules/unictype/property-other-id-continue: New file.
55579         * modules/unictype/property-xid-start: New file.
55580         * modules/unictype/property-xid-continue: New file.
55581         * modules/unictype/property-pattern-white-space: New file.
55582         * modules/unictype/property-pattern-syntax: New file.
55583         * modules/unictype/property-join-control: New file.
55584         * modules/unictype/property-grapheme-base: New file.
55585         * modules/unictype/property-grapheme-extend: New file.
55586         * modules/unictype/property-other-grapheme-extend: New file.
55587         * modules/unictype/property-grapheme-link: New file.
55588         * modules/unictype/property-bidi-control: New file.
55589         * modules/unictype/property-bidi-left-to-right: New file.
55590         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55591         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55592         * modules/unictype/property-bidi-european-digit: New file.
55593         * modules/unictype/property-bidi-eur-num-separator: New file.
55594         * modules/unictype/property-bidi-eur-num-terminator: New file.
55595         * modules/unictype/property-bidi-arabic-digit: New file.
55596         * modules/unictype/property-bidi-common-separator: New file.
55597         * modules/unictype/property-bidi-block-separator: New file.
55598         * modules/unictype/property-bidi-segment-separator: New file.
55599         * modules/unictype/property-bidi-whitespace: New file.
55600         * modules/unictype/property-bidi-non-spacing-mark: New file.
55601         * modules/unictype/property-bidi-boundary-neutral: New file.
55602         * modules/unictype/property-bidi-pdf: New file.
55603         * modules/unictype/property-bidi-embedding-or-override: New file.
55604         * modules/unictype/property-bidi-other-neutral: New file.
55605         * modules/unictype/property-hex-digit: New file.
55606         * modules/unictype/property-ascii-hex-digit: New file.
55607         * modules/unictype/property-ideographic: New file.
55608         * modules/unictype/property-unified-ideograph: New file.
55609         * modules/unictype/property-radical: New file.
55610         * modules/unictype/property-ids-binary-operator: New file.
55611         * modules/unictype/property-ids-trinary-operator: New file.
55612         * modules/unictype/property-zero-width: New file.
55613         * modules/unictype/property-space: New file.
55614         * modules/unictype/property-non-break: New file.
55615         * modules/unictype/property-iso-control: New file.
55616         * modules/unictype/property-format-control: New file.
55617         * modules/unictype/property-dash: New file.
55618         * modules/unictype/property-hyphen: New file.
55619         * modules/unictype/property-punctuation: New file.
55620         * modules/unictype/property-line-separator: New file.
55621         * modules/unictype/property-paragraph-separator: New file.
55622         * modules/unictype/property-quotation-mark: New file.
55623         * modules/unictype/property-sentence-terminal: New file.
55624         * modules/unictype/property-terminal-punctuation: New file.
55625         * modules/unictype/property-currency-symbol: New file.
55626         * modules/unictype/property-math: New file.
55627         * modules/unictype/property-other-math: New file.
55628         * modules/unictype/property-paired-punctuation: New file.
55629         * modules/unictype/property-left-of-pair: New file.
55630         * modules/unictype/property-combining: New file.
55631         * modules/unictype/property-composite: New file.
55632         * modules/unictype/property-decimal-digit: New file.
55633         * modules/unictype/property-numeric: New file.
55634         * modules/unictype/property-diacritic: New file.
55635         * modules/unictype/property-extender: New file.
55636         * modules/unictype/property-ignorable-control: New file.
55637         * modules/unictype/property-test: New file.
55638         * modules/unictype/property-byname: New file.
55639         * modules/unictype/property-all: New file.
55640         * modules/unictype/scripts: New file.
55641         * modules/unictype/scripts-all: New file.
55642         * modules/unictype/block-of: New file.
55643         * modules/unictype/block-test: New file.
55644         * modules/unictype/block-list: New file.
55645         * modules/unictype/block-all: New file.
55646         * modules/unictype/syntax-c-whitespace: New file.
55647         * modules/unictype/syntax-java-whitespace: New file.
55648         * modules/unictype/syntax-c-ident: New file.
55649         * modules/unictype/syntax-java-ident: New file.
55650         * modules/unictype/ctype-alnum: New file.
55651         * modules/unictype/ctype-alpha: New file.
55652         * modules/unictype/ctype-cntrl: New file.
55653         * modules/unictype/ctype-digit: New file.
55654         * modules/unictype/ctype-graph: New file.
55655         * modules/unictype/ctype-lower: New file.
55656         * modules/unictype/ctype-print: New file.
55657         * modules/unictype/ctype-punct: New file.
55658         * modules/unictype/ctype-space: New file.
55659         * modules/unictype/ctype-upper: New file.
55660         * modules/unictype/ctype-xdigit: New file.
55661         * modules/unictype/ctype-blank: New file.
55662         * lib/unictype/bidi_byname.c: New file.
55663         * lib/unictype/bidi_name.c: New file.
55664         * lib/unictype/bidi_of.c: New file.
55665         * lib/unictype/bidi_test.c: New file.
55666         * lib/unictype/bitmap.h: New file.
55667         * lib/unictype/block_test.c: New file.
55668         * lib/unictype/blocks.c: New file.
55669         * lib/unictype/categ_C.c: New file.
55670         * lib/unictype/categ_Cc.c: New file.
55671         * lib/unictype/categ_Cf.c: New file.
55672         * lib/unictype/categ_Cn.c: New file.
55673         * lib/unictype/categ_Co.c: New file.
55674         * lib/unictype/categ_Cs.c: New file.
55675         * lib/unictype/categ_L.c: New file.
55676         * lib/unictype/categ_Ll.c: New file.
55677         * lib/unictype/categ_Lm.c: New file.
55678         * lib/unictype/categ_Lo.c: New file.
55679         * lib/unictype/categ_Lt.c: New file.
55680         * lib/unictype/categ_Lu.c: New file.
55681         * lib/unictype/categ_M.c: New file.
55682         * lib/unictype/categ_Mc.c: New file.
55683         * lib/unictype/categ_Me.c: New file.
55684         * lib/unictype/categ_Mn.c: New file.
55685         * lib/unictype/categ_N.c: New file.
55686         * lib/unictype/categ_Nd.c: New file.
55687         * lib/unictype/categ_Nl.c: New file.
55688         * lib/unictype/categ_No.c: New file.
55689         * lib/unictype/categ_P.c: New file.
55690         * lib/unictype/categ_Pc.c: New file.
55691         * lib/unictype/categ_Pd.c: New file.
55692         * lib/unictype/categ_Pe.c: New file.
55693         * lib/unictype/categ_Pf.c: New file.
55694         * lib/unictype/categ_Pi.c: New file.
55695         * lib/unictype/categ_Po.c: New file.
55696         * lib/unictype/categ_Ps.c: New file.
55697         * lib/unictype/categ_S.c: New file.
55698         * lib/unictype/categ_Sc.c: New file.
55699         * lib/unictype/categ_Sk.c: New file.
55700         * lib/unictype/categ_Sm.c: New file.
55701         * lib/unictype/categ_So.c: New file.
55702         * lib/unictype/categ_Z.c: New file.
55703         * lib/unictype/categ_Zl.c: New file.
55704         * lib/unictype/categ_Zp.c: New file.
55705         * lib/unictype/categ_Zs.c: New file.
55706         * lib/unictype/categ_and.c: New file.
55707         * lib/unictype/categ_and_not.c: New file.
55708         * lib/unictype/categ_byname.c: New file.
55709         * lib/unictype/categ_name.c: New file.
55710         * lib/unictype/categ_none.c: New file.
55711         * lib/unictype/categ_of.c: New file.
55712         * lib/unictype/categ_or.c: New file.
55713         * lib/unictype/categ_test.c: New file.
55714         * lib/unictype/combining.c: New file.
55715         * lib/unictype/ctype_alnum.c: New file.
55716         * lib/unictype/ctype_alpha.c: New file.
55717         * lib/unictype/ctype_blank.c: New file.
55718         * lib/unictype/ctype_cntrl.c: New file.
55719         * lib/unictype/ctype_digit.c: New file.
55720         * lib/unictype/ctype_graph.c: New file.
55721         * lib/unictype/ctype_lower.c: New file.
55722         * lib/unictype/ctype_print.c: New file.
55723         * lib/unictype/ctype_punct.c: New file.
55724         * lib/unictype/ctype_space.c: New file.
55725         * lib/unictype/ctype_upper.c: New file.
55726         * lib/unictype/ctype_xdigit.c: New file.
55727         * lib/unictype/decdigit.c: New file.
55728         * lib/unictype/digit.c: New file.
55729         * lib/unictype/identsyntaxmap.h: New file.
55730         * lib/unictype/mirror.c: New file.
55731         * lib/unictype/numeric.c: New file.
55732         * lib/unictype/pr_alphabetic.c: New file.
55733         * lib/unictype/pr_ascii_hex_digit.c: New file.
55734         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55735         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55736         * lib/unictype/pr_bidi_block_separator.c: New file.
55737         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55738         * lib/unictype/pr_bidi_common_separator.c: New file.
55739         * lib/unictype/pr_bidi_control.c: New file.
55740         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55741         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55742         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55743         * lib/unictype/pr_bidi_european_digit.c: New file.
55744         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55745         * lib/unictype/pr_bidi_left_to_right.c: New file.
55746         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55747         * lib/unictype/pr_bidi_other_neutral.c: New file.
55748         * lib/unictype/pr_bidi_pdf.c: New file.
55749         * lib/unictype/pr_bidi_segment_separator.c: New file.
55750         * lib/unictype/pr_bidi_whitespace.c: New file.
55751         * lib/unictype/pr_byname.c: New file.
55752         * lib/unictype/pr_byname.gperf: New file.
55753         * lib/unictype/pr_combining.c: New file.
55754         * lib/unictype/pr_composite.c: New file.
55755         * lib/unictype/pr_currency_symbol.c: New file.
55756         * lib/unictype/pr_dash.c: New file.
55757         * lib/unictype/pr_decimal_digit.c: New file.
55758         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55759         * lib/unictype/pr_deprecated.c: New file.
55760         * lib/unictype/pr_diacritic.c: New file.
55761         * lib/unictype/pr_extender.c: New file.
55762         * lib/unictype/pr_format_control.c: New file.
55763         * lib/unictype/pr_grapheme_base.c: New file.
55764         * lib/unictype/pr_grapheme_extend.c: New file.
55765         * lib/unictype/pr_grapheme_link.c: New file.
55766         * lib/unictype/pr_hex_digit.c: New file.
55767         * lib/unictype/pr_hyphen.c: New file.
55768         * lib/unictype/pr_id_continue.c: New file.
55769         * lib/unictype/pr_id_start.c: New file.
55770         * lib/unictype/pr_ideographic.c: New file.
55771         * lib/unictype/pr_ids_binary_operator.c: New file.
55772         * lib/unictype/pr_ids_trinary_operator.c: New file.
55773         * lib/unictype/pr_ignorable_control.c: New file.
55774         * lib/unictype/pr_iso_control.c: New file.
55775         * lib/unictype/pr_join_control.c: New file.
55776         * lib/unictype/pr_left_of_pair.c: New file.
55777         * lib/unictype/pr_line_separator.c: New file.
55778         * lib/unictype/pr_logical_order_exception.c: New file.
55779         * lib/unictype/pr_lowercase.c: New file.
55780         * lib/unictype/pr_math.c: New file.
55781         * lib/unictype/pr_non_break.c: New file.
55782         * lib/unictype/pr_not_a_character.c: New file.
55783         * lib/unictype/pr_numeric.c: New file.
55784         * lib/unictype/pr_other_alphabetic.c: New file.
55785         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55786         * lib/unictype/pr_other_grapheme_extend.c: New file.
55787         * lib/unictype/pr_other_id_continue.c: New file.
55788         * lib/unictype/pr_other_id_start.c: New file.
55789         * lib/unictype/pr_other_lowercase.c: New file.
55790         * lib/unictype/pr_other_math.c: New file.
55791         * lib/unictype/pr_other_uppercase.c: New file.
55792         * lib/unictype/pr_paired_punctuation.c: New file.
55793         * lib/unictype/pr_paragraph_separator.c: New file.
55794         * lib/unictype/pr_pattern_syntax.c: New file.
55795         * lib/unictype/pr_pattern_white_space.c: New file.
55796         * lib/unictype/pr_private_use.c: New file.
55797         * lib/unictype/pr_punctuation.c: New file.
55798         * lib/unictype/pr_quotation_mark.c: New file.
55799         * lib/unictype/pr_radical.c: New file.
55800         * lib/unictype/pr_sentence_terminal.c: New file.
55801         * lib/unictype/pr_soft_dotted.c: New file.
55802         * lib/unictype/pr_space.c: New file.
55803         * lib/unictype/pr_terminal_punctuation.c: New file.
55804         * lib/unictype/pr_test.c: New file.
55805         * lib/unictype/pr_titlecase.c: New file.
55806         * lib/unictype/pr_unassigned_code_value.c: New file.
55807         * lib/unictype/pr_unified_ideograph.c: New file.
55808         * lib/unictype/pr_uppercase.c: New file.
55809         * lib/unictype/pr_variation_selector.c: New file.
55810         * lib/unictype/pr_white_space.c: New file.
55811         * lib/unictype/pr_xid_continue.c: New file.
55812         * lib/unictype/pr_xid_start.c: New file.
55813         * lib/unictype/pr_zero_width.c: New file.
55814         * lib/unictype/scripts.c: New file.
55815         * lib/unictype/sy_c_ident.c: New file.
55816         * lib/unictype/sy_c_whitespace.c: New file.
55817         * lib/unictype/sy_java_ident.c: New file.
55818         * lib/unictype/sy_java_whitespace.c: New file.
55819
55820         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55821         Unicode 5.0.0.
55822         * lib/unictype/blocks.h: Likewise.
55823         * lib/unictype/categ_C.h: Likewise.
55824         * lib/unictype/categ_Cc.h: Likewise.
55825         * lib/unictype/categ_Cf.h: Likewise.
55826         * lib/unictype/categ_Cn.h: Likewise.
55827         * lib/unictype/categ_Co.h: Likewise.
55828         * lib/unictype/categ_Cs.h: Likewise.
55829         * lib/unictype/categ_L.h: Likewise.
55830         * lib/unictype/categ_Ll.h: Likewise.
55831         * lib/unictype/categ_Lm.h: Likewise.
55832         * lib/unictype/categ_Lo.h: Likewise.
55833         * lib/unictype/categ_Lt.h: Likewise.
55834         * lib/unictype/categ_Lu.h: Likewise.
55835         * lib/unictype/categ_M.h: Likewise.
55836         * lib/unictype/categ_Mc.h: Likewise.
55837         * lib/unictype/categ_Me.h: Likewise.
55838         * lib/unictype/categ_Mn.h: Likewise.
55839         * lib/unictype/categ_N.h: Likewise.
55840         * lib/unictype/categ_Nd.h: Likewise.
55841         * lib/unictype/categ_Nl.h: Likewise.
55842         * lib/unictype/categ_No.h: Likewise.
55843         * lib/unictype/categ_P.h: Likewise.
55844         * lib/unictype/categ_Pc.h: Likewise.
55845         * lib/unictype/categ_Pd.h: Likewise.
55846         * lib/unictype/categ_Pe.h: Likewise.
55847         * lib/unictype/categ_Pf.h: Likewise.
55848         * lib/unictype/categ_Pi.h: Likewise.
55849         * lib/unictype/categ_Po.h: Likewise.
55850         * lib/unictype/categ_Ps.h: Likewise.
55851         * lib/unictype/categ_S.h: Likewise.
55852         * lib/unictype/categ_Sc.h: Likewise.
55853         * lib/unictype/categ_Sk.h: Likewise.
55854         * lib/unictype/categ_Sm.h: Likewise.
55855         * lib/unictype/categ_So.h: Likewise.
55856         * lib/unictype/categ_Z.h: Likewise.
55857         * lib/unictype/categ_Zl.h: Likewise.
55858         * lib/unictype/categ_Zp.h: Likewise.
55859         * lib/unictype/categ_Zs.h: Likewise.
55860         * lib/unictype/categ_of.h: Likewise.
55861         * lib/unictype/combining.h: Likewise.
55862         * lib/unictype/ctype_alnum.h: Likewise.
55863         * lib/unictype/ctype_alpha.h: Likewise.
55864         * lib/unictype/ctype_blank.h: Likewise.
55865         * lib/unictype/ctype_cntrl.h: Likewise.
55866         * lib/unictype/ctype_digit.h: Likewise.
55867         * lib/unictype/ctype_graph.h: Likewise.
55868         * lib/unictype/ctype_lower.h: Likewise.
55869         * lib/unictype/ctype_print.h: Likewise.
55870         * lib/unictype/ctype_punct.h: Likewise.
55871         * lib/unictype/ctype_space.h: Likewise.
55872         * lib/unictype/ctype_upper.h: Likewise.
55873         * lib/unictype/ctype_xdigit.h: Likewise.
55874         * lib/unictype/decdigit.h: Likewise.
55875         * lib/unictype/digit.h: Likewise.
55876         * lib/unictype/mirror.h: Likewise.
55877         * lib/unictype/numeric.h: Likewise.
55878         * lib/unictype/pr_alphabetic.h: Likewise.
55879         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55880         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55881         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55882         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55883         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55884         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55885         * lib/unictype/pr_bidi_control.h: Likewise.
55886         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55887         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55888         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55889         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55890         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55891         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55892         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55893         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55894         * lib/unictype/pr_bidi_pdf.h: Likewise.
55895         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55896         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55897         * lib/unictype/pr_combining.h: Likewise.
55898         * lib/unictype/pr_composite.h: Likewise.
55899         * lib/unictype/pr_currency_symbol.h: Likewise.
55900         * lib/unictype/pr_dash.h: Likewise.
55901         * lib/unictype/pr_decimal_digit.h: Likewise.
55902         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55903         * lib/unictype/pr_deprecated.h: Likewise.
55904         * lib/unictype/pr_diacritic.h: Likewise.
55905         * lib/unictype/pr_extender.h: Likewise.
55906         * lib/unictype/pr_format_control.h: Likewise.
55907         * lib/unictype/pr_grapheme_base.h: Likewise.
55908         * lib/unictype/pr_grapheme_extend.h: Likewise.
55909         * lib/unictype/pr_grapheme_link.h: Likewise.
55910         * lib/unictype/pr_hex_digit.h: Likewise.
55911         * lib/unictype/pr_hyphen.h: Likewise.
55912         * lib/unictype/pr_id_continue.h: Likewise.
55913         * lib/unictype/pr_id_start.h: Likewise.
55914         * lib/unictype/pr_ideographic.h: Likewise.
55915         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55916         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55917         * lib/unictype/pr_ignorable_control.h: Likewise.
55918         * lib/unictype/pr_iso_control.h: Likewise.
55919         * lib/unictype/pr_join_control.h: Likewise.
55920         * lib/unictype/pr_left_of_pair.h: Likewise.
55921         * lib/unictype/pr_line_separator.h: Likewise.
55922         * lib/unictype/pr_logical_order_exception.h: Likewise.
55923         * lib/unictype/pr_lowercase.h: Likewise.
55924         * lib/unictype/pr_math.h: Likewise.
55925         * lib/unictype/pr_non_break.h: Likewise.
55926         * lib/unictype/pr_not_a_character.h: Likewise.
55927         * lib/unictype/pr_numeric.h: Likewise.
55928         * lib/unictype/pr_other_alphabetic.h: Likewise.
55929         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55930         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55931         * lib/unictype/pr_other_id_continue.h: Likewise.
55932         * lib/unictype/pr_other_id_start.h: Likewise.
55933         * lib/unictype/pr_other_lowercase.h: Likewise.
55934         * lib/unictype/pr_other_math.h: Likewise.
55935         * lib/unictype/pr_other_uppercase.h: Likewise.
55936         * lib/unictype/pr_paired_punctuation.h: Likewise.
55937         * lib/unictype/pr_paragraph_separator.h: Likewise.
55938         * lib/unictype/pr_pattern_syntax.h: Likewise.
55939         * lib/unictype/pr_pattern_white_space.h: Likewise.
55940         * lib/unictype/pr_private_use.h: Likewise.
55941         * lib/unictype/pr_punctuation.h: Likewise.
55942         * lib/unictype/pr_quotation_mark.h: Likewise.
55943         * lib/unictype/pr_radical.h: Likewise.
55944         * lib/unictype/pr_sentence_terminal.h: Likewise.
55945         * lib/unictype/pr_soft_dotted.h: Likewise.
55946         * lib/unictype/pr_space.h: Likewise.
55947         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55948         * lib/unictype/pr_titlecase.h: Likewise.
55949         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55950         * lib/unictype/pr_unified_ideograph.h: Likewise.
55951         * lib/unictype/pr_uppercase.h: Likewise.
55952         * lib/unictype/pr_variation_selector.h: Likewise.
55953         * lib/unictype/pr_white_space.h: Likewise.
55954         * lib/unictype/pr_xid_continue.h: Likewise.
55955         * lib/unictype/pr_xid_start.h: Likewise.
55956         * lib/unictype/pr_zero_width.h: Likewise.
55957         * lib/unictype/scripts.h: Likewise.
55958         * lib/unictype/scripts_byname.gperf: Likewise.
55959         * lib/unictype/sy_c_ident.h: Likewise.
55960         * lib/unictype/sy_c_whitespace.h: Likewise.
55961         * lib/unictype/sy_java_ident.h: Likewise.
55962         * lib/unictype/sy_java_whitespace.h: Likewise.
55963
55964         * lib/unictype/Makefile: New file.
55965         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55966         glibc.
55967         * lib/unictype/3level.h: New file, copied from glibc.
55968         * lib/unictype/3levelbit.h: New file.
55969
55970 2007-11-11  Bruno Haible  <bruno@clisp.org>
55971
55972         * modules/gperf: New file.
55973         * modules/iconv_open (Depends-on): Add it.
55974         (Makefile.am): Remove the GPERF definition.
55975
55976 2007-11-11  Bruno Haible  <bruno@clisp.org>
55977
55978         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55979         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55980
55981 2007-11-11  Bruno Haible  <bruno@clisp.org>
55982
55983         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55984         (usage): Remove function.
55985
55986 2007-11-11  Bruno Haible  <bruno@clisp.org>
55987
55988         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55989         gl_FUNC_CEILF_LIBS.
55990         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55991         gl_FUNC_CEIL_LIBS.
55992         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55993         gl_FUNC_CEILL_LIBS.
55994         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55995         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55996         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55997
55998 2007-11-11  Bruno Haible  <bruno@clisp.org>
55999
56000         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56001         roundf were declared but do not exist on functions.
56002         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56003         roundl were declared but do not exist on functions.
56004         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56005         HAVE_FLOORL_AND_CEILL, respectively.
56006         Needed for Sun C on Solaris 10.
56007
56008 2007-11-11  Bruno Haible  <bruno@clisp.org>
56009
56010         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56011         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56012         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56013         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56014         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56015         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56016         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56017         HAVE_DECL_ROUNDF.
56018         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56019         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56021         of HAVE_DECL_ROUND*.
56022         * modules/math (Makefile.am): Update.
56023
56024 2007-11-10  Bruno Haible  <bruno@clisp.org>
56025
56026         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56027         ptrdiff_t as m4/intl.m4.
56028
56029 2007-11-10  Jim Meyering  <meyering@redhat.com>
56030
56031         Avoid link failure for the argmatch test.
56032         * tests/test-argmatch.c (usage): Define function to avoid a link
56033         failure: argmatch_die requires a usage function.
56034
56035 2007-11-09  Bruno Haible  <bruno@clisp.org>
56036
56037         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56038         * doc/functions/vsnprintf.texi: Likewise.
56039         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56040         with a size argument < 2.
56041
56042 2007-11-09  Bruno Haible  <bruno@clisp.org>
56043
56044         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56045         buffer. Fixes an inefficiency introduced on 2007-11-03.
56046
56047 2007-11-09  Bruno Haible  <bruno@clisp.org>
56048
56049         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56050         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56051
56052 2007-11-08  Jim Meyering  <meyering@redhat.com>
56053
56054         Change cache variable name prefix "jm_" to "gl_" everywhere.
56055         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56056         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56057         * m4/uptime.m4: s/gl_/jm_/
56058
56059 2007-11-07  Bruno Haible  <bruno@clisp.org>
56060
56061         Update to GNU gettext 0.17.
56062         * m4/intl.m4: Update to GNU gettext 0.17.
56063         * m4/po.m4: Likewise.
56064         * modules/gettext (Files): Remove m4/ulonglong.m4.
56065         (configure.ac): Require gettext infrastructure from version 0.17.
56066
56067 2007-11-06  Bruno Haible  <bruno@clisp.org>
56068
56069         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56070         symbolic values are not defined in a public header.
56071         * lib/freadable.c (freadable) [QNX]: Likewise.
56072         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56073         * lib/freading.c (freading) [QNX]: Likewise.
56074         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56075         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56076         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56077         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56078         Reported by Alain Magloire.
56079
56080         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56081
56082 2007-11-05  Bruno Haible  <bruno@clisp.org>
56083
56084         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56085         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56086         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56087         Reported by Eric Blake.
56088
56089 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56090             Bruno Haible  <bruno@clisp.org>
56091
56092         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56093         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56094         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56095         (malloc): Undefine also before including <stdlib.h>.
56096         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56097         Needed on OSF/1 4.0.
56098
56099 2007-11-05  Jim Meyering  <meyering@redhat.com>
56100
56101         git-version-gen: sync from coreutils.
56102         * build-aux/git-version-gen: Add comments.
56103         Change the first '-' to '.' in the snapshot version string,
56104         e.g., 6.9-377-08144 -> 6.9.377-08144
56105         Remove first parameter.
56106         Don't declare a version "-dirty" merely because a time
56107         stamp has changed.
56108
56109 2007-11-04  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/lock.h: Protect all macro definitions containing an 'if'
56112         statement through a "do { ... } while (0)".
56113         * lib/tls.h: Likewise.
56114
56115 2007-11-04  Bruno Haible  <bruno@clisp.org>
56116
56117         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56118
56119 2007-11-04  Bruno Haible  <bruno@clisp.org>
56120
56121         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56122         * modules/fprintf-posix (Depends-on): Add nocrash.
56123         * modules/snprintf-posix (Depends-on): Likewise.
56124         * modules/sprintf-posix (Depends-on): Likewise.
56125         * modules/vasnprintf-posix (Depends-on): Likewise.
56126         * modules/vasprintf-posix (Depends-on): Likewise.
56127         * modules/vfprintf-posix (Depends-on): Likewise.
56128         * modules/vsnprintf-posix (Depends-on): Likewise.
56129         * modules/vsprintf-posix (Depends-on): Likewise.
56130         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56131         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56132         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56133         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56134         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56135         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56136         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56137
56138 2007-11-04  Bruno Haible  <bruno@clisp.org>
56139
56140         * modules/nocrash: New file.
56141         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56142         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56143
56144 2007-11-04  Bruno Haible  <bruno@clisp.org>
56145
56146         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56147         precision handling.
56148         * tests/test-vasprintf-posix.c (test_function): Likewise.
56149         * tests/test-snprintf-posix.h (test_function): Likewise.
56150         * tests/test-sprintf-posix.h (test_function): Likewise.
56151
56152         Fix *printf behaviour for large precisions on mingw and BeOS.
56153         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56154         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56155         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56156         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56158         gl_PRINTF_PRECISION and test its result. Invoke
56159         gl_PREREQ_VASNPRINTF_PRECISION.
56160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56164         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56165         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56166         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56167         * doc/functions/fprintf.texi: Update.
56168         * doc/functions/printf.texi: Update.
56169         * doc/functions/snprintf.texi: Update.
56170         * doc/functions/sprintf.texi: Update.
56171         * doc/functions/vfprintf.texi: Update.
56172         * doc/functions/vprintf.texi: Update.
56173         * doc/functions/vsnprintf.texi: Update.
56174         * doc/functions/vsprintf.texi: Update.
56175
56176 2007-11-04  Bruno Haible  <bruno@clisp.org>
56177
56178         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56179
56180 2007-11-04  Bruno Haible  <bruno@clisp.org>
56181
56182         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56183         Reported by Sylvain Beucler <beuc@gnu.org>.
56184
56185 2007-11-03  Bruno Haible  <bruno@clisp.org>
56186
56187         * tests/test-fprintf-posix2.sh: New file.
56188         * tests/test-fprintf-posix2.c: New file.
56189         * modules/fprintf-posix-tests (Files): Add them.
56190         (TESTS): Add test-fprintf-posix2.sh.
56191         (configure.ac): Check for getrlimit and setrlimit.
56192         (check_PROGRAMS): Add test-fprintf-posix2.
56193
56194         * tests/test-printf-posix2.sh: New file.
56195         * tests/test-printf-posix2.c: New file.
56196         * modules/printf-posix-tests (Files): Add them.
56197         (TESTS): Add test-printf-posix2.sh.
56198         (configure.ac): Check for getrlimit and setrlimit.
56199         (check_PROGRAMS): Add test-printf-posix2.
56200
56201         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56202         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56203         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56204         (decode_double): New function, copied from decode_long_double.
56205         (scale10_round_decimal_decoded): New function, extracted from
56206         scale10_round_decimal_long_double.
56207         (scale10_round_decimal_long_double): Use it.
56208         (scale10_round_decimal_double): New function.
56209         (floorlog10): New function.
56210         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56212         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56213         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56214         gl_PRINTF_ENOMEM and test its result. Invoke
56215         gl_PREREQ_VASNPRINTF_ENOMEM.
56216         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56217         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56218         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56219         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56220         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56221         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56222         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56223         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56224         * modules/snprintf-posix (Depends-on): Likewise.
56225         * modules/sprintf-posix (Depends-on): Likewise.
56226         * modules/vasnprintf-posix (Depends-on): Likewise.
56227         * modules/vasprintf-posix (Depends-on): Likewise.
56228         * modules/vfprintf-posix (Depends-on): Likewise.
56229         * modules/vsnprintf-posix (Depends-on): Likewise.
56230         * modules/vsprintf-posix (Depends-on): Likewise.
56231         * doc/functions/fprintf.texi: Update.
56232         * doc/functions/printf.texi: Update.
56233         * doc/functions/snprintf.texi: Update.
56234         * doc/functions/sprintf.texi: Update.
56235         * doc/functions/vfprintf.texi: Update.
56236         * doc/functions/vprintf.texi: Update.
56237         * doc/functions/vsnprintf.texi: Update.
56238         * doc/functions/vsprintf.texi: Update.
56239
56240 2007-11-03  Bruno Haible  <bruno@clisp.org>
56241
56242         * modules/frexp-nolibm-tests: New file.
56243
56244         * modules/frexp-nolibm: New file.
56245         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
56246
56247 2007-11-03  Bruno Haible  <bruno@clisp.org>
56248
56249         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
56250         value is C99 compliant.
56251         Needed for OSF/1 5.1.
56252
56253 2007-11-03  Bruno Haible  <bruno@clisp.org>
56254
56255         Fix out-of-memory handling of vasnprintf.
56256         * lib/printf-parse.c: Include <errno.h>.
56257         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
56258         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
56259         is already set.
56260
56261 2007-11-02  Eric Blake  <ebb9@byu.net>
56262
56263         Fix tests on cygwin.
56264         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
56265
56266 2007-11-01  Bruno Haible  <bruno@clisp.org>
56267
56268         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
56269         warning.
56270         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
56271         needed for POSIX compatibility.
56272
56273 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56274
56275         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
56276         for compatibility with GNU.
56277
56278 2007-11-01  Bruno Haible  <bruno@clisp.org>
56279
56280         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
56281         (putenv): Renamed from rpl_putenv. Change argument type from
56282         'const char *' to 'char *'.
56283         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
56284         of defining putenv in config.h, just set REPLACE_PUTENV.
56285         * modules/putenv (Depends-on): Add stdlib.
56286         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56287         (Include): Use <stdlib.h>.
56288         * lib/stdlib.in.h (putenv): New declaration.
56289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
56290         REPLACE_PUTENV.
56291         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
56292         REPLACE_PUTENV.
56293         Needed for MacOS X 10.5.0.
56294         Reported by Peter O'Gorman <peter@pogma.com>.
56295
56296 2007-11-01  Jim Meyering  <meyering@redhat.com>
56297
56298         Treat an empty date string exactly like "0".
56299         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
56300         if the remaining date string (to be parsed) is empty, use "0".
56301         Reported by Mischa Molhoek and discussed in this thread:
56302         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
56303
56304 2007-10-31  Bruno Haible  <bruno@clisp.org>
56305
56306         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
56307         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
56308         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
56309         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
56310         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
56311         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
56312
56313 2007-10-31  Bruno Haible  <bruno@clisp.org>
56314
56315         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
56316         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
56317         (AC_TYPE_LONG_LONG_INT): Use it.
56318         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
56319         it as well.
56320         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
56321         to m4/longlong.m4.
56322         * modules/stdint (Files): Remove m4/ulonglong.m4.
56323         * modules/strtoull (Files): Use m4/longlong.m4 instead of
56324         m4/ulonglong.m4.
56325         * modules/strtoumax (Files): Likewise.
56326
56327 2007-10-30  Bruno Haible  <bruno@clisp.org>
56328
56329         * modules/xvasprintf-posix: New file.
56330         Suggested by Eric Blake.
56331
56332 2007-10-30  Bruno Haible  <bruno@clisp.org>
56333
56334         * modules/xprintf-posix-tests: New file.
56335         * tests/test-xprintf-posix.sh: New file.
56336         * tests/test-xprintf-posix.c: New file.
56337         * tests/test-xfprintf-posix.c: New file.
56338
56339         * modules/xprintf-posix: New file.
56340
56341 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56342
56343         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
56344         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
56345         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
56346
56347 2007-10-29  Bruno Haible  <bruno@clisp.org>
56348
56349         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
56350         contain the special marker '_cv_'.
56351         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
56352         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
56353         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
56354         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
56355         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
56356         Reported by Ralf Wildenhues.
56357
56358 2007-10-29  Bruno Haible  <bruno@clisp.org>
56359
56360         * gnulib-tool (func_import): When --lgpl is not specified, set
56361         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
56362         GPLv3.
56363         Reported by Simon Josefsson.
56364
56365 2007-10-28  Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56368         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56369         HAVE_DECL_ISFINITE.
56370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56371         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56372         HAVE_DECL_ISFINITE.
56373
56374 2007-10-28  Bruno Haible  <bruno@clisp.org>
56375
56376         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56377         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56378
56379 2007-10-28  Bruno Haible  <bruno@clisp.org>
56380
56381         Fix link errors with Sun C 5.0 on Solaris 10.
56382         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56383         function is declared but not present in the compiler's libm.
56384         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
56385         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
56386         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
56387         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
56388         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56389         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56390         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56392         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56393         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56394         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56395         HAVE_DECL_FLOORL.
56396
56397 2007-10-28  Bruno Haible  <bruno@clisp.org>
56398
56399         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56400         gl_FUNC_FLOORL. Cache the result.
56401         (gl_FUNC_FLOORL): Use it.
56402         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56403         gl_FUNC_CEILL. Cache the result.
56404         (gl_FUNC_CEILL): Use it.
56405
56406         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56407         gl_FUNC_FLOOR. Cache the result.
56408         (gl_FUNC_FLOOR): Use it.
56409         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56410         gl_FUNC_CEIL. Cache the result.
56411         (gl_FUNC_CEIL): Use it.
56412
56413         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56414         gl_FUNC_FLOORF. Cache the result.
56415         (gl_FUNC_FLOORF): Use it.
56416         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56417         gl_FUNC_CEILF. Cache the result.
56418         (gl_FUNC_CEILF): Use it.
56419
56420 2007-10-28  Bruno Haible  <bruno@clisp.org>
56421
56422         * gnulib-tool: Allow specifying the LGPL version number through
56423         --lgpl=2 or --lgpl=3.
56424         (func_usage): Document --lgpl with argument.
56425         Handle --lgpl=... arguments.
56426         (func_import): Recognize also gl_LGPL calls with an argument. When
56427         --lgpl=2 is used and the module's license is just LGPL, report an
56428         error. Set sed_transform_lib_file according to the lgpl variable. In
56429         the generated files, use --lgpl or gl_LGPL invocations with argument,
56430         if necessary.
56431         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56432         an LGPv2+ license.
56433         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56434         gl_LGPL macro.
56435
56436 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56437             Bruno Haible  <bruno@clisp.org>
56438
56439         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56440         (u16_uctomb_aux): Likewise.
56441         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56442         !HAVE_INLINE.
56443         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56444
56445 2007-10-28  Bruno Haible  <bruno@clisp.org>
56446
56447         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56448         Invoke AM_GETTEXT_OPTION if it exists.
56449         * modules/vasprintf: Likewise.
56450         * modules/verror: Likewise.
56451         * modules/xprintf: Likewise.
56452         * modules/xvasprintf: Likewise.
56453
56454 2007-10-27  Ben Pfaff  <blp@gnu.org>
56455
56456         * lib/math.in.h: Define isfinite macro and prototypes for
56457         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56458         implementations.
56459         * m4/math_h.m4: New substitutions for isfinite module.
56460         * lib/isfinite.c: New file.
56461         * m4/isfinite.m4: New file.
56462         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56463         * modules/isfinite: New file.
56464         * modules/isfinite-tests: New file.
56465         * tests/tests-isfinite.c: New file.
56466         * doc/functions/isfinite.texi: Mention isfinite module.
56467         * MODULES.html.sh: Mention new module.
56468
56469 2007-10-27  Ben Pfaff  <blp@gnu.org>
56470
56471         Ralf Wildenhues reported that Tru64 4.0D declares the round
56472         functions but does not have definitions.
56473         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56474         cannot be found in any library, set the output variable to
56475         "missing" instead of "".
56476         * m4/round.m4: Also use our substitute if we cannot find round in
56477         any library, even if it is declared.
56478         * m4/roundf.m4: Likewise for roundf.
56479         * m4/roundl.m4: Likewise for roundl.
56480         * lib/math.in.h: Undefine roundf, round, roundl before defining
56481         their replacements, to allow for hypothetical systems where these
56482         may be defined as macros but not available in libraries.
56483
56484 2007-10-27  Bruno Haible  <bruno@clisp.org>
56485
56486         * doc/gnulib.texi: Invoke @firstparagraphindent.
56487         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56488         changes in gnulib.
56489         (Source changes): New section.
56490
56491 2007-10-26  Bruno Haible  <bruno@clisp.org>
56492
56493         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56494         borrowed from autoconf.
56495
56496 2007-10-26  Bruno Haible  <bruno@clisp.org>
56497
56498         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56499         strerror returned the empty string. Needed on HP-UX 11.00.
56500
56501 2007-10-24  Micah Cowan  <micah@cowan.name>
56502
56503         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56504         * build-aux/bootstrap: Remove support for now-unnecessary option,
56505         --cvs-user, and envvars CVS_USER, CVS_RSH.
56506
56507 2007-10-24  Jim Meyering  <meyering@redhat.com>
56508
56509         Avoid diagnostics from sha1sum when there is no cached checksum.
56510         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56511         if the po.s1 file hasn't been created yet.
56512
56513         * build-aux/bootstrap: Sync from coreutils:
56514         2007-10-24  Jim Meyering  <meyering@redhat.com>
56515         Get gnulib from the git repository, not from an obsolete cvs one.
56516         * build-aux/bootstrap: Suggestion from Micah Cowan.
56517         2007-10-04  Jim Meyering  <jim@meyering.net>
56518         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56519         (update_po_files): Work also when there are no .po files in po/.
56520
56521 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56522
56523         * README: Append ".git" to git and cg examples.
56524         Problem reported by Benoit Sigoure.
56525
56526 2007-10-23  Micah Cowan  <micah@cowan.name>
56527
56528         * users.txt: Add wget.
56529
56530 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56531
56532         Fix linking of some unistdio tests on FreeBSD.
56533         * modules/unistdio/u16-vsnprintf-tests
56534         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56535         * modules/unistdio/u16-vsprintf-tests
56536         (test_u16_vsnprintf1_LDADD): Likewise.
56537         * modules/unistdio/u32-vsnprintf-tests
56538         (test_u32_vsnprintf1_LDADD): Likewise.
56539         * modules/unistdio/u32-vsprintf-tests
56540         (test_u32_vsprintf1_LDADD): Likewise.
56541         * modules/unistdio/u8-vsnprintf-tests
56542         (test_u8_vsnprintf1_LDADD): Likewise.
56543         * modules/unistdio/u8-vsprintf-tests
56544         (test_u8_vsprintf1_LDADD): Likewise.
56545         * modules/unistdio/ulc-vsnprintf-tests
56546         (test_ulc_vsnprintf1_LDADD): Likewise.
56547         * modules/unistdio/ulc-vsprintf-tests
56548         (test_ulc_vsprintf1_LDADD): Likewise.
56549
56550         Fix linking of some uniconv tests on FreeBSD.
56551         * modules/uniconv/u16-conv-from-enc-tests
56552         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56553         * modules/uniconv/u16-conv-to-enc-tests
56554         (test_u16_conv_to_enc_LDADD): Likewise.
56555         * modules/uniconv/u16-strconv-from-enc-tests
56556         (test_u16_strconv_from_enc_LDADD): Likewise.
56557         * modules/uniconv/u16-strconv-to-enc-tests
56558         (test_u16_strconv_to_enc_LDADD): Likewise.
56559         * modules/uniconv/u32-conv-from-enc-tests
56560         (test_u32_conv_from_enc_LDADD): Likewise.
56561         * modules/uniconv/u32-conv-to-enc-tests
56562         (test_u32_conv_to_enc_LDADD): Likewise.
56563         * modules/uniconv/u32-strconv-from-enc-tests
56564         (test_u32_strconv_from_enc_LDADD): Likewise.
56565         * modules/uniconv/u32-strconv-to-enc-tests
56566         (test_u32_strconv_to_enc_LDADD): Likewise.
56567         * modules/uniconv/u8-conv-from-enc-tests
56568         (test_u8_conv_from_enc_LDADD): Likewise.
56569         * modules/uniconv/u8-conv-to-enc-tests
56570         (test_u8_conv_to_enc_LDADD): Likewise.
56571         * modules/uniconv/u8-strconv-from-enc-tests
56572         (test_u8_strconv_from_enc_LDADD): Likewise.
56573         * modules/uniconv/u8-strconv-to-enc-tests
56574         (test_u8_strconv_to_enc_LDADD): Likewise.
56575
56576 2007-10-22  Bruno Haible  <bruno@clisp.org>
56577
56578         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56579         size.
56580
56581 2007-10-22  Eric Blake  <ebb9@byu.net>
56582
56583         Tweak x*printf documentation.
56584         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56585         variable name and comments.
56586         Suggested by Bruno Haible.
56587
56588 2007-10-22  Bruno Haible  <bruno@clisp.org>
56589
56590         * lib/acl.c (copy_acl): Fix file name in comment.
56591
56592 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56593
56594         Fix Tru64 problem with stdbool.h.
56595         * lib/stdbool.in.h (false, true):
56596         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56597         Don't declare as an enum in this situation; it runs afoul of Tru64.
56598         Problem reported by Steven M. Schweda in
56599         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56600
56601 2007-10-22  Eric Blake  <ebb9@byu.net>
56602
56603         Also wrap vf?printf.
56604         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56605         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56606         (xvprintf, xvfprintf): New functions.
56607
56608 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56609
56610         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56611         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56612
56613         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56614         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56615
56616 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56617
56618         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56619         by Bruno Haible.
56620
56621 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56622
56623         * lib/getloadavg.c
56624         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56625         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56626
56627         * tests/test-i-ring.c: Work for C89.
56628
56629 2007-10-22  Bruno Haible  <bruno@clisp.org>
56630
56631         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56632         -1u, in preprocessor expression, so that we don't test for the bug
56633         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56635
56636 2007-10-22  Eric Blake  <ebb9@byu.net>
56637
56638         * tests/test-yesno.sh: Silence stderr during test.
56639
56640 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56641
56642         * modules/crypto/gc-camellia: New file.
56643
56644         * m4/gc-camellia.m4: New file.
56645
56646         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56647
56648         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56649
56650 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56651
56652         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56653         --help to stdout.  Reported by sms@antinode.org (Steven
56654         M. Schweda).
56655
56656 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56657
56658         * users.txt: Fix link to libksba.
56659
56660 2007-10-21  Ben Pfaff  <blp@gnu.org>
56661
56662         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56663         round.c roundf implementation that depends on floorf and ceilf to
56664         be tested unconditionally.
56665
56666 2007-10-21  Ben Pfaff  <blp@gnu.org>
56667
56668         * m4/check-libm-func.m4: Removed.
56669         * m4/check-math-lib.m4: New file.
56670         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56671         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56672         definition and lack of AC_LIBOBJ([roundf]).
56673         * m4/roundl.m4: Ditto, and similarly for roundl.
56674         * modules/round: Reference new m4 file.
56675         * modules/roundf: Ditto.
56676         * modules/roundl: Ditto.
56677         * tests/test-round2.c (main): Use ROUND instead of round.
56678         Bug report from Bruno Haible.
56679
56680 2007-10-21  Bruno Haible  <bruno@clisp.org>
56681
56682         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56683         context.
56684
56685 2007-10-21  Bruno Haible  <bruno@clisp.org>
56686
56687         * tests/test-wcwidth.c (main): Allow negative result for some control
56688         characters.
56689
56690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56691         Needed on OSF/1 5.1.
56692
56693 2007-10-21  Bruno Haible  <bruno@clisp.org>
56694
56695         * tests/test-floorf1.c: Include isnanf.h.
56696         (main): Use isnanf() instead of isnan().
56697         * tests/test-ceilf1.c: Include isnanf.h.
56698         (main): Use isnanf() instead of isnan().
56699         * tests/test-truncf1.c: Include isnanf.h.
56700         (main): Use isnanf() instead of isnan().
56701         * tests/test-roundf1.c: Include isnanf.h.
56702         (main): Use isnanf() instead of isnan().
56703
56704 2007-10-21  Eric Blake  <ebb9@byu.net>
56705
56706         * users.txt: Update URL for m4.
56707
56708 2007-10-21  Bruno Haible  <bruno@clisp.org>
56709
56710         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56711
56712 2007-10-21  Bruno Haible  <bruno@clisp.org>
56713
56714         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56715         Git's management files if the CVS files are not present.
56716
56717 2007-10-20  Bruno Haible  <bruno@clisp.org>
56718
56719         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56720         gcc-3.4.x.
56721
56722 2007-10-20  Ben Pfaff  <blp@gnu.org>
56723
56724         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56725         implementations.
56726         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56727         * lib/round.c: New file.
56728         * lib/roundf.c: New file.
56729         * lib/roundl.c: New file.
56730         * m4/round.m4: New file.
56731         * m4/roundf.m4: New file.
56732         * m4/roundl.m4: New file.
56733         * m4/check-libm-func-m4: New file.
56734         * modules/math: Replace round, roundf, roundl related @VARS@ in
56735         math.in.h.
56736         * modules/round: New file.
56737         * modules/round-tests: New file.
56738         * modules/roundf: New file.
56739         * modules/roundf-tests: New file.
56740         * modules/roundl: New file.
56741         * modules/roundl-tests: New file.
56742         * tests/test-round1.c: New file.
56743         * tests/test-round2.c: New file.
56744         * tests/test-roundf1.c: New file.
56745         * tests/test-roundf2.c: New file.
56746         * tests/test-roundl.c: New file.
56747         * doc/functions/round.texi: Mention round module.
56748         * doc/functions/roundf.texi: Mention roundf module.
56749         * doc/functions/roundl.texi: Mention roundl module.
56750         * MODULES.html.sh: Mention new modules.
56751         Thanks to Bruno Haible for suggestions.
56752
56753 2007-10-20  Jim Meyering  <meyering@redhat.com>
56754
56755         * lib/xprintf.c: Include <config.h> unconditionally.
56756
56757         Change xprintf's license to GPL.
56758         * modules/xprintf (License): s/LGPL/GPL/, since this module
56759         depends on modules (exit and exitfail) which are GPL.
56760         Suggestion from Bruno Haible.
56761
56762         xprintf fixes.
56763         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56764         Use a clearer diagnostic.
56765         Patch from Bruno Haible.
56766
56767 2007-10-20  Bruno Haible  <bruno@clisp.org>
56768
56769         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56770         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56771         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56772
56773 2007-10-20  Bruno Haible  <bruno@clisp.org>
56774
56775         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56776         precision in the comparison result > x - 1 or similar.
56777         * tests/test-ceilf2.c (correct_result_p): Likewise.
56778         * tests/test-truncf2.c (correct_result_p): Likewise.
56779         * tests/test-trunc2.c (correct_result_p): Likewise.
56780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56781
56782 2007-10-20  Bruno Haible  <bruno@clisp.org>
56783
56784         * modules/ceil: New file.
56785         * m4/ceil.m4: New file.
56786         * doc/functions/ceil.texi: Mention the 'ceil' module.
56787
56788 2007-10-20  Bruno Haible  <bruno@clisp.org>
56789
56790         * modules/floor: New file.
56791         * m4/floor.m4: New file.
56792         * doc/functions/floor.texi: Mention the 'floor' module.
56793
56794 2007-10-20  Bruno Haible  <bruno@clisp.org>
56795
56796         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56797         of %a.
56798         * modules/floorf-tests (Depends-on): Likewise.
56799         * modules/truncf-tests (Depends-on): Likewise.
56800         * modules/trunc-tests (Depends-on): Likewise.
56801         Reported by Ben Pfaff.
56802
56803 2007-10-19  Jim Meyering  <meyering@redhat.com>
56804
56805         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56806         Don't bother testing specific errno values.  Just test ferror.
56807
56808         New module: xprintf
56809         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56810
56811 2007-10-19  Bruno Haible  <bruno@clisp.org>
56812
56813         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56814         syntax.
56815         * modules/javaexec (Makefile.am): Likewise.
56816         * modules/relocatable-prog (Makefile.am): Likewise.
56817         Suggested by Jim Meyering.
56818
56819 2007-10-18  Bruno Haible  <bruno@clisp.org>
56820
56821         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56822         Reported by Jim Meyering.
56823
56824 2007-10-18  Eric Blake  <ebb9@byu.net>
56825
56826         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56827
56828 2007-10-18  Bruno Haible  <bruno@clisp.org>
56829
56830         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56831         the format string into writable memory. Needed in Fortify conditions.
56832
56833 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56834             Bruno Haible  <bruno@clisp.org>
56835
56836         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56837         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56838         * modules/trim (Depends-on): Add mbchar.
56839         (configure.ac): Add gl_FUNC_MBRTOWC.
56840         (Makefile.am): Augment lib_SOURCES.
56841
56842 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56843
56844         Modify glob.c to use fstatat and dirfd, to simplify it.
56845         Suggested by Eric Blake.
56846         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56847         Don't include <stdbool.h>; not used.
56848         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56849         (link_exists_p): Simplify implementation, since we can now assume
56850         dirfd and fstatat.
56851         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56852
56853 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56854
56855         * gnulib-tool (func_get_dependencies): Fix sed script to
56856         match only tests.
56857
56858 2007-10-17  Bruno Haible  <bruno@clisp.org>
56859
56860         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56861         allow locale names without encoding suffix.
56862         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56863         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56864
56865 2007-10-16  Bruno Haible  <bruno@clisp.org>
56866
56867         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56868         * lib/getgroups.c (getgroups): Likewise.
56869         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56870
56871 2007-10-16  Bruno Haible  <bruno@clisp.org>
56872
56873         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56874         * modules/malloc-posix (License): Likewise.
56875         * modules/realloc-posix (License): Likewise.
56876         * modules/calloc-posix (License): Likewise.
56877         * modules/intprops (License): Change from GPL to LGPL, with
56878         Paul Eggert's approval.
56879
56880 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56881
56882         Merge glibc changes into lib/glob.c.
56883
56884         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56885         2007-10-15 04:59:03 UTC.  Here are the changes:
56886
56887         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56888
56889         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56890
56891         * lib/glob.c: Add some branch prediction throughout.
56892
56893         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56894
56895         [BZ #5103]
56896         * lib/glob.c (glob): Recognize patterns starting \/.
56897
56898         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56899
56900         [BZ #3996]
56901         * lib/glob.c (attribute_hidden): Define if not defined.
56902         (glob): Unescape dirname, filename or username when needed and not
56903         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56904         is NULL.  Handle unescaped [ in pattern without closing ].
56905         Don't pass GLOB_CHECK down to recursive glob for directories.
56906         (__glob_pattern_type): New function.
56907         (__glob_pattern_p): Implement using __glob_pattern_type.
56908         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56909         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56910         Remove unreachable code.
56911
56912         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56913
56914         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56915         explain why there are no leaks.
56916
56917         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56918
56919         [BZ #3253]
56920         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56921         time, rather allocate increasingly bigger arrays of pointers, if
56922         possible with alloca, if too large with malloc.
56923
56924 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56925
56926         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56927         Problem reported by H.Merijn Brand in
56928         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56929         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56930         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56931
56932 2007-10-15  Bruno Haible  <bruno@clisp.org>
56933
56934         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56935         with explicit rpl_ prefix.
56936         * lib/fopen.c (fopen): Likewise.
56937         * lib/freopen.c (freopen): Likewise.
56938         * lib/iconv.c (iconv): Likewise.
56939         * lib/iconv_close.c (iconv_close): Likewise.
56940
56941 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56942
56943         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56944
56945 2007-10-15  Bruno Haible  <bruno@clisp.org>
56946
56947         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56948         <stddef.h> instead of <stdlib.h> since we only need NULL.
56949         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56950
56951 2007-10-15  Bruno Haible  <bruno@clisp.org>
56952
56953         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56954         Replace paragraph talking about LIBOBJS.
56955         Reported by Colin Watson <cjwatson@debian.org>.
56956
56957 2007-10-15  Bruno Haible  <bruno@clisp.org>
56958
56959         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56960         <stdlib.h> before using NULL.
56961
56962 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56963
56964         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56965         Reported by Albert Chin <china@thewrittenword.com>.
56966
56967 2007-10-14  Bruno Haible  <bruno@clisp.org>
56968
56969         * modules/iconv_open-utf-tests: New file.
56970         * tests/test-iconv-utf.c: New file.
56971
56972         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56973         * modules/iconv_open-utf: New file.
56974         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56975         (iconv, iconv_close): New declarations.
56976         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56977         be defined.
56978         (iconv_open): Add special handling of conversion between UTF-8 and
56979         UTF-{16,32}{BE,LE}.
56980         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56981         * lib/iconv_close.c: New file.
56982         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56983         gl_FUNC_ICONV_OPEN.
56984         (gl_FUNC_ICONV_OPEN): Use it.
56985         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56986         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56987         and REPLACE_ICONV_UTF.
56988         * modules/iconv_open (Depends-on): Add c-strcase.
56989         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56990         ICONV_CONST.
56991         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56992
56993 2007-10-13  Albert Chin  <china@thewrittenword.com>
56994             Bruno Haible  <bruno@clisp.org>
56995
56996         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56997         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56998
56999 2007-10-13  Bruno Haible  <bruno@clisp.org>
57000
57001         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57002         defined, use the ISO C99 inline semantics.
57003         * lib/argp.h (ARGP_EI): Likewise.
57004
57005 2007-10-13  Bruno Haible  <bruno@clisp.org>
57006
57007         Handle 'inline' change in gcc 4.3.0.
57008         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57009         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57010         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57011         argp_fmtstream_point): Disable 'extern' declaration if the function
57012         definition is going to be provided inline.
57013         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57014         semantics, not the ISO C99 inline semantics.
57015         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57016         'extern' declaration if the function definition is going to be provided
57017         inline.
57018         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57019         the GNU C inline semantics, not the ISO C99 inline semantics. With
57020         GCC 4.2, avoid a warning.
57021
57022 2007-10-13  Bruno Haible  <bruno@clisp.org>
57023
57024         * lib/freading.h (freading): Enable the use of __freading for
57025         glibc >= 2.7.
57026         * lib/freading.c (freading): Likewise.
57027
57028 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57029
57030         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57031         "warning: C99 inline functions are not supported; using GNU89".
57032
57033 2007-10-12  Bruno Haible  <bruno@clisp.org>
57034
57035         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57036         of 2.
57037         * tests/test-ceilf2.c: New file.
57038         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57039
57040         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57041         * modules/ceilf-tests: Update.
57042
57043 2007-10-12  Bruno Haible  <bruno@clisp.org>
57044
57045         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57046         of 2.
57047         * tests/test-floorf2.c: New file.
57048         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57049
57050         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57051         * modules/floorf-tests: Update.
57052
57053 2007-10-12  Bruno Haible  <bruno@clisp.org>
57054
57055         * tests/test-trunc2.c: New file.
57056         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57057
57058         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57059         * modules/trunc-tests: Update.
57060
57061 2007-10-12  Bruno Haible  <bruno@clisp.org>
57062
57063         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57064         of 2.
57065         * tests/test-truncf2.c: New file.
57066         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57067
57068         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57069         * modules/truncf-tests: Update.
57070
57071 2007-10-11  Eric Blake  <ebb9@byu.net>
57072
57073         Don't claim strerror is broken on Interix.
57074         * doc/functions/strerror.texi (strerror): Known broken systems are
57075         now Solaris 8, and not Interix.
57076         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57077         Interix on cross-compile.
57078         Reported by Martin Koeppe in
57079         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57080
57081 2007-10-11  Bruno Haible  <bruno@clisp.org>
57082
57083         * modules/i-ring-tests: New file.
57084         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57085         instead of assert.
57086
57087 2007-10-11  Bruno Haible  <bruno@clisp.org>
57088
57089         * modules/filenamecat-tests: New file.
57090         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57091         * lib/filenamecat.c: Remove test code.
57092
57093 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57094
57095         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57096
57097         * lib/strerror.c: Include <string.h> always, to test interface,
57098         and to remove the need for the dummy.
57099         Include intprops.h to compute width instead of doing it ourselves
57100         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57101         (strerror): Define it to return NULL if there's no system strerror.
57102         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57103         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57104         ancient pre-strerror Unix systems well any more.  Saying "unknown
57105         system error" is enough.
57106         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57107         simpler strerror.c implementation.
57108         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57109         Simplify the tests to reflect the simpler strerror implementation.
57110         * modules/strerror (Depends-on): Add intprops.
57111
57112 2007-10-09  Eric Blake  <ebb9@byu.net>
57113
57114         Silence test-fpending.
57115         * modules/fpending-tests (Files): Add wrapper script.
57116         * tests/test-fpending.sh: New file.
57117
57118 2007-10-09  Bruno Haible  <bruno@clisp.org>
57119
57120         * MODULES.html.sh (func_module): Don't create a hyperlink for
57121         function names like 'printf_frexp'.
57122         (Misc): Add crc, memxor.
57123         (Characteristics of floating types): New section.
57124         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57125         isnanf-nolibm, signbit, trunc, truncf, truncl.
57126         (Enhancements for ISO C 99 functions): New subsection Input/output.
57127         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57128         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57129         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57130         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57131         (Enhancements for POSIX:2001 functions): Add chdir-long.
57132         (File system functions): Add areadlink, chdir-safer, read-file.
57133         Remove cycle-check.
57134         (File system as inode set): New section.
57135         (Date and time): Add gethrxtime.
57136         (Multithreading): Add openmp.
57137         (Internationalization functions): Add localename.
57138         (Unicode string functions): Add unistr/u*-mbsnlen.
57139         (Support for maintaining and releasing projects): Add git-version-gen.
57140         (Lone files): Remove directories.
57141
57142 2007-10-08  Ben Pfaff  <blp@gnu.org>
57143
57144         * lib/xmalloca.h: Fix typo in comment.
57145
57146 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57147
57148         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57149         when avoiding problems with integer overflow.  Use a portable test
57150         instead.
57151
57152 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57153
57154         * modules/dummy (License): Change to LGPLv2+.
57155         * modules/float (License): Likewise
57156         * modules/realloc (License): Likewise
57157         * modules/stdlib (License): Likewise
57158
57159 2007-10-07  Bruno Haible  <bruno@clisp.org>
57160
57161         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57162         * floor.c (TWO_MANT_DIG): Likewise.
57163         * ceil.c (TWO_MANT_DIG): Likewise.
57164         Reported by Ben Pfaff.
57165
57166 2007-10-07  Bruno Haible  <bruno@clisp.org>
57167
57168         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57169         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57170         * lib/frexp.c (FUNC): Likewise.
57171         * lib/printf-frexp.h (printf_frexp): Likewise.
57172         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57173         * lib/printf-frexp.c (FUNC): Likewise.
57174         Suggested by Jim Meyering.
57175
57176 2007-10-07  Jim Meyering  <meyering@redhat.com>
57177
57178         Make xnanosleep's integer overflow test more robust.
57179         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57180         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57181
57182 2007-10-07  Bruno Haible  <bruno@clisp.org>
57183
57184         * NEWS: Mention the license change.
57185
57186         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57187         abbreviations in the modules files.
57188
57189         Change copyright notice from GPLv2+ to GPLv3+.
57190         * README: Change copyright notice.
57191         * MODULES.html.sh: Likewise.
57192         * build-aux/bootstrap.conf: Likewise.
57193         * build-aux/config.libpath: Likewise.
57194         * build-aux/csharpcomp.sh.in: Likewise.
57195         * build-aux/csharpexec.sh.in: Likewise.
57196         * build-aux/install-reloc: Likewise.
57197         * build-aux/javacomp.sh.in: Likewise.
57198         * build-aux/javaexec.sh.in: Likewise.
57199         * build-aux/ldd.sh.in: Likewise.
57200         * build-aux/reloc-ldflags: Likewise.
57201         * build-aux/relocatable.sh.in: Likewise.
57202         * build-aux/x-to-1.in: Likewise.
57203         * check-module: Likewise.
57204         * config/srclistvars.sh: Likewise.
57205         * gnulib-tool: Likewise.
57206         * lib/acl-internal.h: Likewise.
57207         * lib/acl.c: Likewise.
57208         * lib/acl.h: Likewise.
57209         * lib/acl_entries.c: Likewise.
57210         * lib/areadlink-with-size.c: Likewise.
57211         * lib/areadlink.c: Likewise.
57212         * lib/areadlink.h: Likewise.
57213         * lib/argmatch.c: Likewise.
57214         * lib/argmatch.h: Likewise.
57215         * lib/argp-ba.c: Likewise.
57216         * lib/argp-eexst.c: Likewise.
57217         * lib/argp-fmtstream.c: Likewise.
57218         * lib/argp-fmtstream.h: Likewise.
57219         * lib/argp-fs-xinl.c: Likewise.
57220         * lib/argp-help.c: Likewise.
57221         * lib/argp-namefrob.h: Likewise.
57222         * lib/argp-parse.c: Likewise.
57223         * lib/argp-pin.c: Likewise.
57224         * lib/argp-pv.c: Likewise.
57225         * lib/argp-pvh.c: Likewise.
57226         * lib/argp-xinl.c: Likewise.
57227         * lib/argp.h: Likewise.
57228         * lib/at-func.c: Likewise.
57229         * lib/atanl.c: Likewise.
57230         * lib/backupfile.c: Likewise.
57231         * lib/backupfile.h: Likewise.
57232         * lib/basename.c: Likewise.
57233         * lib/binary-io.h: Likewise.
57234         * lib/byteswap.in.h: Likewise.
57235         * lib/c-stack.c: Likewise.
57236         * lib/c-stack.h: Likewise.
57237         * lib/c-strcasestr.c: Likewise.
57238         * lib/c-strcasestr.h: Likewise.
57239         * lib/c-strstr.c: Likewise.
57240         * lib/c-strstr.h: Likewise.
57241         * lib/c-strtod.c: Likewise.
57242         * lib/calloc.c: Likewise.
57243         * lib/canon-host.c: Likewise.
57244         * lib/canon-host.h: Likewise.
57245         * lib/canonicalize-lgpl.c: Likewise.
57246         * lib/canonicalize.c: Likewise.
57247         * lib/canonicalize.h: Likewise.
57248         * lib/ceil.c: Likewise.
57249         * lib/ceilf.c: Likewise.
57250         * lib/ceill.c: Likewise.
57251         * lib/chdir-long.c: Likewise.
57252         * lib/chdir-long.h: Likewise.
57253         * lib/chdir-safer.c: Likewise.
57254         * lib/chdir-safer.h: Likewise.
57255         * lib/chown.c: Likewise.
57256         * lib/classpath.c: Likewise.
57257         * lib/classpath.h: Likewise.
57258         * lib/clean-temp.c: Likewise.
57259         * lib/clean-temp.h: Likewise.
57260         * lib/cloexec.c: Likewise.
57261         * lib/close-stream.c: Likewise.
57262         * lib/closein.c: Likewise.
57263         * lib/closein.h: Likewise.
57264         * lib/closeout.c: Likewise.
57265         * lib/closeout.h: Likewise.
57266         * lib/concat-filename.c: Likewise.
57267         * lib/copy-file.c: Likewise.
57268         * lib/copy-file.h: Likewise.
57269         * lib/count-one-bits.h: Likewise.
57270         * lib/crc.c: Likewise.
57271         * lib/crc.h: Likewise.
57272         * lib/creat-safer.c: Likewise.
57273         * lib/csharpcomp.c: Likewise.
57274         * lib/csharpcomp.h: Likewise.
57275         * lib/csharpexec.c: Likewise.
57276         * lib/csharpexec.h: Likewise.
57277         * lib/cycle-check.c: Likewise.
57278         * lib/cycle-check.h: Likewise.
57279         * lib/diacrit.c: Likewise.
57280         * lib/diacrit.h: Likewise.
57281         * lib/diffseq.h: Likewise.
57282         * lib/dirchownmod.c: Likewise.
57283         * lib/dirent.in.h: Likewise.
57284         * lib/dirfd.c: Likewise.
57285         * lib/dirfd.h: Likewise.
57286         * lib/dirname.c: Likewise.
57287         * lib/dirname.h: Likewise.
57288         * lib/dummy.c: Likewise.
57289         * lib/dup-safer.c: Likewise.
57290         * lib/dup2.c: Likewise.
57291         * lib/eealloc.h: Likewise.
57292         * lib/error.c: Likewise.
57293         * lib/error.h: Likewise.
57294         * lib/euidaccess.c: Likewise.
57295         * lib/exclude.c: Likewise.
57296         * lib/exclude.h: Likewise.
57297         * lib/execute.c: Likewise.
57298         * lib/execute.h: Likewise.
57299         * lib/exitfail.c: Likewise.
57300         * lib/exitfail.h: Likewise.
57301         * lib/expl.c: Likewise.
57302         * lib/fatal-signal.c: Likewise.
57303         * lib/fatal-signal.h: Likewise.
57304         * lib/fbufmode.c: Likewise.
57305         * lib/fbufmode.h: Likewise.
57306         * lib/fchdir.c: Likewise.
57307         * lib/fchmodat.c: Likewise.
57308         * lib/fchownat.c: Likewise.
57309         * lib/fcntl--.h: Likewise.
57310         * lib/fcntl-safer.h: Likewise.
57311         * lib/fcntl.in.h: Likewise.
57312         * lib/fd-safer.c: Likewise.
57313         * lib/fflush.c: Likewise.
57314         * lib/file-has-acl.c: Likewise.
57315         * lib/file-set.c: Likewise.
57316         * lib/file-type.c: Likewise.
57317         * lib/file-type.h: Likewise.
57318         * lib/fileblocks.c: Likewise.
57319         * lib/filemode.c: Likewise.
57320         * lib/filemode.h: Likewise.
57321         * lib/filename.h: Likewise.
57322         * lib/filenamecat.c: Likewise.
57323         * lib/filenamecat.h: Likewise.
57324         * lib/findprog.c: Likewise.
57325         * lib/findprog.h: Likewise.
57326         * lib/float.in.h: Likewise.
57327         * lib/floor.c: Likewise.
57328         * lib/floorf.c: Likewise.
57329         * lib/floorl.c: Likewise.
57330         * lib/fopen-safer.c: Likewise.
57331         * lib/fopen.c: Likewise.
57332         * lib/fpending.c: Likewise.
57333         * lib/fpending.h: Likewise.
57334         * lib/fprintf.c: Likewise.
57335         * lib/fprintftime.h: Likewise.
57336         * lib/fpucw.h: Likewise.
57337         * lib/fpurge.c: Likewise.
57338         * lib/fpurge.h: Likewise.
57339         * lib/freadable.c: Likewise.
57340         * lib/freadable.h: Likewise.
57341         * lib/freadahead.c: Likewise.
57342         * lib/freadahead.h: Likewise.
57343         * lib/freading.c: Likewise.
57344         * lib/freading.h: Likewise.
57345         * lib/free.c: Likewise.
57346         * lib/freopen.c: Likewise.
57347         * lib/frexp.c: Likewise.
57348         * lib/frexpl.c: Likewise.
57349         * lib/fseek.c: Likewise.
57350         * lib/fseterr.c: Likewise.
57351         * lib/fseterr.h: Likewise.
57352         * lib/fstatat.c: Likewise.
57353         * lib/fstrcmp.c: Likewise.
57354         * lib/fstrcmp.h: Likewise.
57355         * lib/fsusage.c: Likewise.
57356         * lib/fsusage.h: Likewise.
57357         * lib/ftell.c: Likewise.
57358         * lib/ftello.c: Likewise.
57359         * lib/fts-cycle.c: Likewise.
57360         * lib/fts.c: Likewise.
57361         * lib/fts_.h: Likewise.
57362         * lib/full-read.c: Likewise.
57363         * lib/full-read.h: Likewise.
57364         * lib/full-write.c: Likewise.
57365         * lib/full-write.h: Likewise.
57366         * lib/fwritable.c: Likewise.
57367         * lib/fwritable.h: Likewise.
57368         * lib/fwriteerror.c: Likewise.
57369         * lib/fwriteerror.h: Likewise.
57370         * lib/fwriting.c: Likewise.
57371         * lib/fwriting.h: Likewise.
57372         * lib/gcd.c: Likewise.
57373         * lib/gcd.h: Likewise.
57374         * lib/getcwd.c: Likewise.
57375         * lib/getdate.h: Likewise.
57376         * lib/getdate.y: Likewise.
57377         * lib/getdomainname.c: Likewise.
57378         * lib/getdomainname.h: Likewise.
57379         * lib/getgroups.c: Likewise.
57380         * lib/gethostname.c: Likewise.
57381         * lib/gethrxtime.c: Likewise.
57382         * lib/gethrxtime.h: Likewise.
57383         * lib/getloadavg.c: Likewise.
57384         * lib/getndelim2.c: Likewise.
57385         * lib/getndelim2.h: Likewise.
57386         * lib/getnline.c: Likewise.
57387         * lib/getnline.h: Likewise.
57388         * lib/getopt.c: Likewise.
57389         * lib/getopt.in.h: Likewise.
57390         * lib/getopt1.c: Likewise.
57391         * lib/getopt_int.h: Likewise.
57392         * lib/getpagesize.h: Likewise.
57393         * lib/getsubopt.c: Likewise.
57394         * lib/gettime.c: Likewise.
57395         * lib/getugroups.c: Likewise.
57396         * lib/getugroups.h: Likewise.
57397         * lib/getusershell.c: Likewise.
57398         * lib/gl_anyavltree_list1.h: Likewise.
57399         * lib/gl_anyavltree_list2.h: Likewise.
57400         * lib/gl_anyhash_list1.h: Likewise.
57401         * lib/gl_anyhash_list2.h: Likewise.
57402         * lib/gl_anylinked_list1.h: Likewise.
57403         * lib/gl_anylinked_list2.h: Likewise.
57404         * lib/gl_anyrbtree_list1.h: Likewise.
57405         * lib/gl_anyrbtree_list2.h: Likewise.
57406         * lib/gl_anytree_list1.h: Likewise.
57407         * lib/gl_anytree_list2.h: Likewise.
57408         * lib/gl_anytree_oset.h: Likewise.
57409         * lib/gl_anytreehash_list1.h: Likewise.
57410         * lib/gl_anytreehash_list2.h: Likewise.
57411         * lib/gl_array_list.c: Likewise.
57412         * lib/gl_array_list.h: Likewise.
57413         * lib/gl_array_oset.c: Likewise.
57414         * lib/gl_array_oset.h: Likewise.
57415         * lib/gl_avltree_list.c: Likewise.
57416         * lib/gl_avltree_list.h: Likewise.
57417         * lib/gl_avltree_oset.c: Likewise.
57418         * lib/gl_avltree_oset.h: Likewise.
57419         * lib/gl_avltreehash_list.c: Likewise.
57420         * lib/gl_avltreehash_list.h: Likewise.
57421         * lib/gl_carray_list.c: Likewise.
57422         * lib/gl_carray_list.h: Likewise.
57423         * lib/gl_linked_list.c: Likewise.
57424         * lib/gl_linked_list.h: Likewise.
57425         * lib/gl_linkedhash_list.c: Likewise.
57426         * lib/gl_linkedhash_list.h: Likewise.
57427         * lib/gl_list.c: Likewise.
57428         * lib/gl_list.h: Likewise.
57429         * lib/gl_oset.c: Likewise.
57430         * lib/gl_oset.h: Likewise.
57431         * lib/gl_rbtree_list.c: Likewise.
57432         * lib/gl_rbtree_list.h: Likewise.
57433         * lib/gl_rbtree_oset.c: Likewise.
57434         * lib/gl_rbtree_oset.h: Likewise.
57435         * lib/gl_rbtreehash_list.c: Likewise.
57436         * lib/gl_rbtreehash_list.h: Likewise.
57437         * lib/gl_sublist.c: Likewise.
57438         * lib/gl_sublist.h: Likewise.
57439         * lib/group-member.c: Likewise.
57440         * lib/group-member.h: Likewise.
57441         * lib/hard-locale.c: Likewise.
57442         * lib/hard-locale.h: Likewise.
57443         * lib/hash-pjw.c: Likewise.
57444         * lib/hash-pjw.h: Likewise.
57445         * lib/hash-triple.c: Likewise.
57446         * lib/hash.c: Likewise.
57447         * lib/hash.h: Likewise.
57448         * lib/human.c: Likewise.
57449         * lib/human.h: Likewise.
57450         * lib/i-ring.c: Likewise.
57451         * lib/i-ring.h: Likewise.
57452         * lib/idcache.c: Likewise.
57453         * lib/imaxabs.c: Likewise.
57454         * lib/imaxdiv.c: Likewise.
57455         * lib/inet_pton.c: Likewise.
57456         * lib/inet_pton.h: Likewise.
57457         * lib/intprops.h: Likewise.
57458         * lib/inttostr.c: Likewise.
57459         * lib/inttostr.h: Likewise.
57460         * lib/inttypes.in.h: Likewise.
57461         * lib/isapipe.c: Likewise.
57462         * lib/isdir.c: Likewise.
57463         * lib/isnan.c: Likewise.
57464         * lib/isnan.h: Likewise.
57465         * lib/isnanf.c: Likewise.
57466         * lib/isnanf.h: Likewise.
57467         * lib/isnanl-nolibm.h: Likewise.
57468         * lib/isnanl.c: Likewise.
57469         * lib/isnanl.h: Likewise.
57470         * lib/javacomp.c: Likewise.
57471         * lib/javacomp.h: Likewise.
57472         * lib/javaexec.c: Likewise.
57473         * lib/javaexec.h: Likewise.
57474         * lib/javaversion.c: Likewise.
57475         * lib/javaversion.h: Likewise.
57476         * lib/javaversion.java: Likewise.
57477         * lib/lbrkprop.h: Likewise.
57478         * lib/lchmod.h: Likewise.
57479         * lib/lchown.c: Likewise.
57480         * lib/ldexpl.c: Likewise.
57481         * lib/linebreak.c: Likewise.
57482         * lib/linebreak.h: Likewise.
57483         * lib/linebuffer.c: Likewise.
57484         * lib/linebuffer.h: Likewise.
57485         * lib/locale.in.h: Likewise.
57486         * lib/logl.c: Likewise.
57487         * lib/long-options.c: Likewise.
57488         * lib/long-options.h: Likewise.
57489         * lib/lstat.c: Likewise.
57490         * lib/lstat.h: Likewise.
57491         * lib/math.in.h: Likewise.
57492         * lib/mbchar.c: Likewise.
57493         * lib/mbchar.h: Likewise.
57494         * lib/mbfile.h: Likewise.
57495         * lib/mbiter.h: Likewise.
57496         * lib/mbscasecmp.c: Likewise.
57497         * lib/mbscasestr.c: Likewise.
57498         * lib/mbschr.c: Likewise.
57499         * lib/mbscspn.c: Likewise.
57500         * lib/mbslen.c: Likewise.
57501         * lib/mbsncasecmp.c: Likewise.
57502         * lib/mbsnlen.c: Likewise.
57503         * lib/mbspbrk.c: Likewise.
57504         * lib/mbspcasecmp.c: Likewise.
57505         * lib/mbsrchr.c: Likewise.
57506         * lib/mbssep.c: Likewise.
57507         * lib/mbsspn.c: Likewise.
57508         * lib/mbsstr.c: Likewise.
57509         * lib/mbstok_r.c: Likewise.
57510         * lib/mbswidth.c: Likewise.
57511         * lib/mbswidth.h: Likewise.
57512         * lib/mbuiter.h: Likewise.
57513         * lib/memcasecmp.c: Likewise.
57514         * lib/memcasecmp.h: Likewise.
57515         * lib/memchr.c: Likewise.
57516         * lib/memcmp.c: Likewise.
57517         * lib/memcoll.c: Likewise.
57518         * lib/memcoll.h: Likewise.
57519         * lib/memcpy.c: Likewise.
57520         * lib/memrchr.c: Likewise.
57521         * lib/mkancesdirs.c: Likewise.
57522         * lib/mkdir-p.c: Likewise.
57523         * lib/mkdir-p.h: Likewise.
57524         * lib/mkdir.c: Likewise.
57525         * lib/mkdirat.c: Likewise.
57526         * lib/mkdtemp.c: Likewise.
57527         * lib/mkstemp-safer.c: Likewise.
57528         * lib/mkstemp.c: Likewise.
57529         * lib/modechange.c: Likewise.
57530         * lib/modechange.h: Likewise.
57531         * lib/mountlist.c: Likewise.
57532         * lib/mountlist.h: Likewise.
57533         * lib/mpsort.c: Likewise.
57534         * lib/nanosleep.c: Likewise.
57535         * lib/obstack.c: Likewise.
57536         * lib/obstack.h: Likewise.
57537         * lib/open-safer.c: Likewise.
57538         * lib/open.c: Likewise.
57539         * lib/openat-die.c: Likewise.
57540         * lib/openat-priv.h: Likewise.
57541         * lib/openat-proc.c: Likewise.
57542         * lib/openat.c: Likewise.
57543         * lib/openat.h: Likewise.
57544         * lib/pagealign_alloc.c: Likewise.
57545         * lib/pagealign_alloc.h: Likewise.
57546         * lib/physmem.c: Likewise.
57547         * lib/physmem.h: Likewise.
57548         * lib/pipe-safer.c: Likewise.
57549         * lib/pipe.c: Likewise.
57550         * lib/pipe.h: Likewise.
57551         * lib/posixtm.c: Likewise.
57552         * lib/posixtm.h: Likewise.
57553         * lib/posixver.c: Likewise.
57554         * lib/printf-frexp.c: Likewise.
57555         * lib/printf-frexp.h: Likewise.
57556         * lib/printf-frexpl.c: Likewise.
57557         * lib/printf-frexpl.h: Likewise.
57558         * lib/printf.c: Likewise.
57559         * lib/progname.c: Likewise.
57560         * lib/progname.h: Likewise.
57561         * lib/progreloc.c: Likewise.
57562         * lib/putenv.c: Likewise.
57563         * lib/quote.c: Likewise.
57564         * lib/quote.h: Likewise.
57565         * lib/quotearg.c: Likewise.
57566         * lib/quotearg.h: Likewise.
57567         * lib/raise.c: Likewise.
57568         * lib/readline.c: Likewise.
57569         * lib/readline.h: Likewise.
57570         * lib/readlink.c: Likewise.
57571         * lib/readtokens.c: Likewise.
57572         * lib/readtokens.h: Likewise.
57573         * lib/readtokens0.c: Likewise.
57574         * lib/readtokens0.h: Likewise.
57575         * lib/readutmp.c: Likewise.
57576         * lib/readutmp.h: Likewise.
57577         * lib/realloc.c: Likewise.
57578         * lib/relocwrapper.c: Likewise.
57579         * lib/rename-dest-slash.c: Likewise.
57580         * lib/rename.c: Likewise.
57581         * lib/rmdir.c: Likewise.
57582         * lib/rpmatch.c: Likewise.
57583         * lib/safe-read.c: Likewise.
57584         * lib/safe-read.h: Likewise.
57585         * lib/safe-write.c: Likewise.
57586         * lib/safe-write.h: Likewise.
57587         * lib/same-inode.h: Likewise.
57588         * lib/same.c: Likewise.
57589         * lib/same.h: Likewise.
57590         * lib/save-cwd.c: Likewise.
57591         * lib/save-cwd.h: Likewise.
57592         * lib/savedir.c: Likewise.
57593         * lib/savedir.h: Likewise.
57594         * lib/savewd.c: Likewise.
57595         * lib/savewd.h: Likewise.
57596         * lib/search.in.h: Likewise.
57597         * lib/setenv.c: Likewise.
57598         * lib/setenv.h: Likewise.
57599         * lib/settime.c: Likewise.
57600         * lib/sh-quote.c: Likewise.
57601         * lib/sh-quote.h: Likewise.
57602         * lib/sig2str.c: Likewise.
57603         * lib/sig2str.h: Likewise.
57604         * lib/signal.in.h: Likewise.
57605         * lib/signbitd.c: Likewise.
57606         * lib/signbitf.c: Likewise.
57607         * lib/signbitl.c: Likewise.
57608         * lib/sigprocmask.c: Likewise.
57609         * lib/sincosl.c: Likewise.
57610         * lib/sleep.c: Likewise.
57611         * lib/sprintf.c: Likewise.
57612         * lib/sqrtl.c: Likewise.
57613         * lib/stat-time.h: Likewise.
57614         * lib/stdio--.h: Likewise.
57615         * lib/stdio-safer.h: Likewise.
57616         * lib/stdlib--.h: Likewise.
57617         * lib/stdlib-safer.h: Likewise.
57618         * lib/stdlib.in.h: Likewise.
57619         * lib/stpcpy.c: Likewise.
57620         * lib/stpncpy.c: Likewise.
57621         * lib/strchrnul.c: Likewise.
57622         * lib/strcspn.c: Likewise.
57623         * lib/strerror.c: Likewise.
57624         * lib/strftime.c: Likewise.
57625         * lib/strftime.h: Likewise.
57626         * lib/striconveh.c: Likewise.
57627         * lib/striconveh.h: Likewise.
57628         * lib/striconveha.c: Likewise.
57629         * lib/striconveha.h: Likewise.
57630         * lib/stripslash.c: Likewise.
57631         * lib/strnlen1.c: Likewise.
57632         * lib/strnlen1.h: Likewise.
57633         * lib/strtod.c: Likewise.
57634         * lib/strtoimax.c: Likewise.
57635         * lib/strtok_r.c: Likewise.
57636         * lib/strtol.c: Likewise.
57637         * lib/strtoll.c: Likewise.
57638         * lib/strtoul.c: Likewise.
57639         * lib/strtoull.c: Likewise.
57640         * lib/sysexits.in.h: Likewise.
57641         * lib/tempname.c: Likewise.
57642         * lib/tempname.h: Likewise.
57643         * lib/timespec.h: Likewise.
57644         * lib/tls.c: Likewise.
57645         * lib/tls.h: Likewise.
57646         * lib/tmpdir.c: Likewise.
57647         * lib/tmpdir.h: Likewise.
57648         * lib/tmpfile-safer.c: Likewise.
57649         * lib/tmpfile.c: Likewise.
57650         * lib/trigl.c: Likewise.
57651         * lib/trigl.h: Likewise.
57652         * lib/trim.c: Likewise.
57653         * lib/trim.h: Likewise.
57654         * lib/trunc.c: Likewise.
57655         * lib/truncf.c: Likewise.
57656         * lib/truncl.c: Likewise.
57657         * lib/tsearch.c: Likewise.
57658         * lib/unicodeio.c: Likewise.
57659         * lib/unicodeio.h: Likewise.
57660         * lib/unistd--.h: Likewise.
57661         * lib/unistd-safer.h: Likewise.
57662         * lib/unistdio/ulc-fprintf.c: Likewise.
57663         * lib/unistdio/ulc-vfprintf.c: Likewise.
57664         * lib/unlinkdir.c: Likewise.
57665         * lib/unlinkdir.h: Likewise.
57666         * lib/unlocked-io.h: Likewise.
57667         * lib/unsetenv.c: Likewise.
57668         * lib/userspec.c: Likewise.
57669         * lib/utime.c: Likewise.
57670         * lib/utimecmp.c: Likewise.
57671         * lib/utimecmp.h: Likewise.
57672         * lib/utimens.c: Likewise.
57673         * lib/verify.h: Likewise.
57674         * lib/verror.c: Likewise.
57675         * lib/verror.h: Likewise.
57676         * lib/version-etc-fsf.c: Likewise.
57677         * lib/version-etc.c: Likewise.
57678         * lib/version-etc.h: Likewise.
57679         * lib/vfprintf.c: Likewise.
57680         * lib/vprintf.c: Likewise.
57681         * lib/vsprintf.c: Likewise.
57682         * lib/w32spawn.h: Likewise.
57683         * lib/wait-process.c: Likewise.
57684         * lib/wait-process.h: Likewise.
57685         * lib/wcwidth.c: Likewise.
57686         * lib/write-any-file.c: Likewise.
57687         * lib/xalloc-die.c: Likewise.
57688         * lib/xalloc.h: Likewise.
57689         * lib/xasprintf.c: Likewise.
57690         * lib/xgetcwd.c: Likewise.
57691         * lib/xgetcwd.h: Likewise.
57692         * lib/xgetdomainname.c: Likewise.
57693         * lib/xgetdomainname.h: Likewise.
57694         * lib/xgethostname.c: Likewise.
57695         * lib/xmalloc.c: Likewise.
57696         * lib/xmalloca.c: Likewise.
57697         * lib/xmalloca.h: Likewise.
57698         * lib/xmemcoll.c: Likewise.
57699         * lib/xnanosleep.c: Likewise.
57700         * lib/xreadlink.c: Likewise.
57701         * lib/xreadlink.h: Likewise.
57702         * lib/xsetenv.c: Likewise.
57703         * lib/xsetenv.h: Likewise.
57704         * lib/xstriconv.c: Likewise.
57705         * lib/xstriconv.h: Likewise.
57706         * lib/xstrndup.c: Likewise.
57707         * lib/xstrndup.h: Likewise.
57708         * lib/xstrtod.c: Likewise.
57709         * lib/xstrtod.h: Likewise.
57710         * lib/xstrtol-error.c: Likewise.
57711         * lib/xstrtol.c: Likewise.
57712         * lib/xstrtol.h: Likewise.
57713         * lib/xtime.h: Likewise.
57714         * lib/xvasprintf.c: Likewise.
57715         * lib/xvasprintf.h: Likewise.
57716         * lib/yesno.c: Likewise.
57717         * lib/yesno.h: Likewise.
57718         * posix-modules: Likewise.
57719         * tests/test-alloca-opt.c: Likewise.
57720         * tests/test-arcfour.c: Likewise.
57721         * tests/test-arctwo.c: Likewise.
57722         * tests/test-argmatch.c: Likewise.
57723         * tests/test-argp-2.sh: Likewise.
57724         * tests/test-argp.c: Likewise.
57725         * tests/test-arpa_inet.c: Likewise.
57726         * tests/test-array_list.c: Likewise.
57727         * tests/test-array_oset.c: Likewise.
57728         * tests/test-atexit.c: Likewise.
57729         * tests/test-avltree_list.c: Likewise.
57730         * tests/test-avltree_oset.c: Likewise.
57731         * tests/test-avltreehash_list.c: Likewise.
57732         * tests/test-base64.c: Likewise.
57733         * tests/test-binary-io.c: Likewise.
57734         * tests/test-byteswap.c: Likewise.
57735         * tests/test-c-ctype.c: Likewise.
57736         * tests/test-c-strcasecmp.c: Likewise.
57737         * tests/test-c-strcasestr.c: Likewise.
57738         * tests/test-c-strncasecmp.c: Likewise.
57739         * tests/test-c-strstr.c: Likewise.
57740         * tests/test-canonicalize-lgpl.c: Likewise.
57741         * tests/test-canonicalize.c: Likewise.
57742         * tests/test-carray_list.c: Likewise.
57743         * tests/test-ceilf.c: Likewise.
57744         * tests/test-ceill.c: Likewise.
57745         * tests/test-count-one-bits.c: Likewise.
57746         * tests/test-crc.c: Likewise.
57747         * tests/test-dirname.c: Likewise.
57748         * tests/test-fbufmode.c: Likewise.
57749         * tests/test-fcntl.c: Likewise.
57750         * tests/test-fflush.c: Likewise.
57751         * tests/test-floorf.c: Likewise.
57752         * tests/test-floorl.c: Likewise.
57753         * tests/test-fopen.c: Likewise.
57754         * tests/test-fprintf-posix.c: Likewise.
57755         * tests/test-fprintf-posix.h: Likewise.
57756         * tests/test-fpurge.c: Likewise.
57757         * tests/test-freadable.c: Likewise.
57758         * tests/test-freadahead.c: Likewise.
57759         * tests/test-freading.c: Likewise.
57760         * tests/test-freopen.c: Likewise.
57761         * tests/test-frexp.c: Likewise.
57762         * tests/test-frexpl.c: Likewise.
57763         * tests/test-fseek.c: Likewise.
57764         * tests/test-fseeko.c: Likewise.
57765         * tests/test-fseterr.c: Likewise.
57766         * tests/test-fstrcmp.c: Likewise.
57767         * tests/test-ftell.c: Likewise.
57768         * tests/test-ftello.c: Likewise.
57769         * tests/test-fwritable.c: Likewise.
57770         * tests/test-fwriting.c: Likewise.
57771         * tests/test-getaddrinfo.c: Likewise.
57772         * tests/test-getpass.c: Likewise.
57773         * tests/test-gettimeofday.c: Likewise.
57774         * tests/test-hmac-md5.c: Likewise.
57775         * tests/test-hmac-sha1.c: Likewise.
57776         * tests/test-iconv.c: Likewise.
57777         * tests/test-iconvme.c: Likewise.
57778         * tests/test-inttypes.c: Likewise.
57779         * tests/test-isnan.c: Likewise.
57780         * tests/test-isnanf.c: Likewise.
57781         * tests/test-isnanl-nolibm.c: Likewise.
57782         * tests/test-isnanl.c: Likewise.
57783         * tests/test-isnanl.h: Likewise.
57784         * tests/test-ldexpl.c: Likewise.
57785         * tests/test-linked_list.c: Likewise.
57786         * tests/test-linkedhash_list.c: Likewise.
57787         * tests/test-locale.c: Likewise.
57788         * tests/test-localename.c: Likewise.
57789         * tests/test-lock.c: Likewise.
57790         * tests/test-lseek.c: Likewise.
57791         * tests/test-malloca.c: Likewise.
57792         * tests/test-math.c: Likewise.
57793         * tests/test-mbscasecmp.c: Likewise.
57794         * tests/test-mbscasestr1.c: Likewise.
57795         * tests/test-mbscasestr2.c: Likewise.
57796         * tests/test-mbscasestr3.c: Likewise.
57797         * tests/test-mbscasestr4.c: Likewise.
57798         * tests/test-mbschr.c: Likewise.
57799         * tests/test-mbscspn.c: Likewise.
57800         * tests/test-mbsncasecmp.c: Likewise.
57801         * tests/test-mbspbrk.c: Likewise.
57802         * tests/test-mbspcasecmp.c: Likewise.
57803         * tests/test-mbsrchr.c: Likewise.
57804         * tests/test-mbsspn.c: Likewise.
57805         * tests/test-mbsstr1.c: Likewise.
57806         * tests/test-mbsstr2.c: Likewise.
57807         * tests/test-mbsstr3.c: Likewise.
57808         * tests/test-md5.c: Likewise.
57809         * tests/test-memmem.c: Likewise.
57810         * tests/test-netinet_in.c: Likewise.
57811         * tests/test-open.c: Likewise.
57812         * tests/test-printf-frexp.c: Likewise.
57813         * tests/test-printf-frexpl.c: Likewise.
57814         * tests/test-printf-posix.c: Likewise.
57815         * tests/test-printf-posix.h: Likewise.
57816         * tests/test-rbtree_list.c: Likewise.
57817         * tests/test-rbtree_oset.c: Likewise.
57818         * tests/test-rbtreehash_list.c: Likewise.
57819         * tests/test-read-file.c: Likewise.
57820         * tests/test-rijndael.c: Likewise.
57821         * tests/test-search.c: Likewise.
57822         * tests/test-signbit.c: Likewise.
57823         * tests/test-sleep.c: Likewise.
57824         * tests/test-snprintf-posix.c: Likewise.
57825         * tests/test-snprintf-posix.h: Likewise.
57826         * tests/test-snprintf.c: Likewise.
57827         * tests/test-sprintf-posix.c: Likewise.
57828         * tests/test-sprintf-posix.h: Likewise.
57829         * tests/test-stat-time.c: Likewise.
57830         * tests/test-stdbool.c: Likewise.
57831         * tests/test-stdint.c: Likewise.
57832         * tests/test-stdio.c: Likewise.
57833         * tests/test-stdlib.c: Likewise.
57834         * tests/test-stpncpy.c: Likewise.
57835         * tests/test-strcasestr.c: Likewise.
57836         * tests/test-striconv.c: Likewise.
57837         * tests/test-striconveh.c: Likewise.
57838         * tests/test-striconveha.c: Likewise.
57839         * tests/test-string.c: Likewise.
57840         * tests/test-sys_select.c: Likewise.
57841         * tests/test-sys_socket.c: Likewise.
57842         * tests/test-sys_stat.c: Likewise.
57843         * tests/test-sys_time.c: Likewise.
57844         * tests/test-sysexits.c: Likewise.
57845         * tests/test-time.c: Likewise.
57846         * tests/test-tls.c: Likewise.
57847         * tests/test-trunc.c: Likewise.
57848         * tests/test-truncf.c: Likewise.
57849         * tests/test-truncl.c: Likewise.
57850         * tests/test-unistd.c: Likewise.
57851         * tests/test-vasnprintf-posix.c: Likewise.
57852         * tests/test-vasnprintf-posix2.c: Likewise.
57853         * tests/test-vasnprintf.c: Likewise.
57854         * tests/test-vasprintf-posix.c: Likewise.
57855         * tests/test-vasprintf.c: Likewise.
57856         * tests/test-verify.c: Likewise.
57857         * tests/test-vfprintf-posix.c: Likewise.
57858         * tests/test-vprintf-posix.c: Likewise.
57859         * tests/test-vsnprintf-posix.c: Likewise.
57860         * tests/test-vsnprintf.c: Likewise.
57861         * tests/test-vsprintf-posix.c: Likewise.
57862         * tests/test-wchar.c: Likewise.
57863         * tests/test-wctype.c: Likewise.
57864         * tests/test-wcwidth.c: Likewise.
57865         * tests/test-xstrtol.c: Likewise.
57866         * tests/test-xvasprintf.c: Likewise.
57867         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57868         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57869         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57870         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57871         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57872         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57873         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57874         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57875         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57876         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57877         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57878         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57879         * tests/uniname/test-uninames.c: Likewise.
57880         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57881         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57882         * tests/unistdio/test-u16-printf1.h: Likewise.
57883         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57884         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57885         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57886         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57887         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57888         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57889         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57890         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57891         * tests/unistdio/test-u32-printf1.h: Likewise.
57892         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57893         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57894         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57895         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57896         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57897         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57898         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57899         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57900         * tests/unistdio/test-u8-printf1.h: Likewise.
57901         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57902         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57903         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57904         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57905         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57906         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57907         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57908         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57909         * tests/unistdio/test-ulc-printf1.h: Likewise.
57910         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57911         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57912         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57913         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57914         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57915         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57916         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57917         * tests/uniwidth/test-u16-width.c: Likewise.
57918         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57919         * tests/uniwidth/test-u32-width.c: Likewise.
57920         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57921         * tests/uniwidth/test-u8-width.c: Likewise.
57922         * tests/uniwidth/test-uc_width.c: Likewise.
57923         * config/srclist-update: Likewise.
57924         (fixlicense): Update to GPLv3+.
57925
57926         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57927         * tests/test-tsearch.c: Change copyright notice.
57928
57929         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57930         * lib/c-strcaseeq.h: Change copyright notice.
57931         * lib/streq.h: Likewise.
57932         * lib/uniconv.h: Likewise.
57933         * lib/uniconv/u-conv-from-enc.h: Likewise.
57934         * lib/uniconv/u-conv-to-enc.h: Likewise.
57935         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57936         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57937         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57938         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57939         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57940         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57941         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57942         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57943         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57944         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57945         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57946         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57947         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57948         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57949         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57950         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57951         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57952         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57953         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57954         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57955         * lib/uniname.h: Likewise.
57956         * lib/uniname/uniname.c: Likewise.
57957         * lib/unistdio.h: Likewise.
57958         * lib/unistdio/u-asnprintf.h: Likewise.
57959         * lib/unistdio/u-asprintf.h: Likewise.
57960         * lib/unistdio/u-printf-args.c: Likewise.
57961         * lib/unistdio/u-printf-args.h: Likewise.
57962         * lib/unistdio/u-printf-parse.h: Likewise.
57963         * lib/unistdio/u-snprintf.h: Likewise.
57964         * lib/unistdio/u-sprintf.h: Likewise.
57965         * lib/unistdio/u-vasprintf.h: Likewise.
57966         * lib/unistdio/u-vsnprintf.h: Likewise.
57967         * lib/unistdio/u-vsprintf.h: Likewise.
57968         * lib/unistdio/u16-asnprintf.c: Likewise.
57969         * lib/unistdio/u16-asprintf.c: Likewise.
57970         * lib/unistdio/u16-printf-parse.c: Likewise.
57971         * lib/unistdio/u16-snprintf.c: Likewise.
57972         * lib/unistdio/u16-sprintf.c: Likewise.
57973         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57974         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57975         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57976         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57977         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57978         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57979         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57980         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57981         * lib/unistdio/u16-vasnprintf.c: Likewise.
57982         * lib/unistdio/u16-vasprintf.c: Likewise.
57983         * lib/unistdio/u16-vsnprintf.c: Likewise.
57984         * lib/unistdio/u16-vsprintf.c: Likewise.
57985         * lib/unistdio/u32-asnprintf.c: Likewise.
57986         * lib/unistdio/u32-asprintf.c: Likewise.
57987         * lib/unistdio/u32-printf-parse.c: Likewise.
57988         * lib/unistdio/u32-snprintf.c: Likewise.
57989         * lib/unistdio/u32-sprintf.c: Likewise.
57990         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57991         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57992         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57993         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57994         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57995         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57996         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57997         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57998         * lib/unistdio/u32-vasnprintf.c: Likewise.
57999         * lib/unistdio/u32-vasprintf.c: Likewise.
58000         * lib/unistdio/u32-vsnprintf.c: Likewise.
58001         * lib/unistdio/u32-vsprintf.c: Likewise.
58002         * lib/unistdio/u8-asnprintf.c: Likewise.
58003         * lib/unistdio/u8-asprintf.c: Likewise.
58004         * lib/unistdio/u8-printf-parse.c: Likewise.
58005         * lib/unistdio/u8-snprintf.c: Likewise.
58006         * lib/unistdio/u8-sprintf.c: Likewise.
58007         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58008         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58009         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58010         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58011         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58012         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58013         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58014         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58015         * lib/unistdio/u8-vasnprintf.c: Likewise.
58016         * lib/unistdio/u8-vasprintf.c: Likewise.
58017         * lib/unistdio/u8-vsnprintf.c: Likewise.
58018         * lib/unistdio/u8-vsprintf.c: Likewise.
58019         * lib/unistdio/ulc-asnprintf.c: Likewise.
58020         * lib/unistdio/ulc-asprintf.c: Likewise.
58021         * lib/unistdio/ulc-printf-parse.c: Likewise.
58022         * lib/unistdio/ulc-snprintf.c: Likewise.
58023         * lib/unistdio/ulc-sprintf.c: Likewise.
58024         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58025         * lib/unistdio/ulc-vasprintf.c: Likewise.
58026         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58027         * lib/unistdio/ulc-vsprintf.c: Likewise.
58028         * lib/unistr.h: Likewise.
58029         * lib/unistr/u-cpy-alloc.h: Likewise.
58030         * lib/unistr/u-cpy.h: Likewise.
58031         * lib/unistr/u-endswith.h: Likewise.
58032         * lib/unistr/u-move.h: Likewise.
58033         * lib/unistr/u-set.h: Likewise.
58034         * lib/unistr/u-startswith.h: Likewise.
58035         * lib/unistr/u-stpcpy.h: Likewise.
58036         * lib/unistr/u-stpncpy.h: Likewise.
58037         * lib/unistr/u-strcat.h: Likewise.
58038         * lib/unistr/u-strcpy.h: Likewise.
58039         * lib/unistr/u-strcspn.h: Likewise.
58040         * lib/unistr/u-strdup.h: Likewise.
58041         * lib/unistr/u-strlen.h: Likewise.
58042         * lib/unistr/u-strncat.h: Likewise.
58043         * lib/unistr/u-strncpy.h: Likewise.
58044         * lib/unistr/u-strnlen.h: Likewise.
58045         * lib/unistr/u-strpbrk.h: Likewise.
58046         * lib/unistr/u-strspn.h: Likewise.
58047         * lib/unistr/u-strstr.h: Likewise.
58048         * lib/unistr/u-strtok.h: Likewise.
58049         * lib/unistr/u16-check.c: Likewise.
58050         * lib/unistr/u16-chr.c: Likewise.
58051         * lib/unistr/u16-cmp.c: Likewise.
58052         * lib/unistr/u16-cpy-alloc.c: Likewise.
58053         * lib/unistr/u16-cpy.c: Likewise.
58054         * lib/unistr/u16-endswith.c: Likewise.
58055         * lib/unistr/u16-mblen.c: Likewise.
58056         * lib/unistr/u16-mbsnlen.c: Likewise.
58057         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58058         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58059         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58060         * lib/unistr/u16-mbtouc.c: Likewise.
58061         * lib/unistr/u16-mbtoucr.c: Likewise.
58062         * lib/unistr/u16-move.c: Likewise.
58063         * lib/unistr/u16-next.c: Likewise.
58064         * lib/unistr/u16-prev.c: Likewise.
58065         * lib/unistr/u16-set.c: Likewise.
58066         * lib/unistr/u16-startswith.c: Likewise.
58067         * lib/unistr/u16-stpcpy.c: Likewise.
58068         * lib/unistr/u16-stpncpy.c: Likewise.
58069         * lib/unistr/u16-strcat.c: Likewise.
58070         * lib/unistr/u16-strchr.c: Likewise.
58071         * lib/unistr/u16-strcmp.c: Likewise.
58072         * lib/unistr/u16-strcpy.c: Likewise.
58073         * lib/unistr/u16-strcspn.c: Likewise.
58074         * lib/unistr/u16-strdup.c: Likewise.
58075         * lib/unistr/u16-strlen.c: Likewise.
58076         * lib/unistr/u16-strmblen.c: Likewise.
58077         * lib/unistr/u16-strmbtouc.c: Likewise.
58078         * lib/unistr/u16-strncat.c: Likewise.
58079         * lib/unistr/u16-strncmp.c: Likewise.
58080         * lib/unistr/u16-strncpy.c: Likewise.
58081         * lib/unistr/u16-strnlen.c: Likewise.
58082         * lib/unistr/u16-strpbrk.c: Likewise.
58083         * lib/unistr/u16-strrchr.c: Likewise.
58084         * lib/unistr/u16-strspn.c: Likewise.
58085         * lib/unistr/u16-strstr.c: Likewise.
58086         * lib/unistr/u16-strtok.c: Likewise.
58087         * lib/unistr/u16-to-u32.c: Likewise.
58088         * lib/unistr/u16-to-u8.c: Likewise.
58089         * lib/unistr/u16-uctomb-aux.c: Likewise.
58090         * lib/unistr/u16-uctomb.c: Likewise.
58091         * lib/unistr/u32-check.c: Likewise.
58092         * lib/unistr/u32-chr.c: Likewise.
58093         * lib/unistr/u32-cmp.c: Likewise.
58094         * lib/unistr/u32-cpy-alloc.c: Likewise.
58095         * lib/unistr/u32-cpy.c: Likewise.
58096         * lib/unistr/u32-endswith.c: Likewise.
58097         * lib/unistr/u32-mblen.c: Likewise.
58098         * lib/unistr/u32-mbsnlen.c: Likewise.
58099         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58100         * lib/unistr/u32-mbtouc.c: Likewise.
58101         * lib/unistr/u32-mbtoucr.c: Likewise.
58102         * lib/unistr/u32-move.c: Likewise.
58103         * lib/unistr/u32-next.c: Likewise.
58104         * lib/unistr/u32-prev.c: Likewise.
58105         * lib/unistr/u32-set.c: Likewise.
58106         * lib/unistr/u32-startswith.c: Likewise.
58107         * lib/unistr/u32-stpcpy.c: Likewise.
58108         * lib/unistr/u32-stpncpy.c: Likewise.
58109         * lib/unistr/u32-strcat.c: Likewise.
58110         * lib/unistr/u32-strchr.c: Likewise.
58111         * lib/unistr/u32-strcmp.c: Likewise.
58112         * lib/unistr/u32-strcpy.c: Likewise.
58113         * lib/unistr/u32-strcspn.c: Likewise.
58114         * lib/unistr/u32-strdup.c: Likewise.
58115         * lib/unistr/u32-strlen.c: Likewise.
58116         * lib/unistr/u32-strmblen.c: Likewise.
58117         * lib/unistr/u32-strmbtouc.c: Likewise.
58118         * lib/unistr/u32-strncat.c: Likewise.
58119         * lib/unistr/u32-strncmp.c: Likewise.
58120         * lib/unistr/u32-strncpy.c: Likewise.
58121         * lib/unistr/u32-strnlen.c: Likewise.
58122         * lib/unistr/u32-strpbrk.c: Likewise.
58123         * lib/unistr/u32-strrchr.c: Likewise.
58124         * lib/unistr/u32-strspn.c: Likewise.
58125         * lib/unistr/u32-strstr.c: Likewise.
58126         * lib/unistr/u32-strtok.c: Likewise.
58127         * lib/unistr/u32-to-u16.c: Likewise.
58128         * lib/unistr/u32-to-u8.c: Likewise.
58129         * lib/unistr/u32-uctomb.c: Likewise.
58130         * lib/unistr/u8-check.c: Likewise.
58131         * lib/unistr/u8-chr.c: Likewise.
58132         * lib/unistr/u8-cmp.c: Likewise.
58133         * lib/unistr/u8-cpy-alloc.c: Likewise.
58134         * lib/unistr/u8-cpy.c: Likewise.
58135         * lib/unistr/u8-endswith.c: Likewise.
58136         * lib/unistr/u8-mblen.c: Likewise.
58137         * lib/unistr/u8-mbsnlen.c: Likewise.
58138         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58139         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58140         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58141         * lib/unistr/u8-mbtouc.c: Likewise.
58142         * lib/unistr/u8-mbtoucr.c: Likewise.
58143         * lib/unistr/u8-move.c: Likewise.
58144         * lib/unistr/u8-next.c: Likewise.
58145         * lib/unistr/u8-prev.c: Likewise.
58146         * lib/unistr/u8-set.c: Likewise.
58147         * lib/unistr/u8-startswith.c: Likewise.
58148         * lib/unistr/u8-stpcpy.c: Likewise.
58149         * lib/unistr/u8-stpncpy.c: Likewise.
58150         * lib/unistr/u8-strcat.c: Likewise.
58151         * lib/unistr/u8-strchr.c: Likewise.
58152         * lib/unistr/u8-strcmp.c: Likewise.
58153         * lib/unistr/u8-strcpy.c: Likewise.
58154         * lib/unistr/u8-strcspn.c: Likewise.
58155         * lib/unistr/u8-strdup.c: Likewise.
58156         * lib/unistr/u8-strlen.c: Likewise.
58157         * lib/unistr/u8-strmblen.c: Likewise.
58158         * lib/unistr/u8-strmbtouc.c: Likewise.
58159         * lib/unistr/u8-strncat.c: Likewise.
58160         * lib/unistr/u8-strncmp.c: Likewise.
58161         * lib/unistr/u8-strncpy.c: Likewise.
58162         * lib/unistr/u8-strnlen.c: Likewise.
58163         * lib/unistr/u8-strpbrk.c: Likewise.
58164         * lib/unistr/u8-strrchr.c: Likewise.
58165         * lib/unistr/u8-strspn.c: Likewise.
58166         * lib/unistr/u8-strstr.c: Likewise.
58167         * lib/unistr/u8-strtok.c: Likewise.
58168         * lib/unistr/u8-to-u16.c: Likewise.
58169         * lib/unistr/u8-to-u32.c: Likewise.
58170         * lib/unistr/u8-uctomb-aux.c: Likewise.
58171         * lib/unistr/u8-uctomb.c: Likewise.
58172         * lib/unitypes.h: Likewise.
58173         * lib/uniwidth.h: Likewise.
58174         * lib/uniwidth/cjk.h: Likewise.
58175         * lib/uniwidth/u16-strwidth.c: Likewise.
58176         * lib/uniwidth/u16-width.c: Likewise.
58177         * lib/uniwidth/u32-strwidth.c: Likewise.
58178         * lib/uniwidth/u32-width.c: Likewise.
58179         * lib/uniwidth/u8-strwidth.c: Likewise.
58180         * lib/uniwidth/u8-width.c: Likewise.
58181         * lib/uniwidth/width.c: Likewise.
58182
58183 2007-10-07  Bruno Haible  <bruno@clisp.org>
58184
58185         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58186         The file is still under LGPL (see modules/inttypes).
58187
58188 2007-10-06  Bruno Haible  <bruno@clisp.org>
58189
58190         * modules/trunc (Dependencies): Add 'extensions'.
58191         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58192         Reported by Ben Pfaff <blp@gnu.org>.
58193
58194 2007-10-06  Bruno Haible  <bruno@clisp.org>
58195
58196         * modules/freopen-tests: New file.
58197         * tests/test-freopen.c: New file.
58198
58199         * modules/fopen-tests: New file.
58200         * tests/test-fopen.c: New file.
58201
58202         * modules/fopen: New file.
58203         * lib/fopen.c: New file.
58204         * m4/fopen.m4: New file.
58205         * modules/freopen: New file.
58206         * lib/freopen.c: New file.
58207         * m4/freopen.m4: New file.
58208         * lib/stdio.in.h (fopen, freopen): New declarations.
58209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58210         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58211         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58212         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58213         * doc/functions/fopen.texi: Mention the 'fopen' module.
58214         * doc/functions/freopen.texi: Mention the 'freopen' module.
58215
58216 2007-10-06  Bruno Haible  <bruno@clisp.org>
58217
58218         * modules/open-tests: New file.
58219         * tests/test-open.c: New file.
58220
58221         * modules/open: New file.
58222         * lib/open.c: New file.
58223         * m4/open.m4: New file.
58224         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58225         lib/open.c does.
58226         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58227         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58228         macros.
58229         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58230         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58231         REPLACE_OPEN.
58232         * doc/functions/open.texi: Mention the 'open' module.
58233
58234 2007-10-04  Bruno Haible  <bruno@clisp.org>
58235
58236         * modules/ceill-tests: New file.
58237         * tests/test-ceill.c: New file.
58238
58239         * modules/ceill: New file.
58240         * lib/ceill.c: Replace entire file.
58241         * m4/ceill.m4: New file.
58242         * lib/math.in.h (ceill): Replace declaration.
58243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
58244         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
58245         * doc/functions/ceill.texi: Mention the 'ceill' module.
58246         * modules/mathl (Files): Remove lib/ceill.c.
58247         (Depends-on): Add ceill.
58248
58249 2007-10-04  Bruno Haible  <bruno@clisp.org>
58250
58251         * modules/ceilf-tests: New file.
58252         * tests/test-ceilf.c: New file.
58253
58254         * modules/ceilf: New file.
58255         * lib/ceil.c: New file.
58256         * lib/ceilf.c: New file.
58257         * m4/ceilf.m4: New file.
58258         * lib/math.in.h (ceilf): New declaration.
58259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
58260         HAVE_DECL_CEILF.
58261         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
58262         HAVE_DECL_CEILF.
58263         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
58264
58265 2007-10-04  Bruno Haible  <bruno@clisp.org>
58266
58267         * modules/floorl-tests: New file.
58268         * tests/test-floorl.c: New file.
58269
58270         * modules/floorl: New file.
58271         * lib/floorl.c: Replace entire file.
58272         * m4/floorl.m4: New file.
58273         * lib/math.in.h (floorl): Replace declaration.
58274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
58275         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
58276         * doc/functions/floorl.texi: Mention the 'floorl' module.
58277         * modules/mathl (Files): Remove lib/floorl.c.
58278         (Depends-on): Add floorl.
58279
58280 2007-10-04  Bruno Haible  <bruno@clisp.org>
58281
58282         * modules/floorf-tests: New file.
58283         * tests/test-floorf.c: New file.
58284
58285         * modules/floorf: New file.
58286         * lib/floor.c: New file.
58287         * lib/floorf.c: New file.
58288         * m4/floorf.m4: New file.
58289         * lib/math.in.h (floorf): New declaration.
58290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
58291         HAVE_DECL_FLOORF.
58292         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
58293         HAVE_DECL_FLOORF.
58294         * doc/functions/floorf.texi: Mention the 'floorf' module.
58295
58296 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
58297             Bruno Haible  <bruno@clisp.org>
58298
58299         Advertise for the Git server instead of the CVS server.
58300         * doc/gnulib-intro.texi (Steady Development): Mention the Git
58301         repository instead of the CVS one.
58302         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
58303         about all VCS systems generically.
58304         * doc/gnulib.texi (Introduction): Capitalize `Git'.
58305
58306 2007-10-04  Bruno Haible  <bruno@clisp.org>
58307
58308         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
58309         means.
58310         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
58311
58312 2007-10-04  Bruno Haible  <bruno@clisp.org>
58313
58314         * modules/truncl-tests: New file.
58315         * tests/test-truncl.c: New file.
58316
58317         * modules/truncl: New file.
58318         * lib/truncl.c: New file.
58319         * m4/truncl.m4: New file.
58320         * lib/math.in.h (truncl): New declaration.
58321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
58322         HAVE_DECL_TRUNCL.
58323         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
58324         HAVE_DECL_TRUNCL.
58325         * doc/functions/truncl.texi: Mention the 'truncl' module.
58326
58327 2007-10-04  Bruno Haible  <bruno@clisp.org>
58328
58329         * modules/truncf-tests: New file.
58330         * tests/test-truncf.c: New file.
58331
58332         * modules/truncf: New file.
58333         * lib/trunc.c: Make paramerizable through USE_* macros.
58334         * lib/truncf.c: New file.
58335         * m4/truncf.m4: New file.
58336         * lib/math.in.h (truncf): New declaration.
58337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
58338         HAVE_DECL_TRUNCF.
58339         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
58340         HAVE_DECL_TRUNCF.
58341         * doc/functions/truncf.texi: Mention the 'truncf' module.
58342
58343 2007-10-03  Bruno Haible  <bruno@clisp.org>
58344
58345         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58346         augmentation also for tests modules.
58347         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
58348         * modules/atexit-tests (Makefile.am): Likewise.
58349         * modules/binary-io-tests (Makefile.am): Likewise.
58350         * modules/c-strcase-tests (Makefile.am): Likewise.
58351         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
58352         * modules/canonicalize-tests (Makefile.am): Likewise.
58353         * modules/closein-tests (Makefile.am): Likewise.
58354         * modules/fprintf-posix-tests (Makefile.am): Likewise.
58355         * modules/freadahead-tests (Makefile.am): Likewise.
58356         * modules/fseek-tests (Makefile.am): Likewise.
58357         * modules/fseeko-tests (Makefile.am): Likewise.
58358         * modules/ftell-tests (Makefile.am): Likewise.
58359         * modules/ftello-tests (Makefile.am): Likewise.
58360         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
58361         * modules/isnanl-tests (Makefile.am): Likewise.
58362         * modules/lseek-tests (Makefile.am): Likewise.
58363         * modules/mbscasecmp-tests (Makefile.am): Likewise.
58364         * modules/mbscasestr-tests (Makefile.am): Likewise.
58365         * modules/mbschr-tests (Makefile.am): Likewise.
58366         * modules/mbscspn-tests (Makefile.am): Likewise.
58367         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58368         * modules/mbspbrk-tests (Makefile.am): Likewise.
58369         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58370         * modules/mbsrchr-tests (Makefile.am): Likewise.
58371         * modules/mbsspn-tests (Makefile.am): Likewise.
58372         * modules/mbsstr-tests (Makefile.am): Likewise.
58373         * modules/printf-posix-tests (Makefile.am): Likewise.
58374         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58375         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58376         * modules/tsearch-tests (Makefile.am): Likewise.
58377         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58378         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58379         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58380         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58381         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58382         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58383         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58384         * modules/vprintf-posix-tests (Makefile.am): Likewise.
58385         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
58386         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
58387         * modules/xstrtoimax-tests (Makefile.am): Likewise.
58388         * modules/xstrtol-tests (Makefile.am): Likewise.
58389         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58390         * modules/yesno-tests (Makefile.am): Likewise.
58391
58392 2007-10-03  Bruno Haible  <bruno@clisp.org>
58393
58394         * modules/trunc-tests: New file.
58395         * tests/test-trunc.c: New file.
58396
58397         * modules/trunc: New file.
58398         * lib/trunc.c: New file.
58399         * m4/trunc.m4: New file.
58400         * lib/math.in.h (trunc): New declaration.
58401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58402         HAVE_DECL_TRUNC.
58403         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58404         HAVE_DECL_TRUNC.
58405         * doc/functions/trunc.texi: Mention the 'trunc' module.
58406
58407 2007-10-03  Bruno Haible  <bruno@clisp.org>
58408
58409         * tests/test-fpending.c: New file, mostly copied
58410         from coreutils/lib/t-fpending.c.
58411         * modules/fpending-tests: New file.
58412
58413 2007-10-03  Bruno Haible  <bruno@clisp.org>
58414
58415         Port the stdio extensions to QNX (untested).
58416         * lib/fseterr.c (fseterr): Add support for QNX.
58417         * lib/fbufmode.c (fbufmode): Likewise.
58418         * lib/freadable.c (freadable): Likewise.
58419         * lib/fwritable.c (fwritable): Likewise.
58420         * lib/freading.c (freading): Likewise.
58421         * lib/fwriting.c (fwriting): Likewise.
58422         * lib/freadahead.c (freadahed): Likewise.
58423         * lib/fpurge.c (fpurge): Likewise.
58424         * lib/fseeko.c (rpl_fseeko): Likewise.
58425
58426 2007-10-03  Bruno Haible  <bruno@clisp.org>
58427             Jim Meyering  <jim@meyering.net>
58428             Eric Blake  <ebb9@byu.net>
58429
58430         * doc/relocatable.texi: Use @command instead of @program.
58431
58432 2007-10-02  Jim Meyering  <jim@meyering.net>
58433
58434         Perform one more "_.h" -> ".in.h" substitution.
58435         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58436         instead of unistd_.h here, too.
58437
58438 2007-10-01  Bruno Haible  <bruno@clisp.org>
58439
58440         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58441         Needed for the alloca-opt module.
58442
58443 2007-09-30  Bruno Haible  <bruno@clisp.org>
58444
58445         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58446         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58447         alloca_.h.
58448         * lib/argz.in.h: Renamed from lib/argz_.h.
58449         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58450         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58451         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58452         byteswap_.h.
58453         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58454         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58455         dirent_.h.
58456         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58457         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58458         fcntl_.h.
58459         * lib/float.in.h: Renamed from lib/float_.h.
58460         * modules/float (Files, Makefile.am): Use float.in.h instead of
58461         float_.h.
58462         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58463         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58464         fnmatch_.h.
58465         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58466         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58467         getopt_.h.
58468         * lib/glob.in.h: Renamed from lib/glob_.h.
58469         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58470         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58471         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58472         iconv_.h.
58473         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58474         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58475         inttypes_.h.
58476         * lib/locale.in.h: Renamed from lib/locale_.h.
58477         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58478         locale_.h.
58479         * lib/math.in.h: Renamed from lib/math_.h.
58480         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58481         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58482         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58483         of netinet_in_.h. Add dependency.
58484         * lib/poll.in.h: Renamed from lib/poll_.h.
58485         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58486         * lib/search.in.h: Renamed from lib/search_.h.
58487         * modules/search (Files, Makefile.am): Use search.in.h instead of
58488         search_.h.
58489         * lib/signal.in.h: Renamed from lib/signal_.h.
58490         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58491         _signal.h.
58492         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58493         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58494         stdbool_.h.
58495         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58496         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58497         stdint_.h.
58498         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58499         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58500         stdio_.h.
58501         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58502         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58503         stdlib_.h.
58504         * lib/string.in.h: Renamed from lib/string_.h.
58505         * modules/string (Files, Makefile.am): Use string.in.h instead of
58506         string_.h.
58507         * doc/gnulib-tool.texi (Initial import): Update.
58508         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58509         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58510         of sys_select_.h. Add dependency.
58511         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58512         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58513         of sys_socket_.h.
58514         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58515         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58516         sys_stat_.h.
58517         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58518         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58519         sys_time_.h.
58520         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58521         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58522         sysexits_.h.
58523         * lib/time.in.h: Renamed from lib/time_.h.
58524         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58525         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58526         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58527         unistd_.h.
58528         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58529         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58530         wchar_.h.
58531         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58532         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58533         wctype_.h.
58534         * build-aux/bootstrap (slurp): Update.
58535         * lib/.cppi-disable: Update.
58536
58537 2007-09-30  Bruno Haible  <bruno@clisp.org>
58538
58539         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58540         Needed on BeOS.
58541
58542 2007-09-30  Bruno Haible  <bruno@clisp.org>
58543
58544         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58545
58546 2007-09-29  Bruno Haible  <bruno@clisp.org>
58547
58548         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58549
58550 2007-09-29  Bruno Haible  <bruno@clisp.org>
58551
58552         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58553         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58554         * build-aux/install-reloc: Compile also areadlink.c.
58555         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58556
58557 2007-09-29  Bruno Haible  <bruno@clisp.org>
58558
58559         * gnulib-tool (func_emit_initmacro_done): Indentation.
58560
58561 2007-09-29  Bruno Haible  <bruno@clisp.org>
58562
58563         * README: Add CVS checkout update instructions.
58564         Info from Bob Proulx <bob@proulx.com>.
58565
58566 2007-09-28  Eric Blake  <ebb9@byu.net>
58567
58568         Provide move-if-change.
58569         * build-aux/move-if-change: New file, based on best practice
58570         rather than any canonical upstream location.
58571
58572 2007-09-28  Jim Meyering  <jim@meyering.net>
58573
58574         Fix canonicalize loop-detection corner case.
58575         Do not attempt to stat the symlink values stored via seen_triple.
58576         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58577         on linux-2.6.18, (but not 2.6.22).
58578         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58579         triple_compare.  The former compares dev,ino,filename, while the latter
58580         would actually stat dirname(filename) when dev and ino were equal.
58581         * lib/hash-triple.c: Install <string.h>.
58582         (STREQ): Define.
58583         (triple_compare_ino_str): New function.
58584         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58585
58586 2007-09-28  Eric Blake  <ebb9@byu.net>
58587
58588         Enforce that AC_REPLACE_FUNCS files exist.
58589         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58590         override check for typos.
58591
58592         Fix test-closein on Solaris 10.
58593         * tests/test-closein.c (main): Don't assume stdin can be inherited
58594         closed on all systems.
58595         * tests/test-closein.sh: Likewise.
58596         Reported by Piotr Tarnowski.
58597
58598 2007-09-28  Jim Meyering  <jim@meyering.net>
58599
58600         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58601
58602 2007-09-27  Jim Meyering  <jim@meyering.net>
58603
58604         canonicalize: Avoid a false-positive cycle failure.
58605         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58606         Sort.  Remove cycle-check.
58607         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58608         not cycle-check.h.
58609         (seen_triple): New function.
58610         (canonicalize_filename_mode): Use it instead of cycle-check.
58611         * tests/test-canonicalize.c: Add a test for this bug.
58612         * tests/test-canonicalize.sh: Set up and run the test.
58613
58614         New module, file-set, from coreutils.
58615         * modules/file-set: Define it.
58616         * lib/file-set.c, lib/file-set.h: Implement.
58617
58618         New module, hash-triple, from coreutils.
58619         * modules/hash-triple: Define it.
58620         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58621
58622 2007-09-25  Eric Blake  <ebb9@byu.net>
58623
58624         Fix strerror on Interix.
58625         * lib/string_.h (strerror): Declare replacement.
58626         * doc/functions/strerror.texi (strerror): Document the Interix
58627         shortcoming.
58628         * modules/string (Makefile.am): Support new hooks.
58629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58630         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58631         gl_FUNC_STRERROR_SEPARATE.
58632         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58633         * lib/strerror.c (rpl_strerror): Provide replacement.
58634         * modules/strerror (Depends-on): Add string.
58635         (configure.ac): Detect use of module.
58636         * tests/test-strerror.c: New file.
58637         * modules/strerror-tests: New test module.
58638         * modules/argp (Depends-on): Add strerror.
58639         * modules/error (Depends-on): Likewise.
58640         Reported by Martin Koeppe.
58641
58642 2007-09-24  Bruno Haible  <bruno@clisp.org>
58643
58644         * README: Update git instructions.
58645
58646 2007-09-24  Eric Blake  <ebb9@byu.net>
58647
58648         Revert fpending breakage from 2007-09-08.
58649         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58650         __fpending.c.
58651
58652 2007-09-24  Jim Meyering  <jim@meyering.net>
58653
58654         filenamecat.c: Add a test.
58655         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58656         showing how the function works when DIR is the empty string.
58657
58658 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58659
58660         * tests/test-canonicalize.sh: Turn on executable bit.
58661
58662 2007-09-19  Eric Blake  <ebb9@byu.net>
58663
58664         * README: Update CVS instructions.
58665
58666 2007-09-18  Bruno Haible  <bruno@clisp.org>
58667
58668         * modules/areadlink: New file.
58669         * lib/areadlink.h (areadlink): New declaration.
58670         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58671
58672 2007-09-17  Jim Meyering  <jim@meyering.net>
58673
58674         * lib/savewd.c (ESTALE) [!defined]: Define.
58675         Reported to be required on Interix by Martin Koeppe.
58676
58677 2007-09-17  Bruno Haible  <bruno@clisp.org>
58678
58679         * gnulib-tool (func_version): Use $version.
58680
58681 2007-09-16  Bruno Haible  <bruno@clisp.org>
58682
58683         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58684         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58685         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58686         Reported by Greg Schafer <gschafer@zip.com.au>.
58687
58688 2007-09-15  Bruno Haible  <bruno@clisp.org>
58689
58690         * gnulib-tool (sed): Try a little harder to make bash understand the
58691         alias.
58692         Reported by Bruce Korb <bruce.korb@gmail.com>.
58693
58694 2007-09-13  Eric Blake  <ebb9@byu.net>
58695
58696         * ChangeLog: Remove conflict markers.
58697
58698 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58699
58700         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58701         Reported by Bruno Haible <bruno@clisp.org>.
58702
58703 2007-09-12  Bruno Haible  <bruno@clisp.org>
58704
58705         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58706         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58707         is not defined.
58708
58709 2007-09-12  Eric Blake  <ebb9@byu.net>
58710
58711         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58712         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58713         Autoconf definition.
58714         * modules/euidaccess (Depends-on): Add extensions, for
58715         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58716         * modules/fnmatch (Depends-on): Likewise.
58717         * modules/getaddrinfo (Depends-on): Likewise.
58718         * modules/getdelim (Depends-on): Likewise.
58719         * modules/getline (Depends-on): Likewise.
58720         * modules/getsubopt (Depends-on): Likewise.
58721         * modules/gettext (Depends-on): Likewise.
58722         * modules/group-member (Depends-on): Likewise.
58723         * modules/mbchar (Depends-on): Likewise.
58724         * modules/memmem (Depends-on): Likewise.
58725         * modules/mempcpy (Depends-on): Likewise.
58726         * modules/memrchr (Depends-on): Likewise.
58727         * modules/pagealign_alloc (Depends-on): Likewise.
58728         * modules/readutmp (Depends-on): Likewise.
58729         * modules/stpcpy (Depends-on): Likewise.
58730         * modules/stpncpy (Depends-on): Likewise.
58731         * modules/strchrnul (Depends-on): Likewise.
58732         * modules/strndup (Depends-on): Likewise.
58733         * modules/strsep (Depends-on): Likewise.
58734         * modules/strverscmp (Depends-on): Likewise.
58735         * modules/vasprintf (Depends-on): Likewise.
58736         * modules/wcwidth (Depends-on): Likewise.
58737         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58738         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58739         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58740         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58741         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58742         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58743         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58744         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58745         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58746         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58747         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58748         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58749         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58750         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58751         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58752         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58753         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58754         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58755         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58756         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58757         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58758         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58759         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58760         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58761         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58762         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58763         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58764         so that lock.m4 can be used in gettext without extensions module.
58765
58766 2007-09-11  Bruno Haible  <bruno@clisp.org>
58767
58768         * m4/isc-posix.m4: Remove file.
58769         Suggested by Eric Blake.
58770
58771 2007-09-11  Eric Blake  <ebb9@byu.net>
58772
58773         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58774
58775 2007-09-10  Bruno Haible  <bruno@clisp.org>
58776
58777         * posix-modules: Fix typo in error message.
58778         Reported by Matt <mkraai@beckman.com>.
58779
58780 2007-09-09  Bruno Haible  <bruno@clisp.org>
58781
58782         * doc/functions/getdelim.texi: Update list of platforms lacking the
58783         function.
58784         * doc/functions/getline.texi: Likewise.
58785
58786 2007-09-09  Jim Meyering  <jim@meyering.net>
58787
58788         * lib/hash.c (hash_initialize): Detect calloc failure.
58789         Reported by Bruno Haible.
58790
58791 2007-09-09  Bruno Haible  <bruno@clisp.org>
58792
58793         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58794         malloc or realloc fails.
58795
58796 2007-09-09  Bruno Haible  <bruno@clisp.org>
58797
58798         * modules/getcwd (Depends-on): Add malloc-posix.
58799         * modules/glob (Depends-on): Likewise.
58800         * modules/putenv (Depends-on): Likewise.
58801         * modules/strdup (Depends-on): Likewise.
58802         * modules/getdelim (Depends-on): Add realloc-posix.
58803         * modules/read-file (Depends-on): Likewise.
58804
58805 2007-09-09  Bruno Haible  <bruno@clisp.org>
58806
58807         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58808         (gl_FUNC_MALLOC_POSIX): Require it.
58809         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58810         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58811         * modules/realloc (Files): Add m4/malloc.m4.
58812         * modules/calloc (Files): Likewise.
58813
58814 2007-09-09  Bruno Haible  <bruno@clisp.org>
58815
58816         * modules/malloc-posix: New file.
58817         * modules/malloc (Depends-on): Add malloc-posix.
58818         * lib/malloc.c: Include errno.h.
58819         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58820         and a POSIX-compatible malloc into a single function. Set ENOMEM
58821         when returning NULL.
58822         * m4/malloc.m4: New file.
58823         * doc/functions/malloc.texi: Mention the malloc-posix module.
58824         * lib/stdlib_.h (malloc): New declaration.
58825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58826         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58827         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58828         and HAVE_MALLOC_POSIX.
58829
58830 2007-09-09  Bruno Haible  <bruno@clisp.org>
58831
58832         * modules/realloc-posix: New file.
58833         * modules/realloc (Depends-on): Add realloc-posix.
58834         * lib/realloc.c: Include errno.h.
58835         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58836         and a POSIX-compatible realloc into a single function. Set ENOMEM
58837         when returning NULL.
58838         * m4/realloc.m4: New file.
58839         * doc/functions/realloc.texi: Mention the realloc-posix module.
58840         * lib/stdlib_.h (realloc): New declaration.
58841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58842         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58843         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58844         and HAVE_REALLOC_POSIX.
58845
58846 2007-09-09  Bruno Haible  <bruno@clisp.org>
58847
58848         * modules/calloc-posix: New file.
58849         * modules/calloc (Depends-on): Add calloc-posix.
58850         * lib/calloc.c: Include errno.h.
58851         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58852         and a POSIX-compatible calloc into a single function. Set ENOMEM
58853         when returning NULL.
58854         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58855         * doc/functions/calloc.texi: Mention the calloc-posix module.
58856         * lib/stdlib_.h (calloc): New declaration.
58857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58858         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58859         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58860         and HAVE_CALLOC_POSIX.
58861
58862 2007-09-09  Bruno Haible  <bruno@clisp.org>
58863
58864         Allow for modules to show an arbitrary notice.
58865         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58866         * gnulib-tool: New option --extract-notice.
58867         (func_usage): Document it.
58868         (sed_extract_prog): Update.
58869         (func_get_notice): New function.
58870         (func_modules_notice): New function.
58871         (func_import, func_create_testdir): Invoke it.
58872         Suggested by Jim Meyering.
58873
58874 2007-09-09  Bruno Haible  <bruno@clisp.org>
58875
58876         * gnulib-tool: New options --verbose, --quiet.
58877         (func_usage): Document them.
58878         (verbose): New variable.
58879         (func_execute_command): New function.
58880         (func_import): Don't show the module list and the file list if
58881         $verbose < 0.
58882         (func_create_testdir): Likewise. Use func_execute_command.
58883         (func_create_megatestdir): Use func_execute_command.
58884
58885 2007-09-08  Bruno Haible  <bruno@clisp.org>
58886
58887         * gnulib-tool (func_import): Prefer rsync over wget when available,
58888         for fetching the PO files.
58889
58890 2007-09-08  Bruno Haible  <bruno@clisp.org>
58891
58892         * posix-modules: New file. Portions copied from gnulib-tool.
58893         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58894
58895 2007-09-08  Jim Meyering  <jim@meyering.net>
58896
58897         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58898         * lib/fpending.h: Rename from __fpending.h.
58899         * lib/fpending.c: Rename from __fpending.c.
58900         Include "fpending.h", not "__fpending.h".
58901         * lib/__fpending.h, lib/__fpending.c: Remove files.
58902         * modules/fpending (Files): Reflect new file names.
58903         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58904
58905 2007-09-08  Bruno Haible  <bruno@clisp.org>
58906
58907         * m4/inttypes-h.m4: Remove stub file.
58908
58909 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58910
58911         * doc/headers/stdint.texi: Discuss #include_next issue.
58912
58913 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58914
58915         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58916
58917 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58918
58919         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58920         in variable name.
58921
58922 2007-09-03  Jim Meyering  <jim@meyering.net>
58923
58924         New module: git-version-gen.
58925         * modules/git-version-gen: New file.
58926
58927         Import changes from coreutils for bootstrap script.
58928
58929         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58930
58931         bootstrap: uses rsync to download the .po files
58932         * build-aux/bootstrap (po_download_command_format): New global.
58933         (download_po_files): Use rsync.
58934         (update_po_files): Don't remove .po files after download,
58935         so future rsync runs can take advantage of the copies.
58936
58937         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58938
58939         Solve the unnecessary-.po-file-regeneration problem once and for all.
58940         * build-aux/bootstrap (download_po_files): New function, renamed from
58941         get_translations.  Now, downloads, but doesn't update LINGUAS.
58942         (update_po_files): New function.
58943
58944         bootstrap: Ignore more.
58945         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58946         uniwidth to e.g., lib/.gitignore.
58947         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58948
58949         * build-aux/bootstrap: New setting: vc_ignore.
58950         (insert_sorted_if_absent): Create $file if absent.
58951         Adapt to new, possibly empty, list: $vc_ignore.
58952
58953         bootstrap: generate more ignorable names
58954         * build-aux/bootstrap (slurp): When generating ignorable names,
58955         also map .sin to .sed, .gperf to .c, and .y to .c.
58956
58957 2007-09-03  Jim Meyering  <jim@meyering.net>
58958
58959         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58960         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58961
58962 2007-09-02  Bruno Haible  <bruno@clisp.org>
58963
58964         Fix mis-recognition of 'mcs' on QNX 6.
58965         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58966         output contains the string "Mono".
58967         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58968         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58969
58970 2007-09-01  Bruno Haible  <bruno@clisp.org>
58971
58972         Fix collision between uniwidth/* and linebreak modules.
58973         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58974         u32_width): Remove declarations.
58975         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58976         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58977         streq3, streq2, streq1, streq0): Remove functions.
58978         (STREQ): Remove macro.
58979         (is_cjk_encoding): Remove function.
58980         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58981         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58982         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58983         * NEWS: Document the change.
58984
58985 2007-09-01  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/streq.h: Add double-inclusion guard.
58988
58989 2007-09-01  Karl Berry  <karl@gnu.org>
58990
58991         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58992
58993 2007-08-28  Jim Meyering  <jim@meyering.net>
58994
58995         Rename mreadlink_with_size to areadlink_with_size.
58996         * NEWS: Document the change.
58997         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58998         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58999         * lib/mreadlink.h: Rename this to...
59000         * lib/areadlink.h: ...this.
59001         * modules/mreadlink-with-size: Rename this to...
59002         * modules/areadlink-with-size: ...this.
59003         * lib/canonicalize.c: Reflect the renaming.
59004         * modules/canonicalize: Likewise.
59005
59006 2007-08-26  Bruno Haible  <bruno@clisp.org>
59007
59008         * gnulib-tool (func_import): When deciding which files to remove,
59009         consider also dangling symbolic links.
59010         Reported by Eric Blake.
59011
59012 2007-08-26  Bruno Haible  <bruno@clisp.org>
59013
59014         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59015
59016 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59017
59018         * lib/readline.c: Don't include getline.h, the prototype is now
59019         found in stdio.h.
59020
59021 2007-08-23  Jim Meyering  <jim@meyering.net>
59022
59023         Getdelim touchup.
59024         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59025         around the funlockfile call, since funlockfile never sets errno.
59026         Don't set errno upon failed realloc.
59027
59028 2007-08-22  Eric Blake  <ebb9@byu.net>
59029
59030         Getline touchups.
59031         * lib/getdelim.c (getdelim): Revert regression that required *n to
59032         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59033         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59034         getdelim, rather than whether implementation is missing.
59035         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59036         * lib/stdio_.h (getline): Also declare if replacement is
59037         required.
59038         * doc/functions/getdelim.texi: New file.
59039         * doc/functions/getline.texi: Likewise.
59040         * doc/gnulib.texi (Function Substitutes): Add new files.
59041         Reported by Bruno Haible.
59042
59043 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59044
59045         * users.txt: Add Guile.
59046
59047 2007-08-22  Eric Blake  <ebb9@byu.net>
59048
59049         * tests/test-getdelim.c (main): Use remove, not unlink.
59050         * tests/test-getline.c (main): Likewise.
59051
59052         Move getline and getdelim into stdio.h, per POSIX 200x.
59053         * modules/getline (Files): Remove getline.h.
59054         (Depends-on): Add stdio.
59055         (configure.ac): Add module indicator.
59056         * modules/getdelim (Files): Remove getdelim.h.
59057         (Depends-on): Add stdio.
59058         (configure.ac): Add module indicator.
59059         * modules/stdio (Makefile.am): Work with new indicators.
59060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59061         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59062         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59063         * lib/getdelim.h: Delete.
59064         * lib/getline.h: Delete.
59065         * lib/stdio_.h (getdelim, getline): Declare.
59066         * modules/getdelim-tests: New module.
59067         * modules/getline-tests: Likewise.
59068         * tests/test-getdelim.c: New file.
59069         * tests/test-getline.c: Likewise.
59070         * NEWS: Document the change.
59071         * lib/getline.c: Update choice of header.
59072         * lib/csharpcomp.c: Likewise.
59073         * lib/getpass.c: Likewise.
59074         * lib/javacomp.c: Likewise.
59075         * lib/javaversion.c: Likewise.
59076         * lib/yesno.c: Likewise.
59077         * lib/getdelim.c: Likewise.
59078         (getdelim): Set errno on failure, and avoid memory leak.
59079
59080 2007-08-19  Bruno Haible  <bruno@clisp.org>
59081
59082         * modules/closein (Depends-on): Add freadahead.
59083         * lib/closein.c: Include freadahead.h.
59084         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59085         is zero.
59086
59087 2007-08-19  Bruno Haible  <bruno@clisp.org>
59088
59089         * modules/freadahead-tests: New file.
59090         * tests/test-freadahead.sh: New file.
59091         * tests/test-freadahead.c: New file.
59092
59093         * modules/freadahead: New file.
59094         * lib/freadahead.h: New file.
59095         * lib/freadahead.c: New file.
59096         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59097         fbufmode, fpurge, freadable, fwritable.
59098
59099 2007-08-19  Eric Blake  <ebb9@byu.net>
59100
59101         Test yesno in combination with closein.
59102         * lib/yesno.c (yesno): Document use of stdin.
59103         * modules/yesno-tests (Files): New module.
59104         * tests/test-yesno.c (main): New file.
59105         * tests/test-yesno.sh: Likewise.
59106
59107 2007-08-19  Bruno Haible  <bruno@clisp.org>
59108
59109         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59110         * lib/fseeko.c (rpl_fseeko): Likewise.
59111         * lib/fseterr.c (fseterr): Likewise.
59112
59113 2007-08-19  Bruno Haible  <bruno@clisp.org>
59114
59115         * tests/test-lseek.c (main): Disable a test for BeOS.
59116         * doc/functions/lseek.texi: Document the BeOS bug.
59117
59118 2007-08-19  Bruno Haible  <bruno@clisp.org>
59119             Eric Blake  <ebb9@byu.net>
59120
59121         * lib/lseek.c: Include <sys/stat.h>.
59122         (rpl_lseek): Add workaround code also for Unix platforms.
59123         Needed for BeOS.
59124         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59125         * doc/functions/lseek.texi: Document BeOS definiency.
59126
59127 2007-08-18  Bruno Haible  <bruno@clisp.org>
59128
59129         * modules/fstrcmp-tests: New file.
59130         * tests/test-fstrcmp.c: New file.
59131
59132 2007-08-18  Bruno Haible  <bruno@clisp.org>
59133
59134         * modules/fstrcmp: New file, from GNU gettext with modifications.
59135         * lib/fstrcmp.h: New file, from GNU gettext.
59136         * lib/fstrcmp.c: New file, from GNU gettext.
59137         * MODULES.html.sh (String handling): Add fstrcmp.
59138
59139 2007-08-18  Bruno Haible  <bruno@clisp.org>
59140
59141         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59142         'bool'.
59143         (diag, compareseq): Remove const from the ctxt argument.
59144         (USE_HEURISTIC): Undefine at the end.
59145
59146 2007-08-18  Jim Meyering  <jim@meyering.net>
59147
59148         New file: lib/idcache.h
59149         * NEWS: Mention the addition.
59150         * modules/idcache (Files): Add lib/idcache.h
59151         * lib/idcache.c: Include "idcache.h".
59152         Don't include <sys/types.h>.
59153         Add a FIXME comment.
59154         Move file-scoped "static" declarations to the top.
59155         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59156
59157 2007-08-17  Bruno Haible  <bruno@clisp.org>
59158         and Paul Eggert  <eggert@cs.ucla.edu>
59159
59160         * MODULES.html.sh: Add diffseq.
59161         * modules/diffseq: New file.
59162         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59163         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59164
59165 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59166
59167         Import changes from coreutils for bootstrap script.
59168
59169         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59170
59171         * build-aux/bootstrap (slurp): Work even in environments where
59172         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59173         current code does not slurp files whose names start with ".", and
59174         this looks like it might be a troublesome area.
59175
59176         2007-07-11  Jim Meyering  <jim@meyering.net>
59177
59178         If there's a GPL vN copyright comment, require that N == 3.
59179
59180         2007-07-08  Jim Meyering  <jim@meyering.net>
59181
59182         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59183         * build-aux/bootstrap (mam_template): Move definition out of loop.
59184
59185         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59186
59187         * build-aux/bootstrap (symlink_to_dir): Rename function from
59188         symlink_to_gnulib.  Add a directory parameter.  Update all
59189         callers.
59190         (cp_mark_as_generated): Also check for -- and link to -- files in
59191         gl/.
59192
59193         2007-07-08  Jim Meyering  <jim@meyering.net>
59194
59195         Adapt to deeper hierarchy in gnulib.
59196         * build-aux/bootstrap (symlink_to_dir): If the destination
59197         directory doesn't exist, create it. This is required at least for
59198         "lib/uniwidth/cjk.h".
59199
59200         2007-05-15  Jim Meyering  <jim@meyering.net>
59201
59202         * build-aux/bootstrap: Now that generated Makefile.am files
59203         are no longer under version control, they must be created at
59204         bootstrap time.
59205
59206 2007-08-14  Ben Pfaff  <blp@gnu.org>
59207
59208         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59209
59210 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59213         given the changes below.
59214         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59215         even on hosts that have padding bits beyond the supported 64.
59216
59217 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59218
59219         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59220         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59221         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59222         depends on it.
59223         (xstrtol_error): Remove.
59224         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59225         but with a different signature.
59226         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59227         * lib/xstrtol-error.c: Include exitfail.h.
59228         (xstrtol_fatal): New function, with a different signature from the
59229         old xstrtol_error, so that the caller need not worry about passing
59230         in an exit status, or about storage management of the option argument.
59231         (xstrtol_error): Now a static function.  Redo signature to
59232         implement xstrtol_fatal.  Output the correct number of hyphens in
59233         front of the option so that the caller need not worry about
59234         storage management.
59235         (N_): New macro.
59236         (_): Remove; not used now.
59237         * modules/xstrtol: Depend on getopt.
59238         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
59239         of old STRTOL_FATAL_ERROR macro.
59240         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
59241         of test program.
59242         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
59243         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
59244
59245 2007-08-08  Eric Blake  <ebb9@byu.net>
59246
59247         * lib/xstrtol-error.c: Add missing include.
59248
59249         Move xstrtol messages into gnulib domain, when --pobase is used.
59250         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
59251         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
59252         * modules/xstrtol (Files): Distribute new file.
59253         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
59254         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
59255         * tests/test-xstrtol.c: ...into new file.
59256         * tests/test-xstrtoul.c: Also test xstrtoul.
59257         * tests/test-xstrtoimax.c: Also test xstrtoimax.
59258         * tests/test-xstrtoumax.c: Also test xstrtoumax.
59259         * tests/test-xstrtol.sh: Drive the tests.
59260         * tests/test-xstrtoimax.sh: Likewise.
59261         * tests/test-xstrtoumax.sh: Likewise.
59262         * modules/xstrtol-tests: New module.
59263         * modules/xstrtoimax-tests: Likewise.
59264         * modules/xstrtoumax-tests: Likewise.
59265
59266 2007-08-08  Jim Meyering  <jim@meyering.net>
59267
59268         New function: mfile_name_concat.
59269         * lib/filenamecat.c (mfile_name_concat): New function, just like
59270         file_name_concat, but return NULL upon failure rather than exiting
59271         with a diagnostic.
59272         * lib/filenamecat.h: Declare it.
59273
59274 2007-08-07  Bruno Haible  <bruno@clisp.org>
59275
59276         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
59277         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
59278         warning from gcc.
59279         Reported by Eric Blake.
59280
59281 2007-08-07  Simon Josefsson  <simon@josefsson.org>
59282
59283         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
59284         * modules/crypto/arcfour (License): Likewise.
59285         * modules/crypto/des-tests (License): Likewise.
59286         * modules/crypto/gc-arctwo-tests (License): Likewise.
59287         * modules/crypto/gc-des-tests (License): Likewise.
59288         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
59289         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
59290         * modules/crypto/gc-md2-tests (License): Likewise.
59291         * modules/crypto/gc-md4-tests (License): Likewise.
59292         * modules/crypto/gc-md5-tests (License): Likewise.
59293         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
59294         * modules/crypto/gc-rijndael-tests (License): Likewise.
59295         * modules/crypto/gc-sha1-tests (License): Likewise.
59296         * modules/crypto/gc-tests (License): Likewise.
59297         * modules/crypto/hmac-md5 (License): Likewise.
59298         * modules/crypto/hmac-sha1 (License): Likewise.
59299         * modules/crypto/md2-tests (License): Likewise.
59300         * modules/crypto/md4-tests (License): Likewise.
59301         * modules/crypto/md5 (License): Likewise.
59302         * modules/crypto/rijndael (License): Likewise.
59303         * modules/crypto/sha1 (License): Likewise.
59304         * modules/memxor (License): Likewise.
59305
59306 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59307         and Bruno Haible  <bruno@clisp.org>
59308
59309         * NEWS: Describe interface changes to human, xstrtol.
59310         * lib/human.h: Include <xstrtol.h>.
59311         (human_options): Return enum strtol_error, not int.  Remove
59312         bool arg; take int * instead.
59313         * lib/human.c: Don't include "gettext.h".
59314         (_): Remove; no longer used.
59315         Don't include <xstrtol.h>, since human.h does it.
59316         (human_options): Adjust to abovementioned interface changes.
59317         Do not report error to stderr; that's now the caller's
59318         responsibility.
59319         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
59320         interface change.
59321         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
59322         Str, Argument_type_string.  All uses changed.  Put " argument"
59323         in diagnostics to make them clearer.  Change wording of suffix
59324         message for clarity.
59325         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
59326         Argument_type_string.
59327         (STRTOL_FATAL_WARN): Remove; no longer used.
59328         * modules/human (Depends-on): Remove gettext-h.
59329
59330 2007-08-06  Simon Josefsson  <simon@josefsson.org>
59331
59332         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
59333
59334 2007-07-31  Bruno Haible  <bruno@clisp.org>
59335
59336         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
59337         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
59338         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
59339
59340 2007-07-31  Bruno Haible  <bruno@clisp.org>
59341
59342         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
59343         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
59344
59345 2007-07-30  Bruno Haible  <bruno@clisp.org>
59346
59347         * modules/base64 (License): Use the synonymous term "LGPLv2+".
59348         * modules/c-ctype (License): Likewise.
59349         * modules/c-strcase (License): Likewise.
59350         * modules/check-version (License): Likewise.
59351         * modules/iconv (License): Likewise.
59352         * modules/iconv_open (License): Likewise.
59353         * modules/read-file (License): Likewise.
59354         * modules/striconv (License): Likewise.
59355         * modules/strverscmp (License): Likewise.
59356         * modules/vasprintf (License): Likewise.
59357         * modules/crypto/des (License): Likewise.
59358         * modules/crypto/gc (License): Likewise.
59359         * modules/crypto/gc-arcfour (License): Likewise.
59360         * modules/crypto/gc-arctwo (License): Likewise.
59361         * modules/crypto/gc-des (License): Likewise.
59362         * modules/crypto/gc-hmac-md5 (License): Likewise.
59363         * modules/crypto/gc-hmac-sha1 (License): Likewise.
59364         * modules/crypto/gc-md2 (License): Likewise.
59365         * modules/crypto/gc-md4 (License): Likewise.
59366         * modules/crypto/gc-md5 (License): Likewise.
59367         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59368         * modules/crypto/gc-random (License): Likewise.
59369         * modules/crypto/gc-rijndael (License): Likewise.
59370         * modules/crypto/gc-sha1 (License): Likewise.
59371         * modules/crypto/md2 (License): Likewise.
59372         * modules/crypto/md4 (License): Likewise.
59373
59374 2007-07-30  Jim Meyering  <jim@meyering.net>
59375
59376         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59377         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59378         it has valid stat data.  This bug would cause du not to count the
59379         sizes of inaccessible directories.
59380         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59381         in <http://bugzilla.redhat.com/250077>.
59382
59383 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59384             Bruno Haible  <bruno@clisp.org>
59385
59386         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
59387         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
59388         #include_next, gives a diagnostic about it, but reports no error in
59389         the exit code.
59390         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59391
59392 2007-07-24  Ben Pfaff  <blp@gnu.org>
59393
59394         Improve name: "count-one-bits" is better than "popcount".
59395         * MODULES.html.sh: Update name.
59396         * lib/popcount.h: Renamed lib/count-one-bits.h.
59397         (popcount): Renamed count_one_bits.
59398         (popcountl): Renamed count_one_bits_l.
59399         (popcountll): Renamed count_one_bits_ll.
59400         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59401         * modules/popcount: Renamed module/count-one-bits.
59402         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59403         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59404
59405 2007-07-23  Ben Pfaff  <blp@gnu.org>
59406
59407         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59408         better code generation, and add U to large constants to avoid
59409         warnings, in non-GCC case.
59410         Suggested by Bruno Haible.
59411
59412 2007-07-23  Ben Pfaff  <blp@gnu.org>
59413
59414         * lib/popcount.h: Use verify_true instead of if...abort.
59415         * modules/popcount: Depend on verify module.
59416         Suggested by Jim Meyering.
59417
59418 2007-07-23  Bruno Haible  <bruno@clisp.org>
59419
59420         * gnulib-tool (func_import): Create a .cvsignore file also when the
59421         directory is not yet in CVS but the toplevel directory is. When
59422         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59423         Reported by Karl Berry.
59424
59425 2007-07-22  Ben Pfaff  <blp@gnu.org>
59426
59427         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59428         case.
59429         Suggested by Eric Blake.
59430
59431 2007-07-22  Ben Pfaff  <blp@gnu.org>
59432
59433         New module: popcount.
59434         * MODULES.html.sh: Add popcount.
59435         * modules/popcount: New file.
59436         * modules/popcount-tests: New file.
59437         * tests/test-popcount.c: New file.
59438         * lib/popcount.h: New file.
59439         * m4/popcount.m4: New file.
59440
59441 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59442
59443         * build-aux/announce-gen: Update to GPLv3.
59444
59445         * build-aux/config.guess: Update from config.
59446
59447 2007-07-21  Bruno Haible  <bruno@clisp.org>
59448
59449         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59450         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59451
59452 2007-07-20  Jim Meyering  <jim@meyering.net>
59453
59454         * check-module: Diagnose a self-dependency.
59455
59456 2007-07-19  Bruno Haible  <bruno@clisp.org>
59457
59458         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59459         empty.
59460         Reported by Eric Blake.
59461
59462 2007-07-18  Bruno Haible  <bruno@clisp.org>
59463
59464         * gnulib-tool: New options --po-base, --po-domain.
59465         (func_usage): Document them.
59466         (pobase, po_domain): New variables.
59467         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59468         DEFAULT_TEXT_DOMAIN.
59469         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59470         (func_import): Consider pobase and po_domain. Create a po/ directory.
59471         (func_create_testdir): Set pobase and po_domain to empty.
59472         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59473         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59474
59475 2007-07-18  Bruno Haible  <bruno@clisp.org>
59476
59477         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59478         EXTRA_DIST augmentation for files in build-aux/.
59479
59480 2007-07-16  Bruno Haible  <bruno@clisp.org>
59481
59482         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59483         * modules/getdelim (License): Likewise.
59484
59485 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59486
59487         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59488         * modules/d-type (License): Likewise.
59489         * modules/extensions (License): Likewise.
59490         * modules/fnmatch (License): Likewise.
59491         * modules/fseeko (License): Likewise.
59492         * modules/getaddrinfo (License): Likewise.
59493         * modules/getline (License): Likewise.
59494         * modules/getlogin_r (License): Likewise.
59495         * modules/getpass (License): Likewise.
59496         * modules/gettimeofday (License): Likewise.
59497         * modules/glob (License): Likewise.
59498         * modules/inet_ntop (License): Likewise.
59499         * modules/malloc (License): Likewise.
59500         * modules/malloca (License): Likewise.
59501         * modules/memmem (License): Likewise.
59502         * modules/mempcpy (License): Likewise.
59503         * modules/memset (License): Likewise.
59504         * modules/minmax (License): Likewise.
59505         * modules/mktime (License): Likewise.
59506         * modules/netinet_in (License): Likewise.
59507         * modules/pathmax (License): Likewise.
59508         * modules/poll (License): Likewise.
59509         * modules/regex (License): Likewise.
59510         * modules/snprintf (License): Likewise.
59511         * modules/stdbool (License): Likewise.
59512         * modules/stdint (License): Likewise.
59513         * modules/stdio (License): Likewise.
59514         * modules/strcase (License): Likewise.
59515         * modules/strcasestr (License): Likewise.
59516         * modules/strdup (License): Likewise.
59517         * modules/string (License): Likewise.
59518         * modules/strndup (License): Likewise.
59519         * modules/strnlen (License): Likewise.
59520         * modules/strpbrk (License): Likewise.
59521         * modules/strptime (License): Likewise.
59522         * modules/strsep (License): Likewise.
59523         * modules/sys_select (License): Likewise.
59524         * modules/sys_socket (License): Likewise.
59525         * modules/sys_stat (License): Likewise.
59526         * modules/sys_time (License): Likewise.
59527         * modules/time (License): Likewise.
59528         * modules/time_r (License): Likewise.
59529         * modules/timegm (License): Likewise.
59530         * modules/unistd (License): Likewise.
59531         * modules/vsnprintf (License): Likewise.
59532         * modules/wctype (License): Likewise.
59533
59534 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59535
59536         * modules/argz (License): LGPLv2+.
59537
59538 2007-07-15  Karl Berry  <karl@gnu.org>
59539
59540         * doc/gnulib.texi: revise node structure per new fdl.texi.
59541
59542 2007-07-14  Bruno Haible  <bruno@clisp.org>
59543
59544         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59545         the output file.
59546         * lib/uniname/uninames.h: Regenerated.
59547
59548 2007-07-14  Karl Berry  <karl@gnu.org>
59549
59550         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59551         omitting sectioning and index commands.
59552
59553 2007-07-13  Bruno Haible  <bruno@clisp.org>
59554
59555         New gnulib-tool option --more-symlinks.
59556         * gnulib-tool (func_usage): Document --more-symlinks.
59557         (do_copyrights): New variable.
59558         Recognize option --more-symlinks.
59559         (func_import): Don't add a copyright notice transform to
59560         sed_transform_lib_file if do_copyrights is empty.
59561
59562 2007-07-13  Bruno Haible  <bruno@clisp.org>
59563
59564         * lib/vasnprintf.c (decimal_point_char): Define also if
59565         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59566         && !NEED_PRINTF_DIRECTIVE_A.
59567         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59568         Gary V. Vaughan <gary@gnu.org>.
59569
59570 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59571
59572         * lib/inttypes_.h: Undo previous change, since it was fixed
59573         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59574
59575 2007-07-13  Bruno Haible  <bruno@clisp.org>
59576
59577         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59578         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59579
59580 2007-07-13  Jim Meyering  <jim@meyering.net>
59581
59582         df: Don't fail for Tru64's "file-on-file mount".
59583         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59584         so we fall through and use statfs instead.  Details here:
59585         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59586         Reported by Albert Chin.
59587
59588 2007-07-13  Bruno Haible  <bruno@clisp.org>
59589
59590         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59591         * modules/configmake (License): Likewise.
59592         * modules/gettext (License): Likewise.
59593         * modules/gettext-h (License): Likewise.
59594         * modules/include_next (License): Likewise.
59595         * modules/link-warning (License): Likewise.
59596         * modules/localcharset (License): Likewise.
59597         * modules/localename (License): Likewise.
59598         * modules/lock (License): Likewise.
59599         * modules/relocatable-lib-lgpl (License): Likewise.
59600         * modules/size_max (License): Likewise.
59601         * modules/vasnprintf (License): Likewise.
59602         * modules/wchar (License): Likewise.
59603         * modules/xsize (License): Likewise.
59604
59605 2007-07-13  Bruno Haible  <bruno@clisp.org>
59606
59607         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59608         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59609
59610 2007-07-12  Bruno Haible  <bruno@clisp.org>
59611
59612         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59613         in the modules files.
59614
59615 2007-07-11  Karl Berry  <karl@gnu.org>
59616
59617         * MODULES.html.sh (func_module): use
59618          sed -e '\|^'"${includefile}"'$|d'
59619          instead of /.../d, to avoid errors on $includefile's containing /.
59620
59621 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59622
59623         * gnulib-tool (func_import): Avoid duplication of --avoid
59624         statements
59625         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59626         names to `_' in variable names.
59627
59628 2007-07-10  Eric Blake  <ebb9@byu.net>
59629
59630         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59631         * NEWS: Document this change.
59632
59633 2007-07-08  Bruno Haible  <bruno@clisp.org>
59634
59635         Update to Unicode 5.0.
59636         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59637         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59638         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59639         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59640         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59641         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59642         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59643         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59644         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59645         U+10A3F, U+1D242..U+1D244.
59646         (nonspacing_table_ind): Update.
59647         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59648         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59649
59650 2007-07-08  Bruno Haible  <bruno@clisp.org>
59651
59652         Update to Unicode 5.0.
59653         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59654         code transform. Extend the name index field of unicode_name_to_code and
59655         unicode_code_to_name from 16 to 24 bits.
59656         * lib/uniname/uniname.c (unicode_character_name,
59657         unicode_name_character): Add the range 0x12xxx to the code transform.
59658         * lib/uniname/uninames.h: Regenerated.
59659         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59660
59661 2007-07-07  Bruno Haible  <bruno@clisp.org>
59662
59663         * modules/wcwidth-tests: New file.
59664         * tests/test-wcwidth.c: New file.
59665
59666         Work around MacOS X wcwidth() bug.
59667         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59668         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59669         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59670         original wcwidth in non-UTF-8 locales.
59671         * modules/wcwidth (Depends-on): Add localcharset, streq,
59672         uniwidth/width.
59673         * doc/functions/wcwidth.texi: Update.
59674
59675 2007-07-07  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59678         (wcwidth): New declaration.
59679         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59680         macros.
59681         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59682         here. Prepare for creating <wchar.h> unconditionally.
59683         * modules/wchar (Depends-on): Add link-warning.
59684         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59685         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59686         * lib/wcwidth.h: Remove file.
59687         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59688         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59689         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59690         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59691         (Include): Replace wcwidth.h with <wchar.h>.
59692         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59693         * lib/mbchar.h: Don't include wcwidth.h.
59694         * lib/mbswidth.c: Likewise.
59695         * NEWS: Mention the change.
59696
59697 2007-07-07  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59700         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59701         definition with an external declaration.
59702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59703         defined as a function. Remove AC_C_INLINE requirement.
59704         * modules/wcwidth (Files): Add lib/wcwidth.c.
59705         (Makefile.am): Remove redundant statement.
59706
59707 2007-07-07  Bruno Haible  <bruno@clisp.org>
59708
59709         * MODULES.html.sh (Unicode string functions): Add the new modules.
59710
59711         * tests/uniwidth/test-u32-strwidth.c: New file.
59712         * modules/uniwidth/u32-strwidth-tests: New file.
59713
59714         * lib/uniwidth/u32-strwidth.c: New file.
59715         * modules/uniwidth/u32-strwidth: New file.
59716
59717         * tests/uniwidth/test-u16-strwidth.c: New file.
59718         * modules/uniwidth/u16-strwidth-tests: New file.
59719
59720         * lib/uniwidth/u16-strwidth.c: New file.
59721         * modules/uniwidth/u16-strwidth: New file.
59722
59723         * tests/uniwidth/test-u8-strwidth.c: New file.
59724         * modules/uniwidth/u8-strwidth-tests: New file.
59725
59726         * lib/uniwidth/u8-strwidth.c: New file.
59727         * modules/uniwidth/u8-strwidth: New file.
59728
59729         * tests/uniwidth/test-u32-width.c: New file.
59730         * modules/uniwidth/u32-width-tests: New file.
59731
59732         * lib/uniwidth/u32-width.c: New file.
59733         * modules/uniwidth/u32-width: New file.
59734
59735         * tests/uniwidth/test-u16-width.c: New file.
59736         * modules/uniwidth/u16-width-tests: New file.
59737
59738         * lib/uniwidth/u16-width.c: New file.
59739         * modules/uniwidth/u16-width: New file.
59740
59741         * tests/uniwidth/test-u8-width.c: New file.
59742         * modules/uniwidth/u8-width-tests: New file.
59743
59744         * lib/uniwidth/u8-width.c: New file.
59745         * modules/uniwidth/u8-width: New file.
59746
59747         * tests/uniwidth/test-uc_width.c: New file.
59748         * modules/uniwidth/width-tests: New file.
59749
59750         * lib/uniwidth/width.c: New file, from GNU libiconv.
59751         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59752         * modules/uniwidth/width: New file.
59753
59754         * lib/uniwidth.h: New file, from GNU libiconv.
59755         * modules/uniwidth/base: New file.
59756
59757 2007-07-07  Bruno Haible  <bruno@clisp.org>
59758
59759         * lib/uniname.h: New file, from GNU gettext.
59760         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59761         * lib/uniname/uninames.h: New file, from GNU gettext.
59762         * lib/uniname/uniname.c: New file, from GNU gettext.
59763         * tests/uniname/test-uninames.sh: New file.
59764         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59765         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59766         * modules/uniname/base: New file.
59767         * modules/uniname/uniname: New file.
59768         * modules/uniname/uniname-tests: New file.
59769         * MODULES.html.sh (Unicode string functions): Add the new modules.
59770
59771 2007-07-06  Bruno Haible  <bruno@clisp.org>
59772
59773         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59774
59775 2007-07-06  Bruno Haible  <bruno@clisp.org>
59776
59777         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59778         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59779         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59780         include <sys/time.h>.
59781         Reported by Eric Blake.
59782
59783 2007-07-06  Eric Blake  <ebb9@byu.net>
59784
59785         Fix testing canonicalize on cygwin.
59786         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59787         Revert patch from 2007-06-19.
59788         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59789         canonicalize module is also in use.
59790         * tests/test-canonicalize.c: New file.
59791         * tests/test-canonicalize.sh: Likewise.
59792         * modules/canonicalize-tests: Likewise.
59793
59794 2007-07-06  Jim Meyering  <jim@meyering.net>
59795
59796         * lib/getugroups.c (getugroups): Detect getgrent failure.
59797         Adjust comment to reflect reality: this function may return -1.
59798
59799 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59800
59801         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59802         the new TP address.
59803         (usage): Fix typo
59804         (gnulib_mk): New variable.
59805
59806 2007-07-05  Jim Meyering  <jim@meyering.net>
59807
59808         Don't let endgrent clobber errno, no matter how improbable.
59809         * lib/getugroups.c (getugroups): Save and restore errno around
59810         endgrent call.
59811
59812         Close the group DB even when failing with 2^31 or more members.
59813         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59814
59815 2007-07-04  Jim Meyering  <jim@meyering.net>
59816
59817         * lib/getugroups.h: New file.
59818         * lib/getugroups.c: Include "getugroups.h".
59819         Remove uses of "register" keyword.
59820         Move local variable, "cp", down into scope where used.
59821         Give "username" parameter the "const" attribute.
59822         * modules/getugroups (Files): Add lib/getugroups.h
59823
59824 2007-07-04  Karl Berry  <karl@gnu.org>
59825
59826         * MODULES.html.sh (func_all_modules): Complete rename of
59827         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59828
59829 2007-07-02  Bruno Haible  <bruno@clisp.org>
59830
59831         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59832         mode, when inttypes.h comes from gnulib.
59833         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59834
59835 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59836
59837         * NEWS: Mention lgpl module name change.
59838
59839         * modules/lgpl-2.1: Renamed from lgpl.
59840
59841         * NEWS: Mention gpl module name change.
59842
59843         * modules/gpl-3.0: New file, based on gpl-2.0.
59844
59845         * modules/gpl-2.0: Renamed from gpl.
59846
59847         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59848         doc/gpl-2.0.texi.
59849
59850 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59851
59852         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59853         #define __STDC_LIMIT_MACROS temporarily while including
59854         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59855         Problem reported by Joel E. Denny in
59856         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59857
59858 2007-07-01  Bruno Haible  <bruno@clisp.org>
59859
59860         * lib/unistdio.h: New file.
59861         * lib/unistdio/u-asnprintf.h: New file.
59862         * lib/unistdio/u-asprintf.h: New file.
59863         * lib/unistdio/u-printf-args.c: New file.
59864         * lib/unistdio/u-printf-args.h: New file.
59865         * lib/unistdio/u-printf-parse.h: New file.
59866         * lib/unistdio/u-snprintf.h: New file.
59867         * lib/unistdio/u-sprintf.h: New file.
59868         * lib/unistdio/u-vasprintf.h: New file.
59869         * lib/unistdio/u-vsnprintf.h: New file.
59870         * lib/unistdio/u-vsprintf.h: New file.
59871         * lib/unistdio/ulc-asnprintf.c: New file.
59872         * lib/unistdio/ulc-asprintf.c: New file.
59873         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59874         * lib/unistdio/ulc-printf-parse.c: New file.
59875         * lib/unistdio/ulc-snprintf.c: New file.
59876         * lib/unistdio/ulc-sprintf.c: New file.
59877         * lib/unistdio/ulc-vasnprintf.c: New file.
59878         * lib/unistdio/ulc-vasprintf.c: New file.
59879         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59880         * lib/unistdio/ulc-vsnprintf.c: New file.
59881         * lib/unistdio/ulc-vsprintf.c: New file.
59882         * lib/unistdio/u8-asnprintf.c: New file.
59883         * lib/unistdio/u8-asprintf.c: New file.
59884         * lib/unistdio/u8-printf-parse.c: New file.
59885         * lib/unistdio/u8-snprintf.c: New file.
59886         * lib/unistdio/u8-sprintf.c: New file.
59887         * lib/unistdio/u8-vasnprintf.c: New file.
59888         * lib/unistdio/u8-vasprintf.c: New file.
59889         * lib/unistdio/u8-vsnprintf.c: New file.
59890         * lib/unistdio/u8-vsprintf.c: New file.
59891         * lib/unistdio/u8-u8-asnprintf.c: New file.
59892         * lib/unistdio/u8-u8-asprintf.c: New file.
59893         * lib/unistdio/u8-u8-snprintf.c: New file.
59894         * lib/unistdio/u8-u8-sprintf.c: New file.
59895         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59896         * lib/unistdio/u8-u8-vasprintf.c: New file.
59897         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59898         * lib/unistdio/u8-u8-vsprintf.c: New file.
59899         * lib/unistdio/u16-asnprintf.c: New file.
59900         * lib/unistdio/u16-asprintf.c: New file.
59901         * lib/unistdio/u16-printf-parse.c: New file.
59902         * lib/unistdio/u16-snprintf.c: New file.
59903         * lib/unistdio/u16-sprintf.c: New file.
59904         * lib/unistdio/u16-vasnprintf.c: New file.
59905         * lib/unistdio/u16-vasprintf.c: New file.
59906         * lib/unistdio/u16-vsnprintf.c: New file.
59907         * lib/unistdio/u16-vsprintf.c: New file.
59908         * lib/unistdio/u16-u16-asnprintf.c: New file.
59909         * lib/unistdio/u16-u16-asprintf.c: New file.
59910         * lib/unistdio/u16-u16-snprintf.c: New file.
59911         * lib/unistdio/u16-u16-sprintf.c: New file.
59912         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59913         * lib/unistdio/u16-u16-vasprintf.c: New file.
59914         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59915         * lib/unistdio/u16-u16-vsprintf.c: New file.
59916         * lib/unistdio/u32-asnprintf.c: New file.
59917         * lib/unistdio/u32-asprintf.c: New file.
59918         * lib/unistdio/u32-printf-parse.c: New file.
59919         * lib/unistdio/u32-snprintf.c: New file.
59920         * lib/unistdio/u32-sprintf.c: New file.
59921         * lib/unistdio/u32-vasnprintf.c: New file.
59922         * lib/unistdio/u32-vasprintf.c: New file.
59923         * lib/unistdio/u32-vsnprintf.c: New file.
59924         * lib/unistdio/u32-vsprintf.c: New file.
59925         * lib/unistdio/u32-u32-asnprintf.c: New file.
59926         * lib/unistdio/u32-u32-asprintf.c: New file.
59927         * lib/unistdio/u32-u32-snprintf.c: New file.
59928         * lib/unistdio/u32-u32-sprintf.c: New file.
59929         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59930         * lib/unistdio/u32-u32-vasprintf.c: New file.
59931         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59932         * lib/unistdio/u32-u32-vsprintf.c: New file.
59933         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59934         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59935         * tests/unistdio/test-ulc-printf1.h: New file.
59936         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59937         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59938         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59939         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59940         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59941         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59942         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59943         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59944         * tests/unistdio/test-u8-asnprintf1.c: New file.
59945         * tests/unistdio/test-u8-asnprintf1.h: New file.
59946         * tests/unistdio/test-u8-printf1.h: New file.
59947         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59948         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59949         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59950         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59951         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59952         * tests/unistdio/test-u8-vasprintf1.c: New file.
59953         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59954         * tests/unistdio/test-u8-vsprintf1.c: New file.
59955         * tests/unistdio/test-u16-asnprintf1.c: New file.
59956         * tests/unistdio/test-u16-asnprintf1.h: New file.
59957         * tests/unistdio/test-u16-printf1.h: New file.
59958         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59959         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59960         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59961         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59962         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59963         * tests/unistdio/test-u16-vasprintf1.c: New file.
59964         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59965         * tests/unistdio/test-u16-vsprintf1.c: New file.
59966         * tests/unistdio/test-u32-asnprintf1.c: New file.
59967         * tests/unistdio/test-u32-asnprintf1.h: New file.
59968         * tests/unistdio/test-u32-printf1.h: New file.
59969         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59970         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59971         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59972         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59973         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59974         * tests/unistdio/test-u32-vasprintf1.c: New file.
59975         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59976         * tests/unistdio/test-u32-vsprintf1.c: New file.
59977         * modules/unistdio/base: New file.
59978         * modules/unistdio/u-printf-args: New file.
59979         * modules/unistdio/ulc-asnprintf: New file.
59980         * modules/unistdio/ulc-asprintf: New file.
59981         * modules/unistdio/ulc-fprintf: New file.
59982         * modules/unistdio/ulc-printf-parse: New file.
59983         * modules/unistdio/ulc-snprintf: New file.
59984         * modules/unistdio/ulc-sprintf: New file.
59985         * modules/unistdio/ulc-vasnprintf: New file.
59986         * modules/unistdio/ulc-vasprintf: New file.
59987         * modules/unistdio/ulc-vfprintf: New file.
59988         * modules/unistdio/ulc-vsnprintf: New file.
59989         * modules/unistdio/ulc-vsprintf: New file.
59990         * modules/unistdio/u8-asnprintf: New file.
59991         * modules/unistdio/u8-asprintf: New file.
59992         * modules/unistdio/u8-printf-parse: New file.
59993         * modules/unistdio/u8-snprintf: New file.
59994         * modules/unistdio/u8-sprintf: New file.
59995         * modules/unistdio/u8-vasnprintf: New file.
59996         * modules/unistdio/u8-vasprintf: New file.
59997         * modules/unistdio/u8-vsnprintf: New file.
59998         * modules/unistdio/u8-vsprintf: New file.
59999         * modules/unistdio/u8-u8-asnprintf: New file.
60000         * modules/unistdio/u8-u8-asprintf: New file.
60001         * modules/unistdio/u8-u8-snprintf: New file.
60002         * modules/unistdio/u8-u8-sprintf: New file.
60003         * modules/unistdio/u8-u8-vasnprintf: New file.
60004         * modules/unistdio/u8-u8-vasprintf: New file.
60005         * modules/unistdio/u8-u8-vsnprintf: New file.
60006         * modules/unistdio/u8-u8-vsprintf: New file.
60007         * modules/unistdio/u16-asnprintf: New file.
60008         * modules/unistdio/u16-asprintf: New file.
60009         * modules/unistdio/u16-printf-parse: New file.
60010         * modules/unistdio/u16-snprintf: New file.
60011         * modules/unistdio/u16-sprintf: New file.
60012         * modules/unistdio/u16-vasnprintf: New file.
60013         * modules/unistdio/u16-vasprintf: New file.
60014         * modules/unistdio/u16-vsnprintf: New file.
60015         * modules/unistdio/u16-vsprintf: New file.
60016         * modules/unistdio/u16-u16-asnprintf: New file.
60017         * modules/unistdio/u16-u16-asprintf: New file.
60018         * modules/unistdio/u16-u16-snprintf: New file.
60019         * modules/unistdio/u16-u16-sprintf: New file.
60020         * modules/unistdio/u16-u16-vasnprintf: New file.
60021         * modules/unistdio/u16-u16-vasprintf: New file.
60022         * modules/unistdio/u16-u16-vsnprintf: New file.
60023         * modules/unistdio/u16-u16-vsprintf: New file.
60024         * modules/unistdio/u32-asnprintf: New file.
60025         * modules/unistdio/u32-asprintf: New file.
60026         * modules/unistdio/u32-printf-parse: New file.
60027         * modules/unistdio/u32-snprintf: New file.
60028         * modules/unistdio/u32-sprintf: New file.
60029         * modules/unistdio/u32-vasnprintf: New file.
60030         * modules/unistdio/u32-vasprintf: New file.
60031         * modules/unistdio/u32-vsnprintf: New file.
60032         * modules/unistdio/u32-vsprintf: New file.
60033         * modules/unistdio/u32-u32-asnprintf: New file.
60034         * modules/unistdio/u32-u32-asprintf: New file.
60035         * modules/unistdio/u32-u32-snprintf: New file.
60036         * modules/unistdio/u32-u32-sprintf: New file.
60037         * modules/unistdio/u32-u32-vasnprintf: New file.
60038         * modules/unistdio/u32-u32-vasprintf: New file.
60039         * modules/unistdio/u32-u32-vsnprintf: New file.
60040         * modules/unistdio/u32-u32-vsprintf: New file.
60041         * modules/unistdio/ulc-asnprintf-tests: New file.
60042         * modules/unistdio/ulc-vasnprintf-tests: New file.
60043         * modules/unistdio/ulc-vasprintf-tests: New file.
60044         * modules/unistdio/ulc-vsnprintf-tests: New file.
60045         * modules/unistdio/ulc-vsprintf-tests: New file.
60046         * modules/unistdio/u8-asnprintf-tests: New file.
60047         * modules/unistdio/u8-vasnprintf-tests: New file.
60048         * modules/unistdio/u8-vasprintf-tests: New file.
60049         * modules/unistdio/u8-vsnprintf-tests: New file.
60050         * modules/unistdio/u8-vsprintf-tests: New file.
60051         * modules/unistdio/u16-asnprintf-tests: New file.
60052         * modules/unistdio/u16-vasnprintf-tests: New file.
60053         * modules/unistdio/u16-vasprintf-tests: New file.
60054         * modules/unistdio/u16-vsnprintf-tests: New file.
60055         * modules/unistdio/u16-vsprintf-tests: New file.
60056         * modules/unistdio/u32-asnprintf-tests: New file.
60057         * modules/unistdio/u32-vasnprintf-tests: New file.
60058         * modules/unistdio/u32-vasprintf-tests: New file.
60059         * modules/unistdio/u32-vsnprintf-tests: New file.
60060         * modules/unistdio/u32-vsprintf-tests: New file.
60061         * MODULES.html.sh (Unicode string functions): Add the new modules.
60062
60063 2007-07-01  Bruno Haible  <bruno@clisp.org>
60064
60065         * lib/sprintf.c (sprintf): Limit the available length estimation,
60066         to avoid address wraparound.
60067         * lib/vsprintf.c (vsprintf): Likewise.
60068         * modules/sprintf-posix (Dependencies): Add stdint.
60069         * modules/vsprintf-posix (Dependencies): Likewise.
60070
60071 2007-07-01  Bruno Haible  <bruno@clisp.org>
60072
60073         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60074         Windows PATH as well. Conservative double-quoting. Comments.
60075
60076 2007-07-01  Bruno Haible  <bruno@clisp.org>
60077             Eric Blake  <ebb9@byu.net>
60078             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60079
60080         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60081         empty components in $PATH, denoting '.'.
60082
60083 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60084
60085         * gnulib-tool: Fix indentation.
60086         (func_create_megatestdir): Likewise.
60087         Report by Bruno Haible.
60088
60089 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60090
60091         Sync from Automake.
60092         * build-aux/gnupload: Fix shell portability issues with for loops.
60093         Report by Karl Berry.
60094
60095 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60096
60097         * build-aux/maint.mk (POURL): Use translationproject.org.
60098
60099 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60100             Bruno Haible  <bruno@clisp.org>
60101
60102         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60103         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60104         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60105         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60106         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60107
60108 2007-06-27  Bruno Haible  <bruno@clisp.org>
60109
60110         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60111         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60112
60113 2007-06-26  Karl Berry  <karl@gnu.org>
60114
60115         * MODULES.html.sh: remove xreadlink-with-size.
60116
60117 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60118
60119         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60120         method that I hope also handles the double-include problem noted
60121         by Bruno Haible in
60122         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60123
60124 2007-06-23  Bruno Haible  <bruno@clisp.org>
60125
60126         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60127         Don't let the 'mostlyclean' target fail if the last subdirectory could
60128         not be removed.
60129         Reported by Karl Berry.
60130
60131 2007-06-23  Bruno Haible  <bruno@clisp.org>
60132
60133         * gnulib-tool (echo): Add a speedier workaround for ksh.
60134         * tests/test-echo.sh: Likewise.
60135
60136 2007-06-23  Bruno Haible  <bruno@clisp.org>
60137
60138         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60139         * tests/test-echo.sh: Likewise.
60140
60141 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60142
60143         * gnulib-tool (IFS): Initialize early, so we don't set it to
60144         empty later.
60145         (self_abspathname): Rewrite algorithm to set it, reindent.
60146         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60147         (func_create_megatestdir): Merge some sed scripts.
60148
60149 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60150
60151         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60152         exposed by Sun Studio 11 cc on Solaris 8.
60153
60154 2007-06-22  Bruno Haible  <bruno@clisp.org>
60155
60156         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60157         backslashes.
60158         * tests/test-echo.sh: New file.
60159
60160 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60161
60162         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60163         simplify `sed_replace_build_aux' scripts, they are portable but
60164         echoing them with `echo' is not.
60165         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60166
60167 2007-06-21  Karl Berry  <karl@gnu.org>
60168
60169         * config/srclist.txt: guess we can't handle the licenses via
60170         srclist at the moment.
60171
60172 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60173
60174         * MODULES.html.sh: Add include_next.
60175         * modules/include_next: New file.
60176
60177 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60178
60179         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60180         INCLUDE_NEXT.
60181         (gl_CHECK_NEXT_HEADERS): New macro.
60182         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60183         the obsolescent gl_ABSOLUTE_HEADER.
60184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60185         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60186         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60187         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60188         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60189         * m4/math_h.m4 (gl_MATH_H): Likewise.
60190         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60191         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60192         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60193         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60194         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60195         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60196         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60197         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60198         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60200         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60201         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60202         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60203         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60204         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60205         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60206         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60207         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60208         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60209         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60210         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60211         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60212         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60213         * lib/float_.h: Likewise.
60214         * lib/inttypes_.h: Likewise.
60215         * lib/math_.h: Likewise.
60216         * lib/search_.h: Likewise.
60217         * lib/signal_.h: Likewise.
60218         * lib/stdint_.h: Likewise.
60219         * lib/stdio_.h: Likewise.
60220         * lib/stdlib_.h: Likewise.
60221         * lib/string_.h: Likewise.
60222         * lib/sys_stat_.h: Likewise.
60223         * lib/sys_time_.h: Likewise.
60224         * lib/time_.h: Likewise.
60225         * lib/unistd_.h: Likewise.
60226         * lib/wchar_.h: Likewise.
60227         * lib/wctype_.h: Likewise.
60228         * lib/dirent_.h: Likewise.
60229         * lib/iconv_.h: Likewise.
60230         * lib/locale_.h: Likewise.
60231         * lib/netinet_in_.h: Likewise.
60232         * lib/sys_select_.h: Likewise.
60233         * lib/sys_socket_.h: Likewise.
60234         * lib/sysexits_.h: Likewise.
60235         * modules/fcntl (Depends-on): Depend on include_next, not
60236         absolute_header.
60237         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
60238         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
60239         * modules/fchdir: Likewise.
60240         * modules/float: Likewise.
60241         * modules/iconv_open: Likewise.
60242         * modules/inttypes: Likewise.
60243         * modules/locale: Likewise.
60244         * modules/math: Likewise.
60245         * modules/netinet_in: Likewise.
60246         * modules/search: Likewise.
60247         * modules/signal: Likewise.
60248         * modules/stdint: Likewise.
60249         * modules/stdio: Likewise.
60250         * modules/stdlib: Likewise.
60251         * modules/string: Likewise.
60252         * modules/sys_select: Likewise.
60253         * modules/sys_socket: Likewise.
60254         * modules/sys_stat: Likewise.
60255         * modules/sys_time: Likewise.
60256         * modules/sysexits: Likewise.
60257         * modules/time: Likewise.
60258         * modules/unistd: Likewise.
60259         * modules/wchar: Likewise.
60260         * modules/wctype: Likewise.
60261         * modules/sys_stat: Change maintainer to "all".
60262         * modules/unistd: Likewise.
60263
60264 2007-06-20  Karl Berry  <karl@gnu.org>
60265
60266         * config/srclist.txt: track www changes in license files.
60267
60268 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
60269
60270         * build-aux/bootstrap: Remove stray dot.
60271         Make sure build_aux settings are honored when linking
60272         gnulib_extra_files.
60273
60274 2007-06-19  Eric Blake  <ebb9@byu.net>
60275
60276         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60277         Allow compilation on cygwin.
60278
60279 2007-06-19  Jim Meyering  <jim@meyering.net>
60280
60281         xreadlink-with-size: Remove module.  No longer used.
60282         Ex-callers now use xreadlink or mreadlink-with-size.
60283         * modules/xreadlink-with-size: Remove module.
60284         * lib/xreadlink-with-size.c: Remove file.
60285         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
60286         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
60287         just before the function definition *is* accurate.
60288
60289         Eliminate one way canonicalize_filename_mode could exit.
60290         * lib/canonicalize.c (canonicalize_filename_mode):
60291         Use mreadlink_with_size, not xreadlink_with_size.
60292
60293 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
60294
60295         Detect porting problems to FreeBSD/arm, which has time_t wider than
60296         long int.  Original problem reported for GNU diff by Xin Li in
60297         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
60298         * modules/getdate (Depends-on): Add intprops, verify.
60299         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
60300         is an integer type no wider than long int.
60301
60302 2007-06-18  Jim Meyering  <jim@meyering.net>
60303
60304         New module: mreadlink-with-size.
60305         * MODULES.html.sh: Add mreadlink-with-size.
60306         * modules/mreadlink-with-size: New module
60307         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
60308         not xreadlink-with-size.
60309         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
60310
60311 2007-06-16  Bruno Haible  <bruno@clisp.org>
60312
60313         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
60314         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
60315         Reported by Gary V. Vaughan <gary@gnu.org>.
60316
60317 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
60318
60319         Revamp lchown so that it lives in unistd.h where it belongs.
60320         * lib/lchown.h: Remove.
60321         * lib/dirchownmod.c: Don't include lib/lchown.h.
60322         * lib/fchownat.c: Likewise.
60323         * lib/openat.c: Likewise.
60324         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
60325         does not follow symlinks.
60326         (EOPNOTSUPP): Define if not defined.
60327         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
60328         is defined to 0.
60329         (lchown): New decl.
60330         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
60331         Do not check for lchown decl.
60332         Set REPLACE_LCHOWN.
60333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
60334         REPLACE_LCHOWN.
60335         * modules/chown: Make it clear it follows symlinks.
60336         * modules/lchown: Make it clear it doesn't follow symlinks.
60337         (Files): Remove lib/lchown.h
60338         (Depends-on): Add unistd.
60339         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
60340         (Include): Include <unistd.h>, not "lchown.h".
60341         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
60342         REPLACE_LCHOWN.
60343
60344 2007-06-15  Jim Meyering  <jim@meyering.net>
60345
60346         Change license (GPL to LGPL) of fsusage and dependents.
60347         * modules/fsusage (License): Change to LGPL.
60348         * modules/full-read (License): Likewise.
60349         * modules/full-write (License): Likewise.
60350         * modules/safe-read (License): Likewise.
60351         * modules/safe-write (License): Likewise.
60352
60353 2007-06-14  Ben Pfaff  <blp@gnu.org>
60354
60355         Missing part of allocsa -> malloca transition.
60356         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
60357         gl_MALLOCA.
60358
60359 2007-06-12  Bruno Haible  <bruno@clisp.org>
60360
60361         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
60362         to ia64, x86_64, i386.
60363         Reported by Eric Blake.
60364
60365 2007-06-12  Bruno Haible  <bruno@clisp.org>
60366
60367         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60368         cross-compiling to x86_64.
60369
60370 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60371
60372         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60373         glitch reported by Ralf Wildenhues in
60374         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60375
60376         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60377         Vin Shelton.
60378
60379 2007-06-11  Bruno Haible  <bruno@clisp.org>
60380
60381         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60382         replacement string.
60383         Reported by Eric Blake.
60384
60385 2007-06-10  Bruno Haible  <bruno@clisp.org>
60386
60387         Prepare vasnprintf code for use with Unicode strings.
60388         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60389         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60390         TYPE_U32_STRING.
60391         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60392         a_u32_string variants.
60393         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60394         * lib/printf-args.c: Don't include config.h and the specification
60395         header if PRINTF_FETCHARGS is already defined.
60396         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60397         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60398         TYPE_U16_STRING, TYPE_U32_STRING.
60399         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60400         u16_directive, u16_directives, u32_directive, u32_directives): New
60401         types.
60402         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60403         New declarations.
60404         * lib/printf-parse.c: Don't include config.h and the specification
60405         header if PRINTF_PARSE is already defined. Eliminate the set of
60406         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60407         them now. Include c-ctype.h.
60408         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60409         directive and CHAR_T_ONLY_ASCII.
60410         * lib/vasnprintf.c: Don't include config.h and the specification header
60411         if VASNPRINTF is already defined.
60412         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60413         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60414         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60415         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60416         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60417         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60418         code accordingly.
60419         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60420         pad_ourselves also in this case, with the 'c' and 's' directives, and
60421         with a different notion of "width".
60422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60423
60424 2007-06-10  Bruno Haible  <bruno@clisp.org>
60425
60426         * modules/unistr/u32-mbsnlen: New file.
60427         * lib/unistr/u32-mbsnlen.c: New file.
60428
60429         * modules/unistr/u16-mbsnlen: New file.
60430         * lib/unistr/u16-mbsnlen.c: New file.
60431
60432         * modules/unistr/u8-mbsnlen: New file.
60433         * lib/unistr/u8-mbsnlen.c: New file.
60434
60435         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60436         declarations.
60437
60438 2007-06-10  Bruno Haible  <bruno@clisp.org>
60439
60440         * lib/string_.h (mbsnlen): New declaration.
60441         * lib/mbsnlen.c: New file.
60442         * m4/mbsnlen.m4: New file.
60443         * modules/mbsnlen: New file.
60444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60445         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60446         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60447
60448 2007-06-10  Bruno Haible  <bruno@clisp.org>
60449
60450         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60451
60452 2007-06-10  Bruno Haible  <bruno@clisp.org>
60453
60454         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60455         * lib/mbuiter.h: Likewise.
60456
60457 2007-06-10  Bruno Haible  <bruno@clisp.org>
60458
60459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60460         declaration.
60461
60462 2007-06-10  Karl Berry  <karl@gnu.org>
60463
60464         * config/srclist.txt: remove gettext entries, Bruno prefers
60465         to update individually.
60466
60467 2007-06-10  Bruno Haible  <bruno@clisp.org>
60468
60469         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60470         'maxlen'. Ensure only length + width bytes are allocated, not
60471         length + 1 + width.
60472
60473 2007-06-09  Bruno Haible  <bruno@clisp.org>
60474
60475         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60476         (CHAR_T): Remove macro.
60477         (VASNPRINTF): Update.
60478
60479 2007-06-09  Bruno Haible  <bruno@clisp.org>
60480
60481         * MODULES.html.sh (Unicode string functions): Add the new modules.
60482
60483         * modules/uniconv/u32-conv-to-enc: New file.
60484         * lib/uniconv/u32-conv-to-enc.c: New file.
60485         * modules/uniconv/u32-conv-to-enc-tests: New file.
60486         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60487
60488         * modules/uniconv/u16-conv-to-enc: New file.
60489         * lib/uniconv/u16-conv-to-enc.c: New file.
60490         * lib/uniconv/u-conv-to-enc.h: New file.
60491         * modules/uniconv/u16-conv-to-enc-tests: New file.
60492         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60493
60494         * modules/uniconv/u8-conv-to-enc: New file.
60495         * lib/uniconv/u8-conv-to-enc.c: New file.
60496         * modules/uniconv/u8-conv-to-enc-tests: New file.
60497         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60498
60499         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60500         u32_conv_to_encoding): New declarations.
60501
60502 2007-06-09  Bruno Haible  <bruno@clisp.org>
60503
60504         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60505
60506 2007-06-09  Bruno Haible  <bruno@clisp.org>
60507
60508         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60509         * modules/malloca: Renamed from modules/allocsa, updated.
60510         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60511         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60512         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60513         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60514         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60515         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60516         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60517         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60518         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60519         * modules/c-strcasestr (Depends-on): Update.
60520         * lib/c-strcasestr.c: Update.
60521         * modules/c-strstr (Depends-on): Update.
60522         * lib/c-strstr.c: Update.
60523         * modules/canonicalize-lgpl (Depends-on): Update.
60524         * lib/canonicalize-lgpl.c: Update.
60525         * modules/clean-temp (Depends-on): Update.
60526         * lib/clean-temp.c: Update.
60527         * modules/csharpcomp (Depends-on): Update.
60528         * lib/csharpcomp.c: Update.
60529         * modules/csharpexec (Depends-on): Update.
60530         * lib/csharpexec.c: Update.
60531         * modules/javacomp (Depends-on): Update.
60532         * lib/javacomp.c: Update.
60533         * modules/javaexec (Depends-on): Update.
60534         * lib/javaexec.c: Update.
60535         * modules/mbscasestr (Depends-on): Update.
60536         * lib/mbscasestr.c: Update.
60537         * modules/mbsstr (Depends-on): Update.
60538         * lib/mbsstr.c: Update.
60539         * modules/setenv (Depends-on): Update.
60540         * lib/setenv.c: Update.
60541         * modules/strcasestr (Depends-on): Update.
60542         * lib/strcasestr.c: Update.
60543         * modules/striconveha (Depends-on): Update.
60544         * lib/striconveha.c: Update.
60545         * modules/relocatable-prog-wrapper (Files): Update.
60546         * lib/relocwrapper.c: Update.
60547         * build-aux/install-reloc: Update.
60548         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60549
60550 2007-06-08  Bruno Haible  <bruno@clisp.org>
60551
60552         Port to uClibc.
60553         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60554         * lib/fpurge.c (fpurge): Likewise.
60555         * lib/freading.c (freading): Likewise.
60556         * lib/fseeko.c (rpl_fseeko): Likewise.
60557         * lib/fseterr.c (fseterr): Likewise.
60558         * lib/fwriting.c (fwriting): Likewise.
60559         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60560
60561 2007-06-08  Bruno Haible  <bruno@clisp.org>
60562
60563         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60564         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60565         * modules/gettext (Files): Add m4/intlmacosx.m4.
60566
60567 2007-06-07  Bruno Haible  <bruno@clisp.org>
60568
60569         * modules/localename-tests: New file.
60570         * tests/test-localename.c: New file.
60571
60572         New module 'localename'.
60573         * lib/localename.h: New file.
60574         * lib/localename.c: New file, from GNU gettext.
60575         * m4/localename.m4: New file.
60576         * modules/localename: New file.
60577
60578 2007-06-07  Bruno Haible  <bruno@clisp.org>
60579
60580         Work around the lack of <wchar.h> on some builds of uClibc.
60581         * doc/headers/wchar.texi: Update.
60582         * lib/wchar_.h: Include <wchar.h> only if it exists.
60583         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60584         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60585         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60586         doesn't exist.
60587         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60588         * modules/mbfile (Depends-on): Add wchar.
60589         * modules/mbiter (Depends-on): Likewise.
60590         * modules/mbuiter (Depends-on): Likewise.
60591         Reported by Simon Josefsson.
60592
60593 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60594
60595         Work around problem reported by Steven M. Schweda in
60596         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60597         Tru64 5.1B with the Compaq compiler environment installed declares
60598         an 'isblank' function but does not define it in the C library.
60599         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60600         * lib/regex_internal.h (isblank): Likewise.
60601         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60602         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60603
60604 2007-06-05  Bruno Haible  <bruno@clisp.org>
60605
60606         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60607         ia64.
60608         * modules/printf-safe: New file.
60609         * modules/fprintf-posix (Depends-on): Add printf-safe.
60610         * modules/printf-posix (Depends-on): Likewise.
60611         * modules/snprintf-posix (Depends-on): Likewise.
60612         * modules/sprintf-posix (Depends-on): Likewise.
60613         * modules/vasnprintf-posix (Depends-on): Likewise.
60614         * modules/vasprintf-posix (Depends-on): Likewise.
60615         * modules/vfprintf-posix (Depends-on): Likewise.
60616         * modules/vprintf-posix (Depends-on): Likewise.
60617         * modules/vsnprintf-posix (Depends-on): Likewise.
60618         * modules/vsprintf-posix (Depends-on): Likewise.
60619         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60620         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60621         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60622         "no" on i386, x86_64, ia64.
60623         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60624         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60625         on i386, x86_64, ia64.
60626         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60627         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60628         on i386, x86_64, ia64.
60629         * tests/test-vasnprintf-posix.c: Include float.h.
60630         (LDBL80_WORDS): New macro.
60631         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60632         on i386, x86_64, ia64.
60633         * tests/test-vasprintf-posix.c: Include float.h.
60634         (LDBL80_WORDS): New macro.
60635         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60636         on i386, x86_64, ia64.
60637         * tests/test-snprintf-posix.c: Include float.h.
60638         * tests/test-sprintf-posix.c: Likewise.
60639         * tests/test-vsnprintf-posix.c: Likewise.
60640         * tests/test-vsprintf-posix.c: Likewise.
60641
60642 2007-06-05  Bruno Haible  <bruno@clisp.org>
60643
60644         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60645         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60646         non-IEEE numbers on i386, x86_64, ia64.
60647         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60648         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60649         * tests/test-isnanl.h: Include float.h.
60650         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60651
60652 2007-06-05  Bruno Haible  <bruno@clisp.org>
60653
60654         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60655         also the %a / %A. Handle the %a / %A code before this extra handling.
60656
60657 2007-06-05  Bruno Haible  <bruno@clisp.org>
60658
60659         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60660         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60661
60662 2007-06-05  Bruno Haible  <bruno@clisp.org>
60663
60664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60665         typo in variable name.
60666
60667 2007-06-05  Eric Blake  <ebb9@byu.net>
60668
60669         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60670         Reported by Simon Josefsson.
60671
60672 2007-06-04  Bruno Haible  <bruno@clisp.org>
60673
60674         Avoid test failures on some PowerPC platforms.
60675         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60676         Define differently for PowerPC.
60677         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60678         Reported by Gary V. Vaughan <gary@gnu.org>.
60679
60680 2007-06-02  Bruno Haible  <bruno@clisp.org>
60681
60682         Fix test-stdint failure on FreeBSD/ia64.
60683         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60684         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60685         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60686         * doc/headers/stdint.texi: Update.
60687
60688 2007-06-01  Bruno Haible  <bruno@clisp.org>
60689
60690         * tests/test-binary-io.c (main): Pass a third argument to open().
60691         Reported by Gary V. Vaughan <gary@gnu.org>.
60692
60693 2007-06-01  Bruno Haible  <bruno@clisp.org>
60694
60695         * doc/functions/frexpl.texi: Update for mingw.
60696
60697 2007-06-01  Bruno Haible  <bruno@clisp.org>
60698
60699         * tests/test-lseek.c (main): Disable test of errno for invalid third
60700         argument.
60701         * doc/functions/lseek.texi: Update.
60702         Reported by Gary V. Vaughan <gary@gnu.org>.
60703
60704 2007-05-28  Bruno Haible  <bruno@clisp.org>
60705
60706         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60707
60708 2007-05-31  Eric Blake  <ebb9@byu.net>
60709
60710         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60711         cross compiling.
60712
60713 2007-05-30  Eric Blake  <ebb9@byu.net>
60714         and Bruno Haible  <bruno@clisp.org>
60715
60716         Work around mingw test failures exposed by m4-1.4.9b.
60717         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60718         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60719         moment.
60720
60721 2007-05-30  Bruno Haible  <bruno@clisp.org>
60722
60723         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60724         assuming that they are closed. Needed on HP-UX 11.
60725
60726 2007-05-29  Bruno Haible  <bruno@clisp.org>
60727
60728         Fix a problem with #include_next.
60729         * lib/dirent_.h: Split the double-inclusion guard.
60730         * lib/fcntl_.h: Likewise.
60731         * lib/float_.h: Likewise.
60732         * lib/iconv_.h: Likewise.
60733         * lib/inttypes_.h: Likewise.
60734         * lib/locale_.h: Likewise.
60735         * lib/math_.h: Likewise.
60736         * lib/netinet_in_.h: Likewise.
60737         * lib/search_.h: Likewise.
60738         * lib/signal_.h: Likewise.
60739         * lib/stdint_.h: Likewise.
60740         * lib/stdio_.h: Likewise.
60741         * lib/stdlib_.h: Likewise.
60742         * lib/string_.h: Likewise.
60743         * lib/sys_select_.h: Likewise.
60744         * lib/sys_socket_.h: Likewise.
60745         * lib/sys_stat_.h: Likewise.
60746         * lib/sys_time_.h: Likewise.
60747         * lib/sysexits_.h: Likewise.
60748         * lib/time_.h: Likewise.
60749         * lib/unistd_.h: Likewise.
60750         * lib/wchar_.h: Likewise.
60751         * lib/wctype_.h: Likewise.
60752
60753 2007-05-29  Bruno Haible  <bruno@clisp.org>
60754
60755         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60756         for the moment.
60757
60758 2007-05-29  Bruno Haible  <bruno@clisp.org>
60759
60760         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60761         invocation.
60762         Reported by Eric Blake.
60763
60764 2007-05-29  Bruno Haible  <bruno@clisp.org>
60765
60766         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60767         compiling case.
60768
60769 2007-05-29  Eric Blake  <ebb9@byu.net>
60770             Bruno Haible  <bruno@clisp.org>
60771
60772         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60773         cross compiles.
60774
60775 2007-05-28  Eric Blake  <ebb9@byu.net>
60776
60777         * modules/closein-tests (test_closein_LDADD): Support test on
60778         cygwin with libtool.
60779
60780 2007-05-28  Bruno Haible  <bruno@clisp.org>
60781
60782         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60783         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60784         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60785         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60786         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60787         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60788         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60789         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60790         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60791
60792 2007-05-28  Eric Blake  <ebb9@byu.net>
60793
60794         Unconditionally include <config.h> in unit tests.
60795         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60796         * tests/test-allocsa.c, tests/test-arcfour.c,
60797         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60798         tests/test-array_list.c, tests/test-array_oset.c,
60799         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60800         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60801         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60802         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60803         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60804         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60805         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60806         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60807         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60808         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60809         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60810         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60811         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60812         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60813         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60814         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60815         test-md5.c, test-memmem.c, test-printf-posix.c,
60816         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60817         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60818         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60819         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60820         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60821         test-vasnprintf-posix2.c, test-vasnprintf.c,
60822         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60823         test-vfprintf-posix.c, test-vprintf-posix.c,
60824         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60825         test-xvasprintf.c: Likewise.
60826
60827 2007-05-28  Bruno Haible  <bruno@clisp.org>
60828
60829         * gnulib-tool (func_import): Remember the --with-tests command-line
60830         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60831         Reported by Eric Blake.
60832
60833 2007-05-28  Bruno Haible  <bruno@clisp.org>
60834
60835         * modules/ftell-tests: New file.
60836         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60837         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60838
60839         * lib/ftell.c: New file.
60840         * modules/ftell: New file.
60841         * m4/ftell.m4: New file.
60842         * doc/functions/ftell.texi: Update.
60843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60844         REPLACE_FTELL.
60845         * lib/stdio_.h (rpl_ftell): New declaration.
60846         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60847         REPLACE_FTELL.
60848
60849 2007-05-28  Eric Blake  <ebb9@byu.net>
60850
60851         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60852
60853 2007-05-28  Bruno Haible  <bruno@clisp.org>
60854
60855         * modules/fseek-tests: New file.
60856         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60857         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60858
60859         * lib/fseek.c: New file.
60860         * modules/fseek: New file.
60861         * m4/fseek.m4: New file.
60862         * doc/functions/fseek.texi: Update.
60863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60864         REPLACE_FSEEK.
60865         * lib/stdio_.h (rpl_fseek): New declaration.
60866         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60867         REPLACE_FSEEK.
60868
60869 2007-05-28  Bruno Haible  <bruno@clisp.org>
60870
60871         * lib/stdio_.h (fflush): More comments.
60872
60873 2007-05-28  Bruno Haible  <bruno@clisp.org>
60874
60875         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60876         runtime test.
60877
60878 2007-05-28  Eric Blake  <ebb9@byu.net>
60879
60880         Improve lseek module.
60881         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60882         * lib/unistd_.h (lseek): Scale back link warning message.
60883         * tests/test-lseek.c: Beef up test.
60884         * tests/test-lseek.sh: Exercise more facets of lseek.
60885         Reported by Bruno Haible.
60886
60887 2007-05-28  Bruno Haible  <bruno@clisp.org>
60888
60889         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60890         to define.
60891
60892 2007-05-27  Bruno Haible  <bruno@clisp.org>
60893
60894         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60895
60896 2007-05-27  Bruno Haible  <bruno@clisp.org>
60897
60898         * modules/openmp: New file.
60899         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60900         Noah Misch.
60901
60902 2007-05-26  Bruno Haible  <bruno@clisp.org>
60903
60904         * modules/chdir-long (Depends-on): Add fchdir.
60905         * modules/chdir-safer (Depends-on): Likewise.
60906         * modules/fts (Depends-on): Likewise.
60907         * modules/fts-lgpl (Depends-on): Likewise.
60908         * modules/openat (Depends-on): Likewise.
60909         * modules/savewd (Depends-on): Likewise.
60910
60911 2007-05-24  Eric Blake  <ebb9@byu.net>
60912
60913         Fix lseek on mingw.
60914         * modules/lseek: New module.
60915         * m4/lseek.m4: New file.
60916         * lib/lseek.c: New file.
60917         * modules/lseek-tests: New file.
60918         * tests/test-lseek.c: New file.
60919         * tests/test-lseek.sh: New file.
60920         * MODULES.html.sh: Document lseek module.
60921         * modules/fflush (Depends-on): Add lseek, fseeko.
60922         * modules/fseeko (Depends-on): Likewise.
60923         * modules/ftello (Depends-on): Likewise.
60924         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60925         broken.
60926         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60927         broken.
60928         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60929         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60930         * lib/ftello.c (rpl_ftello): Likewise.
60931         * tests/test-fseeko.c (main): Test this.
60932         * tests/test-fseeko.sh: Likewise.
60933         * tests/test-ftello.c (main): Likewise.
60934         * tests/test-ftello.sh: Likewise.
60935         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60936         implies replacing fseek.
60937         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60938         HAVE_FTELLO.
60939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60940         * modules/unistd (Makefile.am): Likewise.
60941         * lib/unistd_.h (lseek): Declare a replacement.
60942         * doc/functions/lseek.texi (lseek): Document this fix.
60943         * doc/functions/fseek.texi (fseek): Likewise.
60944         * doc/functions/ftell.texi (ftell): Likewise.
60945
60946 2007-05-24  Bruno Haible  <bruno@clisp.org>
60947
60948         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60949         in the printed representation of a NaN.
60950         * tests/test-vasprintf-posix.c (test_function): Likewise.
60951         * tests/test-snprintf-posix.h (test_function): Likewise.
60952         * tests/test-sprintf-posix.h (test_function): Likewise.
60953         Reported by Eric Blake.
60954
60955 2007-05-23  Eric Blake  <ebb9@byu.net>
60956
60957         Fix fseeko/ftello on cygwin 1.5.24.
60958         * doc/functions/fseeko.texi (fseeko): Document the fix.
60959         * doc/functions/ftello.texi (ftello): Document the fix.
60960         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60961         * doc/functions/stdout.text (stdout): New file.
60962         * doc/functions/stderr.text (stderr): New file.
60963         * doc/gnulib.texi (Function Substitutes): Use new files.
60964         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60965         prior to 1.7.0.
60966         * tests/test-ftello.c (main): Likewise for ftello.
60967         * tests/test-fseeko.sh: New file.
60968         * tests/test-ftello.sh: New file.
60969         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60970         with seekable stdin.
60971         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60972         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60973         (gl_REPLACE_FSEEKO): New macro.
60974         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60975         * modules/fseeko (Files): Distribute fseeko.c.
60976         * modules/ftello (Files): Distribute ftello.c.
60977         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60978         mode.
60979         * lib/ftello.c (rpl_ftello): New file.
60980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60981         fseeko, ftello.
60982         (gl_STDIN_LARGE_OFFSET): New macro.
60983         * modules/stdio (Makefile.am): Perform the replacement.
60984         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60985
60986 2007-05-23  Bruno Haible  <bruno@clisp.org>
60987
60988         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60989         GNULIB_POSIXCHECK is defined.
60990
60991 2007-05-21  Bruno Haible  <bruno@clisp.org>
60992
60993         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60994         Check also the output for NaN arguments. When cross-compiling, guess
60995         no on IRIX.
60996         * lib/vasnprintf.c: Update comments.
60997         * tests/test-vasnprintf-posix.c (strisnan): New function.
60998         (test_function): Use it.
60999         * tests/test-vasprintf-posix.c (strisnan): New function.
61000         (test_function): Use it.
61001         * tests/test-snprintf-posix.h (strisnan): New function.
61002         (test_function): Use it.
61003         * tests/test-sprintf-posix.h (strisnan): New function.
61004         (test_function): Use it.
61005         Reported by Eric Blake.
61006
61007 2007-05-20  Bruno Haible  <bruno@clisp.org>
61008
61009         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61010         numbers that fails on BeOS.
61011         * doc/functions/frexpl.texi: Update.
61012
61013 2007-05-20  Jim Meyering  <jim@meyering.net>
61014
61015         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61016         forced upon us by glibc-2.6.
61017
61018 2007-05-20  Bruno Haible  <bruno@clisp.org>
61019
61020         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61021         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61022         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61023         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61024         NEED_PRINTF_INFINITE.
61025         (is_infinitel): New function.
61026         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61028         gl_PREREQ_VASNPRINTF_INFINITE.
61029         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61030         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61031         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61032         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61033         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61034         gl_PREREQ_VASNPRINTF_INFINITE.
61035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61036         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61037         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61038         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61039         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61040         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61041         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61042         * doc/functions/fprintf.texi: Update.
61043         * doc/functions/printf.texi: Update.
61044         * doc/functions/snprintf.texi: Update.
61045         * doc/functions/sprintf.texi: Update.
61046         * doc/functions/vfprintf.texi: Update.
61047         * doc/functions/vprintf.texi: Update.
61048         * doc/functions/vsnprintf.texi: Update.
61049         * doc/functions/vsprintf.texi: Update.
61050
61051 2007-05-20  Bruno Haible  <bruno@clisp.org>
61052
61053         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61054         was not found in libc.
61055         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61056
61057 2007-05-20  Bruno Haible  <bruno@clisp.org>
61058
61059         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61060         printed as "-nan" instead of "nan".
61061         * tests/test-vasprintf-posix.c (test_function): Likewise.
61062         * tests/test-snprintf-posix.h (test_function): Likewise.
61063         * tests/test-sprintf-posix.h (test_function): Likewise.
61064         Needed for HP-UX 11.
61065
61066 2007-05-20  Jim Meyering  <jim@meyering.net>
61067
61068         Fix buggy test for the fchownat-deref bug.
61069         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61070         symlink required for the run-test.  Without it, this test would
61071         always declare that fchownat doesn't work, and client code would
61072         unnecessarily use the replacement function with fixed libc.
61073         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61074         Reported by Greg Schafer.
61075
61076 2007-05-19  Bruno Haible  <bruno@clisp.org>
61077
61078         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61079         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61080         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61081         Needed for IRIX 6.5 and Solaris 2.5.1.
61082
61083 2007-05-19  Bruno Haible  <bruno@clisp.org>
61084
61085         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61086         (test_function): Skip tests involving -0.0 on platforms where
61087         -0.0 = 0.0.
61088         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61089         (test_function): Skip tests involving -0.0 on platforms where
61090         -0.0 = 0.0.
61091         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61092         (test_function): Skip tests involving -0.0 on platforms where
61093         -0.0 = 0.0.
61094         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61095         (test_function): Skip tests involving -0.0 on platforms where
61096         -0.0 = 0.0.
61097         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61098         tests.
61099         * tests/test-printf-posix.h (test_function): Likewise.
61100         * tests/test-printf-posix.output: Remove all -0.0 related results.
61101         Needed for IRIX 6.5.
61102
61103 2007-05-19  Bruno Haible  <bruno@clisp.org>
61104
61105         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61106         printed as "nan0x7fffffff" instead of "nan".
61107         * tests/test-vasprintf-posix.c (test_function): Likewise.
61108         * tests/test-snprintf-posix.h (test_function): Likewise.
61109         * tests/test-sprintf-posix.h (test_function): Likewise.
61110         * tests/test-fprintf-posix.h (NaN): Remove macro.
61111         (test_function): Remove all NaN related tests.
61112         * tests/test-printf-posix.h (NaN): Remove macro.
61113         (test_function): Remove all NaN related tests.
61114         * tests/test-printf-posix.output: Remove all NaN related results.
61115         Needed for IRIX 6.5.
61116
61117 2007-05-19  Bruno Haible  <bruno@clisp.org>
61118
61119         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61121
61122 2007-05-19  Bruno Haible  <bruno@clisp.org>
61123
61124         * lib/float_.h: New file.
61125         * m4/float_h.m4: New file.
61126         * modules/float: New file.
61127         * modules/isnanl (Dependencies): Add float.
61128         * modules/isnanl-nolibm (Dependencies): Likewise.
61129         * modules/mathl (Dependencies): Likewise.
61130         * modules/printf-frexpl (Dependencies): Likewise.
61131         * modules/signbit (Dependencies): Likewise.
61132         * modules/vasnprintf (Dependencies): Likewise.
61133         * doc/headers/float.texi: Update.
61134
61135 2007-05-19  Jim Meyering  <jim@meyering.net>
61136
61137         * lib/utimens.c (gl_futimens): Rename from futimens,
61138         now that glibc-2.6 declares futimens.
61139         * lib/utimens.h: Likewise.
61140
61141 2007-05-19  Bruno Haible  <bruno@clisp.org>
61142
61143         Avoid test failures on mingw.
61144         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61145         * tests/test-printf-posix.sh: Likewise.
61146         * tests/test-vfprintf-posix.sh: Likewise.
61147         * tests/test-vprintf-posix.sh: Likewise.
61148
61149 2007-05-19  Bruno Haible  <bruno@clisp.org>
61150
61151         Fix *printf result for NaN, Inf, -0.0 on mingw.
61152         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61153         * lib/vasnprintf.c: Include math.h and isnan.h.
61154         (is_infinite_or_zero): New function.
61155         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61156         values in the %f, %F, %e, %E, %g, %G directives.
61157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61158         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61159         gl_PRINTF_INFINITE and test its result. Invoke
61160         gl_PREREQ_VASNPRINTF_INFINITE.
61161         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61162         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61163         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61168         * doc/functions/fprintf.texi: Update.
61169         * doc/functions/printf.texi: Update.
61170         * doc/functions/snprintf.texi: Update.
61171         * doc/functions/sprintf.texi: Update.
61172         * doc/functions/vfprintf.texi: Update.
61173         * doc/functions/vprintf.texi: Update.
61174         * doc/functions/vsnprintf.texi: Update.
61175         * doc/functions/vsprintf.texi: Update.
61176
61177 2007-05-19  Bruno Haible  <bruno@clisp.org>
61178
61179         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61180         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61181         Instead of multiplying with 10^k, set extra_zeroes to k.
61182         (scale10_round_long_double): Remove function.
61183
61184 2007-05-18  Bruno Haible  <bruno@clisp.org>
61185
61186         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61187         introduced on 2007-05-06.
61188
61189 2007-05-18  Bruno Haible  <bruno@clisp.org>
61190
61191         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61192         %g directives.
61193         * tests/test-vasprintf-posix.c (test_function): Likewise.
61194         * tests/test-snprintf-posix.h (test_function): Likewise.
61195         * tests/test-sprintf-posix.h (test_function): Likewise.
61196
61197 2007-05-18  Bruno Haible  <bruno@clisp.org>
61198
61199         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61200         (strmatch): New function.
61201         (test_function): Test the %f directive on numbers of various exponents.
61202         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61203         (strmatch): New function.
61204         (test_function): Test the %f directive on numbers of various exponents.
61205         * tests/test-snprintf-posix.h (strmatch): New function.
61206         (test_function): Test the %f directive on numbers of various exponents.
61207         * tests/test-sprintf-posix.h (strmatch): New function.
61208         (test_function): Test the %f directive on numbers of various exponents.
61209         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61210         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61211         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61212         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61213
61214 2007-05-18  Bruno Haible  <bruno@clisp.org>
61215
61216         Add support for 'long double' number output.
61217         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61218         * lib/vasnprintf.c: Include math.h and float+.h.
61219         (mp_limb_t): New type.
61220         (GMP_LIMB_BITS): New macro.
61221         (mp_twolimb_t): New type.
61222         (GMP_TWOLIMB_BITS): New macro.
61223         (mpn_t): New type.
61224         (multiply, divide, convert_to_decimal, decode_long_double,
61225         scale10_round_long_double, scale10_round_decimal_long_double,
61226         floorlog10l): New functions.
61227         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61228         for the %f, %F, %e, %E, %g, %G directives.
61229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61230         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61231         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61232         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
61233         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61240         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
61241         * modules/snprintf-posix (Depends-on): Likewise.
61242         * modules/sprintf-posix (Depends-on): Likewise.
61243         * modules/vasnprintf-posix (Depends-on): Likewise.
61244         * modules/vasprintf-posix (Depends-on): Likewise.
61245         * modules/vfprintf-posix (Depends-on): Likewise.
61246         * modules/vsnprintf-posix (Depends-on): Likewise.
61247         * modules/vsprintf-posix (Depends-on): Likewise.
61248         * modules/vasnprintf (Files): Add lib/float+.h.
61249         * doc/functions/fprintf.texi: Update.
61250         * doc/functions/printf.texi: Update.
61251         * doc/functions/snprintf.texi: Update.
61252         * doc/functions/sprintf.texi: Update.
61253         * doc/functions/vfprintf.texi: Update.
61254         * doc/functions/vprintf.texi: Update.
61255         * doc/functions/vsnprintf.texi: Update.
61256         * doc/functions/vsprintf.texi: Update.
61257
61258 2007-05-18  Bruno Haible  <bruno@clisp.org>
61259
61260         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
61261
61262 2007-05-18  Bruno Haible  <bruno@clisp.org>
61263
61264         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
61265         for printing 64-bit integers. Needed for mingw.
61266
61267 2007-05-18  Bruno Haible  <bruno@clisp.org>
61268
61269         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61270         gl_FUNC_FREXPL_WORKS.
61271         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
61272
61273 2007-05-18  Bruno Haible  <bruno@clisp.org>
61274
61275         * modules/frexpl-nolibm-tests: New file.
61276
61277         * modules/frexpl-nolibm: New file.
61278         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
61279
61280 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61281
61282         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
61283         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61284         GCC 4.2, which otherwise issues a lot of warnings.
61285         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
61286         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
61287         Likewise.
61288         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
61289         * modules/iconv_open (iconv.h): Likewise.
61290         * modules/locale (locale.h): Likewise.
61291         * modules/netinet_in (netinet/in.h): Likewise.
61292         * modules/sys_select (sys_select.h): Likewise.
61293         * modules/sys_socket (sys/socket.h): Likewise.
61294         * modules/sys_stat (sys/stat.h): Likewise.
61295         * modules/sysexits (sysexits.h): Likewise.
61296         * modules/unistd (unistd.h): Likewise.
61297
61298 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61299
61300         * modules/closein-tests (Makefile.am): Distribute
61301         `test-closein.sh'.
61302
61303 2007-05-17  Bruno Haible  <bruno@clisp.org>
61304
61305         * tests/test-printf-posix.output: Renamed from
61306         tests/test-fprintf-posix.out.
61307         * modules/fprintf-posix-tests: Update.
61308         * modules/printf-posix-tests: Update.
61309         * modules/vfprintf-posix-tests: Update.
61310         * modules/vprintf-posix-tests: Update.
61311         * tests/test-fprintf-posix.sh: Update.
61312         * tests/test-printf-posix.sh: Update.
61313         * tests/test-vfprintf-posix.sh: Update.
61314         * tests/test-vprintf-posix.sh: Update.
61315         Reported by Ralf Wildenhues.
61316
61317 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61318
61319         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
61320         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61321         GCC 4.2, which otherwise issues a lot of warnings.
61322         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
61323         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
61324         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
61325         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
61326         it should no longer be needed.
61327         * lib/string_.h: Likewise.
61328         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
61329         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
61330         * modules/inttypes (inttypes.h): Likewise.
61331         * modules/math (math.h): Likewise.
61332         * modules/search (search.h): Likewise.
61333         * modules/signal (signal.h): Likewise.
61334         * modules/stdint (stdint.h): Likewise.
61335         * modules/stdio (stdio.h): Likewise.
61336         * modules/stdlib (stdlib.h): Likewise.
61337         * modules/string (string.h): Likewise.
61338         * modules/sys_time (sys/time.h): Likewise.
61339         * modules/time (time.h): Likewise.
61340         * modules/wchar (wchar.h): Likewise.
61341         * modules/wctype (wtype.h): Likewise.
61342
61343 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61344
61345         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
61346
61347 2007-05-13  Bruno Haible  <bruno@clisp.org>
61348
61349         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
61350         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61351         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
61352         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61353         (gl_PREREQ_STRTOK_R): Don't require it here.
61354
61355 2007-05-13  Bruno Haible  <bruno@clisp.org>
61356
61357         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
61358         when used in C++ mode.
61359
61360 2007-05-12  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/linebuffer.h: Tweak doc.
61363         * lib/linebuffer.c: Likewise.
61364
61365 2007-05-12  James Youngman  <jay@gnu.org>
61366
61367         * lib/linebuffer.c (readlinebuffer_delim): New function,
61368         like readlinebuffer, but use a caller-specified delimiter.
61369         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61370         as the delimiter.
61371         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61372
61373 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61374
61375         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61376         * modules/openat (Files): Remove openat-die.c.
61377         (Depends-on): Add openat-die.
61378         * modules/openat-die: New module.
61379
61380 2007-05-06  Bruno Haible  <bruno@clisp.org>
61381
61382         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61383         Update with info about Cygwin.
61384         * doc/functions/fprintf.texi: Update.
61385         * doc/functions/printf.texi: Update.
61386         * doc/functions/snprintf.texi: Update.
61387         * doc/functions/sprintf.texi: Update.
61388         * doc/functions/vfprintf.texi: Update.
61389         * doc/functions/vprintf.texi: Update.
61390         * doc/functions/vsnprintf.texi: Update.
61391         * doc/functions/vsprintf.texi: Update.
61392         Reported by Eric Blake.
61393
61394 2007-05-06  Bruno Haible  <bruno@clisp.org>
61395
61396         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61397         padding ourselves for the floating-point directives.
61398         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61400         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61401         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61402         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61403         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61404         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61407         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61409         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61410         * tests/test-snprintf-posix.h (test_function): Also check the width
61411         and some flags in the %f directive.
61412         * tests/test-sprintf-posix.h (test_function): Likewise.
61413         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61414         * tests/test-vasprintf-posix.c (test_function): Likewise.
61415         * doc/functions/fprintf.texi: Update.
61416         * doc/functions/printf.texi: Update.
61417         * doc/functions/snprintf.texi: Update.
61418         * doc/functions/sprintf.texi: Update.
61419         * doc/functions/vfprintf.texi: Update.
61420         * doc/functions/vprintf.texi: Update.
61421         * doc/functions/vsnprintf.texi: Update.
61422         * doc/functions/vsprintf.texi: Update.
61423
61424 2007-05-06  Bruno Haible  <bruno@clisp.org>
61425
61426         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61427         pass the ' flag character to sprintf or snprintf.
61428         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61429         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61430         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61431         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61432         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61435         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61436         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61437         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61439         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61440         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61441         flag.
61442         * tests/test-sprintf-posix.h (test_function): Likewise.
61443         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61444         * tests/test-vasprintf-posix.c (test_function): Likewise.
61445         * doc/functions/fprintf.texi: Update.
61446         * doc/functions/printf.texi: Update.
61447         * doc/functions/snprintf.texi: Update.
61448         * doc/functions/sprintf.texi: Update.
61449         * doc/functions/vfprintf.texi: Update.
61450         * doc/functions/vprintf.texi: Update.
61451         * doc/functions/vsnprintf.texi: Update.
61452         * doc/functions/vsprintf.texi: Update.
61453
61454 2007-05-01  Bruno Haible  <bruno@clisp.org>
61455
61456         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61457
61458 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61459
61460         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61461         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61462
61463 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61464
61465         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61466         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61467         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61468
61469 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61470
61471         * lib/argp-help.c (struct hol_entry): New member `ord'.
61472         (HOL_ENTRY_PTRCMP): Use ord for comparison
61473         (hol_sort): Initialize ord.
61474
61475 2007-05-01  Bruno Haible  <bruno@clisp.org>
61476
61477         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61478         Reported by Eric Blake.
61479         * doc/gnulib.texi (Function Substitutes): Update.
61480
61481 2007-05-01  Bruno Haible  <bruno@clisp.org>
61482
61483         * doc/functions.texi: Remove file, now redundant through
61484         doc/functions/*.texi.
61485
61486 2007-05-01  Bruno Haible  <bruno@clisp.org>
61487
61488         * modules/argp (Depends-on): Add sleep.
61489
61490 2007-05-01  Bruno Haible  <bruno@clisp.org>
61491
61492         * modules/sleep-tests: New file.
61493         * tests/test-sleep.c: New file.
61494
61495         * modules/sleep: New file.
61496         * lib/sleep.c: New file.
61497         * m4/sleep.m4: New file.
61498         * lib/unistd_.h (sleep): New declaration.
61499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61500         HAVE_SLEEP.
61501         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61502         * doc/functions/sleep.texi: Document the sleep module.
61503
61504 2007-05-01  Bruno Haible  <bruno@clisp.org>
61505
61506         * lib/sigprocmask.h: Remove file.
61507         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61508         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61509         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61510         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61511         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61512         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61513         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61514         HAVE_SIGSET_T as a shell variable.
61515         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61516         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61517         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61518         (Depends-on): Add signal. Remove verify.
61519         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61520         (Include): Mention <signal.h> instead of sigprocmask.h.
61521         * NEWS: Mention the change.
61522         * lib/fatal-signal.c: Don't include sigprocmask.h.
61523
61524 2007-05-01  Bruno Haible  <bruno@clisp.org>
61525
61526         * modules/signal: New file.
61527         * lib/signal_.h: New file.
61528         * m4/signal_h.m4: New file.
61529
61530 2007-05-01  Bruno Haible  <bruno@clisp.org>
61531
61532         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61533         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61534         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61535         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61536
61537 2007-05-01  Bruno Haible  <bruno@clisp.org>
61538
61539         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61540         configure time.
61541         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61542         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61543         * modules/sys_stat (Makefile.am): Substitute their values into
61544         sys/stat.h.
61545
61546 2007-05-01  Bruno Haible  <bruno@clisp.org>
61547
61548         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61549         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61550         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61551
61552 2007-05-01  Bruno Haible  <bruno@clisp.org>
61553
61554         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61555         'assert' module here.
61556
61557 2007-05-01  Bruno Haible  <bruno@clisp.org>
61558
61559         * doc/functions/*.texi: New files.
61560         * doc/functions/google-ranking.txt: New file.
61561         * doc/gnulib.texi (Function Substitutes): New chapter.
61562         (ctime, inet_ntoa): Remove sections.
61563         * doc/ctime.texi: Remove file.
61564         * doc/inet_ntoa.texi: Remove file.
61565         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61566         dependencies.
61567         (%.info): New rule, specifying a --reference-limit.
61568
61569 2007-05-01  Bruno Haible  <bruno@clisp.org>
61570
61571         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61572
61573 2007-05-01  Bruno Haible  <bruno@clisp.org>
61574
61575         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61576         the portability of 'mkdir' to mingw systems.
61577
61578 2007-05-01  Bruno Haible  <bruno@clisp.org>
61579
61580         * doc/headers/google-ranking.txt: New file.
61581
61582 2007-04-30  Eric Blake  <ebb9@byu.net>
61583
61584         Prefer fseeko to fseek.
61585         * modules/getpass (Depends-on): Add fseeko.
61586         * lib/getpass.c (getpass): Use fseeko, not fseek.
61587
61588 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61589
61590         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61591         assumes the sorting is stable, while most qsort implementations
61592         are not.  Use argument addresses to ensure they never compare as
61593         equal.
61594
61595         * tests/test-argp-2.sh (usage-indent test): Fix output
61596         (func_compare): Restore diff options
61597         * tests/test-argp.c: Restore #include "progname.h"
61598
61599 2007-04-29  Bruno Haible  <bruno@clisp.org>
61600
61601         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61602         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61603         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61604         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61605         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61606         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61607         (TESTS, check_PROGRAMS): Add test-snprintf.
61608         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61609         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61610         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61611         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61612         assertions that fail on HP-UX, OSF/1, or IRIX.
61613         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61614
61615 2007-04-29  Bruno Haible  <bruno@clisp.org>
61616
61617         * MODULES.html.sh (posix_functions): Remove 'contents'.
61618
61619 2007-04-29  Karl Berry  <karl@gnu.org>
61620
61621         * config/srclist.txt (gendocs_template_min): new entry.
61622
61623 2007-04-29  Bruno Haible  <bruno@clisp.org>
61624
61625         Work around fpurge bug on BSD systems.
61626         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61627         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61628         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61629         fpurge to rpl_fpurge if the system already has this function.
61630         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61631         the case where the system already has this function. Correct invariants
61632         on BSD systems.
61633         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61634         BSD systems.
61635
61636 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61637
61638         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61639         proposed by Sven Verdoolaege.
61640
61641         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61642         options.
61643         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61644         (usage and help tests): Update
61645
61646 2007-04-29  Bruno Haible  <bruno@clisp.org>
61647
61648         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61649         Print more information in case of failure. Disable a test on BeOS.
61650
61651 2007-04-29  Bruno Haible  <bruno@clisp.org>
61652
61653         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61654         This helps debugging on systems on which no gdb is available.
61655
61656 2007-04-29  Bruno Haible  <bruno@clisp.org>
61657
61658         * lib/freading.h: Improve comments.
61659         * lib/fwriting.h: Likewise.
61660         * tests/test-freading.c (main): Don't check freading immediately after
61661         repositioning. Needed for glibc.
61662
61663 2007-04-29  Bruno Haible  <bruno@clisp.org>
61664
61665         * lib/freading.c (freading): Trivial simplification.
61666
61667 2007-04-28  Bruno Haible  <bruno@clisp.org>
61668
61669         * tests/test-fwriting.c (main): Also test the interaction between
61670         fflush and fwriting.
61671         * modules/fwriting-tests (Depends-on): Add fflush.
61672
61673         * tests/test-freading.c (main): Also test the interaction between
61674         fflush and freading.
61675         * modules/freading-tests (Depends-on): Add fflush.
61676
61677 2007-04-28  Bruno Haible  <bruno@clisp.org>
61678
61679         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61680         fseeko and ftello.
61681         Suggested by Eric Blake.
61682
61683 2007-04-28  Jim Meyering  <jim@meyering.net>
61684
61685         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61686         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61687         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61688
61689 2007-04-27  Eric Blake  <ebb9@byu.net>
61690
61691         * doc/headers/assert.texi (assert.h): Document assert module use.
61692
61693 2007-04-27  Bruno Haible  <bruno@clisp.org>
61694
61695         * doc/headers/*.texi: New files.
61696         * doc/gnulib.texi (Header File Substitutes): New chapter.
61697         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61698         dependencies.
61699         (standards.info ,standards.html, standards.dvi): Update dependencies.
61700         (mostlyclean, clean): New targets.
61701
61702 2007-04-27  Bruno Haible  <bruno@clisp.org>
61703
61704         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61705         * modules/sysexits (Files, Makefile.am): Update.
61706
61707         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61708         * modules/sys_socket (Files, Makefile.am): Update.
61709
61710         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61711         * modules/sys_stat (Files, Makefile.am): Update.
61712
61713 2007-04-27  Eric Blake  <ebb9@byu.net>
61714
61715         * lib/freading.h: Improve comments.
61716         * lib/fwriting.h: Likewise.
61717         * lib/fflush.c: Likewise.
61718
61719         Fix closein for mingw.
61720         * modules/closein-tests: Add tests for closein.
61721         * tests/test-closein.c: New file.
61722         * tests/test-closein.sh: Likewise.
61723         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61724         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61725
61726 2007-04-27  Bruno Haible  <bruno@clisp.org>
61727
61728         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61729         version is < 6.
61730         * lib/math_.h [__DECC]: Likewise.
61731         * lib/stdio_.h [__DECC]: Likewise.
61732         * lib/stdlib_.h [__DECC]: Likewise.
61733         * lib/string_.h [__DECC]: Likewise.
61734         * lib/time_.h [__DECC]: Likewise.
61735         * lib/wchar_.h [__DECC]: Likewise.
61736         * lib/wctype_.h [__DECC]: Likewise.
61737
61738 2007-04-27  Bruno Haible  <bruno@clisp.org>
61739
61740         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61741
61742 2007-04-27  Bruno Haible  <bruno@clisp.org>
61743
61744         * lib/fflush.c: Add comments.
61745         * modules/fpurge-tests (Depends-on): Add fflush.
61746         * modules/freadable-tests (Depends-on): Likewise.
61747         * modules/fwritable-tests (Depends-on): Likewise.
61748
61749 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61750
61751         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61752         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61753         Report by Bruno Haible <bruno@clisp.org>.
61754
61755 2007-04-26  Eric Blake  <ebb9@byu.net>
61756
61757         Fix fflush on mingw.
61758         * modules/fflush (Depends-on): Add freading.
61759         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61760         but unread data.
61761
61762 2007-04-26  Eric Blake  <ebb9@byu.net>
61763         and Bruno Haible  <bruno@clisp.org>
61764
61765         Implement freading and fwriting.
61766         * lib/freading.c: New file.
61767         * lib/freading.h: Likewise.
61768         * m4/freading.m4: Likewise.
61769         * modules/freading: Likewise.
61770         * modules/freading-tests: Likewise.
61771         * tests/test-freading.c: Likewise.
61772         * lib/fwriting.c: New file.
61773         * lib/fwriting.h: Likewise.
61774         * m4/fwriting.m4: Likewise.
61775         * modules/fwriting: Likewise.
61776         * modules/fwriting-tests: Likewise.
61777         * tests/test-fwriting.c: Likewise.
61778         * MODULES.html.sh (File stream based Input/Output): Mention them.
61779
61780 2007-04-26  Bruno Haible  <bruno@clisp.org>
61781
61782         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61783         'long' when we assume it.
61784         Suggested by Eric Blake.
61785
61786 2007-04-26  Bruno Haible  <bruno@clisp.org>
61787
61788         Ensure fseeko, ftello are declared on glibc systems.
61789         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61790         * modules/fseeko (configure.ac-early): Likewise.
61791         * modules/ftello (configure.ac-early): Likewise.
61792         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61793         AC_FUNC_FSEEKO for this.
61794         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61795         (gl_CHECK_FSEEKO): Remove macro.
61796
61797 2007-04-26  Bruno Haible  <bruno@clisp.org>
61798
61799         * tests/test-fflush.c (main): Also check the ftell result after
61800         fflush and fseek/fseeko.
61801         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61802         file descriptor position cache in the stream.
61803         * lib/fseeko.c (rpl_fseeko): Likewise.
61804
61805 2007-04-26  Bruno Haible  <bruno@clisp.org>
61806
61807         * modules/fflush-tests (Depends-on): Add fseeko.
61808
61809 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61810             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61811
61812         * lib/argz_.h: ensure error_t definition is obtained in same
61813         mechanism system argz.h would have.
61814         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61815         argz facilities are known bad.  Err on the side of caution if
61816         cross-compiling.
61817
61818 2007-04-25  Eric Blake  <ebb9@byu.net>
61819
61820         * lib/fpurge.c (includes): Use stdlib.h for free.
61821         * tests/test-fflush.c (main): Also test fflush-fseeko.
61822
61823 2007-04-25  Bruno Haible  <bruno@clisp.org>
61824
61825         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61826         * lib/fseeko.c: New file.
61827         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61828         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61829         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61830         gl_FUNC_FSEEKO.
61831         (gl_FUNC_FSEEKO): Invoke it.
61832         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61833         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61834         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61835
61836 2007-04-25  Bruno Haible  <bruno@clisp.org>
61837
61838         * modules/fflush (Depends-on): Add ftello.
61839
61840 2007-04-25  Bruno Haible  <bruno@clisp.org>
61841
61842         * modules/ftello-tests: New file.
61843         * tests/test-ftello.c: New file.
61844
61845         * modules/ftello: New file.
61846         * m4/ftello.m4: New file.
61847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61848         HAVE_FTELLO.
61849         * lib/stdio_.h (ftello): New declaration.
61850         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61851         HAVE_FTELLO.
61852
61853 2007-04-25  Bruno Haible  <bruno@clisp.org>
61854
61855         * modules/fseeko-tests: New file.
61856         * tests/test-fseeko.c: New file.
61857
61858         * modules/fseeko: New file.
61859         * m4/fseeko.m4: New file.
61860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61861         HAVE_FSEEKO.
61862         * lib/stdio_.h (fseeko): New declaration.
61863         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61864         HAVE_FSEEKO.
61865
61866 2007-04-25  Bruno Haible  <bruno@clisp.org>
61867
61868         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61869
61870 2007-04-25  Bruno Haible  <bruno@clisp.org>
61871
61872         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61873         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61874         * tests/test-unistd.c: Likewise.
61875         * tests/test-fcntl.c: Likewise.
61876
61877 2007-04-23  Eric Blake  <ebb9@byu.net>
61878
61879         * lib/fflush.c: Fix missing include.
61880         Reported by Bruno Haible.
61881
61882 2007-04-23  Bruno Haible  <bruno@clisp.org>
61883
61884         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61885         Reported by Eric Blake.
61886
61887 2007-04-23  Bruno Haible  <bruno@clisp.org>
61888
61889         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61890
61891 2007-04-23  Bruno Haible  <bruno@clisp.org>
61892
61893         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61894
61895 2007-04-23  Bruno Haible  <bruno@clisp.org>
61896
61897         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61898         Needed on HP-UX 11.
61899
61900 2007-04-16  Eric Blake  <ebb9@byu.net>
61901
61902         Make fflush rely on fpurge.
61903         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61904         open coding all variants.
61905         * modules/fflush (Depends-on): Add fpurge and unistd.
61906         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61907         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61908
61909         Fix --with-tests compilation on cygwin.
61910         * modules/argmatch-tests (Makefile.am): List gnulib library first
61911         in LDADD.
61912         * modules/argp-tests (Makefile.am): Likewise.
61913         * modules/array-list-tests (Makefile.am): Likewise.
61914         * modules/array-oset-tests (Makefile.am): Likewise.
61915         * modules/avltree-list-tests (Makefile.am): Likewise.
61916         * modules/avltree-oset-tests (Makefile.am): Likewise.
61917         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61918         * modules/carray-list-tests (Makefile.am): Likewise.
61919         * modules/dirname-tests (Makefile.am): Likewise.
61920         * modules/frexp-tests (Makefile.am): Likewise.
61921         * modules/isnanl-tests (Makefile.am): Likewise.
61922         * modules/linked-list-tests (Makefile.am): Likewise.
61923         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61924         * modules/lock-tests (Makefile.am): Likewise.
61925         * modules/rbtree-list-tests (Makefile.am): Likewise.
61926         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61927         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61928         * modules/tls-tests (Makefile.am): Likewise.
61929         * modules/tsearch-tests (Makefile.am): Likewise.
61930         * modules/xvasprintf-tests (Makefile.am): Likewise.
61931
61932         Fix fpurge for cygwin.
61933         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61934         value.
61935         * modules/fpurge-tests (Depends-on): Clean up trash.
61936
61937 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61938
61939         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61940
61941         * m4/autobuild.m4: Re-indent.
61942
61943 2007-04-13  Bruno Haible  <bruno@clisp.org>
61944
61945         * modules/fpurge-tests: New file.
61946         * tests/test-fpurge.c: New file.
61947
61948         * modules/fpurge: New file.
61949         * lib/fpurge.h: New file.
61950         * lib/fpurge.c: New file.
61951         * m4/fpurge.m4: New file.
61952
61953 2007-04-13  Bruno Haible  <bruno@clisp.org>
61954
61955         * modules/fbufmode-tests: New file.
61956         * tests/test-fbufmode.c: New file.
61957
61958         * modules/fbufmode: New file.
61959         * lib/fbufmode.h: New file.
61960         * lib/fbufmode.c: New file.
61961         * m4/fbufmode.m4: New file.
61962
61963 2007-04-13  Bruno Haible  <bruno@clisp.org>
61964
61965         * modules/fwritable-tests: New file.
61966         * tests/test-fwritable.c: New file.
61967
61968         * modules/fwritable: New file.
61969         * lib/fwritable.h: New file.
61970         * lib/fwritable.c: New file.
61971         * m4/fwritable.m4: New file.
61972
61973 2007-04-13  Bruno Haible  <bruno@clisp.org>
61974
61975         * modules/freadable-tests: New file.
61976         * tests/test-freadable.c: New file.
61977
61978         * modules/freadable: New file.
61979         * lib/freadable.h: New file.
61980         * lib/freadable.c: New file.
61981         * m4/freadable.m4: New file.
61982
61983 2007-04-13  Bruno Haible  <bruno@clisp.org>
61984
61985         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61986         MOSTLYCLEANFILES.
61987
61988 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61989
61990         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61991         gzip bootstrap.conf to avoid dragging in i18n machinery.
61992         (gnulib_tool_option): Use it.
61993
61994 2007-04-13  Bruno Haible  <bruno@clisp.org>
61995
61996         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61997         %F directives.
61998         * tests/test-vasprintf-posix.c (test_function): Likewise.
61999         * tests/test-snprintf-posix.h (test_function): Likewise.
62000         * tests/test-sprintf-posix.h (test_function): Likewise.
62001         * tests/test-fprintf-posix.h (test_function): Likewise.
62002         * tests/test-printf-posix.h (test_function): Likewise.
62003         * tests/test-fprintf-posix.out: Likewise.
62004
62005 2007-04-13  Bruno Haible  <bruno@clisp.org>
62006
62007         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62008         * modules/tls-tests (configure.ac): Likewise.
62009         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62010
62011 2007-04-13  Bruno Haible  <bruno@clisp.org>
62012
62013         * lib/tls.c (glthread_tls_get): Fix return type.
62014         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62015
62016 2007-04-12  Eric Blake  <ebb9@byu.net>
62017
62018         * modules/gettime (Depends-on): Remove gettime.
62019         Reported by Dmitry V. Levin.
62020
62021 2007-04-12  Bruno Haible  <bruno@clisp.org>
62022
62023         * modules/fflush (Include): Mention <stdio.h>.
62024         * modules/strtoimax (Include): Mention <inttypes.h>.
62025         * modules/strtoumax (Include): Likewise.
62026
62027 2007-04-12  Eric Blake  <ebb9@byu.net>
62028
62029         * .cvsignore: New file.
62030         * .gitignore: Likewise.
62031
62032 2007-04-12  Bruno Haible  <bruno@clisp.org>
62033
62034         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62035         not before, since $(LDADD) often contains libgnu.a.
62036         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62037         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62038         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62039         Needed on Cygwin.
62040
62041 2007-04-12  Eric Blake  <ebb9@byu.net>
62042
62043         Work around glibc's failure to flush stdin on fclose.
62044         * lib/closein.c (close_stdin): Flush stdin before closing.
62045
62046         Work around glibc's failure to reset seekable stdin on exit.
62047         * modules/closein: New module.
62048         * lib/closein.c: New file.
62049         * lib/closein.h: Likewise.
62050         * m4/closein.m4: Likewise.
62051         * MODULES.html.sh (File stream based Input/Output): Document it.
62052
62053 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62054
62055         * gnulib-tool: Rename generated 'autobuild' script to
62056         'do-autobuild' in --create-megatestdir output.
62057
62058         * doc/gnulib.texi (Build robot for gnulib): Fix.
62059
62060 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62061
62062         * modules/sysexits (Depends-on): Add absolute-header.
62063
62064 2007-04-12  Eric Blake  <ebb9@byu.net>
62065
62066         No need to preserve errno on success.
62067         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62068         Reported by Bruno Haible.
62069
62070 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62071
62072         * MODULES.html.sh (Support for maintaining and releasing
62073         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62074
62075 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62076
62077         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62078
62079 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62080
62081         * modules/autobuild: New module.
62082
62083         * m4/autobuild.m4: New file.
62084
62085 2007-04-11  Bruno Haible  <bruno@clisp.org>
62086
62087         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62088         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62091         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62092         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62093         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62094         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62095         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62096         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62097         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62098         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62099         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62100         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62101         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62102         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62103         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62104         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62105         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62106         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62107         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62108         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62110         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62111         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62112         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62113         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62114         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62115         Reported by Eric Blake.
62116
62117 2007-04-11  Bruno Haible  <bruno@clisp.org>
62118
62119         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62120
62121 2007-04-10  Bruno Haible  <bruno@clisp.org>
62122
62123         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62124         for NaN and Infinity. Needed on FreeBSD 6.1.
62125         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62126         regarding results for "%010a" of Infinity and NaN.
62127         * tests/test-vasprintf-posix.c (test_function): Likewise.
62128         * tests/test-snprintf-posix.h (test_function): Likewise.
62129         * tests/test-sprintf-posix.h (test_function): Likewise.
62130         * tests/test-fprintf-posix.h (test_function): Likewise.
62131         * tests/test-printf-posix.h (test_function): Likewise.
62132         * tests/test-fprintf-posix.out: Likewise.
62133
62134 2007-04-10  Bruno Haible  <bruno@clisp.org>
62135
62136         * modules/locale-tests: New file.
62137         * tests/test-locale.c: New file.
62138
62139         * modules/locale: New file.
62140         * lib/locale_.h: New file.
62141         * m4/locale_h.m4: New file.
62142
62143 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62144             Bruno Haible  <bruno@clisp.org>
62145
62146         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62147         be determined, test for availability of the copysignf, copysign,
62148         copysignl functions.
62149         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62150         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62151         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62152
62153 2007-04-09  Eric Blake  <ebb9@byu.net>
62154
62155         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62156         * modules/stdio (Makefile.am): Support fflush.
62157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62158         * modules/fflush: New file.
62159         * lib/fflush.c: Likewise.
62160         * m4/fflush.m4: Likewise.
62161         * modules/fflush-tests: New test.
62162         * tests/test-fflush.c: Likewise.
62163         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62164
62165 2007-04-06  Bruno Haible  <bruno@clisp.org>
62166
62167         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62168         (VASNPRINTF): Use signbit for faster determination whether to print a
62169         minus sign.
62170         * modules/vasnprintf (Files): Remove lib/float+.h.
62171         * modules/fprintf-posix (Depends-on): Add signbit.
62172         * modules/snprintf-posix (Depends-on): Likewise.
62173         * modules/sprintf-posix (Depends-on): Likewise.
62174         * modules/vasnprintf-posix (Depends-on): Likewise.
62175         * modules/vasprintf-posix (Depends-on): Likewise.
62176         * modules/vfprintf-posix (Depends-on): Likewise.
62177         * modules/vsnprintf-posix (Depends-on): Likewise.
62178         * modules/vsprintf-posix (Depends-on): Likewise.
62179
62180 2007-04-06  Bruno Haible  <bruno@clisp.org>
62181
62182         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62183         * tests/test-frexpl.c (main): Likewise.
62184         * tests/test-ldexpl.c (main): Likewise.
62185         * modules/frexp-tests (Depends-on): Add signbit.
62186         * modules/frexpl-tests (Depdends-on): Likewise.
62187         * modules/ldexpl-tests (Depdends-on): Likewise.
62188
62189 2007-04-06  Bruno Haible  <bruno@clisp.org>
62190
62191         * modules/signbit-tests: New file.
62192         * tests/test-signbit.c: New file.
62193
62194         * modules/signbit: New file.
62195         * lib/signbitf.c: New file.
62196         * lib/signbitd.c: New file.
62197         * lib/signbitl.c: New file.
62198         * m4/signbit.m4: New file.
62199         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62200         (signbit): New macro.
62201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62202         REPLACE_SIGNBIT.
62203         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62204         REPLACE_FREXPL into math.h.
62205
62206 2007-04-06  Bruno Haible  <bruno@clisp.org>
62207
62208         * modules/isnanf-nolibm-tests: New file.
62209         * tests/test-isnanf.c: New file.
62210
62211         * modules/isnanf-nolibm: New file.
62212         * lib/isnanf.h: New file.
62213         * lib/isnanf.c: New file.
62214         * lib/isnan.c: Consider the USE_FLOAT macro.
62215         * m4/isnanf.m4: New file.
62216
62217 2007-04-06  Bruno Haible  <bruno@clisp.org>
62218
62219         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62220         (Link): New section.
62221
62222         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62223
62224 2007-04-06  Bruno Haible  <bruno@clisp.org>
62225
62226         Assume the 'long double' type.
62227         * m4/longdouble.m4: Remove file.
62228         * config/srclist.txt: Don't mention longdouble.m4.
62229         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62230         * lib/float+.h: Likewise.
62231         * lib/frexp.c: Likewise.
62232         * lib/printf-args.h: Likewise.
62233         * lib/printf-args.c: Likewise.
62234         * lib/printf-frexp.c: Likewise.
62235         * lib/printf-parse.c: Likewise.
62236         * lib/vasnprintf.c: Likewise.
62237         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
62238         * m4/intl.m4: Likewise.
62239         * m4/isnanl.m4: Likewise.
62240         * m4/printf.m4: Likewise.
62241         * m4/printf-frexpl.m4: Likewise.
62242         * m4/vasnprintf.m4: Likewise.
62243         * modules/allocsa (Files): Remove m4/longdouble.m4.
62244         * modules/gettext (Files): Likewise.
62245         * modules/relocatable-prog-wrapper (Files): Likewise.
62246         * modules/vasnprintf (Files): Likewise.
62247         * modules/isnanl (Files): Likewise.
62248         (Include): Simplify.
62249         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
62250         (Include): Simplify.
62251         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
62252         (Include): Simplify.
62253         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
62254         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62255         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
62256         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62257         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62258         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62259         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
62260         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62261         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62262         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62263         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
62264         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62265         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
62266         * tests/test-isnanl.c: Likewise.
62267         * tests/test-snprintf-posix.h: Likewise.
62268         * tests/test-sprintf-posix.h: Likewise.
62269         * tests/test-vasnprintf-posix.c: Likewise.
62270         * tests/test-vasnprintf-posix2.c: Likewise.
62271         * tests/test-vasprintf-posix.c: Likewise.
62272
62273 2007-04-06  Bruno Haible  <bruno@clisp.org>
62274
62275         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
62276         * lib/math_.h [__DECC]: Include the overridden include file through
62277         #include_next, outside the double-inclusion guard.
62278         * lib/stdio_.h [__DECC]: Likewise.
62279         * lib/stdlib_.h [__DECC]: Likewise.
62280         * lib/string_.h [__DECC]: Likewise.
62281         * lib/time_.h [__DECC]: Likewise.
62282         * lib/wchar_.h [__DECC]: Likewise.
62283         * lib/wctype_.h [__DECC]: Likewise.
62284         * lib/inttypes_.h [__DECC]: Likewise.
62285         Reported by Albert Chin <china@thewrittenword.com> in
62286         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
62287
62288 2007-04-04  Eric Blake  <ebb9@byu.net>
62289
62290         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
62291         1.5.x.
62292
62293 2007-04-04  Bruno Haible  <bruno@clisp.org>
62294
62295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
62296         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
62297
62298 2007-04-04  Bruno Haible  <bruno@clisp.org>
62299
62300         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
62301         results for "%010a" of Infinity and NaN.
62302         * tests/test-vasprintf-posix.c (test_function): Likewise.
62303         * tests/test-snprintf-posix.h (test_function): Likewise.
62304         * tests/test-sprintf-posix.h (test_function): Likewise.
62305         * tests/test-fprintf-posix.h (test_function): Remove these tests.
62306         * tests/test-printf-posix.h (test_function): Likewise.
62307         * tests/test-fprintf-posix.out: Update.
62308         Needed for FreeBSD 6.1.
62309
62310 2007-04-04  Bruno Haible  <bruno@clisp.org>
62311
62312         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
62313         directly used by the gnulib modules nor by gnulib-tool.
62314
62315 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62316
62317         * DEPENDENCIES: Give overall description of version dependency
62318         desirability.  Use more-typical names for apps.
62319         Add shell, coreutils, diffutils, grep, tar, gzip.
62320
62321 2007-04-04  Simon Josefsson  <simon@josefsson.org>
62322
62323         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
62324
62325 2007-04-04  Karl Berry  <karl@gnu.org>
62326
62327         * MODULES.html.sh (func_module): missing '.
62328
62329 2007-04-03  Bruno Haible  <bruno@clisp.org>
62330
62331         * modules/argmatch-tests (Makefile.am): New variable
62332         test_argmatch_LDADD.
62333         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
62334         * modules/array-list-tests (Makefile.am): New variable
62335         test_array_list_LDADD.
62336         * modules/array-oset-tests (Makefile.am): New variable
62337         test_array_oset_LDADD.
62338         * modules/avltree-list-tests (Makefile.am): New variable
62339         test_avltree_list_LDADD.
62340         * modules/avltree-oset-tests (Makefile.am): New variable
62341         test_avltree_oset_LDADD.
62342         * modules/avltreehash-list-tests (Makefile.am): New variable
62343         test_avltreehash_list_LDADD.
62344         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
62345         test_canonicalize_lgpl_LDADD.
62346         * modules/carray-list-tests (Makefile.am): New variable
62347         test_carray_list_LDADD.
62348         * modules/dirname-tests (Makefile.am): New variable
62349         test_dirname_LDADD.
62350         * modules/linked-list-tests (Makefile.am): New variable
62351         test_linked_list_LDADD.
62352         * modules/linkedhash-list-tests (Makefile.am): New variable
62353         test_linkedhash_list_LDADD.
62354         * modules/rbtree-list-tests (Makefile.am): New variable
62355         test_rbtree_list_LDADD.
62356         * modules/rbtree-oset-tests (Makefile.am): New variable
62357         test_rbtree_oset_LDADD.
62358         * modules/rbtreehash-list-tests (Makefile.am): New variable
62359         test_rbtreehash_list_LDADD.
62360         * modules/xvasprintf-tests (Makefile.am): New variable
62361         test_xvasprintf_LDADD.
62362         Reported by Eric Blake.
62363
62364 2007-04-03  Eric Blake  <ebb9@byu.net>
62365
62366         * DEPENDENCIES: Weaken m4 requirements.
62367
62368 2007-04-03  Bruno Haible  <bruno@clisp.org>
62369
62370         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62371         * modules/isnanl-tests (configure.ac): Likewise.
62372
62373 2007-04-03  Ben Pfaff  <blp@gnu.org>
62374
62375         * modules/iconv_open: Add $(srcdir)/ to source directory
62376         references in Makefile fragments that call gperf, to fix VPATH
62377         builds.
62378
62379 2007-04-03  Bruno Haible  <bruno@clisp.org>
62380
62381         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62382         * lib/ldexpl.c: Undo last change.
62383
62384 2007-04-03  Bruno Haible  <bruno@clisp.org>
62385
62386         * modules/printf-frexpl (Depends-on): Undo last change.
62387         (Files): Add m4/ldexpl.m4.
62388
62389 2007-04-03  Bruno Haible  <bruno@clisp.org>
62390
62391         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62392         * modules/isnanl (Link): New section.
62393
62394         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62395         * modules/frexp (Link): New section.
62396
62397         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62398         * modules/frexpl (Link): New section.
62399
62400         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62401         * modules/ldexpl (Link): New section.
62402
62403 2007-04-03  Bruno Haible  <bruno@clisp.org>
62404
62405         * modules/TEMPLATE-EXTENDED: New file.
62406         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62407
62408 2007-04-03  Bruno Haible  <bruno@clisp.org>
62409
62410         * DEPENDENCIES: New file.
62411         Suggested by Simon Josefsson.
62412
62413 2007-04-03  Bruno Haible  <bruno@clisp.org>
62414
62415         * doc/gnulib.texi: Escape @.
62416
62417 2007-04-03  James Youngman  <jay@gnu.org>
62418         and Paul Eggert  <eggert@cs.ucla.edu>
62419
62420         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62421         birthtime on all systems that have birthtime, not just those which
62422         use st_birthtimensec rather than st_birthtim.  Putting zero in
62423         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62424         that the birth time is not available for files on an NFS mount.
62425
62426 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62427
62428         * modules/memxor: Move back from crypto/, suggested by Bruno.
62429         * modules/crypto/hmac-sha1: Fix memxor dependency.
62430
62431         * modules/crypto/gc: Moved from ../.
62432
62433 2007-04-02  Eric Blake  <ebb9@byu.net>
62434
62435         * lib/ldexpl.c (includes): Avoid libm.
62436
62437         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62438
62439 2007-04-02  Bruno Haible  <bruno@clisp.org>
62440
62441         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62442         on IRIX.
62443
62444 2007-04-02  Bruno Haible  <bruno@clisp.org>
62445
62446         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62447         x86 or x86_64 platforms running MacOS X.
62448         Reported by Ryan Schmidt <@ryandesign.com>.
62449
62450 2007-04-02  Bruno Haible  <bruno@clisp.org>
62451
62452         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62453         i386.
62454
62455 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62456
62457         * modules/crypto/arcfour: Moved from ../.
62458         * modules/crypto/arcfour-tests: Moved from ../.
62459         * modules/crypto/arctwo: Moved from ../.
62460         * modules/crypto/arctwo-tests: Moved from ../.
62461         * modules/crypto/des: Moved from ../.
62462         * modules/crypto/des-tests: Moved from ../.
62463         * modules/crypto/gc-arcfour: Moved from ../.
62464         * modules/crypto/gc-arcfour-tests: Moved from ../.
62465         * modules/crypto/gc-arctwo: Moved from ../.
62466         * modules/crypto/gc-arctwo-tests: Moved from ../.
62467         * modules/crypto/gc-des: Moved from ../.
62468         * modules/crypto/gc-des-tests: Moved from ../.
62469         * modules/crypto/gc-hmac-md5: Moved from ../.
62470         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62471         * modules/crypto/gc-hmac-sha1: Moved from ../.
62472         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62473         * modules/crypto/gc-md2: Moved from ../.
62474         * modules/crypto/gc-md2-tests: Moved from ../.
62475         * modules/crypto/gc-md4: Moved from ../.
62476         * modules/crypto/gc-md4-tests: Moved from ../.
62477         * modules/crypto/gc-md5: Moved from ../.
62478         * modules/crypto/gc-md5-tests: Moved from ../.
62479         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62480         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62481         * modules/crypto/gc-random: Moved from ../.
62482         * modules/crypto/gc-rijndael: Moved from ../.
62483         * modules/crypto/gc-rijndael-tests: Moved from ../.
62484         * modules/crypto/gc-sha1: Moved from ../.
62485         * modules/crypto/gc-sha1-tests: Moved from ../.
62486         * modules/crypto/gc-tests: Moved from ../.
62487         * modules/crypto/hmac-md5: Moved from ../.
62488         * modules/crypto/hmac-md5-tests: Moved from ../.
62489         * modules/crypto/hmac-sha1: Moved from ../.
62490         * modules/crypto/hmac-sha1-tests: Moved from ../.
62491         * modules/crypto/md2: Moved from ../.
62492         * modules/crypto/md2-tests: Moved from ../.
62493         * modules/crypto/md4: Moved from ../.
62494         * modules/crypto/md4-tests: Moved from ../.
62495         * modules/crypto/md5: Moved from ../.
62496         * modules/crypto/md5-tests: Moved from ../.
62497         * modules/crypto/memxor: Moved from ../.
62498         * modules/crypto/rijndael: Moved from ../.
62499         * modules/crypto/rijndael-tests: Moved from ../.
62500         * modules/crypto/sha1: Moved from ../.
62501
62502 2007-03-30  James Youngman  <jay@gnu.org>
62503
62504         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62505         rename() to change the ctime of a file (because ctime is unaffected
62506         by rename on jfs2 on AIX 5.1).
62507         (main): Start by doing cleanup, in case a previous run failed leaving
62508         test files behind.
62509
62510 2007-03-31  Bruno Haible  <bruno@clisp.org>
62511
62512         Support old proprietary implementations of iconv.
62513         * modules/iconv_open: New file.
62514         * lib/iconv_.h: New file.
62515         * m4/iconv_h.m4: New file.
62516         * lib/iconv_open.c: New file.
62517         * lib/iconv_open-aix.gperf: New file.
62518         * lib/iconv_open-hpux.gperf: New file.
62519         * lib/iconv_open-irix.gperf: New file.
62520         * lib/iconv_open-osf.gperf: New file.
62521         * m4/iconv_open.m4: New file.
62522         * modules/linebreak (Depends-on): Add iconv_open.
62523         * modules/striconv (Depends-on): Likewise.
62524         * modules/striconveh (Depends-on): Likewise.
62525         * modules/unicodeio (Depends-on): Likewise.
62526         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62527         (iconv_t)(-1).
62528         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62529         conversion if cd is (iconv_t)(-1).
62530         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62531         is not possible.
62532
62533 2007-03-31  Bruno Haible  <bruno@clisp.org>
62534
62535         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62536         work on Solaris either. Protect also second use of "autodetect_jp".
62537
62538 2007-03-31  Bruno Haible  <bruno@clisp.org>
62539
62540         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62541         the function is not present.
62542
62543 2007-03-31  Bruno Haible  <bruno@clisp.org>
62544
62545         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62546         the function is not present.
62547
62548 2007-03-31  Bruno Haible  <bruno@clisp.org>
62549
62550         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62551         a bug in HP-UX iconv_open().
62552
62553 2007-03-31  Bruno Haible  <bruno@clisp.org>
62554
62555         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62556         (Mathematics <math.h>): New section, add fpieee.
62557         (Input/output <stdio.h>): Add fseterr.
62558         (Mathematics <math.h>): New section, add printf-frexp.
62559         (Container data structures): Add sublist.
62560         (Core language properties): Add fpucw, inline.
62561         (Functions for greatest-width integer types <inttypes.h>): Add
62562         imaxabs, imaxdiv, inttypes.
62563         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62564         isnanl-nolibm, ldexp.
62565         (Mathematics <math.h>): New section, add printf-frexpl.
62566         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62567         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62568         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62569         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62570         (Unicode string functions): Add unistr/u*-mbtoucr.
62571         (Java): Add javacomp-script, javaexec-script.
62572         (C#): Add csharpcomp-script, csharpexec-script.
62573         (Support for building libraries and executables): Add havelib,
62574         relocatable-*.
62575         (Support for maintaining and releasing projects): Renamed from
62576         'Support for maintaining and release projects'. Add announce-gen.
62577
62578 2007-03-31  Bruno Haible  <bruno@clisp.org>
62579
62580         * README: Talk primarily about git.
62581         (git and CVS): Renamed from CVS.
62582         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62583         gnulib is available through git.
62584         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62585
62586 2007-03-30  Bruno Haible  <bruno@clisp.org>
62587
62588         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62589         * lib/poll_.h: Likewise.
62590         * lib/stat_.h: Likewise.
62591         * lib/sys_time_.h: Likewise.
62592         * lib/sysexit_.h: Likewise.
62593         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62594         * lib/stdbool_.h: Likewise.
62595         * lib/byteswap_.h: Add double-inclusion guard.
62596
62597 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62598
62599         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62600
62601 2007-03-30  Karl Berry  <karl@gnu.org>
62602
62603         * config/srclist-update: double space after USA in the license
62604         substitution, since that's how it's usually (?) written.
62605
62606 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62607
62608         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62609         reported by Bruno Haible.
62610
62611 2007-03-29  Bruno Haible  <bruno@clisp.org>
62612
62613         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62614         a bug in AIX iconv().
62615
62616 2007-03-29  Bruno Haible  <bruno@clisp.org>
62617
62618         * modules/ldexpl-tests: New file.
62619         * tests/test-ldexpl.c: New file.
62620
62621 2007-03-29  Bruno Haible  <bruno@clisp.org>
62622
62623         * lib/ldexpl.c: Include fpucw.h.
62624         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62625         multiplication.
62626         * modules/ldexpl (Depends-on): Add fpucw.
62627
62628 2007-03-29  Bruno Haible  <bruno@clisp.org>
62629
62630         * modules/ldexpl: New file.
62631         * m4/ldexpl.m4: New file.
62632         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62633         set.
62634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62635         REPLACE_LDEXPL.
62636         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62637         REPLACE_LDEXPL.
62638         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62639         gl_FUNC_LDEXPL_WORKS.
62640         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62641         * modules/mathl (Files): Remove lib/ldexpl.c.
62642         (Depends-on): Add ldexpl.
62643
62644 2007-03-29  Bruno Haible  <bruno@clisp.org>
62645
62646         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62647
62648 2007-03-29  Bruno Haible  <bruno@clisp.org>
62649
62650         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62651         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62652         and possibly also HP-UX.
62653         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62654         work on AIX, IRIX, HP-UX, OSF/1.
62655         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62656         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62657         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62658         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62659         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62660         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62661
62662 2007-03-29  Bruno Haible  <bruno@clisp.org>
62663
62664         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62665
62666 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62667
62668         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62669         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62670
62671 2007-03-29  Eric Blake  <ebb9@byu.net>
62672
62673         * lib/acl-internal.h: Remove redundant include.
62674         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62675         Cygwin when a file is locked.
62676
62677 2007-03-29  Bruno Haible  <bruno@clisp.org>
62678
62679         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62680         file.
62681         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62682
62683 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62684
62685         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62686         try to remove a parent directory if the child couldn't be removed
62687         (except for the first rmdir, which could fail because the child
62688         doesn't exist).  Problem reported by Jeff Blaine in
62689         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62690
62691 2007-03-28  Bruno Haible  <bruno@clisp.org>
62692
62693         * lib/striconveh.c (utf8conv_carefully): New function.
62694         (mem_cd_iconveh_internal): Invoke it.
62695
62696 2007-03-28  Bruno Haible  <bruno@clisp.org>
62697
62698         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62699         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62700         input.
62701         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62702         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62703         unistr/u8-uctomb.
62704
62705 2007-03-28  Bruno Haible  <bruno@clisp.org>
62706
62707         * modules/unistr/u8-mbtoucr: New file.
62708         * lib/unistr/u8-mbtoucr.c: New file.
62709         * modules/unistr/u16-mbtoucr: New file.
62710         * lib/unistr/u16-mbtoucr.c: New file.
62711         * modules/unistr/u16-mbtoucr: New file.
62712         * lib/unistr/u16-mbtoucr.c: New file.
62713         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62714
62715 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62716             Bruno Haible  <bruno@clisp.org>
62717
62718         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62719         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62720         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62721
62722         * m4/stdio_h.m4: Add stubs for vasprintf too.
62723
62724         * modules/stdio: Support vasprintf in sed command.
62725
62726         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62727         vasprintf.h.  Add stdio module indicator.
62728
62729         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62730         vasprintf.h.
62731
62732         * lib/vasprintf.h: File removed.
62733
62734         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62735         * lib/vasprintf.c: Ditto.
62736         * lib/xvasprintf.c: Ditto.
62737         * tests/test-vasprintf-posix.c: Ditto.
62738         * tests/test-vasprintf.c: Ditto.
62739
62740 2007-03-27  Bruno Haible  <bruno@clisp.org>
62741
62742         Make vasnprintf multithread-safe.
62743         * lib/vasnprintf.c (decimal_point_char): New function.
62744         (VASNPRINTF): Use it.
62745         Suggested by Simon Josefsson.
62746
62747 2007-03-27  Eric Blake  <ebb9@byu.net>
62748
62749         Support sub-second birthtime on cygwin.
62750         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62751         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62752         (get_stat_birthtime): Also work with st_birthtim.
62753
62754 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62755
62756         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62757         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62758         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62759         (get_stat_birthtime_ns): Simplify compile-time tests.
62760         (get_stat_birthtime): Change the API to look like
62761         get_stat_mtime etc., except return a negative tv_nsec on error.
62762         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62763         Don't check for "spare" fields.
62764         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62765         or for struct stat.st_birthtime, as these tests aren't used.
62766         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62767
62768 2007-03-27  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/stat-time.h: Include <sys/stat.h>.
62771
62772 2007-03-27  James Youngman  <jay@gnu.org>
62773
62774         * lib/stat-time.h (get_stat_birthtime): New function for
62775           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62776         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62777           and its variants.
62778         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62779         * modules/stat-time-test: New file.
62780         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62781
62782 2007-03-26  Bruno Haible  <bruno@clisp.org>
62783
62784         Better support of signalling NaNs.
62785         * lib/atanl.c: Include isnanl.h.
62786         (atanl): Perform test for NaN at the beginning of the function and
62787         through a call to isnanl.
62788         * lib/cosl.c: Include isnanl.h.
62789         (cosl): Perform test for NaN at the beginning of the function and
62790         through a call to isnanl.
62791         * lib/ldexpl.c: Include isnanl.h.
62792         (ldexpl): Perform test for NaN through a call to isnanl.
62793         * lib/logl.c: Include isnanl.h.
62794         (logl): Perform test for NaN at the beginning of the function and
62795         through a call to isnanl.
62796         * lib/sinl.c: Include isnanl.h.
62797         (sinl): Perform test for NaN at the beginning of the function and
62798         through a call to isnanl.
62799         * lib/sqrtl.c: Include isnanl.h.
62800         (sqrtl): Perform test for NaN at the beginning of the function and
62801         through a call to isnanl.
62802         * lib/tanl.c: Include isnanl.h.
62803         (tanl): Perform test for NaN at the beginning of the function and
62804         through a call to isnanl.
62805         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62806         * modules/mathl (Depends-on): Add isnanl.
62807
62808 2007-03-26  Eric Blake  <ebb9@byu.net>
62809
62810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62811         regression in logic sense of previous patch.
62812
62813 2007-03-26  Bruno Haible  <bruno@clisp.org>
62814
62815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62816         unportable shell command "if ! ...".
62817         Reported by Ralf Wildenhues.
62818
62819 2007-03-25  Bruno Haible  <bruno@clisp.org>
62820
62821         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62822         <sysexits.h> file, and only add EX_CONFIG.
62823         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62824         absolute file name and whether it is sufficient. Substitute also
62825         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62826         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62827         ABSOLUTE_SYSEXITS_H into sysexits.h.
62828
62829 2007-03-25  Bruno Haible  <bruno@clisp.org>
62830
62831         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62832         hints is NULL.
62833
62834 2007-03-25  Bruno Haible  <bruno@clisp.org>
62835
62836         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62837         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62838
62839 2007-03-25  Bruno Haible  <bruno@clisp.org>
62840
62841         * lib/vasnprintf.c: Include langinfo.h.
62842         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62843         multithread-safe.
62844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62845         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62853         Reported by Simon Josefsson.
62854
62855 2007-03-25  Bruno Haible  <bruno@clisp.org>
62856
62857         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62858         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62859         * modules/vasnprintf (Depends-on): Add stdint.
62860
62861 2007-03-25  Bruno Haible  <bruno@clisp.org>
62862
62863         * modules/fpieee: New file.
62864         * m4/fpieee.m4: New file.
62865         * modules/isnan-nolibm (Depends-on): Add fpieee.
62866         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62867         * modules/isnanl (Depends-on): Add fpieee.
62868
62869 2007-03-25  Bruno Haible  <bruno@clisp.org>
62870
62871         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62872
62873 2007-03-25  Bruno Haible  <bruno@clisp.org>
62874
62875         Avoid test failures on IRIX 6.5.
62876         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62877         (main): Use it.
62878         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62879         macros.
62880         (main): Use them.
62881
62882 2007-03-25  Bruno Haible  <bruno@clisp.org>
62883
62884         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62885         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62886         exists but doesn't work.
62887         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62888         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62890         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62891         math.h.
62892
62893 2007-03-25  Bruno Haible  <bruno@clisp.org>
62894
62895         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62896         returns inf. Needed on IRIX 6.5.
62897
62898 2007-03-25  Bruno Haible  <bruno@clisp.org>
62899
62900         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62901         (main): Use isnanl instead of x != x idiom.
62902         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62903
62904         * tests/test-frexp.c: Include isnan.h.
62905         (main): Use isnan instead of x != x idiom.
62906         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62907
62908 2007-03-25  Bruno Haible  <bruno@clisp.org>
62909
62910         * tests/test-frexp.c (NaN): New function/macro.
62911         (main): Use it instead of 0.0 / 0.0.
62912         * tests/test-isnan.c (NaN): New function/macro.
62913         (main): Use it instead of 0.0 / 0.0.
62914         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62915         (test_function): Use it instead of 0.0 / 0.0.
62916         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62917         (test_function): Use it instead of 0.0 / 0.0.
62918         * tests/test-snprintf-posix.h (NaN): New function/macro.
62919         (test_function): Use it instead of 0.0 / 0.0.
62920         * tests/test-sprintf-posix.h (NaN): New function/macro.
62921         (test_function): Use it instead of 0.0 / 0.0.
62922         * tests/test-fprintf-posix.h (NaN): New function/macro.
62923         (test_function): Use it instead of 0.0 / 0.0.
62924         * tests/test-printf-posix.h (NaN): New function/macro.
62925         (test_function): Use it instead of 0.0 / 0.0.
62926
62927         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62928
62929 2007-03-25  Bruno Haible  <bruno@clisp.org>
62930
62931         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62932
62933 2007-03-25  Bruno Haible  <bruno@clisp.org>
62934
62935         * lib/regexec.c (merge_state_with_log): Make static.
62936
62937 2007-03-25  Bruno Haible  <bruno@clisp.org>
62938
62939         * lib/trigl.c (kernel_rem_pio2): Make static.
62940
62941 2007-03-25  Bruno Haible  <bruno@clisp.org>
62942
62943         * lib/sincosl.c (sincosl_table): Make static.
62944
62945 2007-03-25  Bruno Haible  <bruno@clisp.org>
62946
62947         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62948         if the compiler does not support C99.
62949
62950 2007-03-25  Bruno Haible  <bruno@clisp.org>
62951
62952         * modules/time (Makefile.am): Ensure all rule action lines start with a
62953         tab.
62954
62955 2007-03-24  Bruno Haible  <bruno@clisp.org>
62956
62957         * modules/tsearch-tests: New file.
62958         * tests/test-tsearch.sh: New file.
62959         * tests/test-tsearch.c: New file, mostly copied from glibc.
62960
62961         * modules/search-tests: New file.
62962         * tests/test-search.c: New file.
62963
62964         * modules/search: New file.
62965         * lib/search_.h: New file, incorporating lib/tsearch.h.
62966         * m4/search_h.m4: New file.
62967         * lib/tsearch.h: Remove file.
62968         * lib/tsearch.c: Include search.h instead of tsearch.h.
62969         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62970         HAVE_TSEARCH.
62971         * modules/tsearch (Files): Remove lib/tsearch.h.
62972         (Depends-on): Add search.
62973         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62974         (Include): Change tsearch.h into search.h.
62975
62976 2007-03-24  Bruno Haible  <bruno@clisp.org>
62977
62978         * modules/fpucw: New file.
62979         * lib/fpucw.h: New file.
62980         * lib/frexp.c: Include fpucw.h.
62981         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62982         (FUNC): Use them.
62983         * lib/printf-frexp.c: Include fpucw.h.
62984         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62985         (FUNC): Use them.
62986         * lib/vasnprintf.c: Include fpucw.h.
62987         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62988         'long double' calculations.
62989         * tests/test-frexpl.c: Include fpucw.h.
62990         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62991         * tests/test-printf-frexpl.c: Include fpucw.h.
62992         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62993         * modules/frexpl (Depends-on): Add fpucw.
62994         * modules/printf-frexpl (Depends-on): Likewise.
62995         * modules/fprintf-posix (Depends-on): Likewise.
62996         * modules/snprintf-posix (Depends-on): Likewise.
62997         * modules/sprintf-posix (Depends-on): Likewise.
62998         * modules/vasnprintf-posix (Depends-on): Likewise.
62999         * modules/vasprintf-posix (Depends-on): Likewise.
63000         * modules/vfprintf-posix (Depends-on): Likewise.
63001         * modules/vsnprintf-posix (Depends-on): Likewise.
63002         * modules/vsprintf-posix (Depends-on): Likewise.
63003         * modules/frexpl-tests (Depends-on): Likewise.
63004         * modules/printf-frexpl-tests (Depends-on): Likewise.
63005
63006 2007-03-24  Bruno Haible  <bruno@clisp.org>
63007
63008         * lib/float+.h: New file.
63009         * lib/isnan.c: Include float+.h.
63010         (SIZE): New macro.
63011         (FUNC): Compare only SIZE bytes of the value.
63012         * lib/vasnprintf.c: Include float+.h.
63013         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63014         SIZEOF_LDBL or SIZEOF_DBL bytes.
63015         * modules/isnan-nolibm (Files): Add lib/float+.h.
63016         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63017         * modules/isnanl (Files): Add lib/float+.h.
63018         * modules/vasnprintf (Files): Add lib/float+.h.
63019
63020 2007-03-24  Bruno Haible  <bruno@clisp.org>
63021
63022         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63023         include isnanl-nolibm.h.
63024
63025 2007-03-24  Bruno Haible  <bruno@clisp.org>
63026
63027         * tests/test-read-file.c (main): Don't produce spurious output for
63028         expected situations. Make the test fail if it encountered unexpected
63029         results.
63030
63031 2007-03-24  Bruno Haible  <bruno@clisp.org>
63032
63033         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63034         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63035
63036 2007-03-24  Bruno Haible  <bruno@clisp.org>
63037
63038         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63039
63040 2007-03-24  Bruno Haible  <bruno@clisp.org>
63041
63042         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63043         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63044
63045         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63046         * modules/utf8-ucs4: Turn into a symbolic link to module
63047         unistr/u8-mbtouc.
63048
63049         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63050         utf8-ucs4-unsafe.
63051         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63052         unistr/u8-mbtouc-unsafe.
63053
63054         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63055         * modules/utf16-ucs4: Turn into a symbolic link to module
63056         unistr/u16-mbtouc.
63057
63058         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63059         utf16-ucs4-unsafe.
63060         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63061         unistr/u16-mbtouc-unsafe.
63062
63063         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63064         * modules/ucs4-utf8: Turn into a symbolic link to module
63065         unistr/u8-ubtomb.
63066
63067         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63068         * modules/ucs4-utf16: Turn into a symbolic link to module
63069         unistr/u16-ubtomb.
63070
63071 2007-03-24  Bruno Haible  <bruno@clisp.org>
63072
63073         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63074         Enable the function only if HAVE_INLINE.
63075         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63076         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63077         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63078         Enable the function only if HAVE_INLINE.
63079         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63080         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63081         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63082         Enable the function only if HAVE_INLINE.
63083         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63084         Enable the function only if HAVE_INLINE.
63085         * modules/utf8-ucs4: Update.
63086         * modules/utf8-ucs4-unsafe: Update.
63087         * modules/utf16-ucs4: Update.
63088         * modules/utf16-ucs4-unsafe: Update.
63089         * modules/ucs4-utf8: Update.
63090         * modules/ucs4-utf16: Update.
63091
63092 2007-03-24  Bruno Haible  <bruno@clisp.org>
63093
63094         * lib/utf8-ucs4.h: Remove file.
63095         * lib/utf8-ucs4-unsafe.h: Remove file.
63096         * lib/utf16-ucs4.h: Remove file.
63097         * lib/utf16-ucs4-unsafe.h: Remove file.
63098         * lib/ucs4-utf8.h: Remove file.
63099         * lib/ucs4-utf16.h: Remove file.
63100         * lib/unistr.h: Include their previous contents.
63101         * m4/utf-ucs4.m4: Remove file.
63102         * m4/ucs4-utf.m4: Remove file.
63103         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63104         (Depends-on): Add unistr/base.
63105         (configure.ac): Remove gl_UTF_UCS4.
63106         (Makefile.am): Update.
63107         (Include): Change to unistr.h.
63108         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63109         (Depends-on): Add unistr/base.
63110         (configure.ac): Remove gl_UTF_UCS4.
63111         (Makefile.am): Update.
63112         (Include): Change to unistr.h.
63113         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63114         (Depends-on): Add unistr/base.
63115         (configure.ac): Remove gl_UTF_UCS4.
63116         (Makefile.am): Update.
63117         (Include): Change to unistr.h.
63118         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63119         (Depends-on): Add unistr/base.
63120         (configure.ac): Remove gl_UTF_UCS4.
63121         (Makefile.am): Update.
63122         (Include): Change to unistr.h.
63123         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63124         (Depends-on): Add unistr/base.
63125         (configure.ac): Remove gl_UCS4_UTF.
63126         (Makefile.am): Update.
63127         (Include): Change to unistr.h.
63128         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63129         (Depends-on): Add unistr/base.
63130         (configure.ac): Remove gl_UCS4_UTF.
63131         (Makefile.am): Update.
63132         (Include): Change to unistr.h.
63133         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63134         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63135         utf8-ucs4-unsafe.h.
63136         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63137         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63138         utf16-ucs4-unsafe.h.
63139         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63140         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63141         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63142         * lib/unistr/u8-strchr.c: Likewise.
63143         * lib/unistr/u8-strrchr.c: Likewise.
63144         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63145         * lib/unistr/u16-strchr.c: Likewise.
63146         * lib/unistr/u16-strrchr.c: Likewise.
63147         * lib/striconveh.c: Update.
63148         * lib/linebreak.c: Update.
63149
63150 2007-03-24  Bruno Haible  <bruno@clisp.org>
63151
63152         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63153         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63154
63155 2007-03-22  Bruno Haible  <bruno@clisp.org>
63156
63157         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63158
63159 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63160
63161         * MODULES.html.sh (File system functions): New module write-any-file.
63162         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63163         * m4/write-any-file.m4: New files.
63164
63165 2007-03-23  Eric Blake  <ebb9@byu.net>
63166
63167         * gnulib-tool: Rearrange space-tab sequences, since some editors
63168         like to eat them.
63169
63170 2007-03-23  Eric Blake  <ebb9@byu.net>
63171
63172         * lib/version-etc.c (version_etc_va): Update license wording to
63173         be more concise.  Recommended by Richard Stallman.
63174
63175 2007-03-22  Bruno Haible  <bruno@clisp.org>
63176
63177         * lib/poll.c (MSG_PEEK): New fallback definition.
63178
63179 2007-03-22  Bruno Haible  <bruno@clisp.org>
63180
63181         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63182         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63183         (main): Update.
63184         Fixes a compilation error on BeOS.
63185
63186 2007-03-22  Bruno Haible  <bruno@clisp.org>
63187
63188         * modules/frexpl-tests: New file.
63189         * tests/test-frexpl.c: New file.
63190
63191         * modules/frexpl: New file.
63192         * m4/frexpl.m4: New file.
63193         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63194         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63196         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63197         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63198         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63199
63200 2007-03-22  Bruno Haible  <bruno@clisp.org>
63201
63202         * lib/frexpl.c: Share code with lib/frexp.c.
63203         * modules/mathl (Files): Add lib/frexp.c.
63204         (Depends-on): Add isnanl-nolibm.
63205
63206 2007-03-22  Bruno Haible  <bruno@clisp.org>
63207
63208         * modules/printf-frexp (Files): Add m4/frexp.m4.
63209         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63210         only if the found frexp function actually works.
63211
63212 2007-03-22  Bruno Haible  <bruno@clisp.org>
63213
63214         * lib/frexp.c: Remove older implementation that uses divisions.
63215
63216 2007-03-21  Bruno Haible  <bruno@clisp.org>
63217
63218         * modules/frexp-tests: New file.
63219         * tests/test-frexp.c: New file.
63220
63221         * modules/frexp: New file.
63222         * lib/frexp.c: New file.
63223         * m4/frexp.m4: New file.
63224         * lib/math_.h (frexp): New declaration.
63225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63226         REPLACE_FREXP.
63227         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63228
63229 2007-03-21  Bruno Haible  <bruno@clisp.org>
63230
63231         * modules/isnanl-tests: New file.
63232         * tests/test-isnanl.c: New file.
63233
63234         * modules/isnanl: New file.
63235         * lib/isnanl.h: New file.
63236         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
63237         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
63238         gl_FUNC_ISNANL_WORKS.
63239         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
63240         New macros.
63241
63242 2007-03-21  Bruno Haible  <bruno@clisp.org>
63243
63244         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
63245         lib/isnanl.h.
63246         (Include): Update.
63247         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
63248         * lib/vasnprintf.c: Update.
63249         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
63250         tests/test-isnanl.h, remove tests/test-isnanl.c.
63251         (Makefile.am): Update.
63252         * tests/test-isnanl-nolibm.c: New file.
63253         * tests/test-isnanl.h: New file.
63254         * tests/test-isnanl.c: Remove file.
63255
63256 2007-03-21  Jim Meyering  <jim@meyering.net>
63257
63258         When trying to open ".", treat ESTALE like EACCES.
63259         * lib/savewd.c (savewd_save): Resort to forking not just upon
63260         failure with EACCES, but also when errno is ESTALE.
63261
63262 2007-03-20  Bruno Haible  <bruno@clisp.org>
63263
63264         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
63265         Needed on AIX 5.1. Reported by Matthew Woehlke.
63266
63267 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63268
63269         Suggestions by Bruno Haible:
63270         * lib/acl-internal.h: Include "gettext.h" rather than rolling
63271         our own.
63272         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
63273         * modules/acl (Depends-on): Add gettext.
63274
63275 2007-03-19  Bruno Haible  <bruno@clisp.org>
63276
63277         * modules/iconvme: Remove file.
63278         * lib/iconvme.h: Remove file.
63279         * lib/iconvme.c: Remove file.
63280         * m4/iconvme.m4: Remove file.
63281
63282 2007-03-19  Bruno Haible  <bruno@clisp.org>
63283
63284         * doc/relocatable-maint.texi: Break long shell script line.
63285         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63286
63287 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63288
63289         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
63290         handle file_has_acl.
63291         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
63292         * lib/acl.c: Move header inclusions and related macro defns into
63293         lib/acl-internal.h.
63294         (S_ISLNK): Remove defn, since that's now done for us.
63295         (file_has_acl): Move to lib/file-has-acl.c.
63296         Call acl_trivial if available.  This is the crucial part of the fix.
63297         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
63298         shared within the library.  Rewrite a bit, partly to make it compatible
63299         with the GNU coding style.
63300         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
63301         Remove unnecessary double-quotes.
63302         Don't test for acl_to_text; the build will catch that.
63303         Replace acl_entries if it doesn't exist and it is needed.
63304         Check for -lsec and acl_trivial (as used on Solaris 10).
63305         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
63306         lib/file-has-acl.c.
63307         (Depends-on): Add sys_stat, for S_ISLNK.
63308
63309 2007-03-19  Ben Pfaff  <blp@gnu.org>
63310
63311         * doc/gnulib.texi: Fix typos.
63312         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63313
63314 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63315
63316         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
63317         If size is zero here, buf must be zero.
63318
63319 2007-03-19  Simon Josefsson  <simon@josefsson.org>
63320
63321         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
63322         <bruno@clisp.org>.
63323
63324 2007-03-18  Bruno Haible  <bruno@clisp.org>
63325
63326         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
63327         Suggested by Eric Blake.
63328
63329 2007-03-18  Ben Pfaff  <blp@gnu.org>
63330
63331         * doc/relocatable.texi: Recommend using as prefix a directory
63332         that does not exist and will never be created.  Based on
63333         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
63334         and others.
63335
63336 2007-03-17  Bruno Haible  <bruno@clisp.org>
63337
63338         * lib/fchownat.c: Include lchown.h.
63339
63340 2007-03-17  Bruno Haible  <bruno@clisp.org>
63341
63342         Fix endless loop when the given allocated size was > INT_MAX.
63343         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
63344         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
63345         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
63346         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
63347         * lib/sprintf.c (sprintf): Likewise.
63348
63349 2007-03-17  Bruno Haible  <bruno@clisp.org>
63350
63351         * tests/test-argp-2.sh (func_compare): Output a context diff.
63352
63353 2007-03-17  Bruno Haible  <bruno@clisp.org>
63354
63355         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
63356         locale's decimal-point character.
63357
63358 2007-03-17  Bruno Haible  <bruno@clisp.org>
63359
63360         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
63361         before comparing it. Needed because on some platforms (e.g. x86) a
63362         'long double' occupies less bytes than sizeof (long double).
63363
63364 2007-03-17  Bruno Haible  <bruno@clisp.org>
63365
63366         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63367         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63368         * tests/test-getaddrinfo.c (simple): Likewise.
63369         * tests/test-read-file.c (main): Likewise.
63370
63371 2007-03-17  Bruno Haible  <bruno@clisp.org>
63372
63373         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63374
63375 2007-03-17  Bruno Haible  <bruno@clisp.org>
63376
63377         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63378         unused variable.
63379
63380 2007-03-17  Bruno Haible  <bruno@clisp.org>
63381
63382         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63383         * tests/test-c-strncasecmp.c: Likewise.
63384
63385 2007-03-17  Bruno Haible  <bruno@clisp.org>
63386
63387         * modules/stdlib (Depends-on): Add unistd.
63388         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63389         Needed for MacOS X 10.3.
63390
63391 2007-03-17  Bruno Haible  <bruno@clisp.org>
63392
63393         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63394
63395 2007-03-17  Bruno Haible  <bruno@clisp.org>
63396
63397         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63398
63399 2007-03-17  Bruno Haible  <bruno@clisp.org>
63400
63401         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63402         to reflect files copied from gnulib (with or without modifications).
63403         Suggested by Jim Meyering.
63404
63405 2007-03-17  Eric Blake  <ebb9@byu.net>
63406
63407         * NEWS: Document stdlib change from 2007-02-18.
63408
63409 2007-03-17  Jim Meyering  <jim@meyering.net>
63410
63411         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63412         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63413         someone uses a name containing shell meta-characters.
63414         Reported by Alfred M. Szmidt.
63415
63416         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63417
63418 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63419
63420         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63421         and copy gettext configuration files only if configure.ac contains
63422         a use of AM_GNU_GETTEXT_VERSION.
63423
63424 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63425
63426         * build-aux/bootstrap (gnulib_name): New variable.
63427         (gnulib_tool_options): Use it.
63428
63429 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63430
63431         * tests/test-des.c: Use new namespace.
63432
63433 2007-03-15  Bruno Haible  <bruno@clisp.org>
63434
63435         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63436         Reported by James Youngman <jay@gnu.org>.
63437
63438 2007-03-15  Bruno Haible  <bruno@clisp.org>
63439
63440         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63441         declared prototype. Needed with cc on OSF/1 5.1.
63442
63443 2007-03-15  Bruno Haible  <bruno@clisp.org>
63444
63445         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63446         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63447         (struct gl_list_implementation): Add dispose_fn argument to the
63448         'create_empty', 'create' methods.
63449         (struct gl_list_impl_base): Add field 'dispose_fn'.
63450         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63451         argument.
63452         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63453         dispose_fn argument.
63454         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63455         dispose_fn on the dropped values.
63456         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63457         dispose_fn argument.
63458         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63459         dropped values.
63460         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63461         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63462         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63463         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63464         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63465         argument.
63466         (gl_tree_list_free): Call dispose_fn on the dropped values.
63467         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63468         the dropped values.
63469         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63470         Add dispose_fn argument.
63471         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63472         Call dispose_fn on the dropped values.
63473         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63474         Add dispose_fn argument.
63475         (gl_sublist_create): Initialize the 'dispose_fn' field.
63476         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63477         * tests/test-array_list.c (main): Update.
63478         * tests/test-carray_list.c (main): Update.
63479         * tests/test-avltree_list.c (main): Update.
63480         * tests/test-rbtree_list.c (main): Update.
63481         * tests/test-avltreehash_list.c (main): Update.
63482         * tests/test-rbtreehash_list.c (main): Update.
63483         * tests/test-linked_list.c (main): Update.
63484         * tests/test-linkedhash_list.c (main): Update.
63485         * tests/test-array_oset.c (main): Update.
63486
63487 2007-03-15  Bruno Haible  <bruno@clisp.org>
63488
63489         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63490         (gl_oset_create_empty): Add dispose_fn argument.
63491         (struct gl_oset_implementation): Add dispose_fn argument to
63492         'create_empty' method.
63493         (struct gl_oset_impl_base): Add dispose_fn field.
63494         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63495         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63496         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63497         values.
63498         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63499         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63500         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63501         dropped value.
63502         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63503         dropped value.
63504         * tests/test-array_oset.c (main): Update.
63505         * tests/test-avltree_oset.c (main): Update.
63506         * tests/test-rbtree_oset.c (main): Update.
63507         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63508
63509 2007-03-13  Bruno Haible  <bruno@clisp.org>
63510
63511         * tests/test-stdbool.c (i): Update after last patch.
63512
63513 2007-03-12  Bruno Haible  <bruno@clisp.org>
63514
63515         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63516         the iswprint macro. Needed on Solaris 2.5.1.
63517
63518 2007-03-12  Bruno Haible  <bruno@clisp.org>
63519
63520         * tests/test-printf-frexp.c (main): Declare x as volatile.
63521
63522 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63523
63524         * doc/gnulib.texi (Build robot for gnulib): New section.
63525
63526 2007-03-12  Jim Meyering  <jim@meyering.net>
63527
63528         * build-aux/bootstrap: New file.
63529         * build-aux/bootstrap.conf: New file, from coreutils.
63530
63531 2007-03-11  Bruno Haible  <bruno@clisp.org>
63532
63533         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63534
63535 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63536
63537         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63538         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63539         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63540
63541 2007-03-11  Bruno Haible  <bruno@clisp.org>
63542
63543         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63544         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63545
63546 2007-03-11  Bruno Haible  <bruno@clisp.org>
63547
63548         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63549         formula. Needed for SunPRO C 5.0.
63550
63551 2007-03-11  Bruno Haible  <bruno@clisp.org>
63552
63553         * modules/long-options (Depends-on): Add getopt.
63554
63555 2007-03-11  Bruno Haible  <bruno@clisp.org>
63556
63557         * modules/modechange (Depends-on): Add stdbool.
63558
63559 2007-03-11  Bruno Haible  <bruno@clisp.org>
63560
63561         * modules/i-ring (Depends-on): Add stdbool.
63562
63563 2007-03-11  Bruno Haible  <bruno@clisp.org>
63564
63565         * modules/gc-des (Depends-on): Add stdbool.
63566
63567 2007-03-11  Bruno Haible  <bruno@clisp.org>
63568
63569         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63570
63571 2007-03-11  Bruno Haible  <bruno@clisp.org>
63572
63573         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63574
63575 2007-03-11  Bruno Haible  <bruno@clisp.org>
63576
63577         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63578
63579 2007-03-11  Bruno Haible  <bruno@clisp.org>
63580
63581         * lib/vasnprintf.c (sprintf): Undefine.
63582
63583 2007-03-11  Bruno Haible  <bruno@clisp.org>
63584
63585         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63586         initializers in SunPRO C and Compaq C compilers.
63587
63588 2007-03-11  Bruno Haible  <bruno@clisp.org>
63589
63590         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63591         decrementing code ANSI C compliant.
63592
63593 2007-03-11  Bruno Haible  <bruno@clisp.org>
63594
63595         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63596         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63597
63598 2007-03-11  Bruno Haible  <bruno@clisp.org>
63599
63600         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63601         <stdbool.h> substitute doesn't pass.
63602
63603 2007-03-11  Bruno Haible  <bruno@clisp.org>
63604
63605         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63606
63607 2007-03-11  Bruno Haible  <bruno@clisp.org>
63608
63609         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63610         script, for submission to autobuild.josefsson.org.
63611
63612 2007-03-10  Bruno Haible  <bruno@clisp.org>
63613
63614         * modules/canonicalize-lgpl-tests: New file.
63615         * tests/test-canonicalize-lgpl.sh: New file.
63616         * tests/test-canonicalize-lgpl.c: New file.
63617
63618         * modules/c-strcase-tests: New file.
63619         * tests/test-c-strcase.sh: New file.
63620         * tests/test-c-strcasecmp.c: New file.
63621         * tests/test-c-strncasecmp.c: New file.
63622
63623         * modules/atexit-tests: New file.
63624         * tests/test-atexit.sh: New file.
63625         * tests/test-atexit.c: New file.
63626
63627 2007-03-10  Bruno Haible  <bruno@clisp.org>
63628
63629         * tests/test-binary-io.sh: Use temporary filenames that are not so
63630         likely to clash with those of other tests (in a parallel make).
63631         * tests/test-binary-io.c: Likewise.
63632
63633 2007-03-10  Bruno Haible  <bruno@clisp.org>
63634
63635         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63636         fallback; use #error instead.
63637         Suggested by Simon Josefsson.
63638
63639 2007-03-10  Bruno Haible  <bruno@clisp.org>
63640
63641         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63642         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63643         first and the last.
63644
63645 2007-03-10  Bruno Haible  <bruno@clisp.org>
63646
63647         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63648
63649 2007-03-10  Bruno Haible  <bruno@clisp.org>
63650
63651         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63652         "make distcheck".
63653         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63654         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63655         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63656
63657 2007-03-10  Bruno Haible  <bruno@clisp.org>
63658
63659         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63660         variable.
63661         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63662         variable.
63663
63664 2007-03-09  Eric Blake  <ebb9@byu.net>
63665         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63666
63667         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63668         types are not being provided by gnulib.
63669         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63670         types are supported.
63671
63672 2007-03-10  Bruno Haible  <bruno@clisp.org>
63673
63674         * lib/stdio_.h (__attribute__): New macro.
63675         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63676         vsprintf): Specify __attribute__ __format__ for GCC.
63677         Suggested by Eric Blake.
63678
63679 2007-03-09  Bruno Haible  <bruno@clisp.org>
63680
63681         * modules/printf-posix-tests: New file.
63682         * tests/test-printf-posix.sh: New file.
63683         * tests/test-printf-posix.c: New file.
63684
63685         * modules/printf-posix: New file.
63686         * lib/printf.c: New file.
63687         * m4/printf-posix-rpl.m4: New file.
63688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63689         REPLACE_PRINTF.
63690         * lib/stdio_.h (printf): New declaration.
63691         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63692         ____strfmon____): New macros.
63693         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63694         REPLACE_PRINTF.
63695
63696 2007-03-09  Bruno Haible  <bruno@clisp.org>
63697
63698         * tests/test-vasnprintf-posix2.sh: New file.
63699         * tests/test-vasnprintf-posix2.c: New file.
63700         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63701         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63702         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63703
63704         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63705         a locale dependent decimal point, rather than always '.'.
63706
63707 2007-03-09  Eric Blake  <ebb9@byu.net>
63708
63709         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63710         spite of platforms like Tandem/NSK that define it to -1.
63711
63712 2007-03-08  Bruno Haible  <bruno@clisp.org>
63713
63714         * modules/vprintf-posix-tests: New file.
63715         * tests/test-vprintf-posix.sh: New file.
63716         * tests/test-vprintf-posix.c: New file.
63717         * tests/test-printf-posix.h: New file.
63718
63719         * modules/vprintf-posix: New file.
63720         * lib/vprintf.c: New file.
63721         * m4/vprintf-posix.m4: New file.
63722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63723         REPLACE_VPRINTF.
63724         * lib/stdio_.h (vprintf): New declaration.
63725         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63726         REPLACE_VPRINTF.
63727
63728 2007-03-08  Bruno Haible  <bruno@clisp.org>
63729
63730         * modules/fprintf-posix-tests: New file.
63731         * tests/test-fprintf-posix.sh: New file.
63732         * tests/test-fprintf-posix.c: New file.
63733
63734         * modules/fprintf-posix: New file.
63735         * lib/fprintf.c: New file.
63736         * m4/fprintf-posix.m4: New file.
63737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63738         REPLACE_FPRINTF.
63739         * lib/stdio_.h (fprintf): New declaration.
63740         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63741         REPLACE_FPRINTF.
63742
63743 2007-03-08  Bruno Haible  <bruno@clisp.org>
63744
63745         * modules/vfprintf-posix-tests: New file.
63746         * tests/test-vfprintf-posix.sh: New file.
63747         * tests/test-vfprintf-posix.c: New file.
63748         * tests/test-fprintf-posix.h: New file.
63749         * tests/test-fprintf-posix.out: New file.
63750
63751         * modules/vfprintf-posix: New file.
63752         * lib/vfprintf.c: New file.
63753         * m4/vfprintf-posix.m4: New file.
63754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63755         REPLACE_VFPRINTF.
63756         * lib/stdio_.h (vfprintf): New declaration.
63757         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63758         REPLACE_VFPRINTF.
63759
63760 2007-03-08  Bruno Haible  <bruno@clisp.org>
63761
63762         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63763
63764 2007-03-08  Bruno Haible  <bruno@clisp.org>
63765
63766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63767         instead of 'expr' invocations.
63768         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63769         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63770         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63771         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63772         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63773         Suggested by Paul Eggert.
63774
63775 2007-03-08  Bruno Haible  <bruno@clisp.org>
63776
63777         * modules/fseterr-tests: New file.
63778         * tests/test-fseterr.c: New file.
63779
63780         * modules/fseterr: New file.
63781         * lib/fseterr.h: New file.
63782         * lib/fseterr.c: New file.
63783
63784 2007-03-08  Bruno Haible  <bruno@clisp.org>
63785
63786         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63787         * lib/getopt_.h: Likewise.
63788         * lib/mbswidth.h: Likewise.
63789         * lib/setenv.h: Likewise.
63790         * lib/vasnprintf.h: Likewise.
63791         * lib/vasprintf.h: Likewise.
63792         * lib/verror.h: Likewise.
63793         * lib/xsetenv.h: Likewise.
63794         * lib/xvasprintf.h: Likewise.
63795
63796 2007-03-08  Jim Meyering  <jim@meyering.net>
63797
63798         * users.txt: Add parted.
63799
63800         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63801
63802 2007-03-07  Bruno Haible  <bruno@clisp.org>
63803
63804         * m4/printf.m4: Make the shell script snippets copy&pastable.
63805
63806 2007-03-02  Bruno Haible  <bruno@clisp.org>
63807
63808         * lib/netinet_in_.h: New file.
63809         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63810         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63811         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63812         (Depends-on): Add absolute-header.
63813         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63814         into netinet/in.h.
63815
63816 2007-03-03  Bruno Haible  <bruno@clisp.org>
63817
63818         * lib/sys_select_.h: New file.
63819         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63820         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63821         * modules/sys_select (Files): Add lib/sys_select_.h.
63822         (Depends-on): Add absolute-header.
63823         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63824         into sys/select.h.
63825
63826 2007-03-02  Bruno Haible  <bruno@clisp.org>
63827
63828         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63829         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63830         values.
63831         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63832         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63833         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63834         * modules/sys_socket (Depends-on): Add absolute-header.
63835         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63836         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63837         (Include): Remove requirement of inclusion of <sys/types.h>.
63838
63839 2007-03-02  Bruno Haible  <bruno@clisp.org>
63840
63841         * lib/byteswap_.h (bswap_32): Fix formula.
63842
63843 2007-03-06  Bruno Haible  <bruno@clisp.org>
63844
63845         * modules/sprintf-posix-tests: New file.
63846         * tests/test-sprintf-posix.c: New file.
63847
63848         * modules/sprintf-posix: New file.
63849         * lib/sprintf.c: New file.
63850         * m4/sprintf-posix.m4: New file.
63851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63852         REPLACE_SPRINTF.
63853         * lib/stdio_.h (sprintf): New declaration.
63854         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63855         REPLACE_SPRINTF.
63856
63857 2007-03-06  Bruno Haible  <bruno@clisp.org>
63858
63859         * modules/vsprintf-posix-tests: New file.
63860         * tests/test-vsprintf-posix.c: New file.
63861         * tests/test-sprintf-posix.h: New file.
63862
63863         * modules/vsprintf-posix: New file.
63864         * lib/vsprintf.c: New file.
63865         * m4/vsprintf-posix.m4: New file.
63866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63867         REPLACE_VSPRINTF.
63868         * lib/stdio_.h (vsprintf): New declaration.
63869         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63870         REPLACE_VSPRINTF.
63871
63872 2007-03-06  Bruno Haible  <bruno@clisp.org>
63873
63874         * modules/vsnprintf (Depend-on): Remove minmax.
63875
63876 2007-03-06  Bruno Haible  <bruno@clisp.org>
63877
63878         * modules/snprintf-posix-tests: New file.
63879         * tests/test-snprintf-posix.c: New file.
63880
63881         * modules/snprintf-posix: New file.
63882         * m4/snprintf-posix.m4: New file.
63883         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63884         gl_FUNC_SNPRINTF.
63885         (gl_FUNC_SNPRINTF): Invoke it.
63886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63887         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63888         is set.
63889         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63890
63891 2007-03-06  Bruno Haible  <bruno@clisp.org>
63892
63893         * modules/vsnprintf-posix-tests: New file.
63894         * tests/test-vsnprintf-posix.c: New file.
63895         * tests/test-snprintf-posix.h: New file.
63896
63897         * modules/vsnprintf-posix: New file.
63898         * m4/vsnprintf-posix.m4: New file.
63899         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63900         gl_FUNC_VSNPRINTF.
63901         (gl_FUNC_VSNPRINTF): Invoke it.
63902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63903         * lib/stdio_.h (vsnprintf): Define as a replacement if
63904         REPLACE_VSNPRINTF is set.
63905         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63906
63907 2007-03-06  Bruno Haible  <bruno@clisp.org>
63908
63909         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63911
63912 2007-03-06  Bruno Haible  <bruno@clisp.org>
63913
63914         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63915         (asinl): Declare also if HAVE_DECL_ASINL is set.
63916         (atanl): Declare also if HAVE_DECL_ATANL is set.
63917         (ceill): Declare also if HAVE_DECL_CEILL is set.
63918         (cosl): Declare also if HAVE_DECL_COSL is set.
63919         (expl): Declare also if HAVE_DECL_EXPL is set.
63920         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63921         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63922         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63923         (logl): Declare also if HAVE_DECL_LOGL is set.
63924         (sinl): Declare also if HAVE_DECL_SINL is set.
63925         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63926         (tanl): Declare also if HAVE_DECL_TANL is set.
63927         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63929         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63930         declaration of frexpl, ldexpl.
63931         * modules/printf-frexpl (Depends-on): Add math.
63932         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63933
63934 2007-03-05  Bruno Haible  <bruno@clisp.org>
63935
63936         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63937         frexpl and ldexpl are declared.
63938         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63939
63940 2007-03-05  Bruno Haible  <bruno@clisp.org>
63941
63942         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63943         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63944
63945 2007-03-05  Bruno Haible  <bruno@clisp.org>
63946
63947         * lib/stdio_.h: Include <stddef.h>.
63948
63949 2007-03-05  Bruno Haible  <bruno@clisp.org>
63950
63951         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63952
63953 2007-03-05  Bruno Haible  <bruno@clisp.org>
63954
63955         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63956         NetBSD 4, from Ralf Wildenhues.
63957
63958 2007-03-04  Bruno Haible  <bruno@clisp.org>
63959
63960         * lib/vasprintf.h: Update #if logic for the case when the functions
63961         exist but are overridden.
63962
63963 2007-03-04  Bruno Haible  <bruno@clisp.org>
63964
63965         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63966         implementations: glibc-2.4 and MacOS X 10.3.
63967         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63968         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63969         * tests/test-vasprintf-posix.c (test_function): Likewise.
63970
63971 2007-03-04  Bruno Haible  <bruno@clisp.org>
63972
63973         * modules/vasprintf-posix-tests: New file.
63974         * tests/test-vasprintf-posix.c: New file.
63975
63976         * modules/vasprintf-posix: New file.
63977         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63978         defined.
63979         * m4/vasprintf-posix.m4: New file.
63980         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63981         gl_FUNC_VASPRINTF.
63982         (gl_FUNC_VASPRINTF): Invoke it.
63983         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63984         here.
63985         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63986
63987 2007-03-04  Bruno Haible  <bruno@clisp.org>
63988
63989         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63990         REPLACE_GETTIMEOFDAY.
63991         * modules/sys_time (Makefile.am): Likewise.
63992         * m4/sys_time_h.m4: Likewise.
63993         * m4/gettimeofday.m4: Likewise.
63994
63995 2007-03-04  Bruno Haible  <bruno@clisp.org>
63996
63997         * modules/vasnprintf-posix-tests: New file.
63998         * tests/test-vasnprintf-posix.c: New file.
63999
64000         * modules/vasnprintf-posix: New file.
64001         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64002         printf-frexpl.h.
64003         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64004         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64005         REPLACE_VASNPRINTF is defined.
64006         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64007         gl_FUNC_VASNPRINTF.
64008         (gl_FUNC_VASNPRINTF): Invoke it.
64009         * m4/vasnprintf-posix.m4: New file.
64010         * m4/printf.m4: New file.
64011
64012 2007-03-04  Bruno Haible  <bruno@clisp.org>
64013
64014         Compile progreloc.c only if --enable-relocatable is specified.
64015         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64016         if --enable-relocatable was specified.
64017         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64018         lib_SOURCES.
64019
64020 2007-03-04  Jim Meyering  <jim@meyering.net>
64021
64022         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64023         Use it consistently, rather than enumerating errno constants.
64024
64025 2007-03-04  Bruno Haible  <bruno@clisp.org>
64026
64027         * modules/xvasprintf-tests: New file.
64028         * tests/test-xvasprintf.c: New file.
64029
64030         * modules/vasprintf-tests: New file.
64031         * tests/test-vasprintf.c: New file.
64032
64033         * modules/vasnprintf-tests: New file.
64034         * tests/test-vasnprintf.c: New file.
64035
64036         * modules/vsnprintf-tests: New file.
64037         * tests/test-vsnprintf.c: New file.
64038
64039         * modules/snprintf-tests: New file.
64040         * tests/test-snprintf.c: New file.
64041
64042 2007-03-04  Bruno Haible  <bruno@clisp.org>
64043
64044         Compile relocatable.c only if --enable-relocatable is specified.
64045         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64046         gl_RELOCATABLE_LIBRARY.
64047         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64048         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64049         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64050         gl_RELOCATABLE_LIBRARY.
64051         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64052         (Makefile.am): Remove lib_SOURCES.
64053         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64054         gl_RELOCATABLE_LIBRARY.
64055         (Makefile.am): Remove lib_SOURCES.
64056         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64057         always.
64058         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64059         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64060
64061 2007-03-04  Bruno Haible  <bruno@clisp.org>
64062
64063         * modules/argmatch-tests: New file.
64064         * tests/test-argmatch.c: New file.
64065
64066         * tests/test-allocsa.c (main): Halve the number of loop runs.
64067
64068         * modules/alloca-opt-tests: New file.
64069         * tests/test-alloca-opt.c: New file.
64070
64071 2007-03-04  Jim Meyering  <jim@meyering.net>
64072
64073         Work around difference between Linux ACLs and Solaris 10 ZFS.
64074         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64075         for EINVAL.
64076
64077 2007-03-03  Bruno Haible  <bruno@clisp.org>
64078
64079         * modules/relocatable-prog (Depends-on): Add back progreloc's
64080         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64081
64082 2007-03-03  Bruno Haible  <bruno@clisp.org>
64083
64084         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64085         * modules/relocatable-lib: New file.
64086
64087 2007-03-03  Bruno Haible  <bruno@clisp.org>
64088
64089         * modules/relocatable-prog: Renamed from modules/relocatable.
64090         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64091
64092 2007-03-03  Bruno Haible  <bruno@clisp.org>
64093
64094         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64095         m4/relocatable-lib.m4.
64096         (Depends-on): Remove 'relocatable'.
64097         (configure.ac): Add gl_RELOCATABLE_NOP.
64098
64099 2007-03-03  Bruno Haible  <bruno@clisp.org>
64100
64101         * modules/relocatable-prog-wrapper: New file.
64102         * modules/relocatable (Depends-on): Add it. Remove all other
64103         dependencies except progname.
64104         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64105
64106         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64107         (gl_FUNC_STRERROR): Nop.
64108         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64109
64110         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64111         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64112
64113         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64114         (gl_FUNC_READLINK): Update.
64115
64116         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64117
64118 2007-03-03  Bruno Haible  <bruno@clisp.org>
64119
64120         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64121         * modules/xreadlink (Depends-on): Add unistd.
64122         * modules/xreadlink-with-size (Depends-on): Likewise.
64123
64124 2007-03-03  Bruno Haible  <bruno@clisp.org>
64125
64126         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64127         extracted from gt_FUNC_SETENV.
64128         (gt_FUNC_SETENV): Remove macro.
64129         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64130         remove gt_FUNC_SETENV.
64131
64132 2007-03-03  Bruno Haible  <bruno@clisp.org>
64133
64134         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64135         ENABLE_RELOCATABLE here.
64136         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64137
64138 2007-03-03  Bruno Haible  <bruno@clisp.org>
64139
64140         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64141         * tests/test-rbtreehash_list.c: Include progname.h.
64142         (main): Call set_program_name.
64143
64144         * modules/rbtree-oset-tests (Depends-on): Add progname.
64145         * tests/test-rbtree_oset.c: Include progname.h.
64146         (main): Call set_program_name.
64147
64148         * modules/rbtree-list-tests (Depends-on): Add progname.
64149         * tests/test-rbtree_list.c: Include progname.h.
64150         (main): Call set_program_name.
64151
64152         * modules/linked-list-tests (Depends-on): Add progname.
64153         * tests/test-linked_list.c: Include progname.h.
64154         (main): Call set_program_name.
64155
64156 2007-03-03  Bruno Haible  <bruno@clisp.org>
64157
64158         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64159         All uses of __restrict changed to _Restrict_.
64160         * lib/glob_.h (__restrict): Remove macro.
64161
64162 2007-03-02  Bruno Haible  <bruno@clisp.org>
64163
64164         * modules/gettext (configure.ac): Require gettext infrastructure
64165         from version 0.16.1.
64166
64167 2007-03-02  Bruno Haible  <bruno@clisp.org>
64168
64169         * modules/linkedhash-list-tests (Depends-on): Add progname.
64170         * tests/test-linkedhash_list.c: Include progname.h.
64171         (main): Call set_program_name.
64172
64173         * modules/carray-list-tests (Depends-on): Add progname.
64174         * tests/test-carray_list.c: Include progname.h.
64175         (main): Call set_program_name.
64176
64177         * modules/avltreehash-list-tests (Depends-on): Add progname.
64178         * tests/test-avltreehash_list.c: Include progname.h.
64179         (main): Call set_program_name.
64180
64181         * modules/avltree-oset-tests (Depends-on): Add progname.
64182         * tests/test-avltree_oset.c: Include progname.h.
64183         (main): Call set_program_name.
64184
64185         * modules/avltree-list-tests (Depends-on): Add progname.
64186         * tests/test-avltree_list.c: Include progname.h.
64187         (main): Call set_program_name.
64188
64189         * modules/array-oset-tests (Depends-on): Add progname.
64190         * tests/test-array_oset.c: Include progname.h.
64191         (main): Call set_program_name.
64192
64193         * modules/array-list-tests (Depends-on): Add progname.
64194         * tests/test-array_list.c: Include progname.h.
64195         (main): Call set_program_name.
64196
64197         * modules/argp-tests (Depends-on): Add progname.
64198         * tests/test-argp.c: Include argp.h first. Include progname.h.
64199         (main): Call set_program_name.
64200
64201 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64202
64203         * doc/gnulib-tool.texi (Initial import): Reword description of
64204         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64205         limited effect even if defined after the first system include.
64206
64207 2007-03-01  Bruno Haible  <bruno@clisp.org>
64208
64209         * build-aux/config.libpath: Update to libtool-1.5.22.
64210         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64211
64212 2007-03-01  Bruno Haible  <bruno@clisp.org>
64213
64214         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64215         foo_CFLAGS.
64216         Reported by Ralf Wildenhues.
64217
64218 2007-03-01  Bruno Haible  <bruno@clisp.org>
64219
64220         * build-aux/install-reloc: Remove object files left over by some
64221         compilers.
64222         Reported by Ralf Wildenhues.
64223
64224 2007-03-01  Bruno Haible  <bruno@clisp.org>
64225
64226         * build-aux/install-reloc: Break long lines.
64227
64228 2007-03-01  Bruno Haible  <bruno@clisp.org>
64229
64230         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64231         Reported by Ralf Wildenhues.
64232
64233 2007-03-01  Bruno Haible  <bruno@clisp.org>
64234
64235         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
64236         include ordering constraints.
64237
64238 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64239
64240         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
64241         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
64242         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
64243         as another example.
64244         * lib/time_.h: Fix misspelling.
64245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64246         Require gl_HEADER_TIME_H_DEFAULTS.
64247         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
64248         * m4/time_r.m4 (gl_TIME_R): Likewise.
64249         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
64250
64251 2007-03-01  Bruno Haible  <bruno@clisp.org>
64252
64253         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
64254         * m4/utimens.m4 (gl_UTIMENS): Likewise.
64255
64256 2007-03-01  Jim Meyering  <jim@meyering.net>
64257
64258         * modules/xreadlink (Maintainer): Add my name.
64259         * modules/xreadlink-with-size (Depends-on): Alphabetize.
64260
64261 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
64262             Bruno Haible  <bruno@clisp.org>
64263
64264         * build-aux/install-reloc: Compile also c-ctype.c.
64265         * build-aux/relocatable.sh.in: New file.
64266         * doc/relocatable.texi: New file.
64267         * doc/relocatable-maint.texi: New file.
64268         * doc/gnulib.texi: Include relocatable-maint.texi.
64269         * lib/progreloc.c: Include unistd.h unconditionally.
64270         * lib/relocwrapper.c: Include unistd.h unconditionally.
64271         Include c-ctype.h.
64272         (add_dotbin): Use c_tolower.
64273         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
64274         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
64275         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
64276         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
64277         to m4/relocatable-lib.m4.
64278         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
64279         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
64280         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
64281         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
64282         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
64283         * modules/relocatable: New file.
64284         * modules/relocatable-lib: New file.
64285         * modules/relocatable-script: New file.
64286
64287 2007-02-28  Bruno Haible  <bruno@clisp.org>
64288
64289         Import --enable-relocatable infrastructure.
64290         * build-aux/config.libpath: New file, from GNU gettext.
64291         * build-aux/install-reloc: New file, from GNU gettext.
64292         * build-aux/reloc-ldflags: New file, from GNU gettext.
64293         * lib/relocatable.h: New file, from GNU gettext.
64294         * lib/relocatable.c: New file, from GNU gettext.
64295         * lib/relocwrapper.c: New file, from GNU gettext.
64296         * m4/relocatable.m4: New file, from GNU gettext.
64297
64298 2007-02-28  Bruno Haible  <bruno@clisp.org>
64299
64300         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
64301
64302         * modules/xreadlink: New file, from GNU gettext with modifications.
64303         * lib/xreadlink.c: New file, from GNU gettext.
64304         * lib/xreadlink.h: Add comments.
64305         (xreadlink): New declaration.
64306
64307         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
64308         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
64309         lib/xreadlink-with-size.c.
64310         (configure.ac): Remove gl_XREADLINK invocation.
64311         (Makefile.am): Augment lib_SOURCES.
64312         * m4/xreadlink.m4: Remove file.
64313         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
64314         (xreadlink_with_size): Renamed from xreadink.
64315         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
64316         * modules/canonicalize (Depends-on): Replace xreadlink with
64317         xreadlink-with-size.
64318         * lib/canonicalize.c (canonicalize_filename_mode): Update.
64319
64320 2007-02-25  Jim Meyering  <jim@meyering.net>
64321
64322         * build-aux/announce-gen: When complaining about excess arguments,
64323         list them.
64324
64325 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64326
64327         * README: Document signed integer overflow situation more
64328         accurately.
64329
64330 2007-02-25  Bruno Haible  <bruno@clisp.org>
64331
64332         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
64333         'a' or 'A' conversion.
64334
64335 2007-02-25  Bruno Haible  <bruno@clisp.org>
64336
64337         * modules/filename: Renamed from modules/pathname.
64338         (Files): Replace lib/pathname.h with lib/filename.h. Replace
64339         lib/concatpath.c with lib/concat-filename.c.
64340         (Makefile.am): Update.
64341         (Include): Replace pathname.h with filename.h.
64342         * lib/filename.h: Renamed from lib/pathname.h.
64343         (concatenated_filename): Renamed from concatenated_pathname.
64344         * lib/concat-filename.c: Renamed from lib/concatpath.c.
64345         (concatenated_filename): Renamed from concatenated_pathname.
64346         * lib/findprog.c: Include filename.h instead of pathname.h.
64347         (find_in_path): Update.
64348         * lib/javacomp.c: Include filename.h instead of pathname.h.
64349         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
64350         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
64351         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
64352         is_oldgcj_14_13_usable, is_javac_usable): Update.
64353         * lib/javaexec.c: Include filename.h instead of pathname.h.
64354         (execute_java_class): Update.
64355         * modules/findprog: Update.
64356         * modules/javacomp: Update.
64357         * modules/javaexec: Update.
64358         * MODULES.html.sh (File system functions): Add 'filename', remove
64359         'pathname'.
64360
64361 2007-02-25  Bruno Haible  <bruno@clisp.org>
64362
64363         * modules/printf-frexpl-tests: New file.
64364         * tests/test-printf-frexpl.c: New file.
64365
64366         * modules/printf-frexpl: New file.
64367         * lib/printf-frexpl.h: New file.
64368         * lib/printf-frexpl.c: New file.
64369         * m4/printf-frexpl.m4: New file.
64370
64371 2007-02-25  Bruno Haible  <bruno@clisp.org>
64372
64373         * modules/printf-frexp-tests: New file.
64374         * tests/test-printf-frexp.c: New file.
64375
64376         * modules/printf-frexp: New file.
64377         * lib/printf-frexp.h: New file.
64378         * lib/printf-frexp.c: New file.
64379         * m4/printf-frexp.m4: New file.
64380
64381 2007-02-25  Bruno Haible  <bruno@clisp.org>
64382
64383         Assume automake >= 1.10 for the tests.
64384         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
64385         * modules/arctwo-tests: Likewise.
64386         * modules/argp-tests: Likewise.
64387         * modules/avltree-list-tests: Likewise.
64388         * modules/avltree-oset-tests: Likewise.
64389         * modules/avltreehash-list-tests: Likewise.
64390         * modules/carray-list-tests: Likewise.
64391         * modules/crc-tests: Likewise.
64392         * modules/des-tests: Likewise.
64393         * modules/gc-arcfour-tests: Likewise.
64394         * modules/gc-arctwo-tests: Likewise.
64395         * modules/gc-des-tests: Likewise.
64396         * modules/gc-hmac-md5-tests: Likewise.
64397         * modules/gc-hmac-sha1-tests: Likewise.
64398         * modules/gc-md2-tests: Likewise.
64399         * modules/gc-md4-tests: Likewise.
64400         * modules/gc-md5-tests: Likewise.
64401         * modules/gc-pbkdf2-sha1-tests: Likewise.
64402         * modules/gc-rijndael-tests: Likewise.
64403         * modules/gc-sha1-tests: Likewise.
64404         * modules/gc-tests: Likewise.
64405         * modules/getaddrinfo-tests: Likewise.
64406         * modules/hmac-md5-tests: Likewise.
64407         * modules/hmac-sha1-tests: Likewise.
64408         * modules/linked-list-tests: Likewise.
64409         * modules/linkedhash-list-tests: Likewise.
64410         * modules/lock-tests: Likewise.
64411         * modules/md2-tests: Likewise.
64412         * modules/md4-tests: Likewise.
64413         * modules/md5-tests: Likewise.
64414         * modules/rbtree-list-tests: Likewise.
64415         * modules/rbtree-oset-tests: Likewise.
64416         * modules/rbtreehash-list-tests: Likewise.
64417         * modules/read-file-tests: Likewise.
64418         * modules/rijndael-tests: Likewise.
64419         * modules/stdint-tests: Likewise.
64420         * modules/tls-tests: Likewise.
64421
64422 2007-02-24  Bruno Haible  <bruno@clisp.org>
64423
64424         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64425         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64426         function; instead check whether isnan with a double argument links.
64427         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64428         function; instead check whether isnan with a 'long double' argument
64429         links.
64430         Reported by Eric Blake <ebb9@byu.net>.
64431
64432 2007-02-24  Bruno Haible  <bruno@clisp.org>
64433
64434         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64435         defined.
64436         * lib/isnanl.c: Remove all code. Just include isnan.c.
64437         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64438
64439 2007-02-25  Jim Meyering  <jim@meyering.net>
64440
64441         Avoid conflicting types for 'unsetenv' on FreeBSD.
64442         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64443         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64444         in stdlib.h.
64445
64446 2007-02-24  Bruno Haible  <bruno@clisp.org>
64447
64448         * modules/isnanl-nolibm-tests: New file.
64449         * tests/test-isnanl.c: New file.
64450
64451         * modules/isnanl-nolibm: New file.
64452         * lib/isnanl.h: New file.
64453         * lib/isnanl.c: New file.
64454         * m4/isnanl.m4: New file.
64455
64456 2007-02-24  Bruno Haible  <bruno@clisp.org>
64457
64458         * modules/isnan-nolibm-tests: New file.
64459         * tests/test-isnan.c: New file.
64460
64461         * modules/isnan-nolibm: New file.
64462         * lib/isnan.h: New file.
64463         * lib/isnan.c: New file.
64464         * m4/isnan.m4: New file.
64465
64466 2007-02-24  Bruno Haible  <bruno@clisp.org>
64467
64468         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64469         assume that an exponent fits in 20 bits.
64470
64471 2007-02-24  Jim Meyering  <jim@meyering.net>
64472
64473         * m4/regex.m4: Update the description of the configure-time option,
64474         --without-included-regex, to state accurately what the defaults are,
64475         and perhaps to give people an idea why using this option is risky.
64476
64477 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64478
64479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64480         loops on small arguments.  This attempts to avoid the problem
64481         Bruno Haible reported for AIX 4.3.2 in
64482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64483
64484 2007-02-23  Bruno Haible  <bruno@clisp.org>
64485
64486         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64487         Needed for help2man.
64488
64489 2007-02-23  Karl Berry  <karl@gnu.org>
64490
64491         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64492         exists, foo.h should be cvs-ignored, not committed.
64493
64494 2007-02-23  Eric Blake  <ebb9@byu.net>
64495
64496         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64497         * lib/stat-time.h (includes): Likewise.
64498         * lib/utimecmp.c (includes): Likewise.
64499         * lib/utimens.h (includes): Likewise.
64500         * lib/getdate.y (includes): Also include "timespec.h" for use
64501         internal to the module.
64502         * modules/utimens (Depends-on): Revert yesterday's patch.
64503         * modules/nanosleep (Depends-on): Add missing dependency.
64504
64505 2007-02-22  Bruno Haible  <bruno@clisp.org>
64506
64507         * lib/glob.c: Don't include getlogin_r.h.
64508
64509 2007-02-22  Jim Meyering  <jim@meyering.net>
64510
64511         * modules/utimens (Depends-on): Add timespec, required for
64512         utimens.h's inclusion of timespec.h.
64513
64514 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64515
64516         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64517         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64518         Schwab in
64519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64520         I'll try to think of a better way to fix the Solaris problem.
64521
64522         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64523         like glibc; on Solaris 10, it fails with errno == EINVAL.
64524         POSIX says the behavior is unspecified if the first argument is NULL,
64525         so play it safe and never pass NULL to the system getcwd.
64526
64527 2007-02-21  Jim Meyering  <jim@meyering.net>
64528
64529         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64530         of gettimeofday.  It would conflict with the one now always
64531         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64532         an IRIX 6.5 build failure.
64533
64534 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64535
64536         Minor fixups to port to Solaris 10 with Sun C 5.8.
64537         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64538         * modules/getcwd (Depends-on): Add dirfd.
64539         * lib/putenv.c (putenv): #undef it.
64540         (rpl_putenv): New decl.
64541         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64542
64543 2007-02-20  Bruno Haible  <bruno@clisp.org>
64544
64545         * modules/stdio-tests: New file.
64546         * tests/test-stdio.c: New file.
64547
64548         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64549         (Depends-on): Add stdio.
64550         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64551         (Include): Use <stdio.h> instead of vsnprintf.h.
64552         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64553         HAVE_DECL_VSNPRINTF.
64554         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64555
64556         * modules/snprintf (Files): Remove lib/snprintf.h.
64557         (Depends-on): Add stdio.
64558         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64559         (Include): Use <stdio.h> instead of snprintf.h.
64560         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64561         HAVE_DECL_SNPRINTF.
64562         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64563         * lib/getaddrinfo.c: Likewise.
64564
64565         * modules/stdio: New file.
64566         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64567         * lib/snprintf.h: Remove file.
64568         * lib/vsnprintf.h: Remove file.
64569         * lib/.cppi-disable: Remove snprintf.h.
64570         * m4/stdio_h.m4: New file.
64571         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64572
64573 2007-02-20  Jim Meyering  <jim@meyering.net>
64574
64575         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64576         used by e.g., mingw.  From Bruno Haible.
64577
64578 2007-02-19  Bruno Haible  <bruno@clisp.org>
64579
64580         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64581         warnings.
64582         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64583
64584 2007-02-19  Bruno Haible  <bruno@clisp.org>
64585
64586         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64587         from mingw users.
64588
64589 2007-02-19  Bruno Haible  <bruno@clisp.org>
64590
64591         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64592         warnings.
64593         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64594
64595 2007-02-19  Jim Meyering  <jim@meyering.net>
64596
64597         Don't use FD after a successful "fdopendir (fd)".
64598         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64599         Reset it by calling dirfd on the just-obtained DIR*.
64600
64601         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64602         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64603
64604 2007-02-18  Bruno Haible  <bruno@clisp.org>
64605
64606         * lib/readlink.c: Include <unistd.h>.
64607         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64608         HAVE_READLINK.
64609         * modules/readlink (Depends-on): Add unistd.
64610         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64611         (Include): Add <unistd.h>.
64612
64613         * lib/getlogin_r.h: Remove file.
64614         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64615         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64616         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64617         HAVE_DECL_GETLOGIN_R.
64618         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64619         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64620         (Include): Use <unistd.h> instead of getlogin_r.h.
64621
64622         * lib/getcwd.h: Remove file.
64623         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64624         * lib/xgetcwd.c: Likewise.
64625         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64626         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64627         * modules/getcwd (Files): Remove lib/getcwd.h.
64628         (Depends-on): Add unistd.
64629         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64630         (Include): Use <unistd.h> instad of getcwd.h.
64631
64632         * lib/ftruncate.c: Include <unistd.h> first.
64633         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64634         Set HAVE_FTRUNCATE.
64635         * modules/ftruncate (Depends-on): Add unistd.
64636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64637
64638         * lib/fchdir.c: Include <unistd.h> first.
64639         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64641         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64642         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64643         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64644
64645         * lib/dup2.c: Include <unistd.h> first.
64646         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64647         HAVE_DUP2.
64648         * modules/dup2 (Depends-on): Add unistd.
64649         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64650
64651         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64652         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64653         REPLACE_CHOWN. Don't define chown as a macro here.
64654         * modules/chown (Depends-on): Add unistd.
64655         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64656
64657         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64658         Add definition for GL_LINK_WARNING.
64659         (chown, dup2): New declarations.
64660         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64661         link warning.
64662         (ftruncate): New declaration.
64663         (getcwd): New declaration, taken from old getcwd.h.
64664         (getlogin_r): New declaration, taken from old getlogin_r.h.
64665         (readlink): New declaration.
64666         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64667         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64668         (gl_PREREQ_UNISTD): Remove macro.
64669         (gl_UNISTD_MODULE_INDICATOR): New macro.
64670         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64671         many new variables. Don't set UNISTD_H.
64672         * modules/unistd (Description): Change.
64673         (Depends-on): Add link-warning.
64674         (configure.ac): Update.
64675         (Makefile.am): Create unistd.h always. Substitute many new variables
64676         into it.
64677
64678 2007-02-18  Bruno Haible  <bruno@clisp.org>
64679
64680         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64681         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64682         HAVE_GETSUBOPT.
64683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64684         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64685         * lib/getsubopt.h: Remove file.
64686         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64687         (Depends-on): Add stdlib.
64688         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64689         (Includes): Use <stdlib.h> instead of getsubopt.h.
64690         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64691         Set HAVE_GETSUBOPT.
64692         * lib/getsubopt.c: Don't include getsubopt.h.
64693
64694 2007-02-18  Bruno Haible  <bruno@clisp.org>
64695
64696         * modules/fchdir (Depends-on): Add dup2.
64697
64698 2007-02-18  Bruno Haible  <bruno@clisp.org>
64699
64700         * lib/stdlib_.h: Handle glibc's special invocation convention
64701         specially.
64702
64703 2007-02-18  Bruno Haible  <bruno@clisp.org>
64704
64705         * modules/stdlib-tests: New file.
64706         * tests/test-stdlib.c: New file.
64707
64708         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64709         (Depends-on): Add stdlib.
64710         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64711         (Includes): Use <stdlib.h> instead of mkstemp.h.
64712         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64713         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64714         * lib/mkstemp.c: Don't include mkstemp.h.
64715         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64716         * lib/stdlib--.h: Don't include mkstemp.h.
64717
64718         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64719         (Depends-on): Add stdlib.
64720         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64721         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64722         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64723         HAVE_MKDTEMP.
64724         * lib/mkdtemp.c: Don't include mkdtemp.h.
64725         * lib/clean-temp.c: Don't include mkdtemp.h.
64726
64727         * modules/exit (Files): Remove lib/exit.h.
64728         (Depends-on): Add stdlib.
64729         (Makefile.am): Remove lib_SOURCES.
64730         (Include): Use <stdlib.h> instead of exit.h.
64731         * lib/argmatch.c: Don't include exit.h.
64732         * lib/execute.c: Likewise.
64733         * lib/pagealign_alloc.c: Likewise.
64734         * lib/pipe.c: Likewise.
64735         * lib/wait-process.c: Likewise.
64736         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64737         * lib/exitfail.c: Likewise.
64738         * lib/savewd.c: Likewise.
64739         * lib/xsetenv.c: Likewise.
64740
64741         * modules/stdlib: New file.
64742         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64743         and extra comments about mkstemp().
64744         * lib/exit.h: Remove file.
64745         * lib/mkdtemp.h: Remove file.
64746         * lib/mkstemp.h: Remove file.
64747         * m4/stdlib_h.m4: New file.
64748         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64749
64750 2007-02-18  Bruno Haible  <bruno@clisp.org>
64751
64752         * modules/math-tests: New file.
64753         * tests/test-math.c: New file.
64754
64755         * modules/math: New file.
64756         * modules/mathl (Files): Remove lib/mathl.h.
64757         (Depends-on): Add math.
64758         (Makefile.am): Don't mention mathl.h.
64759         (Include): Use <math.h> instead of mathl.h.
64760         * lib/math_.h: New file.
64761         * lib/mathl.h: Remove file.
64762         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64763         mathl.h.
64764         * lib/asinl.c: Likewise.
64765         * lib/atanl.c: Likewise.
64766         * lib/ceill.c: Likewise.
64767         * lib/cosl.c: Likewise.
64768         * lib/expl.c: Likewise.
64769         * lib/floorl.c: Likewise.
64770         * lib/frexpl.c: Likewise.
64771         * lib/ldexpl.c: Likewise.
64772         * lib/logl.c: Likewise.
64773         * lib/sincosl.c: Likewise.
64774         * lib/sinl.c: Likewise.
64775         * lib/sqrtl.c: Likewise.
64776         * lib/tanl.c: Likewise.
64777         * lib/trigl.c: Likewise.
64778         * m4/math_h.m4: New file.
64779         * MODULES.html.sh (Mathematics): Add math.
64780
64781 2007-02-17  Bruno Haible  <bruno@clisp.org>
64782
64783         * modules/wctype-tests: New file.
64784         * tests/test-wctype.c: New file.
64785
64786         * modules/wchar-tests: New file.
64787         * tests/test-wchar.c: New file.
64788
64789         * modules/unistd-tests: New file.
64790         * tests/test-unistd.c: New file.
64791
64792         * modules/time-tests: New file.
64793         * tests/test-time.c: New file.
64794
64795         * modules/sysexits-tests: New file.
64796         * tests/test-sysexits.c: New file.
64797
64798         * modules/sys_time-tests: New file.
64799         * tests/test-sys_time.c: New file.
64800
64801         * modules/sys_stat-tests: New file.
64802         * tests/test-sys_stat.c: New file.
64803
64804         * modules/sys_socket-tests: New file.
64805         * tests/test-sys_socket.c: New file.
64806
64807         * modules/sys_select-tests: New file.
64808         * tests/test-sys_select.c: New file.
64809
64810         * modules/string-tests: New file.
64811         * tests/test-string.c: New file.
64812
64813         * modules/stdbool-tests: New file.
64814         * tests/test-stdbool.c: New file.
64815
64816         * modules/netinet_in-tests: New file.
64817         * tests/test-netinet_in.c: New file.
64818
64819         * modules/inttypes-tests: New file.
64820         * tests/test-inttypes.c: New file.
64821
64822         * modules/fcntl-tests: New file.
64823         * tests/test-fcntl.c: New file.
64824
64825         * modules/byteswap-tests: New file.
64826         * tests/test-byteswap.c: New file.
64827
64828         * modules/arpa_inet-tests: New file.
64829         * tests/test-arpa_inet.c: New file.
64830
64831 2007-02-17  Bruno Haible  <bruno@clisp.org>
64832
64833         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64834         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64835         if the corresponding module is not enabled. Emit link warnings if
64836         the function is used nevertheless.
64837         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64838         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64839         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64840         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64841         * modules/inttypes (Depends-on): Add link-warning.
64842         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64843         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64844         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64845         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64846         * modules/imaxdiv (configure.ac): Likewise.
64847         * modules/strtoimax (configure.ac): Likewise.
64848         * modules/strtoumax (configure.ac): Likewise.
64849
64850 2007-02-17  Bruno Haible  <bruno@clisp.org>
64851
64852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64853         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64854         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64855         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64856
64857 2007-02-17  Bruno Haible  <bruno@clisp.org>
64858
64859         * modules/link-warning: New file.
64860         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64861         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64862         * modules/string (Depends-on): Add link-warning.
64863         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64864         string.h.
64865         * MODULES.html.sh (Support for building libraries and executables): Add
64866         link-warning.
64867
64868 2007-02-17  Bruno Haible  <bruno@clisp.org>
64869
64870         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64871         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64872         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64873         long lines.
64874
64875 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64876             Bruno Haible  <bruno@clisp.org>
64877
64878         * modules/tmpfile: New file.
64879         * lib/tmpfile.c: New file.
64880         * m4/tmpfile.m4: New file.
64881         * MODULES.html.sh (func_all_modules): New section "Input/output".
64882
64883 2007-02-15  Bruno Haible  <bruno@clisp.org>
64884
64885         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64886         (supports_delete_on_close): New function.
64887         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64888
64889 2007-02-14  Bruno Haible  <bruno@clisp.org>
64890
64891         * modules/mbspcasecmp-tests: New file.
64892         * tests/test-mbspcasecmp.sh: New file.
64893         * tests/test-mbspcasecmp.c: New file.
64894
64895         New module mbspcasecmp.
64896         * modules/mbspcasecmp: New file.
64897         * lib/mbspcasecmp.c: New file.
64898         * lib/string_.h (strncasecmp): Change warning message.
64899         (mbspcasecmp): New declaration.
64900         * m4/mbspcasecmp.m4: New file.
64901         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64902         GNULIB_MBSPCASECMP.
64903         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64904         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64905
64906 2007-02-14  Bruno Haible  <bruno@clisp.org>
64907
64908         * modules/mbsncasecmp-tests: New file.
64909         * tests/test-mbsncasecmp.sh: New file.
64910         * tests/test-mbsncasecmp.c: New file.
64911
64912         New module mbsncasecmp.
64913         * modules/mbsncasecmp: New file.
64914         * lib/mbsncasecmp.c: New file.
64915         * lib/string_.h (mbsncasecmp): New declaration.
64916         * m4/mbsncasecmp.m4: New file.
64917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64918         GNULIB_MBSNCASECMP.
64919         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64920         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64921
64922 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64925         Verify that it doesn't overlap with our flags.
64926         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64927         do not have the desired effect in multibyte locales; instead, use
64928         mbscasecmp.
64929         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64930         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64931         we don't require GNU fnmatch ourselves (if our users require it, they
64932         should do so explicitly).
64933
64934         Fix regex code so it doesn't rely on strcasecmp.
64935         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64936         Otherwise, include gnulib's langinfo.h.
64937         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64938         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64939         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64940         * modules/regex (FILES): Remove m4/codeset.m4.
64941         (Depends-on): Add localcharset.  Remove strcase.
64942
64943 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64944
64945         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64946         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64947
64948 2007-02-13  Bruno Haible  <bruno@clisp.org>
64949
64950         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64951         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64952
64953 2007-02-12  Bruno Haible  <bruno@clisp.org>
64954
64955         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64956         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64957         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64958         time warning rather than a link error.
64959
64960 2007-02-12  Bruno Haible  <bruno@clisp.org>
64961
64962         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64963         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64964         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64965
64966 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64967
64968         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64969         args, not 2.
64970
64971 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64972
64973         New module 'time', so that apps can include <time.h> as per
64974         POSIX and GNU instead of separate include files like time_r.h
64975         and timegm.h.  This implementation tries out a simpler approach
64976         for replacing decls in standard include files (as compared to
64977         the string module), somewhat as an experiment.
64978
64979         * config/srclist.txt: Comment out mktime.c for now.
64980         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64981         since it doesn't apply any more.  Use generic wording instead.
64982         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64983         'time'.
64984         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64985         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64986         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64987         Don't include <sys/types.h>; no longer needed since we assume C89.
64988         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64989         * lib/strftime.c: Likewise.
64990         * lib/time_r.c: Likewise.
64991         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64992         * lib/nanosleep.c: Include <time.h> first, to check interface.
64993         * lib/strptime.c: Likewise.
64994         * lib/time_r.c: Likewise.
64995         * lib/timegm.c: Likewise.
64996         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64997         needed.
64998         * lib/timegm.c: Don't include timegm.h; no longer needed.
64999         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65000         time.h now handles any problems in that area.
65001         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65002         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65003         that time.h defines struct timespec.
65004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65005         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65006         handles that.
65007         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65008         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65009         needed.  Set REPLACE_LOCALTIME.
65010         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65011         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65012         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65013         nanosleep; time_h.m4 now does that.  Don't require
65014         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65015         module handles this now.
65016         * modules/getdate (Depends-on): Remove timespec.  Add time.
65017         * modules/nanosleep (Depends-on): Likewise.
65018         * modules/stat-time (Depends-on): Likewise.
65019         * modules/nanosleep (Include): Include time.h, not timespec.h.
65020         * modules/strptime (Files): Remove lib/strptime.h.
65021         (Depends-on): Add extensions, time.
65022         (Include): Include time.h, not strptime.h.
65023         * modules/time_r (Files): Remove lib/time_r.h.
65024         (Depends-on): Add time.
65025         (Include): Include time.h, not time_r.h.
65026         * modules/timegm: Likewise.
65027         * modules/timespec (Description): Now does timespec-related decls
65028         of our own, instead of struct timespec itself.
65029         (Depends-on): Add time; remove extensions.
65030         (Maintainer): Add self.
65031         * modules/utimecmp (Depends-on): Add time; remove timespec.
65032         * modules/utimens (Depends-on): Likewise.
65033         * modules/xnanosleep (Depends-on): Likewise.
65034
65035 2007-02-11  Bruno Haible  <bruno@clisp.org>
65036
65037         * lib/c-strstr.c: Include allocsa.h.
65038         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65039         * lib/c-strcasestr.c: Include allocsa.h.
65040         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65041         * lib/strcasestr.c: Include allocsa.h.
65042         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65043         * lib/mbsstr.c: Include allocsa.h.
65044         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65045         allocsa/freesa instead of malloc/free.
65046         * lib/mbscasestr.c: Include allocsa.h.
65047         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65048         allocsa/freesa instead of malloc/free.
65049         * modules/c-strstr (Depends-on): Add allocsa.
65050         * modules/c-strcasestr (Depends-on): Likewise.
65051         * modules/strcasestr (Depends-on): Likewise.
65052         * modules/mbsstr (Depends-on): Likewise.
65053         * modules/mbscasestr (Depends-on): Likewise.
65054
65055 2007-02-11  Bruno Haible  <bruno@clisp.org>
65056
65057         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65058
65059         * modules/mbsspn-tests: New file.
65060         * tests/test-mbsspn.sh: New file.
65061         * tests/test-mbsspn.c: New file.
65062
65063 2007-02-11  Bruno Haible  <bruno@clisp.org>
65064
65065         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65066
65067         * modules/mbspbrk-tests: New file.
65068         * tests/test-mbspbrk.sh: New file.
65069         * tests/test-mbspbrk.c: New file.
65070
65071 2007-02-11  Bruno Haible  <bruno@clisp.org>
65072
65073         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65074         unneeded cast.
65075
65076         * modules/mbscspn-tests: New file.
65077         * tests/test-mbscspn.sh: New file.
65078         * tests/test-mbscspn.c: New file.
65079
65080 2007-02-11  Bruno Haible  <bruno@clisp.org>
65081
65082         * modules/mbscasecmp-tests: New file.
65083         * tests/test-mbscasecmp.sh: New file.
65084         * tests/test-mbscasecmp.c: New file.
65085
65086 2007-02-11  Bruno Haible  <bruno@clisp.org>
65087
65088         Ensure O(n) worst-case complexity of mbscasestr.
65089         * lib/mbscasestr.c: Include stdbool.h.
65090         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65091         functions.
65092         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65093         the bookkeeping indicates that it's worth it.
65094         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65095
65096         * modules/mbscasestr-tests: New file.
65097         * tests/test-mbscasestr1.c: New file.
65098         * tests/test-mbscasestr2.sh: New file.
65099         * tests/test-mbscasestr2.c: New file.
65100         * tests/test-mbscasestr3.sh: New file.
65101         * tests/test-mbscasestr3.c: New file.
65102         * tests/test-mbscasestr4.sh: New file.
65103         * tests/test-mbscasestr4.c: New file.
65104         * m4/locale-tr.m4: New file.
65105
65106 2007-02-11  Bruno Haible  <bruno@clisp.org>
65107
65108         Ensure O(n) worst-case complexity of mbsstr.
65109         * lib/mbsstr.c: Include stdbool.h.
65110         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65111         functions.
65112         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65113         bookkeeping indicates that it's worth it.
65114         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65115
65116         * modules/mbsstr-tests: New file.
65117         * tests/test-mbsstr1.c: New file.
65118         * tests/test-mbsstr2.sh: New file.
65119         * tests/test-mbsstr2.c: New file.
65120         * tests/test-mbsstr3.sh: New file.
65121         * tests/test-mbsstr3.c: New file.
65122         * m4/locale-fr.m4: New file.
65123
65124 2007-02-11  Bruno Haible  <bruno@clisp.org>
65125
65126         * lib/mbsrchr.c (mbsrchr): Fix bug.
65127
65128         * modules/mbsrchr-tests: New file.
65129         * tests/test-mbsrchr.sh: New file.
65130         * tests/test-mbsrchr.c: New file.
65131
65132 2007-02-11  Bruno Haible  <bruno@clisp.org>
65133
65134         * lib/mbschr.c (mbschr): Fix bug.
65135
65136         * modules/mbschr-tests: New file.
65137         * tests/test-mbschr.sh: New file.
65138         * tests/test-mbschr.c: New file.
65139         * m4/locale-zh.m4: New file.
65140
65141 2007-02-11  Bruno Haible  <bruno@clisp.org>
65142
65143         Support for copying multibyte string iterators.
65144         * lib/mbiter.h: Include <string.h>.
65145         (mbiter_multi_copy): New function.
65146         (mbi_copy): New macro.
65147         * lib/mbuiter.h: Include <string.h>.
65148         (mbuiter_multi_copy): New function.
65149         (mbui_copy): New macro.
65150
65151 2007-02-11  Bruno Haible  <bruno@clisp.org>
65152
65153         New module mbslen.
65154         * modules/mbslen: New file.
65155         * lib/mbslen.c: New file.
65156         * lib/string_.h (mbslen): New declaration.
65157         * m4/mbslen.m4: New file.
65158         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65159         GNULIB_MBSLEN.
65160         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65161         * MODULES.html.sh (Internationalization functions): Add mbslen.
65162
65163 2007-02-11  Bruno Haible  <bruno@clisp.org>
65164
65165         Ensure O(n) worst-case complexity of strcasestr substitute.
65166         * lib/strcasestr.c: Include stdbool.h.
65167         (knuth_morris_pratt): New function.
65168         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65169         bookkeeping indicates that it's worth it.
65170         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65171
65172         * modules/strcasestr-tests: New file.
65173         * tests/test-strcasestr.c: New file.
65174
65175 2007-02-11  Bruno Haible  <bruno@clisp.org>
65176
65177         Ensure O(n) worst-case complexity of c_strcasestr.
65178         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65179         (knuth_morris_pratt): New function.
65180         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65181         the bookkeeping indicates that it's worth it.
65182         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65183
65184         * modules/c-strcasestr-tests: New file.
65185         * tests/test-c-strcasestr.c: New file.
65186
65187 2007-02-11  Bruno Haible  <bruno@clisp.org>
65188
65189         Ensure O(n) worst-case complexity of c_strstr.
65190         * lib/c-strstr.c: Include stdbool.h, string.h.
65191         (knuth_morris_pratt): New function.
65192         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65193         bookkeeping indicates that it's worth it.
65194         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65195
65196         * lib/c-strstr.c: Complete rewrite for maintainability.
65197
65198         * modules/c-strstr-tests: New file.
65199         * tests/test-c-strstr.c: New file.
65200
65201 2007-02-11  Bruno Haible  <bruno@clisp.org>
65202
65203         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65204         5.2.1 and earlier, whereby \055 was treated just like the range
65205         delimiter '-'.
65206         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65207
65208 2007-02-08  Bruno Haible  <bruno@clisp.org>
65209
65210         * modules/regex (Depends-on): Add stdbool.
65211         Reported by Dalibor Topic <robilad@kaffe.org>.
65212
65213 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65214
65215         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65216         Prefer returning from main to exiting from it.
65217         Remove unnecessary parens after sizeof.
65218
65219 2007-02-05  Bruno Haible  <bruno@clisp.org>
65220
65221         New module mbssep.
65222         * modules/mbssep: New file.
65223         * lib/mbssep.c: New file.
65224         * lib/string_.h (strsep): Add a conditional link warning.
65225         (mbssep): New declaration.
65226         * m4/mbssep.m4: New file.
65227         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65228         GNULIB_MBSSEP.
65229         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65230         * MODULES.html.sh (Internationalization functions): Add mbssep.
65231
65232 2007-02-05  Bruno Haible  <bruno@clisp.org>
65233
65234         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65235         Optimize search in case of 1 delimiter.
65236
65237 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65238
65239         * lib/acl.h: Include sys/types.h before sys/acl.h.
65240
65241 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65242
65243         Merge upstream fix for glibc bugzilla #3957:
65244
65245         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
65246
65247         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
65248         bit for RE_HAT_LISTS_NOT_NEWLINE.
65249         (build_charclass_op): Remove bogus comment.
65250
65251 2007-02-05  Simon Josefsson  <simon@josefsson.org>
65252
65253         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
65254
65255 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65256
65257         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
65258         * lib/memmem.c [!defined _LIBC]: Include config.h.
65259
65260 2007-02-04  Bruno Haible  <bruno@clisp.org>
65261
65262         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
65263         warning message.
65264
65265 2007-02-04  Bruno Haible  <bruno@clisp.org>
65266
65267         New module mbstok_r.
65268         * modules/mbstok_r: New file.
65269         * lib/mbstok_r.c: New file.
65270         * lib/string_.h (strtok_r): Change argument names to match the
65271         comments. Add a conditional link warning.
65272         (mbstok_r): New declaration.
65273         * m4/mbstok_r.m4: New file.
65274         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65275         GNULIB_MBSTOK_R.
65276         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
65277         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
65278
65279 2007-02-04  Bruno Haible  <bruno@clisp.org>
65280
65281         New module mbsspn.
65282         * modules/mbsspn: New file.
65283         * lib/mbsspn.c: New file.
65284         * lib/string_.h (strspn): Add a conditional link warning.
65285         (mbsspn): New declaration.
65286         * m4/mbsspn.m4: New file.
65287         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65288         GNULIB_MBSSPN.
65289         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
65290         * MODULES.html.sh (Internationalization functions): Add mbsspn.
65291
65292 2007-02-04  Bruno Haible  <bruno@clisp.org>
65293
65294         New module mbspbrk.
65295         * modules/mbspbrk: New file.
65296         * lib/mbspbrk.c: New file.
65297         * lib/string_.h (strpbrk): Add a conditional link warning.
65298         (mbspbrk): New declaration.
65299         * m4/mbspbrk.m4: New file.
65300         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65301         GNULIB_MBSPBRK.
65302         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
65303         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
65304
65305 2007-02-04  Bruno Haible  <bruno@clisp.org>
65306
65307         New module mbscspn.
65308         * modules/mbscspn: New file.
65309         * lib/mbscspn.c: New file.
65310         * lib/string_.h (strcspn): Add a conditional link warning.
65311         (mbscspn): New declaration.
65312         * m4/mbscspn.m4: New file.
65313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65314         GNULIB_MBSCSPN.
65315         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
65316         * MODULES.html.sh (Internationalization functions): Add mbscspn.
65317
65318 2007-02-04  Bruno Haible  <bruno@clisp.org>
65319
65320         New module mbscasestr, reduced goal of strcasestr.
65321         * modules/mbscasestr: New file.
65322         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
65323         (mbscasestr): Renamed from strcasestr.
65324         * lib/strcasestr.c: Don't include mbuiter.h.
65325         (strcasestr): Remove support for multibyte locales.
65326         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
65327         Change the conditional link warning.
65328         (mbscasestr): New declaration.
65329         * m4/mbscasestr.m4: New file.
65330         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
65331         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
65332         REPLACE_STRCASESTR.
65333         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
65334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65335         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65336         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
65337         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
65338         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65339         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
65340         (Depends-on): Remove mbuiter.
65341         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
65342
65343 2007-02-04  Bruno Haible  <bruno@clisp.org>
65344
65345         Simplify handling of strncasecmp.
65346         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
65347         the conditional link warning.
65348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65349         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
65350         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
65351         * modules/strcase (configure.ac): Don't invoke
65352         gl_STRING_MODULE_INDICATOR.
65353         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
65354
65355 2007-02-04  Bruno Haible  <bruno@clisp.org>
65356
65357         New module mbscasecmp, reduced goal of strcasecmp.
65358         * modules/mbscasecmp: New file.
65359         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
65360         (mbscasecmp): Renamed from strcasecmp.
65361         * lib/strcasecmp.c: Don't include mbuiter.h.
65362         (strcasecmp): Remove support for multibyte locales.
65363         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
65364         Change the conditional link warning.
65365         (mbscasecmp): New declaration.
65366         * m4/mbscasecmp.m4: New file.
65367         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65368         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65369         REPLACE_STRCASECMP.
65370         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65372         GNULIB_MBSCASECMP.
65373         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65374         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65375         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65376         (Depends-on): Remove mbuiter.
65377         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65378
65379 2007-02-04  Bruno Haible  <bruno@clisp.org>
65380
65381         New module mbsstr. Remove module strstr.
65382         * modules/mbsstr: New file.
65383         * modules/strstr: Remove file.
65384         * lib/mbsstr.c: Renamed from lib/strstr.c.
65385         (mbsstr): Renamed from strstr.
65386         * lib/string_.h (strstr): Remove declaration. Change the conditional
65387         link warning.
65388         (mbsstr): New declaration.
65389         * m4/mbsstr.m4: New file.
65390         * m4/strstr.m4: Remove file.
65391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65392         REPLACE_STRSTR.
65393         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65394         Don't initialize GNULIB_STRSTR.
65395         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65396         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65397         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65398         (Support for systems lacking ANSI C 89): Remove strstr.
65399
65400 2007-02-04  Bruno Haible  <bruno@clisp.org>
65401
65402         New module mbsrchr.
65403         * modules/mbsrchr: New file.
65404         * lib/mbsrchr.c: New file.
65405         * lib/string_.h (strrchr): Add a conditional link warning.
65406         (mbsrchr): New declaration.
65407         * m4/mbsrchr.m4: New file.
65408         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65409         GNULIB_MBSRCHR.
65410         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65411         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65412
65413 2007-02-04  Bruno Haible  <bruno@clisp.org>
65414
65415         New module mbschr.
65416         * modules/mbschr: New file.
65417         * lib/mbschr.c: New file.
65418         * lib/string_.h (strchr): Add a conditional link warning.
65419         (mbschr): New declaration.
65420         * m4/mbschr.m4: New file.
65421         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65422         GNULIB_MBSCHR.
65423         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65424         * MODULES.html.sh (Internationalization functions): Add mbschr.
65425
65426 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65427
65428         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65429
65430         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65431
65432 2007-02-04  Bruno Haible  <bruno@clisp.org>
65433
65434         New module description section 'configure.ac-early'.
65435         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65436         (func_get_autoconf_early_snippet): New function.
65437         (func_import, func_create_testdir): Use it. Remove special cases for
65438         modules 'extensions' and 'lock'.
65439         * modules/extensions (configure.ac-early): Require
65440         gl_USE_SYSTEM_EXTENSIONS.
65441         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65442
65443 2007-02-04  Bruno Haible  <bruno@clisp.org>
65444
65445         Make use of gcj-4.3's -fsource and -ftarget option.
65446         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65447         and if so try the options -fsource and -ftarget.
65448         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65449         source_version, ftarget_option, target_version arguments.
65450         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65451         (is_envjavac_oldgcj_14_14_usable): Renamed from
65452         is_envjavac_gcj_14_14_usable.
65453         (is_envjavac_oldgcj_14_13_usable): Renamed from
65454         is_envjavac_gcj_14_13_usable.
65455         (is_gcj_present): Update.
65456         (is_gcj_43, is_gcj43_usable): New functions.
65457         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65458         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65459         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65460         try the options -fsource and -ftarget.
65461
65462 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65465         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65466         larger value.
65467
65468 2007-02-03  Jim Meyering  <jim@meyering.net>
65469
65470         Give tools a better chance to allocate space for very large buffers.
65471         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65472
65473         Make pwd and readlink work also when run with an unreadable parent dir
65474         on systems with openat support.
65475         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65476         provided getcwd function, even when we have openat support.
65477         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65478
65479 2007-02-02  Bruno Haible  <bruno@clisp.org>
65480
65481         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65482         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65483         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65484         portability problems if one of these functions is only used on specific
65485         platforms.
65486         Reported by Paul Eggert.
65487
65488 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65489
65490         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65491         is causing more trouble than it's curing.
65492         * lib/regex_internal.h (__mempcpy): Remove.
65493         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65494         (and make the code a tad smaller to boot).
65495         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65496
65497 2007-02-02  Jim Meyering  <jim@meyering.net>
65498
65499         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65500         section, not in the Makefile.am: one.
65501
65502 2007-02-02  Eric Blake  <ebb9@byu.net>
65503
65504         * lib/strchrnul.c: Always include config.h first.
65505
65506         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65507         gnulib strstr is not necessary here.
65508
65509 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65510
65511         * m4/socklen.m4: Fix typo.
65512
65513 2007-02-02  Eric Blake  <ebb9@byu.net>
65514
65515         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65516         * modules/netinet_in (Makefile.am): Likewise.
65517
65518 2007-02-01  Bruno Haible  <bruno@clisp.org>
65519
65520         * lib/string_.h (GL_LINK_WARNING): New macro.
65521         (strcasecmp, strstr, strcasestr): If provided by the system,
65522         conditionally define as a macro that leads to a warning instead of to
65523         an error.
65524         (strncasecmp): Conditionally define as a macro that leads to a warning.
65525
65526 2007-02-01  Karl Berry  <karl@gnu.org>
65527
65528         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65529
65530 2007-02-01  Bruno Haible  <bruno@clisp.org>
65531
65532         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65533         renamings.
65534
65535 2007-02-01  Eric Blake  <ebb9@byu.net>
65536
65537         * modules/regex (Depends-on): Revert dependence on mempcpy.
65538         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65539         module's definition of mempcpy.
65540         Reported by Paul Eggert.
65541
65542 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65543
65544         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65545         the symbol XYZ before redefining it.  This fixes a problem with
65546         programs that don't use XYZ, when compiled on systems that define
65547         XYZ to something else.
65548
65549 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65550
65551         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65552         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65553         writeable to group or other and (2) is intended to have a special
65554         mode bit that is set or cleared.  In such a case, the directory
65555         should be neither group- nor other-writeable until the special
65556         mode bits are right.
65557
65558 2007-01-31  Eric Blake  <ebb9@byu.net>
65559
65560         * modules/mountlist (Depends-on): Add strstr.
65561
65562         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65563         bug.
65564         * modules/string (Makefile.am): Remove redundant replacement.
65565         * modules/regex (Depends-on): Add mempcpy.
65566
65567 2007-01-31  Bruno Haible  <bruno@clisp.org>
65568
65569         New module description field 'Link'.
65570         * gnulib-tool (func_usage): Document --extract-link-directive.
65571         (sed_extract_prog): Recognize 'Link' directive.
65572         (func_get_link_directive): New function.
65573         (func_import): Show summary of link directives.
65574         Handle --extract-link-directive option.
65575         * modules/acl (Link): New section.
65576         * modules/clock-time (Link): New section.
65577         * modules/euidaccess (Link): New section.
65578         * modules/gettext (Link): New section.
65579         * modules/iconv (Link): New section.
65580         * modules/lock (Link): New section.
65581         * modules/nanosleep (Link): New section.
65582         * modules/readline (Link): New section.
65583
65584 2007-01-27  Bruno Haible  <bruno@clisp.org>
65585
65586         Enforce the use of gnulib modules for unportable <string.h> functions.
65587         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65588         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65589         (gl_HEADER_STRING_H_BODY): Require it.
65590         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65591         the symbol XYZ to one that gives a link error.
65592         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65593         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65594         * modules/mempcpy (configure.ac): Likewise.
65595         * modules/memrchr (configure.ac): Likewise.
65596         * modules/stpcpy (configure.ac): Likewise.
65597         * modules/stpncpy (configure.ac): Likewise.
65598         * modules/strcase (configure.ac): Likewise.
65599         * modules/strcasestr (configure.ac): Likewise.
65600         * modules/strchrnul (configure.ac): Likewise.
65601         * modules/strdup (configure.ac): Likewise.
65602         * modules/strndup (configure.ac): Likewise.
65603         * modules/strnlen (configure.ac): Likewise.
65604         * modules/strpbrk (configure.ac): Likewise.
65605         * modules/strsep (configure.ac): Likewise.
65606         * modules/strstr (configure.ac): Likewise.
65607         * modules/strtok_r (configure.ac): Likewise.
65608
65609 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65610
65611         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65612
65613 2007-01-30  Jim Meyering  <jim@meyering.net>
65614
65615         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65616
65617 2007-01-29  Bruno Haible  <bruno@clisp.org>
65618
65619         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65620         * lib/execute.c: Likewise.
65621         * lib/pipe.c: Likewise.
65622         * lib/printf-args.h: Likewise.
65623         * lib/printf-args.c: Likewise.
65624         * lib/printf-parse.c: Likewise.
65625         * lib/vasnprintf.c: Likewise.
65626
65627 2007-01-29  Eric Blake  <ebb9@byu.net>
65628
65629         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65630         declaration.
65631
65632 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65633
65634         * lib/strptime.h (strptime): Use 'restrict' for args where
65635         POSIX requires this.
65636         * lib/strptime.c (strptime): Likewise.
65637         Change license notice from LGPL to GPL, since gnulib-tool will
65638         change this as needed.
65639         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65640         defined.
65641         Include "strptime.h" first, to check interface.
65642         Do not #undef _LIBC and _NL_CURRENT.
65643         Do not include <stdlib.h>; no longer needed.
65644         Include "time_r.h" and declare ptime_locale_status
65645         only if _LIBC is not defined.
65646         (__P): Remove unused macro.
65647         (match_string): Bring back glibc version, but use it only if _LIBC
65648         is defined.
65649         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65650         Remove unnecessary assertion and abort() call.
65651         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65652         * m4/strptime.m4: Fix serial number comment.
65653         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65654         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65655         (Depends-on): Add time_r.
65656
65657 2007-01-29  Bruno Haible  <bruno@clisp.org>
65658
65659         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65660         strptime.
65661         * modules/strptime (Depends-on): Add stdbool.
65662         * lib/strptime.h: Include <time.h> always. Add comments.
65663
65664 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65665
65666         * modules/strptime: New file.
65667         * lib/strptime.h: New file.
65668         * lib/strptime.c: New file.
65669         * m4/strptime.m4: New file.
65670
65671 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65672
65673         * MODULES.html.sh: New module mpsort.
65674         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65675
65676         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65677         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65678         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65679         All uses changed.
65680         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65681         All uses changed.
65682         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65683         to _Restrict_.
65684         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65685         the parameter matches the prototype.
65686
65687 2007-01-28  Jim Meyering  <jim@meyering.net>
65688
65689         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65690         sys/time.h here, reverting that part of the previous patch:
65691         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65692
65693 2007-01-28  Bruno Haible  <bruno@clisp.org>
65694
65695         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65696         value of $(SYS_TIME_H).
65697         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65698         remove it conditionally, too. [added by Jim Meyering]
65699         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65700         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65701         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65702         GETTIMEOFDAY_REPLACEMENT to 1.
65703
65704 2007-01-28  Bruno Haible  <bruno@clisp.org>
65705
65706         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65707         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65708         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65709         Set UNISTD_H instead of UNISTD_H2.
65710         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65711
65712 2007-01-28  Bruno Haible  <bruno@clisp.org>
65713
65714         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65715         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65716
65717 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65718
65719         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65720         (func_create_testdir): Ensure C locale for `grep' and `tr'
65721         character ranges.
65722         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65723         ACLOCAL_AMFLAGS parsing state machine.
65724
65725 2007-01-27  Bruno Haible  <bruno@clisp.org>
65726
65727         * modules/unistr/base: Update.
65728
65729 2007-01-27  Bruno Haible  <bruno@clisp.org>
65730
65731         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65732         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65733         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65734         modules/unistr/u32-mbtouc.
65735         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65736         * lib/unistr.h: Update.
65737         * lib/linebreak.c: Update.
65738         * modules/unistr/u32-mbtouc: Renamed from
65739         modules/unistr/u32-mbtouc-safe.
65740         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65741         * lib/unistr.h: Update.
65742         * lib/unistr/u32-to-u8.c: Update.
65743         * lib/unistr/u32-to-u16.c: Update.
65744
65745 2007-01-27  Bruno Haible  <bruno@clisp.org>
65746
65747         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65748         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65749         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65750         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65751         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65752         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65753         modules/unistr/u16-mbtouc.
65754         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65755         * lib/unistr.h: Update.
65756         * lib/linebreak.c: Update.
65757         * modules/linebreak: Update.
65758         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65759         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65760         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65761         * modules/unistr/u16-mbtouc: Renamed from
65762         modules/unistr/u16-mbtouc-safe.
65763         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65764         * lib/unistr.h: Update.
65765         * lib/unistr/u16-to-u8.c: Update.
65766         * modules/unistr/u16-to-u8: Update.
65767         * lib/unistr/u16-to-u32.c: Update.
65768         * modules/unistr/u16-to-u32: Update.
65769
65770 2007-01-27  Bruno Haible  <bruno@clisp.org>
65771
65772         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65773         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65774         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65775         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65776         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65777         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65778         modules/unistr/u8-mbtouc.
65779         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65780         * lib/unistr.h: Update.
65781         * lib/striconveh.c: Update.
65782         * modules/striconveh: Update.
65783         * lib/linebreak.c: Update.
65784         * modules/linebreak: Update.
65785         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65786         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65787         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65788         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65789         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65790         * lib/unistr.h: Update.
65791         * lib/striconveh.c: Update.
65792         * modules/striconveh: Update.
65793         * lib/unistr/u8-to-u16.c: Update.
65794         * modules/unistr/u8-to-u16: Update.
65795         * lib/unistr/u8-to-u32.c: Update.
65796         * modules/unistr/u8-to-u32: Update.
65797
65798 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65799
65800         Sync from Libtool.
65801         * lib/argz.c: Do not include strings.h nor memory.h, include
65802         string.h unconditionally.  Patch by Simon Josefsson.
65803
65804 2007-01-27  Bruno Haible  <bruno@clisp.org>
65805
65806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65807         from gl_HEADER_STRING_H_BODY.
65808         (gl_HEADER_STRING_H_BODY): Require it.
65809         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65810         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65811         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65812         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65813         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65814         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65815         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65816         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65817         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65818         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65819         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65820         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65821         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65822         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65823         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65824
65825 2007-01-27  Bruno Haible  <bruno@clisp.org>
65826
65827         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65828         check_PROGRAMS into noinst_PROGRAMS.
65829         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65830         check_PROGRAMS in this case.
65831         (func_import): Set for_test to false.
65832         (func_create_testdir): Set for_test to true.
65833
65834 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65835             Bruno Haible  <bruno@clisp.org>
65836
65837         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65838         (Depends-on): Add string.
65839         (Includes): Use <string.h> instead of strcasestr.h.
65840         * modules/string (Makefile.am): Also substitute the value of
65841         REPLACE_STRCASESTR.
65842         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65843         assume strcasestr is declared in <string.h> not <strings.h>. Also
65844         set REPLACE_STRCASESTR.
65845         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65846         REPLACE_STRCASESTR.
65847         * lib/strcasestr.h: Remove file.
65848         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65849         * lib/string_.h (strcasestr): New declaration.
65850
65851 2007-01-27  Bruno Haible  <bruno@clisp.org>
65852
65853         * lib/string_.h: Use 'extern'.
65854
65855 2007-01-27  Jim Meyering  <jim@meyering.net>
65856
65857         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65858         of set-but-not-used local, "q".
65859
65860         * lib/mempcpy.c: Include <config.h> before <string.h>.
65861         This fixes a compilation error on HP-UX, due to the system's
65862         "restrict"-using mempcpy prototype.
65863
65864 2007-01-26  Bruno Haible  <bruno@clisp.org>
65865
65866         Small optimization.
65867         * lib/javacomp.c: Include c-strstr.h.
65868          (is_envjavac_gcj): Use c_strstr instead of strstr.
65869         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65870
65871 2007-01-26  Bruno Haible  <bruno@clisp.org>
65872
65873         * MODULES.html.sh (Unicode string functions): Add the new modules.
65874
65875         * modules/uniconv/u32-strconv-to-locale: New file.
65876         * lib/uniconv/u32-strconv-to-locale.c: New file.
65877
65878         * modules/uniconv/u16-strconv-to-locale: New file.
65879         * lib/uniconv/u16-strconv-to-locale.c: New file.
65880
65881         * modules/uniconv/u8-strconv-to-locale: New file.
65882         * lib/uniconv/u8-strconv-to-locale.c: New file.
65883
65884         * modules/uniconv/u32-strconv-from-locale: New file.
65885         * lib/uniconv/u32-strconv-from-locale.c: New file.
65886
65887         * modules/uniconv/u16-strconv-from-locale: New file.
65888         * lib/uniconv/u16-strconv-from-locale.c: New file.
65889
65890         * modules/uniconv/u8-strconv-from-locale: New file.
65891         * lib/uniconv/u8-strconv-from-locale.c: New file.
65892
65893         * modules/uniconv/u32-strconv-to-enc: New file.
65894         * lib/uniconv/u32-strconv-to-enc.c: New file.
65895         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65896         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65897
65898         * modules/uniconv/u16-strconv-to-enc: New file.
65899         * lib/uniconv/u16-strconv-to-enc.c: New file.
65900         * lib/uniconv/u-strconv-to-enc.h: New file.
65901         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65902         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65903
65904         * modules/uniconv/u8-strconv-to-enc: New file.
65905         * lib/uniconv/u8-strconv-to-enc.c: New file.
65906         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65907         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65908
65909         * modules/uniconv/u32-strconv-from-enc: New file.
65910         * lib/uniconv/u32-strconv-from-enc.c: New file.
65911         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65912         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65913
65914         * modules/uniconv/u16-strconv-from-enc: New file.
65915         * lib/uniconv/u16-strconv-from-enc.c: New file.
65916         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65917         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65918
65919         * modules/uniconv/u8-strconv-from-enc: New file.
65920         * lib/uniconv/u8-strconv-from-enc.c: New file.
65921         * lib/uniconv/u-strconv-from-enc.h: New file.
65922         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65923         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65924
65925         * modules/uniconv/u32-conv-from-enc: New file.
65926         * lib/uniconv/u32-conv-from-enc.c: New file.
65927         * modules/uniconv/u32-conv-from-enc-tests: New file.
65928         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65929
65930         * modules/uniconv/u16-conv-from-enc: New file.
65931         * lib/uniconv/u16-conv-from-enc.c: New file.
65932         * lib/uniconv/u-conv-from-enc.h: New file.
65933         * modules/uniconv/u16-conv-from-enc-tests: New file.
65934         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65935
65936         * modules/uniconv/u8-conv-from-enc: New file.
65937         * lib/uniconv/u8-conv-from-enc.c: New file.
65938         * modules/uniconv/u8-conv-from-enc-tests: New file.
65939         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65940
65941         * modules/uniconv/base: New file.
65942         * lib/uniconv.h: New file.
65943
65944 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65945
65946         * doc/gnulib-tool.texi (Initial import): Update to match current
65947         behavior with strdup module.
65948         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65949         * lib/memmem.h: Remove; all uses removed.  This is now done
65950         by <string.h>.
65951         * lib/mempcpy.h: Likewise.
65952         * lib/memrchr.h: Likewise.
65953         * lib/stpcpy.h: Likewise.
65954         * lib/stpncpy.h: Likewise.
65955         * lib/strcase.h: Likewise.
65956         * lib/strchrnul.h: Likewise.
65957         * lib/strdup.h: Likewise.
65958         * lib/strndup.h: Likewise.
65959         * lib/strnlen.h: Likewise.
65960         * lib/strpbrk.h: Likewise.
65961         * lib/strsep.h: Likewise.
65962         * lib/strstr.h: Likewise.
65963         * lib/strtok_r.h: Likewise.
65964         * lib/string_.h: New file.
65965         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65966         Rely on <string.h> instead.
65967         * lib/canon-host.c: Likewise.
65968         * lib/chdir-long.c: Likewise.
65969         * lib/concatpath.c: Likewise.
65970         * lib/exclude.c: Likewise.
65971         * lib/fchdir.c: Likewise.
65972         * lib/getaddrinfo.c: Likewise.
65973         * lib/getcwd.c: Likewise.
65974         * lib/getsubopt.c: Likewise.
65975         * lib/glob.c: Likewise.
65976         * lib/hard-locale.c: Likewise.
65977         * lib/iconvme.c: Likewise.
65978         * lib/javacomp.c: Likewise.
65979         * lib/mempcpy.c: Likewise.
65980         * lib/memrchr.c: Likewise.
65981         * lib/regex_internal.h: Likewise.
65982         * lib/stpncpy.c: Likewise.
65983         * lib/strcasecmp.c: Likewise.
65984         * lib/strchrnul.c: Likewise.
65985         * lib/strdup.c: Likewise.
65986         * lib/striconv.c: Likewise.
65987         * lib/striconveh.c: Likewise.
65988         * lib/striconveha.c: Likewise.
65989         * lib/strncasecmp.c: Likewise.
65990         * lib/strndup.c: Likewise.
65991         * lib/strnlen.c: Likewise.
65992         * lib/strsep.c: Likewise.
65993         * lib/strstr.c: Likewise.
65994         * lib/strtok_r.c: Likewise.
65995         * lib/userspec.c: Likewise.
65996         * lib/w32spawn.h: Likewise.
65997         * lib/xstrndup.c: Likewise.
65998         * lib/mountlist.c (strstr): Remove decl.
65999         * m4/string_h.m4: New file.
66000         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66001         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66002         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66003         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66004         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66005         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66006         Set REPLACE_STRCASECMP if necessary.
66007         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66008         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66009         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66010         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66011         HAVE_DECL_STRDUP if necessary.
66012         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66013         since gl_FUNC_STRNDUP does that now.
66014         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66015         Check for decl here...
66016         (gl_PREREQ_STRNLEN): ... not here.
66017         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66018         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66019         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66020         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66021         necessary.
66022         * modules/string: New file.
66023         * modules/memmem (Files): Remove special-purpose include file.
66024         (Depends-on): Add string.
66025         (Include): Include <string.h>, not the removed file.
66026         * modules/mempcpy: Likewise.
66027         * modules/memrchr: Likewise.
66028         * modules/stpcpy: Likewise.
66029         * modules/stpncpy: Likewise.
66030         * modules/strcase: Likewise.
66031         * modules/strchrnul: Likewise.
66032         * modules/strdup: Likewise.
66033         * modules/strndup: Likewise.
66034         * modules/strnlen: Likewise.
66035         * modules/strpbrk: Likewise.
66036         * modules/strsep: Likewise.
66037         * modules/strstr: Likewise.
66038         * modules/strtok_r: Likewise.
66039         * tests/test-dirname.c: Don't include "strdup.h", since
66040         <string.h> now suffices.
66041         * tests/test-memmem.c: Don't include "memmem.h", since
66042         <string.h> now suffices.
66043
66044 2007-01-25  Bruno Haible  <bruno@clisp.org>
66045
66046         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66047         *resultp is 0.
66048
66049         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66050         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66051         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66052         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66053
66054         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66055         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66056         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66057         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66058         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66059         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66060
66061 2007-01-24  Bruno Haible  <bruno@clisp.org>
66062
66063         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66064         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66065         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66066         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66067         gl_FUNC_FTS_CORE.
66068         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66069         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66070         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66071         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66072         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66073         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66074         gl_FUNC_FCHOWNAT.
66075         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66076         gl_FUNC_STRFTIME.
66077         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66078         Reported by Ralf Wildenhues.
66079
66080 2007-01-24  Bruno Haible  <bruno@clisp.org>
66081
66082         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66083         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66084         gl_GETADDRINFO.
66085         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66086         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66087         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66088
66089 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66090
66091         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66092         Don't use 'exit'; just return from 'main'.
66093         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66094
66095         * lib/fnmatch_.h: Readjust white space and comments to match
66096         glibc, to avoid spurious diffs.
66097
66098 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66099
66100         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66101         2004-12-01 change by Jakub Jelinek, since this code won't compile
66102         if !LIBC.  Problem reported by Bob Proulx.
66103
66104 2007-01-23  Bruno Haible  <bruno@clisp.org>
66105
66106         * lib/striconveh.c: Include c-strcaseeq.h.
66107         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66108         * modules/striconveh (Depends-on): Add c-strcaseeq.
66109
66110 2007-01-23  Bruno Haible  <bruno@clisp.org>
66111
66112         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66113
66114         * modules/c-strcaseeq: New file.
66115         * lib/c-strcaseeq.h: New file.
66116
66117         * modules/streq: New file.
66118         * lib/streq.h: New file.
66119
66120 2007-01-23  Bruno Haible  <bruno@clisp.org>
66121
66122         * modules/striconveha-tests: New file.
66123         * tests/test-striconveha.c: New file.
66124
66125         * lib/striconveha.h: Include <stdbool.h>.
66126         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66127         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66128         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66129         (mem_iconveha): New function.
66130         (str_iconveha_notranslit): Renamed from str_iconveha.
66131         (str_iconveha): New function.
66132         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66133         c-strcase.
66134
66135 2007-01-23  Bruno Haible  <bruno@clisp.org>
66136
66137         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66138         encodings without forgiving before trying any encoding with handler.
66139         (str_iconveha): Try all encodings without forgiving before trying any
66140         encoding with handler.
66141
66142 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66143
66144         Import the following changes from libc.
66145
66146         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66147
66148         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66149
66150         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66151
66152         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66153         normal_bracket label.
66154
66155         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66156
66157         [BZ #361]
66158         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66159         to normal_bracket after fetching the next character.
66160
66161 2007-01-22  Bruno Haible  <bruno@clisp.org>
66162
66163         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66164         argument.
66165         * lib/striconveh.c (iconv_carefully_1): New function.
66166         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66167         argument.
66168         (str_cd_iconveh): Update.
66169         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66170         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66171         * tests/test-striconveh.c (MAGIC): New macro.
66172         (new_offsets): New function.
66173         (main): Test call with and without offsets.
66174
66175 2007-01-22  Bruno Haible  <bruno@clisp.org>
66176
66177         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66178         * modules/sys_select (Makefile.am): Likewise.
66179         * modules/sys_socket (Makefile.am): Likewise.
66180         * modules/sys_time (Makefile.am): Likewise.
66181
66182 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66183
66184         * modules/gettimeofday (License): Change from GPL to LGPL, since
66185         gettimeofday is a library function.
66186
66187 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66188
66189         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66190
66191 2007-01-21  Bruno Haible  <bruno@clisp.org>
66192
66193         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66194
66195 2007-01-21  Bruno Haible  <bruno@clisp.org>
66196
66197         * modules/striconveha: New file.
66198         * lib/striconveha.h: New file.
66199         * lib/striconveha.c: New file.
66200         * MODULES.html.sh (Internationalization functions): Add striconveha.
66201         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66202         string.
66203         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66204
66205 2007-01-21  Bruno Haible  <bruno@clisp.org>
66206
66207         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66208         * lib/striconveh.c (str_iconveh): Likewise.
66209
66210 2007-01-21  Bruno Haible  <bruno@clisp.org>
66211
66212         * lib/striconveh.h (mem_iconveh): New declaration.
66213         * lib/striconveh.c (mem_iconveh): New function.
66214         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66215
66216 2007-01-21  Bruno Haible  <bruno@clisp.org>
66217
66218         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66219
66220         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66221         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66222         original result buffer.
66223         (str_cd_iconveh): Update.
66224         * tests/test-striconveh.c (main): Update.
66225
66226         * lib/striconv.h (mem_cd_iconv): Change specification.
66227         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66228         result buffer.
66229         (str_cd_iconv): Update.
66230         * tests/test-striconv.c (main): Update.
66231
66232 2007-01-21  Bruno Haible  <bruno@clisp.org>
66233
66234         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66235
66236 2007-01-20  Jim Meyering  <jim@meyering.net>
66237
66238         * lib/userspec.c (parse_with_separator): If a user or group string
66239         starts with "+", skip the corresponding name-to-ID look-up, since
66240         such a look-up must fail: user and group names may not include "+".
66241
66242 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66243
66244         * lib/poll.c: Include sys/time.h and time.h unconditionally,
66245         since we now assume the sys_time module.
66246         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
66247         check for sys/time.h; no longer needed.
66248         * modules/poll (Depends-on): Depend on sys_time.
66249
66250 2007-01-18  Bruno Haible  <bruno@clisp.org>
66251
66252         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
66253         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66254
66255         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
66256         gettimeofday.
66257
66258         * tests/test-gettimeofday.c: Include <time.h>.
66259         (dummy): Remove variable.
66260
66261         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
66262         gl_HEADER_SYS_TIME_H.
66263         (gl_HEADER_SYS_TIME_H): New macro.
66264
66265         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
66266         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66267         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
66268         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
66269         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
66271         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
66272         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66273         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
66274         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
66275         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66276
66277         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
66278         last change; it caused a compilation error when cross-compiling to
66279         Cygwin.
66280
66281 2007-01-18  Jim Meyering  <jim@meyering.net>
66282
66283         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
66284         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
66285         than the race-prone "test -d sys || mkdir sys".
66286         (configure.ac): Use AC_PROG_MKDIR_P.
66287         * modules/sys_select: Likewise.
66288         * modules/sys_socket: Likewise.
66289         * modules/sys_time: Likewise.
66290
66291 2007-01-18  Eric Blake  <ebb9@byu.net>
66292
66293         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
66294         replace gettimeofday.
66295         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
66296         name, to avoid infinite recursion.
66297
66298 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
66299
66300         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
66301         module sys_time.
66302         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
66303         assume timespec.h defines struct timeval.
66304         * lib/settime.c: Likewise.
66305         * lib/utimens.c: Likewise.
66306         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
66307         since we now assume the gettimeofday module.
66308         * lib/tempname.c (__gen_tempname): Likewise.
66309         * lib/gettimeofday.h: Remove.
66310         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
66311         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
66312         Include <time.h>, for 'time()'.
66313         (localtime_buffer_addr): Also use this workaround if
66314         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66315         to simplify the uses.  All uses changed.
66316         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
66317         that #undef is inside {}, and 'const' follows type name consistently.
66318         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
66319         (gettimeofday): Do not use the maximum possible value for
66320         tv->tv_usec, since that might break usages other than ls.c.
66321         Instead, we'll leave ls.c alone.  This undoes today's patch
66322         by Bruno.  Add a compile-time warning for 1s-clock resolution;
66323         we've never observed the problem but might as well keep the
66324         canary.
66325         * lib/nanosleep.c: Include timespec.h first, for interface check.
66326         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
66327         now assume the sys_time module.
66328         * lib/tempname.c: Likewise.
66329         * lib/timespec.h: Likewise.
66330         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
66331         needed.
66332         * lib/strftime.c: Likewise.
66333         * lib/timespec.h: Likewise.
66334         * lib/posixtm.c: Include posixtm.h first, for interface check.
66335         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
66336         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
66337         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
66338         * lib/sys_time_.h: New file.
66339         * lib/timespec.h (struct timespec): Use long int, not long.
66340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66341         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
66342         Remove obsolescent call to AC_HEADER_TIME.
66343         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
66344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66345         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66346         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
66347         Likewise.
66348         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
66349         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
66350         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
66351         into the sys_time module.  Check for gettimeofday just once.
66352         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
66353         for gettimeofday signature to just check the signature.  Merely
66354         compile it, since linking doesn't test signature.  Improve test for
66355         whether gettimeofday.o is actually needed.
66356         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
66357         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
66358         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
66359         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66360         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
66361         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
66362         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
66363         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
66364         than worrying about sys/time.h.
66365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66366         Don't bother worrying about TIME_WITH_SYS_TIME.
66367         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66368         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66369         * m4/sys_time_h.m4: New file.
66370         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66371         Don't include sys/time.h.  Return from main rather than exiting.
66372         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66373         all uses changed.
66374         * modules/gethrxtime (Depends-on): Add sys_time.
66375         * modules/gettime (Depends-on): Likewise.
66376         * modules/gettimeofday (Depends-on): Likewise.
66377         * modules/nanosleep (Depends-on): Likewise.
66378         * modules/settime (Depends-on): Likewise.
66379         * modules/tempname (Depends-on): Likewise.
66380         * modules/utimens (Depends-on): Likewise.
66381         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66382         (Include): Change back to <sys/time.h>.
66383         (Maintainer): Add self.
66384         * modules/sys_time: New file.
66385         * modules/tempname (Depends-on): Add gettimeofday.
66386         * tests/test-gettimeofday.c: Include <sys/time.h>
66387         rather than gettimeofday.h.
66388
66389 2007-01-17  Bruno Haible  <bruno@clisp.org>
66390
66391         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66392         the license default to GPL.
66393         (func_create_testdir): Don't complain if a module is LGPL and its
66394         tests module depends on GPLed modules.
66395
66396 2007-01-17  Bruno Haible  <bruno@clisp.org>
66397
66398         * lib/gettimeofday.c (gettimeofday): Add code for the case
66399         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66400         maximum possible value for tv->tv_usec, rather than the minimum one.
66401
66402 2005-10-08  Martin Lambers  <marlam@marlam.de>
66403 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66404 2007-01-16  Bruno Haible  <bruno@clisp.org>
66405
66406         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66407         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66408         gl_FUNC_GETTIMEOFDAY.
66409         (Include): Add gettimeofday.h.
66410         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66411         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66412         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66413         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66414         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66415         * lib/gettimeofday.h: New file.
66416         * lib/gettimeofday.c: Include <sys/timeb.h>.
66417         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66418         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66419         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66420         fall back on time().
66421
66422         * tests/test-gettimeofday.c: New file.
66423         * modules/gettimeofday-tests: New file.
66424
66425 2007-01-16  Eric Blake  <ebb9@byu.net>
66426
66427         * modules/fnmatch (Depends-on): Depend on wchar.
66428         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66429         * m4/fnmatch.m4: Likewise.
66430         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66431         * m4/mbchar.m4: Likewise.
66432         * modules/mbswidth (Depends-on): Depend on wchar.
66433         * lib/mbswidth.c: Assume <wchar.h>.
66434         * m4/mbswidth.m4: Likewise.
66435         * modules/quotearg (Depends-on): Depend on wchar.
66436         * lib/quotearg.c: Assume <wchar.h>.
66437         * m4/quotearg.m4: Likewise.
66438         * modules/regex (Depends-on): Depend on wchar.
66439         * lib/regex_internal.h: Assume <wchar.h>.
66440         * m4/regex.m4: Likewise.
66441         * modules/stdint (Depends-on): Depend on wchar.
66442         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66443         * m4/stdint.m4: Likewise.
66444         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66445         * modules/strftime (Depends-on): Depend on wchar.
66446         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66447         * modules/strtol (Depends-on): Depend on wchar.
66448         * lib/strtol.c: Assume <wchar.h>.
66449         * modules/wcwidth (Depends-on): Depend on wchar.
66450         * lib/wcwidth.h: Assume <wchar.h>.
66451         * m4/wcwidth.m4: Likewise.
66452
66453 2007-01-16  Bruno Haible  <bruno@clisp.org>
66454
66455         * modules/csharpexec-script: New, created from...
66456         * modules/csharpexec: ... this.
66457
66458 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66459
66460         * modules/javaexec-script: New, created from...
66461         * modules/javaexec: ... this.
66462
66463 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66464
66465         * modules/poll (Dependencies): Add sys_select.
66466
66467 2007-01-15  Jim Meyering  <jim@meyering.net>
66468
66469         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66470         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66471         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66472         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66473
66474 2007-01-15  Bruno Haible  <bruno@clisp.org>
66475
66476         * modules/striconveh: New file.
66477         * lib/striconveh.h: New file.
66478         * lib/striconveh.c: New file.
66479         * MODULES.html.sh (Internationalization functions): Add striconveh.
66480
66481         * modules/striconveh-tests: New file.
66482         * tests/test-striconveh.c: New file.
66483
66484 2007-01-15  Bruno Haible  <bruno@clisp.org>
66485
66486         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66487         not from GNU libiconv or GNU libc.
66488
66489 2007-01-15  Bruno Haible  <bruno@clisp.org>
66490
66491         * doc/gnulib-intro.texi (Copyright): Explain the different license
66492         terms for module descriptions, autoconf macros, tests, documentation.
66493
66494 2007-01-14  Bruno Haible  <bruno@clisp.org>
66495
66496         * modules/striconv-tests: New file.
66497         * tests/test-striconv.c: New file.
66498
66499 2007-01-14  Bruno Haible  <bruno@clisp.org>
66500
66501         * modules/iconv-tests: New file.
66502         * tests/test-iconv.c: New file.
66503
66504 2007-01-14  Bruno Haible  <bruno@clisp.org>
66505
66506         * gnulib-tool (func_get_license): For test modules, use the license of
66507         the main module.
66508
66509 2007-01-14  Bruno Haible  <bruno@clisp.org>
66510
66511         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66512         if iconv is found to exist.
66513
66514 2007-01-14  Bruno Haible  <bruno@clisp.org>
66515
66516         * modules/c-ctype-tests: New file.
66517         * tests/test-c-ctype.c: New file.
66518
66519 2007-01-14  Bruno Haible  <bruno@clisp.org>
66520
66521         * modules/binary-io-tests: New file.
66522         * tests/test-binary-io.sh: New file.
66523         * tests/test-binary-io.c: New file.
66524
66525 2007-01-14  Bruno Haible  <bruno@clisp.org>
66526
66527         * modules/array-oset-tests: New file.
66528         * tests/test-array_oset.c: New file.
66529
66530 2007-01-14  Bruno Haible  <bruno@clisp.org>
66531
66532         * modules/array-list-tests: New file.
66533         * tests/test-array_list.c: New file.
66534
66535 2007-01-14  Bruno Haible  <bruno@clisp.org>
66536
66537         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66538         and make.
66539         Reported by Simon Josefsson in
66540         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66541
66542 2007-01-14  Bruno Haible  <bruno@clisp.org>
66543
66544         * modules/allocsa-tests: New file.
66545         * tests/test-allocsa.c: New file.
66546
66547 2007-01-14  Bruno Haible  <bruno@clisp.org>
66548
66549         * modules/fchdir (Depends-on): Add absolute-header.
66550         * modules/unistd (Depends-on): Likewise.
66551
66552 2006-12-30  Bruno Haible  <bruno@clisp.org>
66553
66554         * modules/fchdir: New file.
66555         * modules/unistd (Files): Add lib/unistd_.h.
66556         (Makefile.am): Generate unistd.h from unistd_.h.
66557         * lib/fchdir.c: New file.
66558         * lib/dirent_.h: New file.
66559         * lib/unistd_.h: New file.
66560         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66561         * m4/fchdir.m4: New file.
66562         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66563         (gl_HEADER_UNISTD): Invoke it.
66564         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66565         function.
66566         * lib/backupfile.c (opendir, closedir): Undefine.
66567         * lib/chown.c (open, close): Undefine.
66568         * lib/clean-temp.c (open, close): Undefine.
66569         * lib/copy-file.c (open, close): Undefine.
66570         * lib/execute.c (open, close): Undefine.
66571         * lib/fsusage.c (open, close): Undefine.
66572         * lib/gc-gnulib.c (open, close): Undefine.
66573         * lib/getcwd.c (opendir, closedir): Undefine.
66574         * lib/glob.c (opendir, closedir): Undefine.
66575         * lib/javacomp.c (open, close): Undefine.
66576         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66577         * lib/openat-proc.c (open, close): Undefine.
66578         * lib/pagealign_alloc.c (open, close): Undefine.
66579         * lib/pipe.c (open, close): Undefine.
66580         * lib/progreloc.c (open, close): Undefine.
66581         * lib/savedir.c (opendir, closedir): Undefine.
66582         * lib/utime.c (open, close): Undefine.
66583         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66584
66585 2007-01-10  Bruno Haible  <bruno@clisp.org>
66586
66587         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66588
66589 2007-01-12  Eric Blake  <ebb9@byu.net>
66590
66591         Provide a robust <wchar.h>.  Further simplifications are now
66592         possible in other modules, but not included here.
66593         * modules/wchar: New module.
66594         * m4/wchar.m4: New file.
66595         * lib/wchar_.h: Likewise.
66596         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66597         of the new module.
66598         * MODULES.html.sh (Extended multibyte and wide character utilities):
66599         New section.
66600
66601 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66602
66603         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66604         to a reasonable default for memory allocation.
66605         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66606         file system that reports garbage st_size values for symlinks.
66607         Problem reported by Liyang Hu.
66608
66609 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66610
66611         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66612         Emacs .#* auto-save files).
66613
66614 2007-01-11  Bruno Haible  <bruno@clisp.org>
66615
66616         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66617         directory.
66618
66619 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66620
66621         Use @...@ consistently in lib/wctype_.h.
66622         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66623         on it being set to 1 or 0.
66624         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66625         go back to AC_SUBSTing it.
66626         * modules/wctype (Makefile.am): Undo previous change.
66627
66628 2007-01-10  Eric Blake  <ebb9@byu.net>
66629
66630         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66631         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66632         * modules/wctype (Makefile.am): Likewise.
66633         Reported by Chris McGuire.
66634
66635 2007-01-10  Jim Meyering  <jim@meyering.net>
66636
66637         fts.c: a small readability/maintainability improvement
66638         * lib/fts.c (fts_read): Make this code slightly more readable and
66639         maintainable by hoisting the "sp->fts_cur = p" assignments to
66640         immediately follow the statements that set P.  Derived from
66641         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66642
66643 2007-01-10  Eric Blake  <ebb9@byu.net>
66644
66645         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66646         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66648         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66649         Reported by Chris McGuire.
66650
66651 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66652
66653         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66654         in sed script.
66655
66656 2007-01-09  Bruno Haible  <bruno@clisp.org>
66657
66658         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66659         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66660         variables.
66661         (func_module): Use them.
66662
66663 2007-01-09  Bruno Haible  <bruno@clisp.org>
66664
66665         * modules/unistr/base: New file.
66666         * lib/unistr.h: New file.
66667
66668         * modules/unistr/u8-to-u16: New file.
66669         * lib/unistr/u8-to-u16.c: New file.
66670
66671         * modules/unistr/u8-to-u32: New file.
66672         * lib/unistr/u8-to-u32.c: New file.
66673
66674         * modules/unistr/u16-to-u8: New file.
66675         * lib/unistr/u16-to-u8.c: New file.
66676
66677         * modules/unistr/u16-to-u32: New file.
66678         * lib/unistr/u16-to-u32.c: New file.
66679
66680         * modules/unistr/u32-to-u8: New file.
66681         * lib/unistr/u32-to-u8.c: New file.
66682
66683         * modules/unistr/u32-to-u16: New file.
66684         * lib/unistr/u32-to-u16.c: New file.
66685
66686         * modules/unistr/u8-check: New file.
66687         * modules/unistr/u16-check: New file.
66688         * modules/unistr/u32-check: New file.
66689         * lib/unistr/u8-check.c: New file.
66690         * lib/unistr/u16-check.c: New file.
66691         * lib/unistr/u32-check.c: New file.
66692
66693         * modules/unistr/u8-chr: New file.
66694         * modules/unistr/u16-chr: New file.
66695         * modules/unistr/u32-chr: New file.
66696         * lib/unistr/u8-chr.c: New file.
66697         * lib/unistr/u16-chr.c: New file.
66698         * lib/unistr/u32-chr.c: New file.
66699
66700         * modules/unistr/u8-cmp: New file.
66701         * modules/unistr/u16-cmp: New file.
66702         * modules/unistr/u32-cmp: New file.
66703         * lib/unistr/u8-cmp.c: New file.
66704         * lib/unistr/u16-cmp.c: New file.
66705         * lib/unistr/u32-cmp.c: New file.
66706
66707         * modules/unistr/u8-cpy: New file.
66708         * modules/unistr/u16-cpy: New file.
66709         * modules/unistr/u32-cpy: New file.
66710         * lib/unistr/u8-cpy.c: New file.
66711         * lib/unistr/u16-cpy.c: New file.
66712         * lib/unistr/u32-cpy.c: New file.
66713         * lib/unistr/u-cpy.h: New file.
66714
66715         * modules/unistr/u8-cpy-alloc: New file.
66716         * modules/unistr/u16-cpy-alloc: New file.
66717         * modules/unistr/u32-cpy-alloc: New file.
66718         * lib/unistr/u8-cpy-alloc.c: New file.
66719         * lib/unistr/u16-cpy-alloc.c: New file.
66720         * lib/unistr/u32-cpy-alloc.c: New file.
66721         * lib/unistr/u-cpy-alloc.h: New file.
66722
66723         * modules/unistr/u8-endswith: New file.
66724         * modules/unistr/u16-endswith: New file.
66725         * modules/unistr/u32-endswith: New file.
66726         * lib/unistr/u8-endswith.c: New file.
66727         * lib/unistr/u16-endswith.c: New file.
66728         * lib/unistr/u32-endswith.c: New file.
66729         * lib/unistr/u-endswith.h: New file.
66730
66731         * modules/unistr/u8-mblen: New file.
66732         * modules/unistr/u16-mblen: New file.
66733         * modules/unistr/u32-mblen: New file.
66734         * lib/unistr/u8-mblen.c: New file.
66735         * lib/unistr/u16-mblen.c: New file.
66736         * lib/unistr/u32-mblen.c: New file.
66737
66738         * modules/unistr/u8-mbtouc: New file.
66739         * modules/unistr/u16-mbtouc: New file.
66740         * modules/unistr/u32-mbtouc: New file.
66741         * lib/unistr/u8-mbtouc.c: New file.
66742         * lib/unistr/u16-mbtouc.c: New file.
66743         * lib/unistr/u32-mbtouc.c: New file.
66744
66745         * modules/unistr/u8-mbtouc-safe: New file.
66746         * modules/unistr/u16-mbtouc-safe: New file.
66747         * modules/unistr/u32-mbtouc-safe: New file.
66748         * lib/unistr/u8-mbtouc-safe.c: New file.
66749         * lib/unistr/u16-mbtouc-safe.c: New file.
66750         * lib/unistr/u32-mbtouc-safe.c: New file.
66751
66752         * modules/unistr/u8-move: New file.
66753         * modules/unistr/u16-move: New file.
66754         * modules/unistr/u32-move: New file.
66755         * lib/unistr/u8-move.c: New file.
66756         * lib/unistr/u16-move.c: New file.
66757         * lib/unistr/u32-move.c: New file.
66758         * lib/unistr/u-move.h: New file.
66759
66760         * modules/unistr/u8-next: New file.
66761         * modules/unistr/u16-next: New file.
66762         * modules/unistr/u32-next: New file.
66763         * lib/unistr/u8-next.c: New file.
66764         * lib/unistr/u16-next.c: New file.
66765         * lib/unistr/u32-next.c: New file.
66766
66767         * modules/unistr/u8-prev: New file.
66768         * modules/unistr/u16-prev: New file.
66769         * modules/unistr/u32-prev: New file.
66770         * lib/unistr/u8-prev.c: New file.
66771         * lib/unistr/u16-prev.c: New file.
66772         * lib/unistr/u32-prev.c: New file.
66773
66774         * modules/unistr/u8-set: New file.
66775         * modules/unistr/u16-set: New file.
66776         * modules/unistr/u32-set: New file.
66777         * lib/unistr/u8-set.c: New file.
66778         * lib/unistr/u16-set.c: New file.
66779         * lib/unistr/u32-set.c: New file.
66780         * lib/unistr/u-set.h: New file.
66781
66782         * modules/unistr/u8-startswith: New file.
66783         * modules/unistr/u16-startswith: New file.
66784         * modules/unistr/u32-startswith: New file.
66785         * lib/unistr/u8-startswith.c: New file.
66786         * lib/unistr/u16-startswith.c: New file.
66787         * lib/unistr/u32-startswith.c: New file.
66788         * lib/unistr/u-startswith.h: New file.
66789
66790         * modules/unistr/u8-stpcpy: New file.
66791         * modules/unistr/u16-stpcpy: New file.
66792         * modules/unistr/u32-stpcpy: New file.
66793         * lib/unistr/u8-stpcpy.c: New file.
66794         * lib/unistr/u16-stpcpy.c: New file.
66795         * lib/unistr/u32-stpcpy.c: New file.
66796         * lib/unistr/u-stpcpy.h: New file.
66797
66798         * modules/unistr/u8-stpncpy: New file.
66799         * modules/unistr/u16-stpncpy: New file.
66800         * modules/unistr/u32-stpncpy: New file.
66801         * lib/unistr/u8-stpncpy.c: New file.
66802         * lib/unistr/u16-stpncpy.c: New file.
66803         * lib/unistr/u32-stpncpy.c: New file.
66804         * lib/unistr/u-stpncpy.h: New file.
66805
66806         * modules/unistr/u8-strcat: New file.
66807         * modules/unistr/u16-strcat: New file.
66808         * modules/unistr/u32-strcat: New file.
66809         * lib/unistr/u8-strcat.c: New file.
66810         * lib/unistr/u16-strcat.c: New file.
66811         * lib/unistr/u32-strcat.c: New file.
66812         * lib/unistr/u-strcat.h: New file.
66813
66814         * modules/unistr/u8-strchr: New file.
66815         * modules/unistr/u16-strchr: New file.
66816         * modules/unistr/u32-strchr: New file.
66817         * lib/unistr/u8-strchr.c: New file.
66818         * lib/unistr/u16-strchr.c: New file.
66819         * lib/unistr/u32-strchr.c: New file.
66820
66821         * modules/unistr/u8-strcmp: New file.
66822         * modules/unistr/u16-strcmp: New file.
66823         * modules/unistr/u32-strcmp: New file.
66824         * lib/unistr/u8-strcmp.c: New file.
66825         * lib/unistr/u16-strcmp.c: New file.
66826         * lib/unistr/u32-strcmp.c: New file.
66827
66828         * modules/unistr/u8-strcpy: New file.
66829         * modules/unistr/u16-strcpy: New file.
66830         * modules/unistr/u32-strcpy: New file.
66831         * lib/unistr/u8-strcpy.c: New file.
66832         * lib/unistr/u16-strcpy.c: New file.
66833         * lib/unistr/u32-strcpy.c: New file.
66834         * lib/unistr/u-strcpy.h: New file.
66835
66836         * modules/unistr/u8-strcspn: New file.
66837         * modules/unistr/u16-strcspn: New file.
66838         * modules/unistr/u32-strcspn: New file.
66839         * lib/unistr/u8-strcspn.c: New file.
66840         * lib/unistr/u16-strcspn.c: New file.
66841         * lib/unistr/u32-strcspn.c: New file.
66842         * lib/unistr/u-strcspn.h: New file.
66843
66844         * modules/unistr/u8-strdup: New file.
66845         * modules/unistr/u16-strdup: New file.
66846         * modules/unistr/u32-strdup: New file.
66847         * lib/unistr/u8-strdup.c: New file.
66848         * lib/unistr/u16-strdup.c: New file.
66849         * lib/unistr/u32-strdup.c: New file.
66850         * lib/unistr/u-strdup.h: New file.
66851
66852         * modules/unistr/u8-strlen: New file.
66853         * modules/unistr/u16-strlen: New file.
66854         * modules/unistr/u32-strlen: New file.
66855         * lib/unistr/u8-strlen.c: New file.
66856         * lib/unistr/u16-strlen.c: New file.
66857         * lib/unistr/u32-strlen.c: New file.
66858         * lib/unistr/u-strlen.h: New file.
66859
66860         * modules/unistr/u8-strmblen: New file.
66861         * modules/unistr/u16-strmblen: New file.
66862         * modules/unistr/u32-strmblen: New file.
66863         * lib/unistr/u8-strmblen.c: New file.
66864         * lib/unistr/u16-strmblen.c: New file.
66865         * lib/unistr/u32-strmblen.c: New file.
66866
66867         * modules/unistr/u8-strmbtouc: New file.
66868         * modules/unistr/u16-strmbtouc: New file.
66869         * modules/unistr/u32-strmbtouc: New file.
66870         * lib/unistr/u8-strmbtouc.c: New file.
66871         * lib/unistr/u16-strmbtouc.c: New file.
66872         * lib/unistr/u32-strmbtouc.c: New file.
66873
66874         * modules/unistr/u8-strncat: New file.
66875         * modules/unistr/u16-strncat: New file.
66876         * modules/unistr/u32-strncat: New file.
66877         * lib/unistr/u8-strncat.c: New file.
66878         * lib/unistr/u16-strncat.c: New file.
66879         * lib/unistr/u32-strncat.c: New file.
66880         * lib/unistr/u-strncat.h: New file.
66881
66882         * modules/unistr/u8-strncmp: New file.
66883         * modules/unistr/u16-strncmp: New file.
66884         * modules/unistr/u32-strncmp: New file.
66885         * lib/unistr/u8-strncmp.c: New file.
66886         * lib/unistr/u16-strncmp.c: New file.
66887         * lib/unistr/u32-strncmp.c: New file.
66888
66889         * modules/unistr/u8-strncpy: New file.
66890         * modules/unistr/u16-strncpy: New file.
66891         * modules/unistr/u32-strncpy: New file.
66892         * lib/unistr/u8-strncpy.c: New file.
66893         * lib/unistr/u16-strncpy.c: New file.
66894         * lib/unistr/u32-strncpy.c: New file.
66895         * lib/unistr/u-strncpy.h: New file.
66896
66897         * modules/unistr/u8-strnlen: New file.
66898         * modules/unistr/u16-strnlen: New file.
66899         * modules/unistr/u32-strnlen: New file.
66900         * lib/unistr/u8-strnlen.c: New file.
66901         * lib/unistr/u16-strnlen.c: New file.
66902         * lib/unistr/u32-strnlen.c: New file.
66903         * lib/unistr/u-strnlen.h: New file.
66904
66905         * modules/unistr/u8-strpbrk: New file.
66906         * modules/unistr/u16-strpbrk: New file.
66907         * modules/unistr/u32-strpbrk: New file.
66908         * lib/unistr/u8-strpbrk.c: New file.
66909         * lib/unistr/u16-strpbrk.c: New file.
66910         * lib/unistr/u32-strpbrk.c: New file.
66911         * lib/unistr/u-strpbrk.h: New file.
66912
66913         * modules/unistr/u8-strrchr: New file.
66914         * modules/unistr/u16-strrchr: New file.
66915         * modules/unistr/u32-strrchr: New file.
66916         * lib/unistr/u8-strrchr.c: New file.
66917         * lib/unistr/u16-strrchr.c: New file.
66918         * lib/unistr/u32-strrchr.c: New file.
66919
66920         * modules/unistr/u8-strspn: New file.
66921         * modules/unistr/u16-strspn: New file.
66922         * modules/unistr/u32-strspn: New file.
66923         * lib/unistr/u8-strspn.c: New file.
66924         * lib/unistr/u16-strspn.c: New file.
66925         * lib/unistr/u32-strspn.c: New file.
66926         * lib/unistr/u-strspn.h: New file.
66927
66928         * modules/unistr/u8-strstr: New file.
66929         * modules/unistr/u16-strstr: New file.
66930         * modules/unistr/u32-strstr: New file.
66931         * lib/unistr/u8-strstr.c: New file.
66932         * lib/unistr/u16-strstr.c: New file.
66933         * lib/unistr/u32-strstr.c: New file.
66934         * lib/unistr/u-strstr.h: New file.
66935
66936         * modules/unistr/u8-strtok: New file.
66937         * modules/unistr/u16-strtok: New file.
66938         * modules/unistr/u32-strtok: New file.
66939         * lib/unistr/u8-strtok.c: New file.
66940         * lib/unistr/u16-strtok.c: New file.
66941         * lib/unistr/u32-strtok.c: New file.
66942         * lib/unistr/u-strtok.h: New file.
66943
66944         * modules/unistr/u8-uctomb: New file.
66945         * modules/unistr/u16-uctomb: New file.
66946         * modules/unistr/u32-uctomb: New file.
66947         * lib/unistr/u8-uctomb.c: New file.
66948         * lib/unistr/u16-uctomb.c: New file.
66949         * lib/unistr/u32-uctomb.c: New file.
66950
66951         * MODULES.html.sh (Unicode string functions): Add the new modules.
66952
66953 2007-01-08  Bruno Haible  <bruno@clisp.org>
66954
66955         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66956         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66957         subdirectories.
66958
66959 2007-01-08  Karl Berry  <karl@gnu.org>
66960
66961         * doc/error.texi: mention that main() fns must set program_name
66962         when progname is used.
66963
66964 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66965
66966         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66967         WCTYPE_H is empty, for the benefit of builds from non-distclean
66968         directories.  Problem reported by Eric Blake in
66969         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66970
66971 2007-01-08  Bruno Haible  <bruno@clisp.org>
66972
66973         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66974         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66975         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66976         PROVIDE_CANONICALIZE_FILENAME_MODE.
66977         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66978
66979 2007-01-08  Bruno Haible  <bruno@clisp.org>
66980
66981         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66982         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66983         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66984         * lib/fts.c: Likewise.
66985         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66986
66987 2006-12-25  Bruno Haible  <bruno@clisp.org>
66988
66989         * modules/utf8-ucs4-safe: New file.
66990         * lib/utf8-ucs4-safe.h: New file.
66991         * lib/unistr/utf8-ucs4-safe.c: New file.
66992
66993         * modules/utf16-ucs4-safe: New file.
66994         * lib/utf16-ucs4-safe.h: New file.
66995         * lib/unistr/utf16-ucs4-safe.c: New file.
66996
66997         * MODULES.html.sh (Unicode string functions): Add the new modules.
66998
66999 2007-01-08  Bruno Haible  <bruno@clisp.org>
67000
67001         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67002         (Depends-on): Add unitypes.
67003         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67004         (u8_mbtouc_aux): Move out to separate file.
67005         (u8_mbtouc): Use ucs4_t, uint8_t types.
67006         * lib/unistr/utf8-ucs4.c: New file.
67007
67008         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67009         (Depends-on): Add unitypes.
67010         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67011         (u16_mbtouc_aux): Move out to separate file.
67012         (u16_mbtouc): Use ucs4_t, uint16_t types.
67013         * lib/unistr/utf16-ucs4.c: New file.
67014
67015         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67016         (Depends-on): Add unitypes.
67017         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67018         (u8_uctomb_aux): Move out to separate file.
67019         (u8_uctomb): Use ucs4_t, uint8_t types.
67020         * lib/unistr/ucs4-utf8.c: New file.
67021
67022         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67023         (Depends-on): Add unitypes.
67024         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67025         (u16_uctomb_aux): Move out to separate file.
67026         (u16_uctomb): Use ucs4_t, uint16_t types.
67027         * lib/unistr/ucs4-utf16.c: New file.
67028
67029 2006-12-25  Bruno Haible  <bruno@clisp.org>
67030
67031         * modules/unitypes: New file.
67032         * lib/unitypes.h: New file.
67033         * MODULES.html.sh (func_all_modules): New section "Unicode string
67034         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67035         this section. Add unitypes.
67036
67037 2007-01-08  Bruno Haible  <bruno@clisp.org>
67038
67039         Avoid variable names that conflict with those from libtool.
67040         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67041         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67042         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67043         library_names_spec to acl_library_names_spec, hardcode_* to
67044         acl_hardcode_*.
67045         Reported by Ralf Wildenhues.
67046
67047 2007-01-08  Bruno Haible  <bruno@clisp.org>
67048
67049         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67050         definition.
67051         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67052         definition.
67053         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67054         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67055         definition.
67056         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67057         definition.
67058         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67059         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67060         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67061         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67062         definition.
67063         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67064         definition.
67065         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67066         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67067         GC_USE_<algorithm>.
67068         * lib/gc-libgcrypt.c: Likewise.
67069         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67070         * modules/gc-arctwo (configure.ac): Likewise.
67071         * modules/gc-des (configure.ac): Likewise.
67072         * modules/gc-hmac-md5 (configure.ac): Likewise.
67073         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67074         * modules/gc-md2 (configure.ac): Likewise.
67075         * modules/gc-md4 (configure.ac): Likewise.
67076         * modules/gc-md5 (configure.ac): Likewise.
67077         * modules/gc-random (configure.ac): Likewise.
67078         * modules/gc-rijndael (configure.ac): Likewise.
67079         * modules/gc-sha1 (configure.ac): Likewise.
67080
67081 2007-01-08  Bruno Haible  <bruno@clisp.org>
67082
67083         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67084         macro definition.
67085         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67086         definition.
67087         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67088         definition.
67089         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67090         * modules/fcntl-safer (configure.ac): Likewise.
67091         * modules/fopen-safer (configure.ac): Likewise.
67092         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67093         GNULIB_FWRITEERROR macro definition.
67094
67095 2007-01-08  Bruno Haible  <bruno@clisp.org>
67096
67097         * m4/gnulib-common.m4: New file.
67098         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67099         (func_get_filelist): Add m4/gnulib-common.m4.
67100
67101 2007-01-08  Bruno Haible  <bruno@clisp.org>
67102
67103         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67104         command.
67105
67106 2007-01-08  Jim Meyering  <jim@meyering.net>
67107
67108         Use a more robust test for a "can't happen" condition.
67109         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67110         narrowed the st_size value.  Presuming the "can't happen" condition
67111         is true, that narrowing could conceivably convert an invalid st_size
67112         value into a valid one.  Instead, use a change based on Matthew
67113         Woehlke's original patch.
67114
67115         Slight readability improvement: use an assert-like macro
67116         in place of literal "abort ()" uses.
67117         * lib/fts.c (fts_assert): Define.
67118         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67119         Use this macro instead of a bare 'abort'.
67120
67121 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67122
67123         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67124         simply work around them.
67125         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67126         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67127         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67128         declaring.
67129         Don't bother to define as macros, since the standard doesn't require it.
67130         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67131         longer worry about IRIX 5.3.
67132         (HAVE_WCTYPE_CTMP_BUG): Remove.
67133
67134 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67135
67136         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67137         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67138         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67139         Problems reported by Georg Schwarz for IRIX 5.3.
67140
67141         * gnulib-tool (autoconf_minversion): Take the maximum version number
67142         found, not the minimum.  Problem reported by James Youngman.
67143
67144 2007-01-03  Karl Berry  <karl@gnu.org>
67145
67146         * doc/error.texi: new file, explaining interaction with progname.
67147         * doc/gnulib.texi: include it.  Update copyright.
67148
67149 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67150
67151         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67152         AC_CANONICAL_HOST, to improve autobuild outputs.
67153
67154 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67155             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67156
67157         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67158         sockets, server sockets, and other file descriptors.  Count errors
67159         to compute the return value.  Reorder the code a bit to be easier
67160         to follow.  Don't set event bits that were not requested (except
67161         POLLERR and POLLHUP).
67162
67163 2007-01-01  Bruno Haible  <bruno@clisp.org>
67164
67165         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67166
67167 2007-01-03  Jim Meyering  <jim@meyering.net>
67168
67169         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67170
67171 2007-01-02  Bruno Haible  <bruno@clisp.org>
67172
67173         * modules/settime (Include): Require timespec.h.
67174         * modules/nanosleep (Include): Likewise.
67175
67176 2007-01-01  Bruno Haible  <bruno@clisp.org>
67177
67178         * gnulib-tool (func_emit_copyright_notice): Bump year.
67179         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67180
67181 2007-01-01  Bruno Haible  <bruno@clisp.org>
67182
67183         Improve support for OpenBSD.
67184         * build-aux/config.rpath (libname_spec): Export.
67185         (library_names_spec): New variable. Export.
67186         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67187         library_names_spec from the config.rpath output. Locate shared library
67188         through the name pattern in library_names_spec.
67189
67190 2007-01-01  Eric Blake  <ebb9@byu.net>
67191
67192         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67193
67194 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67195
67196         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67197         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67198         assume the C locale, and avoid an "eval" that could cause trouble.
67199         Problem with SORT reported by Bob Proulx.
67200
67201         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67202         Define.  Trivial patch from Henning Nielsen Lund, originally
67203         sent to bug-grep@gnu.org today.
67204
67205 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67208         struct stat.  Problem reported by Henning Nielsen Lund.
67209         * lib/acl.c: Include acl.h first, to check interface.  Don't
67210         bother to include sys/types.h and sys/stat.h again.
67211
67212 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67213
67214         Import the following change from libc; problem reported by
67215         Sven Verdoolaege.
67216
67217         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67218
67219         [BZ #1373]
67220         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67221
67222 2006-12-28  Jim Meyering  <jim@meyering.net>
67223
67224         * build-aux/announce-gen: Do not assume that the package
67225         builds any of tar.gz, tar.bz2, and .xdelta files.
67226         Suggestion from Simon Josefsson.
67227
67228 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67229
67230         * modules/announce-gen: New file.
67231
67232 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67233
67234         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67235         handles its gotchas now.
67236         * lib/mbswidth.c: Likewise.
67237         * lib/wcwidth.h: Likewise.
67238         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
67239         and iswcntrl; the wctype module does this stuff now.
67240         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67241         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67242         * modules/mbchar (Depends-on): Add wctype.
67243         * modules/mbswidth (Depends-on): Likewise.
67244         * modules/wcwidth (Depends-on): Likewise.
67245
67246 2006-12-27  Eric Blake  <ebb9@byu.net>
67247
67248         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
67249         module uses more than what <wctype.h> is required to provide.
67250
67251 2006-12-26  Eric Blake  <ebb9@byu.net>
67252
67253         * gnulib-tool (sed_extract_prog): Avoid space-tab.
67254
67255 2006-12-26  Eric Blake  <ebb9@byu.net>
67256
67257         * modules/absolute-header: New module.
67258         * modules/fcntl (Depends-on): Depend on it.
67259         * modules/inttypes (Depends-on): Likewise.
67260         * modules/stdint (Depends-on): Likewise.
67261         * modules/sys_stat (Depends-on): Likewise.
67262         * modules/wctype (Depends-on): Likewise.
67263         * MODULES.html.sh (Support for building libraries and
67264         executables): Document it.
67265
67266 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
67267
67268         * gnulib-tool (SED): Remove, undoing previous change.
67269         The problem was that it broke coreutils on Solaris, because
67270         "sed --posix" leaked into a makefile.
67271         (sed): New alias, if 'alias' and GNU sed.
67272
67273 2006-12-24  Jim Meyering  <jim@meyering.net>
67274
67275         Work around an fchownat bug in glibc-2.4:
67276         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
67277         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
67278         in spite of the -P option.
67279         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
67280         New macros.
67281         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
67282         * modules/openat (Files): Add lib/fchownat.c.
67283         * lib/openat.c (fchownat): Don't define here.  Move to...
67284         * lib/fchownat.c: ...this new file.
67285
67286 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67287
67288         Fix bug reported by Bruno Haible in
67289         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
67290         where quotearg.c didn't compile on Mac OS X 10.2 because it
67291         lacks <wchar.h> and wint_t.
67292         * lib/wctype_.h (__wctype_wint_t): New type.
67293         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
67294         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
67295         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
67296         Arg is now of type __wctype_wint_t, not wint_t.
67297         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
67298         substitute HAVE_WINT_T.
67299         * modules/wctype (Files): Add m4/wint_t.m4.
67300         (wctype.h): Substitute HAVE_WINT_T.
67301
67302 2006-12-23  Bruno Haible  <bruno@clisp.org>
67303
67304         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
67305
67306 2006-12-23  Bruno Haible  <bruno@clisp.org>
67307
67308         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
67309         S_ISLNK.
67310         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
67311         mingw.
67312
67313 2006-12-22  Bruno Haible  <bruno@clisp.org>
67314
67315         * lib/copy-file.c: Include acl.h.
67316         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
67317         Close the file descriptors only after being done with copy_acl.
67318         * modules/copy-file (Depends-on): Add acl.
67319
67320 2006-12-22  Bruno Haible  <bruno@clisp.org>
67321
67322         * gnulib-tool (SED): New variable.
67323         Use $SED instead of sed everywhere.
67324
67325 2006-12-22  Bruno Haible  <bruno@clisp.org>
67326
67327         * modules/no-c++: New file.
67328         * m4/no-c++.m4: New file.
67329         * MODULES.html.sh (Support for building libraries and executables):
67330         Add no-c++.
67331
67332 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
67333
67334         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67335         Include <limits.h>, and use its INT_MAX to rewrite the
67336         j loop so that it does not overflow 'int'.  Problem reported by
67337         Ralf Wildenhues in
67338         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
67339         Play it safe by shifting left by 1 rather than multiplying by 2,
67340         as GCC is less likely to optimize this away when the value
67341         is signed (when it assumes overflow leads to undefined behavior).
67342         Also, don't assume time_t uses two's complement.
67343
67344 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
67345
67346         * MODULES.html.sh: New module wctype.
67347         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
67348         * lib/fnmatch.c: Don't bother to include <wchar.h> before
67349         <wctype.h>, since the new wctype module should fix this.
67350         * lib/quotearg.c: Include <wctype.h> unconditionally, since
67351         the wctype module should arrange for it.
67352         * lib/regex_internal.h: Likewise.
67353         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
67354         since the wctype module should handle this now.
67355         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
67356         * modules/fnmatch (Depends-on): Add wctype.
67357         * modules/quotearg (Depends-on): Likewise.
67358         * modules/regex (Depends-on): Likewise.
67359
67360 2006-12-19  Bruno Haible  <bruno@clisp.org>
67361
67362         * lib/strdup.h [C++]: Wrap definitions in extern "C".
67363         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
67364
67365 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67366
67367         * modules/savewd (Depends-on): Fix dependency on fcntl.
67368
67369 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67370
67371         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67372         conforms to C99, rather than relying on the user's environment
67373         setting of STDINT_H.
67374
67375 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67376         and Eric Blake  <ebb9@byu.net>
67377
67378         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67379         This is more consistent with the other defines here.
67380         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67381         Port to z/OS.  Problem reported by Paul Gilmartin.
67382         Change local vars to use gl_ prefix rather than ac_.
67383         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67384         with other defines.
67385         * modules/double-slash-root: New module.
67386         * modules/dirname (Files): Remove m4/double-slash-root.m4.
67387         (Depends-on): Add double-slash-root.
67388         * MODULES.html.sh (File system functions): Mention new module.
67389
67390 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67391
67392         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67393         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67394         This is for the benefit of gzip, which doesn't do i18n.
67395
67396 2006-12-12  Jim Meyering  <jim@meyering.net>
67397
67398         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67399         Reported by Andreas Schwab <schwab@suse.de>.
67400
67401 2006-12-12  Bruno Haible  <bruno@clisp.org>
67402
67403         Merge these changes.
67404         2006-09-05  Bruno Haible  <bruno@clisp.org>
67405         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67406         iconv_alloc succeeded.
67407         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67408         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67409         test for " && dest " at the end - dest is always != NULL there. Call
67410         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67411         with 2xNULL arguments, also to flush the state storage. Handle the
67412         IRIX iconv behaviour. Realloc the final result, to throw away unused
67413         memory.
67414
67415 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67416
67417         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67418         and fchmodat unconditionally, since glibc 2.4 has them.
67419         Problem reported by Arkadiusz Miskiewicz.
67420
67421 2006-12-10  Bruno Haible  <bruno@clisp.org>
67422
67423         * gnulib-tool (func_import): Show the include files only for those
67424         modules that are copied and specified.
67425         Reported by Karl Berry.
67426
67427 2006-12-08  Jim Meyering  <jim@meyering.net>
67428
67429         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67430         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67431
67432         * build-aux/announce-gen: Add two new options, both optional:
67433         --bootstrap-tools=TOOL_LIST
67434               a comma-separated list of tools, e.g.,
67435               autoconf,automake,bison,gnulib
67436         --gnulib-snapshot-date=DATE
67437               if gnulib is in the bootstrap tool list,
67438               then report this as the snapshot date.
67439               If not specified, use the current date/time.
67440               If you specify a date here, be sure it's UTC.
67441
67442 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67443
67444         * tests/test-argp-2.sh: Fix test to match actual output.
67445         (func_compare): Fix sed script to be portable.
67446
67447 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67448
67449         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67450         workaround for this case.  It is not autoconfigured now; offhand
67451         it's hard to see how to autoconfigure it.
67452
67453 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67456         a directory that is about to be chowned.  Such a directory's
67457         initial file permissions should permit the owner only and this
67458         should not be changed until after the chown, since the group and
67459         other bits would be incorrect if they granted permission before
67460         the chown.
67461
67462         Fix porting problem for iswctype reported by Georg Schwarz in:
67463         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67464         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67465         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67466         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67467         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67468
67469 2006-12-03  Jim Meyering  <jim@meyering.net>
67470
67471         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67472         p->fts_statp may not yet be defined.
67473         (fts_read): Instead, set it in the caller, once p->fts_statp is
67474         sure to be defined, and corresponds to a top-level directory.
67475         This bug made du -x fail.  Here's the coreutils test case:
67476         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67477         Reported by Mike Frysinger.
67478
67479 2006-12-01  Jim Meyering  <jim@meyering.net>
67480
67481         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67482         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67483         Reported by Simon Josefsson.
67484
67485 2006-11-30  Jim Meyering  <jim@meyering.net>
67486
67487         * m4/warning.m4: Use the all-permissive copyright notice
67488         recommended by RMS (rather than LGPL).
67489         * m4/vararrays.m4: Likewise.
67490         * m4/flexmember.m4: Likewise.
67491
67492 2006-11-29  Bruno Haible  <bruno@clisp.org>
67493
67494         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67495         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67496         using +=.
67497         Reported by Simon Josefsson <simon@josefsson.org>.
67498
67499 2006-11-28  James Youngman <jay@gnu.org>
67500
67501         * README: Advise users that they might find the bug-gnulib@gnu.org
67502         and autotools-announce@gnu.org mailing lists useful.
67503
67504 2006-11-28  Bruno Haible  <bruno@clisp.org>
67505
67506         * m4/ptrdiff_max.m4: Remove file.
67507
67508 2006-11-21  Bruno Haible  <bruno@clisp.org>
67509
67510         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67511         _AC_COMPUTE_INT.
67512         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67513         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67514         _AC_COMPUTE_INT.
67515         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67516         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67517         _AC_COMPUTE_INT.
67518         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67519
67520 2006-11-28  Jim Meyering  <jim@meyering.net>
67521
67522         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67523         warning from "gcc -Wshadow" about shadowing the builtin.
67524
67525 2006-11-27  Bruno Haible  <bruno@clisp.org>
67526
67527         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67528         _AC_COMPUTE_INT.
67529         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67530
67531 2006-11-27  Bruno Haible  <bruno@clisp.org>
67532             Paul Eggert  <eggert@cs.ucla.edu>
67533
67534         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67535
67536 2006-11-26  Bruno Haible  <bruno@clisp.org>
67537
67538         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67539         noinst_LTLIBRARIES.
67540
67541 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67542             Bruno Haible  <bruno@clisp.org>
67543
67544         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67545         if compiling with "gcc -ansi".
67546
67547 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67548
67549         Fix some incompatibilities with gcc -ansi -pedantic.
67550         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67551         if compiling pedantically with GCC, unless it's C99 or later.
67552         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67553         it mishandles gcc -ansi -pedantic as well.
67554         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67555         if gcc -pedantic.
67556         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67557         initializers for struct if -pedantic, unless it's C99 or later.
67558
67559 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67560
67561         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67562         Don't close an fd more than once. Identical atimes indicate
67563         success, not failure.
67564
67565 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67566
67567         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67568
67569 2006-11-23  Jim Meyering  <jim@meyering.net>
67570
67571         * build-aux/announce-gen: New file.  From coreutils.
67572
67573 2006-11-22  Jim Meyering  <jim@meyering.net>
67574
67575         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67576         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67577         (fts_read): Use a temporary to narrow the overused st_size member
67578         before using it in a switch statement.  Reported by Matthew Woehlke.
67579
67580         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67581         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67582
67583 2006-11-20  Bruno Haible  <bruno@clisp.org>
67584
67585         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67586         changequote instead of pairs of brackets.
67587         Reported by Andreas Schwab <schwab@suse.de>.
67588
67589 2006-11-21  Jim Meyering  <jim@meyering.net>
67590
67591         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67592         so as to remain compatible with older compilers.
67593         Patch from Michael Deutschmann.
67594
67595 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67596
67597         * MODULES.html.sh (File system functions): Add openat.
67598
67599         * lib/openat.h (rpl_fstatat): New macro, if
67600         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67601         (fstatat): Define to rpl_fstatat under the same conditions,
67602         unless COMPILING_FSTATAT.
67603         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67604         seems to have the bug.
67605         * lib/fstatat.c: New file.
67606         * modules/openat (Files): Add it.
67607
67608 2006-11-20  Bruno Haible  <bruno@clisp.org>
67609
67610         * Makefile: New file.
67611
67612 2006-11-20  Jim Meyering  <jim@meyering.net>
67613
67614         The beginnings of syntax-related checks for gnulib.
67615         * lib/Makefile: New file.
67616         * lib/t-idcache: New script.  Ensure that the two halves of
67617         idcache.c stay in sync.
67618
67619         * lib/idcache.c: Adjust comments in user- and group- portions to
67620         be more accurate, and to be consistent with one another.
67621
67622 2006-11-20  Jim Meyering  <jim@meyering.net>
67623
67624         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67625         continue using the flexible array member (thus, this module performs
67626         half as many malloc calls), with the addition that...
67627         (getgroup, getuser): Consistently record a non-match via an empty
67628         "name" string, and map an empty string match to a NULL return value.
67629         * modules/idcache (Depends-on): Re-add flexmember.
67630
67631         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67632         (getuidbyname, getgroup, getgidbyname): Likewise.
67633
67634         Use cleaner syntax: NULL rather than 0.
67635         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67636
67637 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67638
67639         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67640         It mishandled the case where the group was missing.
67641         Problem reported by Greg Schafer.
67642         * modules/idcache: Likewise.
67643
67644 2006-11-18  Jim Meyering  <jim@meyering.net>
67645
67646         * check-module (%exempt_header): Add exception for some
67647         conditionally-included headers.
67648
67649         * modules/i-ring (Depends-on): Add verify.
67650         (License): Change to LGPL.
67651
67652 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67653
67654         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67655         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67656         and inttostr.h.  Use snprintf rather than uinttostr, so that
67657         LGPLed code doesn't depend on GPLed.
67658
67659 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67660
67661         * modules/inline (License): Change from GPL to LGPL.
67662
67663 2006-11-17  Jim Meyering  <jim@meyering.net>
67664
67665         * modules/d-type (License): Switch to LGPL.
67666
67667 2006-11-15  Bruno Haible  <bruno@clisp.org>
67668
67669         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67670
67671 2006-11-15  Eric Blake  <ebb9@byu.net>
67672
67673         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67674         the module dependency.
67675
67676 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67677             Bruno Haible  <bruno@clisp.org>
67678
67679         * gnulib-tool (func_create_testdir): Add license consistency check.
67680
67681 2006-11-15  Eric Blake  <ebb9@byu.net>
67682
67683         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67684         random "(cached)" in configure output.
67685
67686 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67687
67688         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67689         test for conforming inttypes.h is both announced and cached.
67690
67691         * MODULES.html.sh (seen_modules, seen_files): New variables.
67692         (func_module): Rewrite to use a few less gnulib-tool and sed
67693         invocations.  Avoid a couple of quadratic algorithms for ...
67694         (missed_modules, missed_files): ... these, with ...
67695         (func_append, func_tmpdir): ... these new functions, from
67696         gnulib-tool.  Analogously, install traps for cleanup.
67697
67698         * tests/test-gc.c (main): Remove unused variables.
67699         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67700
67701 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67702
67703         * modules/inttostr (License): Change to LGPL.
67704
67705 2006-11-14  Eric Blake  <ebb9@byu.net>
67706
67707         * modules/tempname (License): Change to LGPL.
67708
67709 2006-11-14  Eric Blake  <ebb9@byu.net>
67710
67711         * doc/functions.texi (Function Portability): *printf functions on
67712         Cygwin now understand all POSIX size specifiers.
67713
67714 2006-11-14  Bruno Haible  <bruno@clisp.org>
67715
67716         * modules/c-ctype (License): Change to LGPL.
67717
67718 2006-11-12  Bruno Haible  <bruno@clisp.org>
67719
67720         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67721         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67722         for GNOME libraries, for which the include files are installed in
67723         subdirectories of $prefix/include.
67724
67725 2006-11-12  Bruno Haible  <bruno@clisp.org>
67726
67727         * m4/lib-link.m4: Require at least autoconf-2.54.
67728         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67729         name to underscores for the --with option.
67730
67731 2006-11-13  Bruno Haible  <bruno@clisp.org>
67732
67733         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67734         the tests directory.
67735         Reported by Ralf Wildenhues.
67736
67737 2006-11-13  Bruno Haible  <bruno@clisp.org>
67738
67739         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67740         (func_emit_initmacro_end): Undo the override here.
67741         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67742         Works around the famous automake error in coreutils.
67743
67744 2006-11-13  Eric Blake  <ebb9@byu.net>
67745
67746         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67747         element, not its node.
67748
67749 2006-11-12  Bruno Haible  <bruno@clisp.org>
67750
67751         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67752         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67753
67754 2006-11-12  Bruno Haible  <bruno@clisp.org>
67755
67756         * gnulib-tool: New option --local-symlink.
67757         (func_usage): Document it.
67758         (lsymbolic): New variable.
67759         (func_import, func_create_testdir): If --symlink was not specified,
67760         test whether --local-symlink was specified and the file comes from
67761         the local_gnulib_dir.
67762
67763 2006-11-12  Bruno Haible  <bruno@clisp.org>
67764
67765         * gnulib-tool (func_ln): New function.
67766         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67767
67768 2006-11-12  Bruno Haible  <bruno@clisp.org>
67769
67770         Finish support for source files in subdirectories.
67771         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67772         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67773         AUTOMAKE_OPTIONS.
67774         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67775
67776 2006-11-12  Bruno Haible  <bruno@clisp.org>
67777
67778         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67779         EXTRA_lib_SOURCES augmentation.
67780         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67781
67782 2006-11-12  Jim Meyering  <jim@meyering.net>
67783
67784         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67785         file descriptors.  This also averts a failure on systems with
67786         native openat support when a traversed directory lacks "x" access.
67787         * lib/fts_.h: Include "i-ring.h"
67788         (struct FTS) [fts_fd_ring]: New member.
67789         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67790         (FCHDIR): Add parentheses.
67791         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67792         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67793         When descending, rather than simply closing the previous
67794         fts_cwd_fd value, push that file descriptor onto the ring.
67795         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67796         (fts_open): Initialize the new fd_ring member.
67797         (fts_close): Clear the ring.
67798         (fts_safe_changedir): When possible, use our new fd_ring to skip
67799         the diropen and fstat and dev/ino comparison that would normally
67800         accompany a virtual `chdir ("..")'.
67801
67802         * modules/fts (Depends-on): Add i-ring.
67803         * modules/i-ring: New module.
67804         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67805         * m4/i-ring.m4: New file.
67806
67807 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67808
67809         * gnulib-tool (func_create_testdir): Fix replacement of
67810         `build-aux' in configure.ac.  Run autotools in gltests
67811         subdirectory.
67812         (func_create_testdir, func_create_megatestdir, test): There is
67813         no need for '--force' in most autotool invocations in a new
67814         tree.  Actually fail the whole test if any of the tools, or the
67815         configure or make stages fail.
67816
67817         Sync from Automake.
67818         * build-aux/gnupload: Revert last change.  Add pointer to upload
67819         instructions of the GNU Maintenance Instructions.
67820         Suggestion by Karl Berry.
67821
67822 2006-11-10  Jim Meyering  <jim@meyering.net>
67823
67824         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67825
67826 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67827
67828         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67829         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67830         (bind_textdomain_codeset) [! ENABLE_NLS]:
67831         Evaluate all the arguments.  That way, callers get compatible behavior
67832         if the arguments have side effects.  Also, it avoids some GCC
67833         diagnostics in some cases; Joel E. Denny reported problems when Bison
67834         was configured with --enable-gcc-warnigs.
67835
67836 2006-11-10  Jim Meyering  <jim@meyering.net>
67837
67838         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67839         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67840         account.
67841
67842 2006-11-10  Jim Meyering  <jim@meyering.net>
67843
67844         * modules/inline: New file/module.
67845         * modules/xalloc (Files): Remove m4/inline.m4.
67846         (Depends-on): Add inline, instead.
67847         * modules/oset: Likewise.
67848         * modules/list: Likewise.
67849
67850 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67851
67852         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67853         Problem reported by Matthew Woehlke.
67854
67855 2006-11-09  Bruno Haible  <bruno@clisp.org>
67856
67857         * lib/tempname.c (gen_tempname): Remove variant that invokes
67858         __gen_tempname.
67859         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67860         __gen_tempname.
67861
67862 2006-11-08  Bruno Haible  <bruno@clisp.org>
67863
67864         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67865         to 'yes' instead of 'cross-compiling'.
67866
67867 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67868
67869         * lib/quotearg.h (quotearg_free): New decl.
67870         * lib/quotearg.c (quotearg_free): New function.
67871         (slot0, nslots, slotvec0, slotvec):
67872         Now file-scope so that quotearg_free can get at them.
67873
67874 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67875
67876         Sync from Automake.
67877         * build-aux/gnupload: Add missing 'gnu' to example URL.
67878         Report by Karl Berry.
67879
67880 2006-11-08  Bruno Haible  <bruno@clisp.org>
67881
67882         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67883         Suggested by Paul Eggert.
67884
67885 2006-11-08  Jim Meyering  <jim@meyering.net>
67886
67887         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67888         It's already included if !_LIBC.
67889         (fts_safe_changedir): Add a comment.
67890
67891 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67894         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67895         Matthew Woehlke.
67896
67897         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67898         definitions up, to avoid colliding with change below.
67899         (static_inline) [HAVE_INLINE]: New macro.
67900         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67901         Provide extern decls when !HAVE_INLINE.  Do not define unless
67902         static_inline is defined, either by us or by xmalloc.c.  Use
67903         static_inline rather than static inline.
67904         (XCALLOC): Optimize sizeof(T) = 1 case.
67905         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67906
67907 2006-11-07  Bruno Haible  <bruno@clisp.org>
67908
67909         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67910         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67911         AC_C_INLINE.
67912         * modules/xalloc (Files): Add m4/inline.m4.
67913
67914 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67915
67916         * README: Fix typo.
67917         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67918         (Miscellanous Notes): ...from this.
67919
67920 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67921
67922         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67923         Mention that offsetof should be used instead of sizeof.
67924         From Bruno Haible.
67925
67926 2006-11-07  Bruno Haible  <bruno@clisp.org>
67927
67928         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67929
67930 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67931
67932         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67933         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67934         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67935         (gl_tree_add_before, gl_tree_add_after):
67936         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67937         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67938         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67939         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67940         (gl_linked_add_after, gl_linked_add_at): Likewise.
67941         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67942         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67943         (gl_tree_add_before, gl_tree_add_after): Likewise.
67944         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67945         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67946         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67947
67948 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67949
67950         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67951
67952 2006-11-06  Bruno Haible  <bruno@clisp.org>
67953
67954         * m4/inline.m4: New file.
67955         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67956         * modules/list (Files): Add m4/inline.m4.
67957         * modules/oset (Files): Likewise.
67958
67959 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         * lib/idcache.c: Include <stddef.h>, for offsetof.
67962         (struct userid.name): Change from char * to a flexible array member.
67963         All uses changed.
67964         * modules/idcache (Depends-on): Add flexmember.
67965
67966         * MODULES.html.sh (Core language properties): New module flexmember.
67967         * modules/flexmember, m4/flexmember.m4: New files.
67968
67969         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67970         inline functions that are identical with the old xnmalloc_inline,
67971         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67972         that we can avoid some unnecessary integer multiplications and
67973         divisions in the common case where the element size is known at
67974         compile time.
67975         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67976         needed.
67977         (xnboundedmalloc): Remove.
67978         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67979         arguments, for consistency with rest of this header.
67980         (xcharalloc): Rewrite using XNMALLOC.
67981         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67982         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67983         versions have been moved to lib/xalloc.h and renamed to be the
67984         non-*_inline versions.
67985         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67986         and xnrealloc functions, since those functions are now inline and
67987         now call us.
67988         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67989         renaming described above.
67990         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67991         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67992         captures the dependency in AC_C_INLINE.
67993
67994         New module canonicalize-lgpl, proposed by Charles Wilson in
67995         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67996         with a few small changes afterwards.
67997         * MODULES.html.sh (File system functions): New module
67998         canonicalize-lgpl.
67999         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68000         and canonicalize_file_name.
68001         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68002         * modules/canonicalize-lgpl: New files.
68003
68004 2006-11-05  Bruno Haible  <bruno@clisp.org>
68005
68006         * gnulib-tool (func_import, func_create_testdir): Create directories
68007         also for files in subdirectories of lib/.
68008
68009 2006-11-05  Bruno Haible  <bruno@clisp.org>
68010
68011         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68012         ANSI C compliant.
68013
68014 2006-11-03  Bruno Haible  <bruno@clisp.org>
68015
68016         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68017         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68018         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68019         (xnboundedmalloc): New inline function.
68020         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68021         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68022         xmalloc.
68023         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68024         xmalloc.
68025         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68026         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68027         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68028         xmalloc.
68029         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68030         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68031         xmalloc.
68032         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68033         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68034         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68035         xmalloc.
68036         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68037         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68038         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68039         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68040         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68041         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68042         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68043
68044 2006-11-03  Bruno Haible  <bruno@clisp.org>
68045
68046         * lib/c-ctype.h [C++]: Define functions without name mangling.
68047         * lib/fwriteerror.h [C++]: Likewise.
68048         * lib/gcd.h [C++]: Likewise.
68049         * lib/linebreak.h [C++]: Likewise.
68050
68051 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68052
68053         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68054         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68055         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68056         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68057         Check for functions and headers just once.
68058         Check for declaration of canonicalize_file_name.
68059         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68060
68061 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68062
68063         * gnulib-tool (func_import): Fix typo in actioncmd.
68064
68065 2006-11-02  Bruno Haible  <bruno@clisp.org>
68066
68067         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68068         newline sequence in the Makefile.am snippet as a space, like "make"
68069         does.
68070         Reported by Roger Persson <perrog@gmail.com>.
68071
68072 2006-11-01  Bruno Haible  <bruno@clisp.org>
68073
68074         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68075         already declared in <string.h>.
68076         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68077
68078 2006-11-01  Bruno Haible  <bruno@clisp.org>
68079
68080         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68081         * lib/strcase.h: Include <string.h>.
68082         (strcasecmp): Define to rpl_strcasecmp here.
68083
68084 2006-11-01  Bruno Haible  <bruno@clisp.org>
68085
68086         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68087
68088 2006-11-01  Eric Blake  <ebb9@byu.net>
68089
68090         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68091
68092         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68093
68094 2006-10-29  Bruno Haible  <bruno@clisp.org>
68095
68096         Make it compile in C++ mode.
68097         * lib/full-write.c (full_rw): Add a cast.
68098
68099 2006-11-01  Bruno Haible  <bruno@clisp.org>
68100
68101         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68102         be POSIX compliant.
68103         Reported by Roger Persson <perrog@gmail.com>.
68104
68105 2006-11-01  Eric Blake  <ebb9@byu.net>
68106
68107         * lib/getopt_.h: Fix comments.
68108
68109 2006-10-31  Eric Blake  <ebb9@byu.net>
68110
68111         * modules/tmpdir (Depends-on): Add sys_stat.
68112         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68113         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68114         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68115         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68116         tempname.
68117
68118 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68119
68120         Avoid some C++ diagnostics reported by Bruno Haible.
68121         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68122         xmalloc.
68123         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68124         (struct slotvec): Move to top level.
68125         (quotearg_n_options): Rewrite to avoid xmalloc.
68126         * lib/xalloc.h (xcharalloc): New function.
68127         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68128         [defined __cplusplus]: Add function template that provides result
68129         type propagation.  This part of the change is from Bruno Haible.
68130
68131 2006-10-29  Bruno Haible  <bruno@clisp.org>
68132
68133         Make it compile in C++ mode.
68134         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68135         * lib/strnlen1.c (strnlen1): Cast memchr result.
68136         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68137         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68138         (create_temp_dir): Rename local variable 'template'.
68139         (compile_csharp_using_sscli): Add cast.
68140         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68141         * lib/findprog.c (find_in_path): Likewise.
68142         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68143         * lib/wait-process.c (register_slave_subprocess): Likewise.
68144
68145 2006-10-22  Bruno Haible  <bruno@clisp.org>
68146
68147         * modules/tsearch: New file.
68148         * lib/tsearch.h: New file.
68149         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68150         * m4/tsearch.m4: New file.
68151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68152
68153 2006-10-29  Eric Blake  <ebb9@byu.net>
68154
68155         * lib/arcfour.c: Assume config.h.
68156         * lib/arctwo.c: Likewise.
68157         * lib/base64.c: Likewise.
68158         * lib/check-version.c: Likewise.
68159         * lib/crc.c: Likewise.
68160         * lib/des.c: Likewise.
68161         * lib/gc-gnulib.c: Likewise.
68162         * lib/gc-libgcrypt.c: Likewise.
68163         * lib/gc-pbkdf2-sha1.c: Likewise.
68164         * lib/getaddrinfo.c: Likewise.
68165         * lib/getdelim.c: Likewise.
68166         * lib/getline.c: Likewise.
68167         * lib/hmac-md5.c: Likewise.
68168         * lib/hmac-sha1.c: Likewise.
68169         * lib/iconvme.c: Likewise.
68170         * lib/md2.c: Likewise.
68171         * lib/md4.c: Likewise.
68172         * lib/memxor.c: Likewise.
68173         * lib/read-file.c: Likewise.
68174         * lib/readline.c: Likewise.
68175         * lib/rijndael-alg-fst.c: Likewise.
68176         * lib/rijndael-api-fst.c: Likewise.
68177         * lib/xgetdomainname.c: Likewise.
68178
68179 2006-10-28  Eric Blake  <ebb9@byu.net>
68180
68181         * lib/xstrndup.c: Assume config.h.
68182
68183 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68184
68185         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68186         stat-macros.h is now for our own macros, whereas stat_h is for
68187         macros in the <sys/stat.h> name space.
68188         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68189         (STAT_MACROS_H): Remove.
68190         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68191         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68192         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68193         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68194         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68195         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68196         Move these macros to ...
68197         * lib/stat_.h: here.  Don't include stat-macros.h.
68198         * lib/canonicalize.c: Don't include stat-macros.h.
68199         * lib/chown.c: Likewise.
68200         * lib/euidaccess.c: Likewise.
68201         * lib/file-type.c: Likewise.
68202         * lib/filemode.c: Likewise.
68203         * lib/glob.c: Likewise.
68204         * lib/isapipe.c: Likewise.
68205         * lib/lchown.c: Likewise.
68206         * lib/lstat.c: Likewise.
68207         * lib/mkdir-p.c: Likewise.
68208         * lib/rmdir.c: Likewise.
68209         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68210         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68211         unless mkdir isn't declared, to speed up 'configure'.
68212         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68213         would define all the S_* symbols.
68214         * modules/canonicalize (Depends-on):
68215         Depend on sys_stat, not stat-macros.
68216         * modules/chown: Likewise.
68217         * modules/euidaccess: Likewise.
68218         * modules/filemode: Likewise.
68219         * modules/file-type: Likewise.
68220         * modules/glob: Likewise.
68221         * modules/isapipe: Likewise.
68222         * modules/lchown: Likewise.
68223         * modules/lstat: Likewise.
68224         * modules/mkancesdirs: Likewise.
68225         * modules/rmdir: Likewise.
68226         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68227         * modules/modechange: Likewise.
68228         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68229         (configure.ac): Remove gl_STAT_MACROS.
68230         * modules/sys_stat (Depends-on): Remove stat-macros.
68231
68232 2006-10-27  Bruno Haible  <bruno@clisp.org>
68233
68234         * m4/signed.m4: Remove file.
68235         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
68236         invocation.
68237         * modules/vasnprintf (Files): Remove m4/signed.m4.
68238
68239 2006-10-27  Bruno Haible  <bruno@clisp.org>
68240
68241         Update to GNU gettext 0.16.
68242         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
68243         m4/inttypes-h.m4, m4/signed.m4.
68244         * m4/gettext.m4: Update to GNU gettext 0.16.
68245         * m4/intl.m4: New file, from GNU gettext.
68246         * m4/intldir.m4: New file, from GNU gettext.
68247         * config/srclist.txt: Update
68248
68249 2006-10-27  Eric Blake  <ebb9@byu.net>
68250
68251         * MODULES.html.sh: Document tempname.
68252         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
68253         dependencies.
68254         (Files): Move lib/tempname.c...
68255         * modules/tempname: ...to this new module.
68256         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
68257         (gl_PREREQ_TEMPNAME): Move...
68258         * m4/tempname.m4: ...to this new file.
68259         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
68260         * modules/sys_stat (Depends-on): Add stat-macros.
68261         * lib/stat_.h (includes): Pick up stat macros.
68262         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
68263         if stat macros are broken.
68264         * lib/tempname.c (includes): No need to include "stat-macros.h".
68265         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
68266         (direxists, __path_search) [!_LIBC]: Don't compile these in
68267         gnulib; the tmpdir module covers that.
68268         * lib/tempname.h: New file.
68269
68270 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
68271
68272         * COPYING: Explain how gnulib-tool converts licence headers.
68273         Almost all wording by Eric Blake.
68274
68275 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
68276
68277         * lib/mbchar.h (is_basic_table): Make read-only.
68278         * lib/mbchar.c (is_basic_table): Likewise.
68279         Reported by John Darrington.
68280
68281 2006-10-25  Bruno Haible  <bruno@clisp.org>
68282
68283         * lib/progname.h (set_program_name): Undefine before defining.
68284
68285 2006-10-25  Bruno Haible  <bruno@clisp.org>
68286
68287         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
68288         false for non-gcc C++ compilers.
68289         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68290
68291 2006-10-24  Bruno Haible  <bruno@clisp.org>
68292
68293         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
68294         iconv implementations like Irix iconv.
68295
68296 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * modules/vararrays: New file.
68299         * m4/vararrays.m4: New file, taken from diffutils.
68300         * MODULES.html.sh: New module vararrays.
68301
68302 2006-10-24  Karl Berry  <karl@gnu.org>
68303
68304         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
68305         Don't call GNU Unix.
68306
68307 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68308
68309         * users.txt: Add Libtool.
68310
68311         Sync from Libtool:
68312
68313         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68314
68315         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
68316         to gnulib's policy of including config.h unconditionally.
68317
68318 2006-10-24  Bruno Haible  <bruno@clisp.org>
68319
68320         * modules/wcwidth (Files): Add m4/wint_t.m4.
68321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
68322         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
68323
68324 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68325
68326         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
68327         to pacify GCC with some -W flags enabled.  Problem reported by
68328         Bruno Haible.
68329
68330 2006-10-24  Jim Meyering  <jim@meyering.net>
68331
68332         * MODULES.html.sh: Remove uinttostr.  It's not a module.
68333         Reported by Karl Berry.
68334
68335 2006-10-23  Bruno Haible  <bruno@clisp.org>
68336
68337         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
68338
68339 2006-10-24  Bruno Haible  <bruno@clisp.org>
68340
68341         * lib/gl_list.h: Use C comment style, not C++ comment style.
68342
68343 2006-10-23  Eric Blake  <ebb9@byu.net>
68344
68345         * lib/getaddrinfo.c (includes): Add missing include.
68346
68347 2006-10-23  Bruno Haible  <bruno@clisp.org>
68348             Paul Eggert  <eggert@cs.ucla.edu>
68349
68350         Ability to rename obstack_free.
68351         * lib/obstack.h (__obstack_free): New macro. Declare instead of
68352         obstack_free.
68353         (obstack_free): Invoke the __obstack_free macro.
68354         * lib/obstack.c (obstack_free): Use __obstack_free macro.
68355
68356 2006-10-23  Bruno Haible  <bruno@clisp.org>
68357             Paul Eggert  <eggert@cs.ucla.edu>
68358
68359         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
68360         __argc, __argv from the declaration. (They are defined as macros on
68361         mingw.)
68362
68363 2006-10-22  Bruno Haible  <bruno@clisp.org>
68364
68365         * doc/gnulib-intro.texi: New file.
68366         * doc/gnulib.texi: Include it.
68367
68368 2006-10-21  Bruno Haible  <bruno@clisp.org>
68369
68370         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68371         "Introduction", "Miscellanous Notes", "Particular Modules".
68372
68373 2006-10-21  Bruno Haible  <bruno@clisp.org>
68374
68375         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68376         Change mostlyclean-local rule to avoid sh syntax error from bash
68377         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68378
68379 2006-10-23  Jim Meyering  <jim@meyering.net>
68380
68381         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68382         in place of snprintf.
68383
68384         * modules/inttostr (Files): Add lib/uinttostr.c.
68385         * lib/uinttostr.c (inttostr): New file/function.
68386         * lib/inttostr.h (uinttostr): Declare.
68387         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
68388         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68389         Add uinttostr.
68390         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68391
68392 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68393
68394         * lib/canonicalize.c (ELOOP): Define if not already defined.
68395         Problem reported by Bruno Haible in
68396         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68397
68398 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68401         Problem reported by Perry Smith and Ville Laurikari.
68402
68403         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68404         uses.
68405
68406 2006-10-19  Bruno Haible  <bruno@clisp.org>
68407
68408         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68409         for mingw.
68410
68411 2006-10-19  Bruno Haible  <bruno@clisp.org>
68412
68413         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68414         Needed for mingw.
68415
68416 2006-10-19  Bruno Haible  <bruno@clisp.org>
68417
68418         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68419
68420 2006-10-19  Bruno Haible  <bruno@clisp.org>
68421
68422         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68423         it.
68424
68425 2006-10-19  Bruno Haible  <bruno@clisp.org>
68426
68427         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68428         invocation.
68429
68430 2006-10-19  Bruno Haible  <bruno@clisp.org>
68431
68432         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68433         mountlist by default.
68434
68435 2006-10-16  Bruno Haible  <bruno@clisp.org>
68436
68437         * lib/c-strstr.c: Include c-strstr.h.
68438
68439 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68440
68441         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68442         in a slash.
68443
68444 2006-10-18  Bruno Haible  <bruno@clisp.org>
68445
68446         * lib/lock.h [C++]: Wrap definitions in extern "C".
68447
68448 2006-10-18  Bruno Haible  <bruno@clisp.org>
68449
68450         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68451         gl_LIBOBJS list.
68452
68453 2006-10-18  Bruno Haible  <bruno@clisp.org>
68454
68455         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68456
68457 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * lib/xstrtol.h: Include gettext.h.
68460         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68461         Problem reported by Eric Blake.
68462         * modules/xstrtol (Depends-on): Add gettext-h.
68463
68464 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68465
68466         * lib/strftime.c (advance): New macro.
68467         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68468         incomplete type, so you can't add 0 to it.  Problem and patch
68469         reported by Eelco Dolstra for dietlibc.
68470
68471 2006-10-18  Jim Meyering  <jim@meyering.net>
68472
68473         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68474         type for a local, and rename it: s/up/user_proc/.
68475
68476 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68477
68478         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68479         READ_UTMP_USER_PROCESS.
68480         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68481
68482 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68483
68484         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68485         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68486
68487 2006-10-17  Eric Blake  <ebb9@byu.net>
68488
68489         * lib/sigprocmask.c (sigprocmask): Fix typo.
68490
68491         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68492
68493         * modules/clean-temp (Makefile.am): Don't add to make output...
68494         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68495         config.h.
68496
68497 2006-10-17  Bruno Haible  <bruno@clisp.org>
68498
68499         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68500         differently if DEFAULT_TEXT_DOMAIN is set.
68501
68502 2006-10-16  Bruno Haible  <bruno@clisp.org>
68503
68504         * lib/clean-temp.c: Include fwriteerror.h.
68505
68506 2006-10-16  Bruno Haible  <bruno@clisp.org>
68507
68508         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68509
68510 2006-10-16  Bruno Haible  <bruno@clisp.org>
68511
68512         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68513         * lib/sigprocmask.h: Include <sys/types.h>.
68514         (sigset_t): Use the system's definition if present.
68515
68516 2006-10-17  Eric Blake  <ebb9@byu.net>
68517
68518         * lib/xvasprintf.c (includes): Assume config.h.
68519         * lib/xasprintf.c (includes): Likewise.
68520
68521 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68524         at least as wide as intmax_t.
68525
68526 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68527
68528         (Imported from Automake.)
68529         * build-aux/gnupload: Update to version 1.1 of directive file.
68530
68531 2006-10-16  Eric Blake  <ebb9@byu.net>
68532
68533         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68534         match Automake 1.10a.
68535
68536 2006-10-14  Bruno Haible  <bruno@clisp.org>
68537
68538         * modules/sigprocmask: New file.
68539         * lib/sigprocmask.h: New file.
68540         * lib/sigprocmask.c: New file.
68541         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68542         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68543         request sigprocmask.o.
68544         (gl_PREREQ_SIGPROCMASK): New macro.
68545         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68546         (Depends-on): Add sigprocmask.
68547         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68548         gt_SIGNALBLOCKING. Test for 'raise' only once.
68549         * lib/fatal-signal.c: Include sigprocmask.h.
68550         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68551         unblock_fatal_signals): Define always.
68552         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68553         sigprocmask.
68554
68555 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         Sync from Automake.
68558         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68559         which incorrectly sets the mode of an existing destination
68560         directory.  In some cases the unpatched install-sh could do the
68561         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68562         system.  We hope this is rare in practice, but it's clearly worth
68563         fixing.  Problem reported by Alex Unleashed in
68564         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68565         Also, don't bother to check for -m bugs unless we're using -m;
68566         suggested by Stepan Kasal.
68567
68568 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68569
68570         Sync from Automake.
68571         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68572         `-c' flag, so they appear at the same position as in %FASTDEP%
68573         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68574         which ignores unknown options only after the first non-option.
68575         Bug report against M4 by Nelson H. F. Beebe.
68576
68577 2006-10-13  Jim Meyering  <jim@meyering.net>
68578
68579         Fix a bug in yesterday's change.
68580         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68581         p->fts_statp->st_dev would be used uninitialized.
68582         Ensures that we always call fts_stat on the very first entry.
68583         Miklos Szeredi reported that find -xdev stopped working.
68584
68585 2006-10-12  Bruno Haible  <bruno@clisp.org>
68586
68587         * gnulib-tool (func_get_automake_snippet): Append an automatically
68588         computed EXTRA_DIST augmentation.
68589         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68590         * modules/alloca-opt (Makefile.am): Likewise.
68591         * modules/allocsa (Makefile.am): Likewise.
68592         * modules/arcfour (Makefile.am): Likewise.
68593         * modules/arctwo (Makefile.am): Likewise.
68594         * modules/argmatch (Makefile.am): Likewise.
68595         * modules/argz (Makefile.am): Likewise.
68596         * modules/atexit (Makefile.am): Likewise.
68597         * modules/backupfile (Makefile.am): Likewise.
68598         * modules/byteswap (Makefile.am): Likewise.
68599         * modules/c-strtod (Makefile.am): Likewise.
68600         * modules/c-strtold (Makefile.am): Likewise.
68601         * modules/calloc (Makefile.am): Likewise.
68602         * modules/canon-host (Makefile.am): Likewise.
68603         * modules/canonicalize (Makefile.am): Likewise.
68604         * modules/chdir-long (Makefile.am): Likewise.
68605         * modules/chdir-safer (Makefile.am): Likewise.
68606         * modules/check-version (Makefile.am): Likewise.
68607         * modules/chown (Makefile.am): Likewise.
68608         * modules/cloexec (Makefile.am): Likewise.
68609         * modules/close-stream (Makefile.am): Likewise.
68610         * modules/closeout (Makefile.am): Likewise.
68611         * modules/crc (Makefile.am): Likewise.
68612         * modules/csharpexec (Makefile.am): Likewise.
68613         * modules/cycle-check (Makefile.am): Likewise.
68614         * modules/des (Makefile.am): Likewise.
68615         * modules/dev-ino (Makefile.am): Likewise.
68616         * modules/dirfd (Makefile.am): Likewise.
68617         * modules/dirname (Makefile.am): Likewise.
68618         * modules/dup2 (Makefile.am): Likewise.
68619         * modules/eealloc (Makefile.am): Likewise.
68620         * modules/error (Makefile.am): Likewise.
68621         * modules/euidaccess (Makefile.am): Likewise.
68622         * modules/exclude (Makefile.am): Likewise.
68623         * modules/exitfail (Makefile.am): Likewise.
68624         * modules/fcntl-safer (Makefile.am): Likewise.
68625         * modules/fcntl (Makefile.am): Likewise.
68626         * modules/file-type (Makefile.am): Likewise.
68627         * modules/fileblocks (Makefile.am): Likewise.
68628         * modules/filemode (Makefile.am): Likewise.
68629         * modules/filenamecat (Makefile.am): Likewise.
68630         * modules/fnmatch (Makefile.am): Likewise.
68631         * modules/fopen-safer (Makefile.am): Likewise.
68632         * modules/fpending (Makefile.am): Likewise.
68633         * modules/fprintftime (Makefile.am): Likewise.
68634         * modules/free (Makefile.am): Likewise.
68635         * modules/fsusage (Makefile.am): Likewise.
68636         * modules/ftruncate (Makefile.am): Likewise.
68637         * modules/fts (Makefile.am): Likewise.
68638         * modules/gc-arcfour (Makefile.am): Likewise.
68639         * modules/gc-des (Makefile.am): Likewise.
68640         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68641         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68642         * modules/gc-md4 (Makefile.am): Likewise.
68643         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68644         * modules/gc-sha1 (Makefile.am): Likewise.
68645         * modules/gc (Makefile.am): Likewise.
68646         * modules/getaddrinfo (Makefile.am): Likewise.
68647         * modules/getcwd (Makefile.am): Likewise.
68648         * modules/getdelim (Makefile.am): Likewise.
68649         * modules/getdomainname (Makefile.am): Likewise.
68650         * modules/getgroups (Makefile.am): Likewise.
68651         * modules/gethostname (Makefile.am): Likewise.
68652         * modules/gethrxtime (Makefile.am): Likewise.
68653         * modules/getline (Makefile.am): Likewise.
68654         * modules/getloadavg (Makefile.am): Likewise.
68655         * modules/getlogin_r (Makefile.am): Likewise.
68656         * modules/getndelim2 (Makefile.am): Likewise.
68657         * modules/getopt (Makefile.am): Likewise.
68658         * modules/getpagesize (Makefile.am): Likewise.
68659         * modules/getpass-gnu (Makefile.am): Likewise.
68660         * modules/getpass (Makefile.am): Likewise.
68661         * modules/getsubopt (Makefile.am): Likewise.
68662         * modules/gettime (Makefile.am): Likewise.
68663         * modules/gettimeofday (Makefile.am): Likewise.
68664         * modules/getugroups (Makefile.am): Likewise.
68665         * modules/getusershell (Makefile.am): Likewise.
68666         * modules/glob (Makefile.am): Likewise.
68667         * modules/group-member (Makefile.am): Likewise.
68668         * modules/hard-locale (Makefile.am): Likewise.
68669         * modules/hash (Makefile.am): Likewise.
68670         * modules/hmac-md5 (Makefile.am): Likewise.
68671         * modules/hmac-sha1 (Makefile.am): Likewise.
68672         * modules/human (Makefile.am): Likewise.
68673         * modules/idcache (Makefile.am): Likewise.
68674         * modules/imaxabs (Makefile.am): Likewise.
68675         * modules/imaxdiv (Makefile.am): Likewise.
68676         * modules/inet_ntop (Makefile.am): Likewise.
68677         * modules/inet_pton (Makefile.am): Likewise.
68678         * modules/intprops (Makefile.am): Likewise.
68679         * modules/inttostr (Makefile.am): Likewise.
68680         * modules/inttypes (Makefile.am): Likewise.
68681         * modules/isapipe (Makefile.am): Likewise.
68682         * modules/javaversion (Makefile.am): Likewise.
68683         * modules/lchmod (Makefile.am): Likewise.
68684         * modules/lchown (Makefile.am): Likewise.
68685         * modules/localcharset (Makefile.am): Likewise.
68686         * modules/long-options (Makefile.am): Likewise.
68687         * modules/lstat (Makefile.am): Likewise.
68688         * modules/malloc (Makefile.am): Likewise.
68689         * modules/mathl (Makefile.am): Likewise.
68690         * modules/mbchar (Makefile.am): Likewise.
68691         * modules/md2 (Makefile.am): Likewise.
68692         * modules/md4 (Makefile.am): Likewise.
68693         * modules/md5 (Makefile.am): Likewise.
68694         * modules/memcasecmp (Makefile.am): Likewise.
68695         * modules/memchr (Makefile.am): Likewise.
68696         * modules/memcmp (Makefile.am): Likewise.
68697         * modules/memcoll (Makefile.am): Likewise.
68698         * modules/memcpy (Makefile.am): Likewise.
68699         * modules/memmem (Makefile.am): Likewise.
68700         * modules/memmove (Makefile.am): Likewise.
68701         * modules/mempcpy (Makefile.am): Likewise.
68702         * modules/memrchr (Makefile.am): Likewise.
68703         * modules/memset (Makefile.am): Likewise.
68704         * modules/memxor (Makefile.am): Likewise.
68705         * modules/mkancesdirs (Makefile.am): Likewise.
68706         * modules/mkdir-p (Makefile.am): Likewise.
68707         * modules/mkdir (Makefile.am): Likewise.
68708         * modules/mkdtemp (Makefile.am): Likewise.
68709         * modules/mkstemp (Makefile.am): Likewise.
68710         * modules/mktime (Makefile.am): Likewise.
68711         * modules/modechange (Makefile.am): Likewise.
68712         * modules/mountlist (Makefile.am): Likewise.
68713         * modules/nanosleep (Makefile.am): Likewise.
68714         * modules/obstack (Makefile.am): Likewise.
68715         * modules/openat (Makefile.am): Likewise.
68716         * modules/pagealign_alloc (Makefile.am): Likewise.
68717         * modules/pathmax (Makefile.am): Likewise.
68718         * modules/physmem (Makefile.am): Likewise.
68719         * modules/poll (Makefile.am): Likewise.
68720         * modules/posixtm (Makefile.am): Likewise.
68721         * modules/posixver (Makefile.am): Likewise.
68722         * modules/putenv (Makefile.am): Likewise.
68723         * modules/quote (Makefile.am): Likewise.
68724         * modules/quotearg (Makefile.am): Likewise.
68725         * modules/raise (Makefile.am): Likewise.
68726         * modules/read-file (Makefile.am): Likewise.
68727         * modules/readline (Makefile.am): Likewise.
68728         * modules/readlink (Makefile.am): Likewise.
68729         * modules/readtokens (Makefile.am): Likewise.
68730         * modules/readutmp (Makefile.am): Likewise.
68731         * modules/realloc (Makefile.am): Likewise.
68732         * modules/regex (Makefile.am): Likewise.
68733         * modules/rename-dest-slash (Makefile.am): Likewise.
68734         * modules/rename (Makefile.am): Likewise.
68735         * modules/rijndael (Makefile.am): Likewise.
68736         * modules/rmdir (Makefile.am): Likewise.
68737         * modules/rpmatch (Makefile.am): Likewise.
68738         * modules/safe-read (Makefile.am): Likewise.
68739         * modules/safe-write (Makefile.am): Likewise.
68740         * modules/same-inode (Makefile.am): Likewise.
68741         * modules/same (Makefile.am): Likewise.
68742         * modules/save-cwd (Makefile.am): Likewise.
68743         * modules/savedir (Makefile.am): Likewise.
68744         * modules/setenv (Makefile.am): Likewise.
68745         * modules/settime (Makefile.am): Likewise.
68746         * modules/sha1 (Makefile.am): Likewise.
68747         * modules/sig2str (Makefile.am): Likewise.
68748         * modules/snprintf (Makefile.am): Likewise.
68749         * modules/stat-macros (Makefile.am): Likewise.
68750         * modules/stat-time (Makefile.am): Likewise.
68751         * modules/stdbool (Makefile.am): Likewise.
68752         * modules/stdint (Makefile.am): Likewise.
68753         * modules/stdlib-safer (Makefile.am): Likewise.
68754         * modules/stpcpy (Makefile.am): Likewise.
68755         * modules/stpncpy (Makefile.am): Likewise.
68756         * modules/strcase (Makefile.am): Likewise.
68757         * modules/strcasestr (Makefile.am): Likewise.
68758         * modules/strchrnul (Makefile.am): Likewise.
68759         * modules/strcspn (Makefile.am): Likewise.
68760         * modules/strdup (Makefile.am): Likewise.
68761         * modules/strerror (Makefile.am): Likewise.
68762         * modules/strftime (Makefile.am): Likewise.
68763         * modules/strndup (Makefile.am): Likewise.
68764         * modules/strnlen (Makefile.am): Likewise.
68765         * modules/strpbrk (Makefile.am): Likewise.
68766         * modules/strsep (Makefile.am): Likewise.
68767         * modules/strstr (Makefile.am): Likewise.
68768         * modules/strtod (Makefile.am): Likewise.
68769         * modules/strtoimax (Makefile.am): Likewise.
68770         * modules/strtok_r (Makefile.am): Likewise.
68771         * modules/strtol (Makefile.am): Likewise.
68772         * modules/strtoll (Makefile.am): Likewise.
68773         * modules/strtoul (Makefile.am): Likewise.
68774         * modules/strtoull (Makefile.am): Likewise.
68775         * modules/strtoumax (Makefile.am): Likewise.
68776         * modules/strverscmp (Makefile.am): Likewise.
68777         * modules/sys_socket (Makefile.am): Likewise.
68778         * modules/sys_stat (Makefile.am): Likewise.
68779         * modules/sysexits (Makefile.am): Likewise.
68780         * modules/time_r (Makefile.am): Likewise.
68781         * modules/timegm (Makefile.am): Likewise.
68782         * modules/timespec (Makefile.am): Likewise.
68783         * modules/tmpfile-safer (Makefile.am): Likewise.
68784         * modules/trim (Makefile.am): Likewise.
68785         * modules/unistd-safer (Makefile.am): Likewise.
68786         * modules/unlinkdir (Makefile.am): Likewise.
68787         * modules/unlocked-io (Makefile.am): Likewise.
68788         * modules/userspec (Makefile.am): Likewise.
68789         * modules/utime (Makefile.am): Likewise.
68790         * modules/utimecmp (Makefile.am): Likewise.
68791         * modules/utimens (Makefile.am): Likewise.
68792         * modules/vasnprintf (Makefile.am): Likewise.
68793         * modules/vasprintf (Makefile.am): Likewise.
68794         * modules/vsnprintf (Makefile.am): Likewise.
68795         * modules/xalloc (Makefile.am): Likewise.
68796         * modules/xgetcwd (Makefile.am): Likewise.
68797         * modules/xnanosleep (Makefile.am): Likewise.
68798         * modules/xreadlink (Makefile.am): Likewise.
68799         * modules/xstrtod (Makefile.am): Likewise.
68800         * modules/xstrtol (Makefile.am): Likewise.
68801         * modules/xstrtold (Makefile.am): Likewise.
68802         * modules/yesno (Makefile.am): Likewise.
68803         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68804
68805 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         * modules/error (Makefile.am): Distribute files through
68808         EXTRA_DIST, not lib_SOURCES.
68809
68810 2006-10-12  Eric Blake  <ebb9@byu.net>
68811
68812         * modules/error (Makefile.am): Distribute files in /lib.
68813         * modules/obstack (Makefile.am): Likewise.
68814
68815 2006-10-12  Bruno Haible  <bruno@clisp.org>
68816
68817         * modules/acl (Makefile.am): Distribute all files in lib/ through
68818         EXTRA_DIST.
68819         * modules/arcfour (Makefile.am): Likewise.
68820         * modules/arctwo (Makefile.am): Likewise.
68821         * modules/argmatch (Makefile.am): Likewise.
68822         * modules/argz (Makefile.am): Likewise.
68823         * modules/atexit (Makefile.am): Likewise.
68824         * modules/backupfile (Makefile.am): Likewise.
68825         * modules/c-strtod (Makefile.am): Likewise.
68826         * modules/c-strtold (Makefile.am): Likewise.
68827         * modules/calloc (Makefile.am): Likewise.
68828         * modules/canon-host (Makefile.am): Likewise.
68829         * modules/canonicalize (Makefile.am): Likewise.
68830         * modules/chdir-long (Makefile.am): Likewise.
68831         * modules/chdir-safer (Makefile.am): Likewise.
68832         * modules/check-version (Makefile.am): Likewise.
68833         * modules/chown (Makefile.am): Likewise.
68834         * modules/cloexec (Makefile.am): Likewise.
68835         * modules/close-stream (Makefile.am): Likewise.
68836         * modules/closeout (Makefile.am): Likewise.
68837         * modules/crc (Makefile.am): Likewise.
68838         * modules/cycle-check (Makefile.am): Likewise.
68839         * modules/des (Makefile.am): Likewise.
68840         * modules/dirfd (Makefile.am): Likewise.
68841         * modules/dirname (Makefile.am): Likewise.
68842         * modules/dup2 (Makefile.am): Likewise.
68843         * modules/euidaccess (Makefile.am): Likewise.
68844         * modules/exclude (Makefile.am): Likewise.
68845         * modules/exitfail (Makefile.am): Likewise.
68846         * modules/fcntl-safer (Makefile.am): Likewise.
68847         * modules/file-type (Makefile.am): Likewise.
68848         * modules/fileblocks (Makefile.am): Likewise.
68849         * modules/filemode (Makefile.am): Likewise.
68850         * modules/filenamecat (Makefile.am): Likewise.
68851         * modules/fnmatch (Makefile.am): Likewise.
68852         * modules/fopen-safer (Makefile.am): Likewise.
68853         * modules/fpending (Makefile.am): Likewise.
68854         * modules/fprintftime (Makefile.am): Likewise.
68855         * modules/free (Makefile.am): Likewise.
68856         * modules/fsusage (Makefile.am): Likewise.
68857         * modules/ftruncate (Makefile.am): Likewise.
68858         * modules/fts (Makefile.am): Likewise.
68859         * modules/gc (Makefile.am): Likewise.
68860         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68861         * modules/getaddrinfo (Makefile.am): Likewise.
68862         * modules/getcwd (Makefile.am): Likewise.
68863         * modules/getdelim (Makefile.am): Likewise.
68864         * modules/getdomainname (Makefile.am): Likewise.
68865         * modules/getgroups (Makefile.am): Likewise.
68866         * modules/gethostname (Makefile.am): Likewise.
68867         * modules/gethrxtime (Makefile.am): Likewise.
68868         * modules/getline (Makefile.am): Likewise.
68869         * modules/getloadavg (Makefile.am): Likewise.
68870         * modules/getlogin_r (Makefile.am): Likewise.
68871         * modules/getopt (Makefile.am): Likewise.
68872         * modules/getpass (Makefile.am): Likewise.
68873         * modules/getpass-gnu (Makefile.am): Likewise.
68874         * modules/getsubopt (Makefile.am): Likewise.
68875         * modules/gettime (Makefile.am): Likewise.
68876         * modules/gettimeofday (Makefile.am): Likewise.
68877         * modules/getugroups (Makefile.am): Likewise.
68878         * modules/getusershell (Makefile.am): Likewise.
68879         * modules/glob (Makefile.am): Likewise.
68880         * modules/group-member (Makefile.am): Likewise.
68881         * modules/hard-locale (Makefile.am): Likewise.
68882         * modules/hash (Makefile.am): Likewise.
68883         * modules/hmac-md5 (Makefile.am): Likewise.
68884         * modules/hmac-sha1 (Makefile.am): Likewise.
68885         * modules/human (Makefile.am): Likewise.
68886         * modules/idcache (Makefile.am): Likewise.
68887         * modules/imaxabs (Makefile.am): Likewise.
68888         * modules/imaxdiv (Makefile.am): Likewise.
68889         * modules/inet_ntop (Makefile.am): Likewise.
68890         * modules/inet_pton (Makefile.am): Likewise.
68891         * modules/inttostr (Makefile.am): Likewise.
68892         * modules/isapipe (Makefile.am): Likewise.
68893         * modules/lchown (Makefile.am): Likewise.
68894         * modules/long-options (Makefile.am): Likewise.
68895         * modules/lstat (Makefile.am): Likewise.
68896         * modules/malloc (Makefile.am): Likewise.
68897         * modules/mathl (Makefile.am): Likewise.
68898         * modules/mbchar (Makefile.am): Likewise.
68899         * modules/md2 (Makefile.am): Likewise.
68900         * modules/md4 (Makefile.am): Likewise.
68901         * modules/md5 (Makefile.am): Likewise.
68902         * modules/memcasecmp (Makefile.am): Likewise.
68903         * modules/memchr (Makefile.am): Likewise.
68904         * modules/memcmp (Makefile.am): Likewise.
68905         * modules/memcoll (Makefile.am): Likewise.
68906         * modules/memcpy (Makefile.am): Likewise.
68907         * modules/memmem (Makefile.am): Likewise.
68908         * modules/memmove (Makefile.am): Likewise.
68909         * modules/mempcpy (Makefile.am): Likewise.
68910         * modules/memrchr (Makefile.am): Likewise.
68911         * modules/memset (Makefile.am): Likewise.
68912         * modules/memxor (Makefile.am): Likewise.
68913         * modules/mkancesdirs (Makefile.am): Likewise.
68914         * modules/mkdir (Makefile.am): Likewise.
68915         * modules/mkdir-p (Makefile.am): Likewise.
68916         * modules/mkdtemp (Makefile.am): Likewise.
68917         * modules/mkstemp (Makefile.am): Likewise.
68918         * modules/mktime (Makefile.am): Likewise.
68919         * modules/modechange (Makefile.am): Likewise.
68920         * modules/mountlist (Makefile.am): Likewise.
68921         * modules/nanosleep (Makefile.am): Likewise.
68922         * modules/openat (Makefile.am): Likewise.
68923         * modules/pagealign_alloc (Makefile.am): Likewise.
68924         * modules/physmem (Makefile.am): Likewise.
68925         * modules/poll (Makefile.am): Likewise.
68926         * modules/posixtm (Makefile.am): Likewise.
68927         * modules/posixver (Makefile.am): Likewise.
68928         * modules/putenv (Makefile.am): Likewise.
68929         * modules/quote (Makefile.am): Likewise.
68930         * modules/quotearg (Makefile.am): Likewise.
68931         * modules/raise (Makefile.am): Likewise.
68932         * modules/read-file (Makefile.am): Likewise.
68933         * modules/readline (Makefile.am): Likewise.
68934         * modules/readlink (Makefile.am): Likewise.
68935         * modules/readtokens (Makefile.am): Likewise.
68936         * modules/readutmp (Makefile.am): Likewise.
68937         * modules/realloc (Makefile.am): Likewise.
68938         * modules/regex (Makefile.am): Likewise.
68939         * modules/rename (Makefile.am): Likewise.
68940         * modules/rename-dest-slash (Makefile.am): Likewise.
68941         * modules/rijndael (Makefile.am): Likewise.
68942         * modules/rmdir (Makefile.am): Likewise.
68943         * modules/rpmatch (Makefile.am): Likewise.
68944         * modules/safe-read (Makefile.am): Likewise.
68945         * modules/safe-write (Makefile.am): Likewise.
68946         * modules/same (Makefile.am): Likewise.
68947         * modules/save-cwd (Makefile.am): Likewise.
68948         * modules/savedir (Makefile.am): Likewise.
68949         * modules/setenv (Makefile.am): Likewise.
68950         * modules/settime (Makefile.am): Likewise.
68951         * modules/sha1 (Makefile.am): Likewise.
68952         * modules/sig2str (Makefile.am): Likewise.
68953         * modules/snprintf (Makefile.am): Likewise.
68954         * modules/stdlib-safer (Makefile.am): Likewise.
68955         * modules/stpcpy (Makefile.am): Likewise.
68956         * modules/stpncpy (Makefile.am): Likewise.
68957         * modules/strcase (Makefile.am): Likewise.
68958         * modules/strcasestr (Makefile.am): Likewise.
68959         * modules/strchrnul (Makefile.am): Likewise.
68960         * modules/strcspn (Makefile.am): Likewise.
68961         * modules/strdup (Makefile.am): Likewise.
68962         * modules/strerror (Makefile.am): Likewise.
68963         * modules/strftime (Makefile.am): Likewise.
68964         * modules/strndup (Makefile.am): Likewise.
68965         * modules/strnlen (Makefile.am): Likewise.
68966         * modules/strpbrk (Makefile.am): Likewise.
68967         * modules/strsep (Makefile.am): Likewise.
68968         * modules/strstr (Makefile.am): Likewise.
68969         * modules/strtod (Makefile.am): Likewise.
68970         * modules/strtoimax (Makefile.am): Likewise.
68971         * modules/strtok_r (Makefile.am): Likewise.
68972         * modules/strtol (Makefile.am): Likewise.
68973         * modules/strtoll (Makefile.am): Likewise.
68974         * modules/strtoul (Makefile.am): Likewise.
68975         * modules/strtoull (Makefile.am): Likewise.
68976         * modules/strtoumax (Makefile.am): Likewise.
68977         * modules/strverscmp (Makefile.am): Likewise.
68978         * modules/time_r (Makefile.am): Likewise.
68979         * modules/timegm (Makefile.am): Likewise.
68980         * modules/tmpfile-safer (Makefile.am): Likewise.
68981         * modules/unistd-safer (Makefile.am): Likewise.
68982         * modules/unlinkdir (Makefile.am): Likewise.
68983         * modules/userspec (Makefile.am): Likewise.
68984         * modules/utime (Makefile.am): Likewise.
68985         * modules/utimecmp (Makefile.am): Likewise.
68986         * modules/utimens (Makefile.am): Likewise.
68987         * modules/vasnprintf (Makefile.am): Likewise.
68988         * modules/vasprintf (Makefile.am): Likewise.
68989         * modules/vsnprintf (Makefile.am): Likewise.
68990         * modules/xalloc (Makefile.am): Likewise.
68991         * modules/xgetcwd (Makefile.am): Likewise.
68992         * modules/xnanosleep (Makefile.am): Likewise.
68993         * modules/xreadlink (Makefile.am): Likewise.
68994         * modules/xstrtod (Makefile.am): Likewise.
68995         * modules/xstrtol (Makefile.am): Likewise.
68996         * modules/xstrtold (Makefile.am): Likewise.
68997         * modules/yesno (Makefile.am): Likewise.
68998
68999 2006-10-12  Jim Meyering  <jim@meyering.net>
69000
69001         * m4/getloadavg.m4: Revert the change below.
69002
69003         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69004         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69005         fail with a symlink, which is what coreutils' ./bootstrap now
69006         creates by default.
69007
69008 2006-10-12  Bruno Haible  <bruno@clisp.org>
69009
69010         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69011         mingw.
69012         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69013         MSVC and mingw explicitly.
69014
69015 2006-10-11  Simon Josefsson  <jas@extundo.com>
69016             Bruno Haible  <bruno@clisp.org>
69017
69018         Add support for multiple gnulib-tool invocations in the scope of a
69019         single configure.ac file.
69020         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69021         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69022         with the same contents as the _LIBADD variable.
69023         (func_emit_initmacro_start, func_emit_initmacro_end,
69024         func_emit_initmacro_done): New functions.
69025         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69026         gl_LIBOBJS and gl_LTLIBOBJS.
69027
69028 2006-10-11  Bruno Haible  <bruno@clisp.org>
69029
69030         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69031         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69032         autoreconf. Instead, invoke autopoint explicitly but move back the
69033         *.m4 files from gnulib.
69034
69035 2006-10-11  Bruno Haible  <bruno@clisp.org>
69036
69037         * gnulib-tool (func_usage): Make module names after --create-testdir
69038         optional.
69039         (func_create_testdir): If no module was specified, use nearly all
69040         modules.
69041
69042 2006-10-12  Jim Meyering  <jim@meyering.net>
69043
69044         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69045         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69046         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69047         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69048         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69049         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69050         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69051         (fts_set_stat_required): New function.
69052         (fts_open): Defer the calls to fts_stat, if possible or requested.
69053         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69054         into fts_stat itself.
69055         (fts_read): Perform any required (deferred) fts_stat call.
69056         (fts_build): Likewise, for the directory we're about to open and read.
69057         In the readdir loop, carefully decide whether each entry will require
69058         an eventual call to fts_stat, using dirent.d_type info if available.
69059         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69060         a command line argument into this function.  Update all callers.
69061         Map a return value of FTS_DOT to FTS_D for a command line argument.
69062         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69063         Thanks to Miklos Szeredi for his tenacity and for the initial
69064         bug report about "find" failing on a FUSE-based file system.
69065
69066         * lib/fts.c (fts_open): Use consistent indentation.
69067
69068 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69071         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69072         reported by Jim Meyering.  All uses of cache variables renamed
69073         to match Autoconf's.
69074         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69075         the other one.
69076
69077         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69078         Fix misspelling in diagnostic.
69079
69080 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69081
69082         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69083         defined.  Problem reported by Matthew Woehlke.
69084
69085         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69086         Add support for Tandem NonStop R series.
69087         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69088         Use new macro.
69089
69090         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69091         (has_trailing_slash): Omit size arg; all callers changed.
69092         Omit 'inline', since it doesn't help performance and we'd
69093         need to configure it.
69094         Don't count //, ///, etc. as having a trailing slash.
69095         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69096         (rpl_rename_dest_slash): On failure, use rename's errno rather
69097         than (in some cases) an incorrect or junk errno.
69098         Simplify code by removing need to compute length; this does
69099         cause it to make two passes instead of one over the file name,
69100         but it's worth it.
69101
69102         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69103         change, since Autoconf's version may no longer be appropriate now
69104         that we are using CVS Autoconf's version.  Add support for Tandem.
69105
69106 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69107             Bruno Haible  <bruno@clisp.org>
69108
69109         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69110         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69111         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69112         gl_AC_TYPE_LONG_LONG.
69113
69114         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69115         instead of HAVE_LONG_LONG.
69116         * lib/printf-args.c (printf_fetchargs): Likewise.
69117         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69118         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69119         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69120         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69121         gl_AC_TYPE_LONG_LONG.
69122
69123 2006-10-11  Bruno Haible  <bruno@clisp.org>
69124
69125         * m4/longlong.m4: Add comments.
69126         * m4/ulonglong.m4: Likewise.
69127
69128 2006-10-10  Bruno Haible  <bruno@clisp.org>
69129
69130         Make it possible to #define stpcpy, strdup to aliases.
69131         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69132         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69133
69134 2006-10-10  Bruno Haible  <bruno@clisp.org>
69135
69136         Make it possible to #define gcd to an alias.
69137         * lib/gcd.c: Include config.h.
69138
69139 2006-10-10  Bruno Haible  <bruno@clisp.org>
69140
69141         Make it possible to #define c_isascii to an alias.
69142         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69143         defined. Undefine the macros before defining them, to avoid gcc
69144         warnings.
69145         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69146         define NO_C_CTYPE_MACROS early.
69147
69148 2006-10-10  Bruno Haible  <bruno@clisp.org>
69149
69150         Make it possible to #define set_program_name to an alias.
69151         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69152         ENABLE_RELOCATABLE early.
69153
69154 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69157         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69158         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69159         More generally, don't assume that 64-bit signed int is available
69160         if unsigned int is, and vice versa.
69161         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69162         unsigned symbols, not on their signed counterparts.
69163         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69164         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69165         (UINT64_C, UINTMAX_C):
69166         Likewise.
69167         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69168         unsigned counterparts.
69169         (Have_long_long, Unsigned): New macros.
69170         (Int): Renamed from INT.
69171         (strtoimax): Use the new macros.
69172         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69173         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69174         * modules/inttypes (inttypes.h): Substitute
69175         HAVE_UNSIGNED_LONG_LONG_INT.
69176         * modules/stdint (stdint.h): Likewise.
69177         (Files): Add m4/ulonglong.m4.
69178
69179 2006-10-10  Bruno Haible  <bruno@clisp.org>
69180
69181         Fix a gcc -Wshadow warning.
69182         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69183         to 'bucket'.
69184         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69185         gl_linked_indexof_from_to): Likewise.
69186         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69187         Likewise.
69188         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69189         Likewise.
69190         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69191         Reported by Eric Blake.
69192
69193 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69194
69195         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69196         for NetBSD.  Problem reported by Bruno Haible.
69197
69198 2006-10-09  Jim Meyering  <jim@meyering.net>
69199
69200         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69201         Patch from Bruno Haible.
69202
69203 2006-10-09  Jim Meyering  <jim@meyering.net>
69204
69205         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69206         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69207         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69208
69209 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69210
69211         Don't include <config.h> twice; this doesn't work in some cases,
69212         e.g., when config.h has "#define intmax_t long long int" and
69213         we include <config.h>, <inttypes.h>, <config.h> in that order.
69214         Problem reported by Matthew Woehlke in:
69215         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69216         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69217         * lib/fts-cycle.c: Don't include config.h.
69218         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69219         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69220         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69221         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69222         inttypes.h.
69223         * lib/xstrtoumax.c: Likewise.
69224         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69225         __strtol and the like, so that this module is more like its siblings.
69226         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69227         Remove; no longer needed now that we assume gnulib inttypes.h.
69228
69229 2006-10-08  Bruno Haible  <bruno@clisp.org>
69230
69231         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69232         option.
69233
69234 2006-10-07  Jim Meyering  <jim@meyering.net>
69235
69236         * modules/inttypes (inttypes.h): Revert what seems to have been
69237         an inadvertent part of today's change: use "|", not "/" in the
69238         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
69239
69240 2006-10-07  Bruno Haible  <bruno@clisp.org>
69241
69242         * modules/sublist: New file.
69243
69244 2006-10-07  Bruno Haible  <bruno@clisp.org>
69245
69246         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
69247         * modules/argz (argz.h): Likewise.
69248         * modules/arpa_inet (arpa/inet.h): Likewise.
69249         * modules/byteswap (byteswap.h): Likewise.
69250         * modules/configmake (configmake.h): Likewise.
69251         * modules/fcntl (fcntl.h): Likewise.
69252         * modules/fnmatch (fnmatch.h): Likewise.
69253         * modules/getopt (getopt.h): Likewise.
69254         * modules/glob (glob.h): Likewise.
69255         * modules/inttypes (inttypes.h): Likewise.
69256         * modules/netinet_in (netinet/in.h): Likewise.
69257         * modules/poll (poll.h): Likewise.
69258         * modules/stdbool (stdbool.h): Likewise.
69259         * modules/stdint (stdint.h): Likewise.
69260         * modules/sys_select (sys/select.h): Likewise.
69261         * modules/sys_socket (sys/socket.h): Likewise.
69262         * modules/sys_stat (sys/stat.h): Likewise.
69263         * modules/sysexits (sysexits.h): Likewise.
69264         * modules/unistd (unistd.h): Likewise.
69265         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69266         Add a "DO NOT EDIT" comment to the generated file.
69267         (func_import): Likewise for gnulib-comp.m4.
69268
69269 2006-10-07  Bruno Haible  <bruno@clisp.org>
69270
69271         * lib/gl_sublist.h: New file.
69272         * lib/gl_sublist.c: New file.
69273
69274 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69275
69276         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
69277         name (relative to the original working directory) and the file
69278         name component (relative to the temporary working directory).  All
69279         callers changed.
69280         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
69281         * lib/mkdir-p.c (make_dir_parents): Likewise.
69282         * lib/mkdir-p.h (make_dir_parents): Likewise.
69283
69284 2006-10-06  Eric Blake  <ebb9@byu.net>
69285
69286         Define several macros for use by the clean-temp module.
69287         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
69288         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
69289         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
69290
69291         * lib/clean-temp.h (close_stream_temp): New declaration.
69292         * lib/clean-temp.c (includes): Pull in headers according to what
69293         other modules are in use.
69294         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
69295
69296 2006-10-06  Bruno Haible  <bruno@clisp.org>
69297
69298         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
69299         instead of fopen, fwriteerror.
69300
69301 2006-10-06  Bruno Haible  <bruno@clisp.org>
69302
69303         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
69304         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
69305         int.
69306         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
69307         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
69308         Return an error indicator.
69309         Suggested by Eric Blake.
69310
69311 2006-10-06  Bruno Haible  <bruno@clisp.org>
69312
69313         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
69314         Reported by Eric Blake.
69315
69316 2006-10-06  Bruno Haible  <bruno@clisp.org>
69317
69318         * modules/closeout (Description): Mention stderr too.
69319
69320 2006-10-06  Bruno Haible  <bruno@clisp.org>
69321         and Paul Eggert  <eggert@cs.ucla.edu>
69322
69323         * lib/closeout.c (close_stdout): Also close stderr.
69324         * lib/closeout.h: Update comment.
69325
69326 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69327
69328         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
69329         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
69330         * lib/dirchownmod.c: Include lchown.h.
69331         * lib/lchown.c: Don't include files that lchown.h now includes.
69332         Don't declare chown, since lchown.h now does that.
69333         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
69334         (lchown): Define to rpl_chown if lchown is declared but
69335         does not exist.  Declare using a prototype if lchown is not
69336         declared.  Add a copyright notice.
69337         * lib/mkstemp.h: Include <unistd.h>.
69338         * lib/openat.c: Include lchown.h.
69339
69340         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
69341         we now test for that separately.
69342         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
69343         rather than O_NOFOLLOW, when testing whether it's possible to
69344         avoid a race condition reliably.
69345         * lib/savewd.c (savewd_chdir): Likewise.
69346
69347         Remove macros that are no longer needed now that stdint.h is
69348         reliable.
69349         * lib/fsusage.c (UINTMAX_MAX): Remove.
69350         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
69351         * lib/utimecmp.c (SIZE_MAX): Remove.
69352
69353         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
69354
69355         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
69356         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
69357         O_NOATIME works.
69358
69359 2006-10-05  Bruno Haible  <bruno@clisp.org>
69360
69361         * lib/gl_list.h (gl_sortedlist_search_from_to,
69362         gl_sortedlist_indexof_from_to): New declarations.
69363         (gl_list_implementation): New fields sortedlist_search_from_to,
69364         sortedlist_indexof_from_to.
69365         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
69366         inline functions.
69367         * lib/gl_list.c (gl_sortedlist_search_from_to,
69368         gl_sortedlist_indexof_from_to): New functions.
69369         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69370         function.
69371         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69372         (gl_array_sortedlist_search_from_to): New function.
69373         (gl_array_list_implementation): Update.
69374         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69375         function.
69376         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69377         (gl_carray_sortedlist_search_from_to): New function.
69378         (gl_carray_list_implementation): Update.
69379         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69380         gl_linked_sortedlist_indexof_from_to): New functions.
69381         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69382         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69383         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69384         gl_tree_sortedlist_indexof_from_to): New functions.
69385         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69386         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69387         Update.
69388         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69389         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69390         Update.
69391
69392 2006-10-05  Bruno Haible  <bruno@clisp.org>
69393
69394         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69395         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69396         (struct gl_list_implementation): Add fields search_from_to,
69397         indexof_from_to. Remove fields search, indexof.
69398         (gl_list_search): Use the search_from_to method.
69399         (gl_list_search_from, gl_list_search_from_to): New functions.
69400         (gl_list_indexof): Use the indexof_from_to method.
69401         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69402         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69403         (gl_list_search_from, gl_list_search_from_to): New functions.
69404         (gl_list_indexof): Use the indexof_from_to method.
69405         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69406         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69407         gl_array_indexof. Add start_index, end_index arguments.
69408         (gl_array_search_from_to): Renamed from gl_array_search. Add
69409         start_index, end_index arguments.
69410         (gl_array_remove, gl_array_list_implementation): Update.
69411         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69412         gl_carray_indexof. Add start_index, end_index arguments.
69413         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69414         start_index, end_index arguments.
69415         (gl_carray_remove, gl_carray_list_implementation): Update.
69416         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69417         gl_linked_search. Add start_index, end_index arguments.
69418         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69419         start_index, end_index arguments.
69420         (gl_linked_remove): Update.
69421         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69422         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69423         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69424         field to 'size_t'.
69425         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69426         gl_tree_search. Add start_index, end_index arguments.
69427         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69428         start_index, end_index arguments.
69429         (gl_tree_remove): Update.
69430         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69431         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69432         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69433         function.
69434         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69435         gl_tree_search. Add start_index, end_index arguments.
69436         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69437         start_index, end_index arguments.
69438         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69439         Update.
69440         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69441
69442 2006-10-05  Bruno Haible  <bruno@clisp.org>
69443
69444         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69445
69446         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69447         fwriteerror_temp): New declarations.
69448         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69449         (descriptors): New variable.
69450         (cleanup): First, close the descriptors.
69451         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69452         fclose_temp, fwriteerror_temp): New functions.
69453
69454 2006-10-04  Jim Meyering  <jim@meyering.net>
69455
69456         * lib/fts.c (fts_open): Tiny comment change.
69457
69458 2006-10-04  Bruno Haible  <bruno@clisp.org>
69459
69460         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69461         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69462         gl_LOCK_BODY.
69463         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69464         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69465         gl_LOCK_EARLY_BODY.
69466         (gl_LOCK): Require gl_LOCK_BODY.
69467
69468 2006-10-04  Bruno Haible  <bruno@clisp.org>
69469
69470         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69471         (gl_oset_search_atleast): New declaration.
69472         (struct gl_oset_implementation): Add field 'search_atleast'.
69473         (gl_oset_search_atleast): New inline function.
69474         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69475         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69476         (gl_array_oset_implementation): Update.
69477         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69478         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69479         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69480
69481 2006-10-04  Bruno Haible  <bruno@clisp.org>
69482
69483         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69484
69485 2006-10-03  Bruno Haible  <bruno@clisp.org>
69486
69487         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69488         from gl_avltreehash_list_implementation.
69489
69490 2006-10-03  Bruno Haible  <bruno@clisp.org>
69491
69492         * lib/gl_oset.c (gl_oset_add): Fix return type.
69493
69494 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69495
69496         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69497
69498 2006-10-02  Eric Blake  <ebb9@byu.net>
69499
69500         * modules/strnlen (Depends-on): Add extensions.
69501
69502 2006-10-02  Eric Blake  <ebb9@byu.net>
69503
69504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69505         definition in 2.60+.
69506
69507 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69508
69509         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69510         checks.
69511
69512 2006-10-02  Bruno Haible  <bruno@clisp.org>
69513
69514         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69515         to the AUTOMAKE_OPTIONS.
69516         Reported by Jim Meyering.
69517
69518 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69519
69520         Work around bug in Solaris 10 /proc file system:
69521         /proc/self/fd/NNN/.. isn't the parent directory of
69522         the directory whose file descriptor is NNN.  This needs to
69523         be worked around at run time, not compile time, since a
69524         program might be built on Solaris 8, where things work, and
69525         run on Solaris 10.
69526         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69527         to use the following interface instead:
69528         (OPENAT_BUFFER_SIZE): New macro.
69529         (openat_proc_name): New function.
69530         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69531         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69532         Likewise.
69533         * lib/openat-proc.c: New file.
69534         * modules/openat (Files): Add lib/openat-proc.c.
69535         (Depends-on): Add same-inode, stdbool.
69536         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69537
69538 2006-09-29  Bruno Haible  <bruno@clisp.org>
69539
69540         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69541         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69542         argument. Set stdout_closed before testing for ferror, not after.
69543         (fwriteerror, fwriteerror_no_ebadf): New functions.
69544
69545 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69546
69547         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69548
69549 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69550
69551         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69552         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69553
69554 2006-09-28  Jim Meyering  <jim@meyering.net>
69555
69556         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69557         Include <unistd.h>.
69558
69559 2006-09-28  Bruno Haible  <bruno@clisp.org>
69560
69561         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69562         * modules/linkedhash-list (Depends-on): Likewise.
69563         * modules/rbtreehash-list (Depends-on): Likewise.
69564
69565 2006-09-28  Bruno Haible  <bruno@clisp.org>
69566
69567         * lib/strndup.h: Simplify the redefinition of strndup.
69568         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69569         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69570
69571 2006-09-28  Bruno Haible  <bruno@clisp.org>
69572
69573         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69574         * lib/gl_linkedhash_list.c: Likewise.
69575         * lib/gl_rbtreehash_list.c: Likewise.
69576
69577 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69580         getaddrinfo.
69581
69582         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69583         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69584         it causes <stdio_ext.h> to cause a compile-time error.
69585         Problem reported by Nelson H. F. Beebe.
69586         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69587         of HAVE_DECL___PENDING.
69588
69589         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69590         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69591         declaration.
69592
69593 2006-09-27  Jim Meyering  <jim@meyering.net>
69594
69595         This file could end up with a definition for a function
69596         named __strndup, rather than rpl_strndup on a system with
69597         incomplete weak_alias support.
69598         * lib/strndup.c (strndup): Rename from __strndup.
69599         Remove #defines that used to map __strndup to strndup.
69600         Don't use K&R prototypes.
69601         Remove LIBC-related code, since this file is not sync'd with glibc.
69602         * lib/strndup.h: Revamp, accordingly.
69603         * m4/strndup.m4: Modernize.
69604
69605 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * modules/savewd (Depends-on): Add 'raise'.
69608         * lib/savewd.c: Include <signal.h>, for 'raise'.
69609
69610 2006-09-26  Jim Meyering  <jim@meyering.net>
69611
69612         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69613         when we detect Darwin 8.7.0's acl_get_file bug.
69614         Rearrange to perform the new (below) run-test while $LIBS
69615         contains any acl-related library.  Set USE_ACL at the end.
69616         (gl_ACL_GET_FILE): New function.
69617
69618 2006-09-26  Eric Blake  <ebb9@byu.net>
69619
69620         * lib/verror.c: Include <config.h> unconditionally.
69621
69622 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69623
69624         * modules/clock-time (Maintainer): Add self.
69625         * modules/getlogin_r (Depends-on): Add extensions.
69626
69627 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69628
69629         * modules/clock-time: New module.
69630         * modules/nanosleep (Depends-on): Add clock-time.
69631         * modules/gethrxtime (Depends-on): Likewise.
69632         * modules/gettime (Depends-on): Likewise.
69633         * modules/settime (Depends-on): Likewise.
69634
69635         * modules/fts-lgpl: Depend on openat.
69636         * modules/mkancesdirs: Depend on savewd.
69637         * modules/mkdir-p: Likewise.
69638
69639 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69640
69641         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69642
69643         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69644         `gl_have_arbitrary_file_name_length_limit' to
69645         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69646         actually works between configure runs.
69647
69648 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69649             Bruno Haible  <bruno@clisp.org>
69650
69651         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69652
69653 2006-09-25  Jim Meyering  <jim@meyering.net>
69654
69655         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69656         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69657
69658 2006-09-25  Eric Blake  <ebb9@byu.net>
69659
69660         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69661         exec's in 2006-09-18 patch when shuffling fds.
69662
69663 2006-09-25  Bruno Haible  <bruno@clisp.org>
69664
69665         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69666         Reported by Jim Meyering.
69667
69668 2006-09-24  Jim Meyering  <jim@meyering.net>
69669
69670         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69671         compare a pointer against a literal "0".  That caused failures with
69672         at least HP-UX's hpcc.
69673
69674 2006-09-22  Simon Josefsson  <jas@extundo.com>
69675
69676         * modules/gc-sha1:
69677         * modules/gc-md4:
69678         * modules/gc-hmac-sha1:
69679         * modules/gc-hmac-md5:
69680         * modules/gc-des:
69681         * modules/gc-arcfour: Distribute more files.
69682
69683 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69684
69685         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69686         (gl_linked_iterator_from_to): Initialize struct completely.
69687         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69688         (gl_tree_iterator_from_to): Likewise
69689         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69690         * lib/gl_array_list.c [lint] (gl_array_iterator)
69691         (gl_array_iterator_from_to): Likewise.
69692         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69693         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69694         (gl_carray_iterator_from_to): Likewise.
69695
69696         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69697         * lib/md4.c (md4_process_block): Remove unused variable.
69698         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69699         parentheses for clarity.
69700
69701 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69702
69703         * modules/bison-i18n (Depends-on): Add gettext.
69704
69705 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69706
69707         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69708         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69709         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69710         also add missing comma that caused broken test.
69711         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69712         stdlib.h, for `abort'.
69713         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69714         variables.
69715         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69716         include unistd.h if present, for `rmdir'.
69717         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69718         variables.
69719         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69720         in the process include standard headers for prototypes.
69721         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69722         gets declared on GNU/Linux.
69723         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69724         unistd.h, for `rmdir'.
69725         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69726
69727         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69728         always true.
69729         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69730
69731         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69732
69733 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69734
69735         * gnulib-tool (func_version): Create output all at once.  This
69736         may help avoid triggering unnecessary SIGPIPEs, and at any
69737         rate it doesn't hurt.
69738
69739 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69740             Bruno Haible  <bruno@clisp.org>
69741
69742         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69743         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69744         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69745
69746         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69747         (gl_FUNC_VASPRINTF): Invoke it.
69748
69749 2006-09-22  Bruno Haible  <bruno@clisp.org>
69750
69751         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69752         getloadavg.c as first argument.
69753
69754 2006-09-22  Bruno Haible  <bruno@clisp.org>
69755
69756         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69757         at the beginning of the gl_INIT macro.
69758         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69759         gl_GETLOADAVG.
69760
69761 2006-09-22  Bruno Haible  <bruno@clisp.org>
69762
69763         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69764         module.
69765         Suggested by Ralf Wildenhues.
69766
69767 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69768
69769         Import this patch from libc:
69770
69771         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69772
69773         * lib/regex_internal.c (re_string_reconstruct): Handle
69774         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69775         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69776         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69777         re_string_context_at.
69778
69779         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69780         now requires it.
69781         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69782         gl_REGEX now does it for us.
69783         (gl_REGEX): Add test taken from
69784         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69785
69786         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69787         Check that large offsets work.  Modernize Autoconf usages.
69788         Prefer "yes" to mean a good thing rather than a bad.
69789         Don't put "#define mkstemp" in config.h, as this might interfere
69790         with standard system headers that "#define mkstemp mkstemp64".
69791
69792         * modules/mkstemp (Depends-on): Add extensions, so that
69793         mkstemp is visible on some platforms.
69794         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69795         (Include): Change to "mkstemp.h" from <stdlib.h>.
69796         (Files): Add mkstemp.h.
69797
69798         * lib/mkstemp.h: New file, since some standard headers
69799         #define mkstemp.
69800         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69801         Include "mkstemp.h".
69802         Make the _LIBC code resemble glibc original more,
69803         e.g., use K&R style.
69804         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69805         (mkstemp): Remove, since mkstemp.h does this for us.
69806         * lib/stdlib--.h: Include mkstemp.h.
69807
69808         Import this patch from libc:
69809
69810         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69811
69812         * lib/tempname.c (__gen_tempname): Change attempts_min
69813         into a macro.  Use preprocessor to decide how to initialize
69814         attempts [Coverity CID 67].
69815
69816 2006-09-20  Bruno Haible  <bruno@clisp.org>
69817
69818         * lib/mkdtemp.c: Import from libc.
69819         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69820                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69821                 attempts_min into a macro.  Use preprocessor to decide how to
69822                 initialize attempts [Coverity CID 67].
69823         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69824                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69825                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69826
69827 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69828
69829         * gnulib-tool (func_exit): New function, to allow to pass the
69830         exit status portably through the trap.  Use everywhere.
69831         (--help, --version): Signal a write error.
69832         (trap): catch SIGPIPE, for write errors.
69833         Exit at the end of the trap, with the correct exit status.
69834
69835 2006-09-19  Karl Berry  <karl@gnu.org>
69836
69837         * doc/gnulib.texi: note about the license texinfo files.
69838
69839 2006-09-19  Eric Blake  <ebb9@byu.net>
69840
69841         * gnulib-tool: Avoid space-tab.
69842
69843 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69844
69845         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69846         that prevented coreutils 6.1 from building.  Problem reported
69847         by Petter Reinholdtsen.
69848
69849 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69850
69851         * gnulib-tool (avoidlist): Fix typo that broke options like
69852         --avoid=lock that are used by coreutils bootstrap.
69853
69854 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69855
69856         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69857         more systematically.
69858
69859 2006-09-18  Jim Meyering  <jim@meyering.net>
69860
69861         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69862
69863 2006-09-18  Bruno Haible  <bruno@clisp.org>
69864
69865         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69866
69867 2006-09-18  Bruno Haible  <bruno@clisp.org>
69868
69869         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69870         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69871         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69872         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69873         * m4/gettext.m4: Require autoconf >= 2.52.
69874         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69875         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69876         of gl_cv_header_inttypes_h.
69877
69878 2006-09-18  Bruno Haible  <bruno@clisp.org>
69879
69880         * lib/javaversion.c: Include configmake.h.
69881
69882 2006-09-18  Bruno Haible  <bruno@clisp.org>
69883
69884         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69885         avoid that the while loops be executed in a subshell.
69886
69887 2006-09-18  Bruno Haible  <bruno@clisp.org>
69888
69889         * MODULES.html.sh (func_module): Break long lines.
69890         Suggested by Bruce Korb <bkorb@gnu.org>.
69891
69892 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69893
69894         Speed up by a factor of 1.12.
69895         * gnulib-tool (nl): New variable.
69896         (func_import): Rewrite include directive extraction to only read each
69897         directive once.
69898
69899 2006-09-17  Bruno Haible  <bruno@clisp.org>
69900
69901         * modules/javaversion (Makefile.am): Remove DEFS setting.
69902         (Depends-on): Add configmake, for PKGDATADIR definition.
69903
69904 2006-09-17  Bruno Haible  <bruno@clisp.org>
69905
69906         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69907
69908 2006-09-17  Bruno Haible  <bruno@clisp.org>
69909
69910         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69911         (func_modules_transitive_closure, func_modules_add_dummy,
69912         func_modules_to_filelist, func_import, func_create_testdir,
69913         func_create_megatestdir, ...): Use it wherever possible.
69914         Suggested by Ralf Wildenhues.
69915
69916 2006-09-16  Karl Berry  <karl@gnu.org>
69917
69918         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69919         to avoid sectioning errors.
69920         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69921         [ifinfo]: blank line after @center-ed titles.
69922         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69923         Spell FSF address consistently with others.
69924         (These changes approved by rms.)
69925
69926 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69927
69928         Speed up by a factor of 1.61.
69929         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69930         already checked module names again.
69931
69932 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69933
69934         Speed up by a factor of 1.13.
69935         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69936         for new_files, and the input to func_add_or_update.
69937
69938 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69939
69940         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69941         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69942
69943 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69944
69945         * modules/mkancesdirs (Depends-on): Add fcntl.
69946         * modules/savewd: New file.
69947         * MODULES.html.sh (File system functions): Add savewd.
69948
69949         * modules/configmake (Makefile.am): Add support for the
69950         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69951
69952 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69953
69954         * m4/savewd.m4: New file.
69955
69956 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69957
69958         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69959         (dirchownmod): New arg FD.  All callers changed.
69960         Use FD rather than opening the directory ourself, as opening is
69961         now the caller's responsibility.
69962         * lib/dirchownmod.h: Likewise.
69963         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69964         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69965         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69966         (test_dir): Remove.
69967         (mkancesdirs): Return length of prefix of FILE that has already
69968         been made, or -2 if there is a child doing the work.  Redo
69969         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69970         ".", and treat ".." specially since it might stray back into
69971         already-created areas.  Use a subprocess if necessary.  New arg
69972         WD; all users changed.  MAKE_DIR function should now return 1
69973         if it creates a directory that is not readable.  Return -2 if
69974         a child process is spun off.
69975         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69976         Adjust signature to match code.
69977         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69978         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69979         all users changed.
69980         * lib/savewd.c, lib/savewd.h: New files.
69981
69982 2006-09-15  Jim Meyering  <jim@meyering.net>
69983
69984         * modules/rename-dest-slash: New module.
69985         * MODULES.html.sh (posix_compat): Add it here.
69986
69987         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69988
69989 2006-09-15  Jim Meyering  <jim@meyering.net>
69990
69991         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69992         file.
69993
69994         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69995
69996 2006-09-15  Jim Meyering  <jim@meyering.net>
69997
69998         * lib/rename-dest-slash.c (has_trailing_slash): Use
69999         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70000         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70001         test before testing whether SRC is a directory.
70002         Suggestions from Bruno Haible.
70003
70004         Avoid a warning about an unused variable.
70005         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70006         into the #ifdef block where it's used.
70007
70008         * lib/rename-dest-slash.c: New file.
70009
70010 2006-09-14  Bruno Haible  <bruno@clisp.org>
70011
70012         * lib/allocsa.c: Include <config.h> unconditionally.
70013         * lib/asnprintf.c: Likewise.
70014         * lib/asprintf.c: Likewise.
70015         * lib/c-strcasecmp.c: Likewise.
70016         * lib/c-strcasestr.c: Likewise.
70017         * lib/c-strncasecmp.c: Likewise.
70018         * lib/c-strstr.c: Likewise.
70019         * lib/classpath.c: Likewise.
70020         * lib/clean-temp.c: Likewise.
70021         * lib/concatpath.c: Likewise.
70022         * lib/copy-file.c: Likewise.
70023         * lib/csharpcomp.c: Likewise.
70024         * lib/csharpexec.c: Likewise.
70025         * lib/execute.c: Likewise.
70026         * lib/fatal-signal.c: Likewise.
70027         * lib/findprog.c: Likewise.
70028         * lib/fwriteerror.c: Likewise.
70029         * lib/gl_array_list.c: Likewise.
70030         * lib/gl_array_oset.c: Likewise.
70031         * lib/gl_avltree_list.c: Likewise.
70032         * lib/gl_avltree_oset.c: Likewise.
70033         * lib/gl_avltreehash_list.c: Likewise.
70034         * lib/gl_carray_list.c: Likewise.
70035         * lib/gl_linked_list.c: Likewise.
70036         * lib/gl_linkedhash_list.c: Likewise.
70037         * lib/gl_list.c: Likewise.
70038         * lib/gl_oset.c: Likewise.
70039         * lib/gl_rbtree_list.c: Likewise.
70040         * lib/gl_rbtree_oset.c: Likewise.
70041         * lib/gl_rbtreehash_list.c: Likewise.
70042         * lib/imaxabs.c: Likewise.
70043         * lib/imaxdiv.c: Likewise.
70044         * lib/javacomp.c: Likewise.
70045         * lib/javaexec.c: Likewise.
70046         * lib/javaversion.c: Likewise.
70047         * lib/linebreak.c: Likewise.
70048         * lib/localcharset.c: Likewise.
70049         * lib/lock.c: Likewise.
70050         * lib/mbchar.c: Likewise.
70051         * lib/mbswidth.c: Likewise.
70052         * lib/mkdtemp.c: Likewise.
70053         * lib/pipe.c: Likewise.
70054         * lib/printf-args.c: Likewise.
70055         * lib/printf-parse.c: Likewise.
70056         * lib/progname.c: Likewise.
70057         * lib/progreloc.c: Likewise.
70058         * lib/readlink.c: Likewise.
70059         * lib/sh-quote.c: Likewise.
70060         * lib/stpcpy.c: Likewise.
70061         * lib/stpncpy.c: Likewise.
70062         * lib/strcasecmp.c: Likewise.
70063         * lib/strcasestr.c: Likewise.
70064         * lib/strcspn.c: Likewise.
70065         * lib/striconv.c: Likewise.
70066         * lib/strncasecmp.c: Likewise.
70067         * lib/strnlen1.c: Likewise.
70068         * lib/strstr.c: Likewise.
70069         * lib/strtok_r.c: Likewise.
70070         * lib/tls.c: Likewise.
70071         * lib/tmpdir.c: Likewise.
70072         * lib/unicodeio.c: Likewise.
70073         * lib/unsetenv.c: Likewise.
70074         * lib/vasnprintf.c: Likewise.
70075         * lib/vasprintf.c: Likewise.
70076         * lib/wait-process.c: Likewise.
70077         * lib/xallocsa.c: Likewise.
70078         * lib/xsetenv.c: Likewise.
70079         * lib/xstriconv.c: Likewise.
70080
70081 2006-09-13  Simon Josefsson  <jas@extundo.com>
70082
70083         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70084         that internally, suggested by Ralf Wildenhues
70085         <Ralf.Wildenhues@gmx.de>.
70086
70087 2006-09-13  Simon Josefsson  <jas@extundo.com>
70088
70089         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70090         @LIBOBJS@.
70091         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70092
70093 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70094
70095         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70096         longer worry about uses that don't define HAVE_CONFIG_H.
70097         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70098         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70099         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70100         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70101         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70102         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70103         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70104         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70105         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70106         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70107         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70108         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70109         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70110         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70111         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70112         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70113         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70114         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70115         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70116         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70117         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70118         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70119         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70120         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70121         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70122         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70123         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70124         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70125         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70126         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70127         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70128         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70129         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70130         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70131         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70132         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70133         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70134         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70135         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70136         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70137         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70138         Likewise.
70139
70140 2006-09-13  Eric Blake  <ebb9@byu.net>
70141
70142         * lib/getopt.c: Fix typo in last commit.
70143
70144 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70145
70146         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70147         dgettext.
70148
70149 2006-09-12  Jim Meyering  <jim@meyering.net>
70150
70151         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70152         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70153         Reported by Nelson H. F. Beebe.
70154
70155 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70156
70157         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70158         program_invocation_name and program_invocation_short_name are
70159         initialized.
70160         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70161         and program_invocation_short_name to argp.h, so they are visible
70162         to user programs.
70163         * lib/argp.h: Likewise
70164
70165 2006-09-10  Bruno Haible  <bruno@clisp.org>
70166
70167         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70168         m4/inttypes_h.m4, m4/uintmax_t.m4.
70169
70170 2006-09-10  Bruno Haible  <bruno@clisp.org>
70171
70172         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70173         gl_AC_TYPE_UINTMAX_T.
70174
70175 2006-09-10  Bruno Haible  <bruno@clisp.org>
70176
70177         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70178
70179 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70180
70181         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70182         convention.  Text proposed by Bruno Haible.
70183         (struct argp_option): Document the use of N_() wrappers.
70184
70185         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70186         '\v', and translate the two parts separately, instead of feeding
70187         the whole string to gettext.  This allows to exclude
70188         '\v' from the strings visible to the translator by writing doc
70189         strings as N_("..") "\v" N_("..").
70190
70191 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70192
70193         * config/srclist.txt: Undo latest change; the bug was fixed.
70194
70195 2006-09-09  Bruno Haible  <bruno@clisp.org>
70196
70197         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70198         assignments if building a library without libtool.
70199         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70200         in func_emit_lib_Makefile_am.
70201         (func_import): When building a static library libfoo.a, arrange to
70202         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70203         (func_create_testdir): Likewise.
70204         * modules/gc (configure.ac, Makefile.am): If building statically,
70205         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70206         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70207         * modules/striconv (configure.ac, Makefile.am): Likewise.
70208         Based on a suggestion by Ralf Wildenhues.
70209
70210 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70211
70212         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70213         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70214         Also:
70215
70216         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70217         Add year_2050_test to catch glibc bug 2821
70218         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70219
70220         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70221         Prefer #ifdef to #if.
70222
70223         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70224         Return from 'main' instead of calling 'exit'.
70225
70226 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70229         returned the maximum time_t value rather than (time_t) -1.
70230         Problem originally reported by William Bardwell
70231         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70232
70233         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70234         Moved to here ...
70235         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70236         ... from here.
70237
70238 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
70241         2821 is fixed.
70242
70243 2006-09-08  Jim Meyering  <jim@meyering.net>
70244
70245         Don't make generated files read-only.  That would bother too many
70246         people.  However, do retain the ability to work when targets are
70247         read-only: remove the destination and temporary files before writing
70248         them (when generated via sed or echo), or by using the -f option for
70249         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
70250         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70251         * modules/byteswap, modules/configmake, modules/fcntl:
70252         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70253         * modules/localcharset, modules/netinet_in, modules/poll:
70254         * modules/stdbool, modules/stdint, modules/sys_select:
70255         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70256
70257 2006-09-08  Jim Meyering  <jim@meyering.net>
70258
70259         Avoid new build failure on FreeBSD 6.0.
70260         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
70261         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
70262         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
70263
70264 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70265
70266         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
70267
70268 2006-09-07  Jim Meyering  <jim@meyering.net>
70269
70270         Fix global typo in last change: use chmod u-w, not chmod u-x.
70271         Spotted by Paul Eggert and Bruce Korb.
70272         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70273         * modules/byteswap, modules/configmake, modules/fcntl:
70274         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70275         * modules/localcharset, modules/netinet_in, modules/poll:
70276         * modules/stdbool, modules/stdint, modules/sys_select:
70277         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70278
70279 2006-09-06  Jim Meyering  <jim@meyering.net>
70280
70281         Make generated files be read-only.
70282         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
70283         Ensure that each generated file is now read-only.
70284         * modules/argz: Likewise.
70285         * modules/arpa_inet: Likewise.
70286         * modules/byteswap: Likewise.
70287         * modules/configmake: Likewise.
70288         * modules/fcntl: Likewise.
70289         * modules/fnmatch: Likewise.
70290         * modules/getopt: Likewise.
70291         * modules/glob: Likewise.
70292         * modules/inttypes: Likewise.
70293         * modules/netinet_in: Likewise.
70294         * modules/poll: Likewise.
70295         * modules/stdbool: Likewise.
70296         * modules/stdint: Likewise.
70297         * modules/sys_select: Likewise.
70298         * modules/sys_socket: Likewise.
70299         * modules/sys_stat: Likewise.
70300         * modules/sysexits: Likewise.
70301         * modules/localcharset: Same as above, but continue using temporary
70302         file named "t-$@" (why different?) rather than the "$@-t" used
70303         everywhere else.
70304
70305         * modules/sysexits (Makefile.am): Replace literal occurrences
70306         of "sysexit.h" more readable, and more consistent, "$@".
70307
70308 2006-09-06  Bruno Haible  <bruno@clisp.org>
70309
70310         * modules/striconv: New file.
70311         * modules/xstriconv: New file.
70312         * MODULES.html.sh (Internationalization functions): Add striconv,
70313         xstriconv.
70314
70315 2006-09-06  Bruno Haible  <bruno@clisp.org>
70316
70317         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
70318         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
70319         not using libtool correctly.
70320
70321 2006-09-06  Bruno Haible  <bruno@clisp.org>
70322
70323         * lib/striconv.h: New file.
70324         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
70325         iconvstring.c.
70326         * lib/xstriconv.h: New file.
70327         * lib/xstriconv.c: New file.
70328
70329 2006-09-06  Bruno Haible  <bruno@clisp.org>
70330
70331         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70332         lib_..._LDFLAGS.
70333
70334 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70335
70336         * lib/argz_.h: Sync from Libtool.
70337
70338         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
70339                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70340
70341         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
70342
70343 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70344
70345         * modules/trim: New file.
70346
70347 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70348
70349         * lib/trim.h: New file.
70350         * lib/trim.c: New file.
70351
70352 2006-09-05  Bruno Haible  <bruno@clisp.org>
70353
70354         * MODULES.html.sh (String handling): Add trim.
70355
70356 2006-09-04  Karl Berry  <karl@gnu.org>
70357
70358         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
70359         until next release.
70360
70361 2006-09-03  Bruno Haible  <bruno@clisp.org>
70362
70363         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
70364         correctly.
70365
70366 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70367
70368         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70369         not gl_GETLOADAVG.  Omit unneeded semicolons.
70370         Problems reported by Ralf Wildenhues in
70371         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70372         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70373         at the end, which is the usual gnulib style.
70374
70375         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70376         of doing all the work ourselves.
70377         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70378         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70379
70380 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70381
70382         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70383         Problem reported by Ralf Wildenhues in
70384         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70385
70386         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
70387         HAVE_STRUCT_STATFS_F_FSTYPENAME.
70388
70389 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70390
70391         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70392         yesterday's patch by changing test -n to test -z.
70393
70394 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70395
70396         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70397         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70398         the former is now obsolescent.
70399
70400         * modules/chdir-long (Depends-on): Add fcntl.
70401
70402 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70403
70404         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70405         obsolescent, and programs should use gnulib instead.
70406         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70407         but with prefixes changed.
70408
70409 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70410
70411         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70412         or stdbool.h, because they might not exist while configuring.
70413
70414         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70415         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70416         does that for us.
70417         (O_DIRECTORY): Remove.
70418
70419 2006-08-31  Eric Blake  <ebb9@byu.net>
70420
70421         * gnulib-tool: Don't let emacs change spaces to TAB.
70422
70423 2006-08-31  Bruno Haible  <bruno@clisp.org>
70424
70425         * gnulib-tool: When calling func_import more than once, do it in a
70426         subshell.
70427         Reported by Eric Blake <ebb9@byu.net>.
70428
70429 2006-08-31  Bruno Haible  <bruno@clisp.org>
70430
70431         * gnulib-tool (nl): Remove variable.
70432         (sed_transform_lib_file): Use more robust test for config-h module.
70433         (func_import): Fix typo in 2006-08-25 patch.
70434
70435 2006-08-31  Bruno Haible  <bruno@clisp.org>
70436
70437         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70438         specified, augment Makefile.am variables instead of assigning them.
70439
70440 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70441
70442         Work around a bug in both the Linux and SunOS 64-bit kernels:
70443         nanosleep mishandles sleeps for longer than 2**31 seconds.
70444         Problem reported by Frank v Waveren in
70445         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70446         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70447         Check for nanosleep bug.
70448         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70449
70450 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70451
70452         Work around a bug in both the Linux and SunOS 64-bit kernels:
70453         nanosleep mishandles sleeps for longer than 2**31 seconds.
70454         Problem reported by Frank v Waveren in
70455         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70456         * lib/nanosleep.c (BILLION): New constant.
70457         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70458         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70459         implementation.
70460
70461 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70462
70463         * modules/nanosleep (Depends-on): Add gettime.
70464
70465 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70466         and Simon Josefsson  <jas@extundo.com>
70467         and Oskar Liljeblad  <oskar@osk.mine.nu>
70468
70469         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70470         * gnulib-tool (func_import): New license type 'unmodifiable license
70471         text'.
70472         * modules/fdl: Use it.  Longer description.
70473         * module/gpl, module/lgpl: New files.
70474
70475 2006-08-30  Jim Meyering  <jim@meyering.net>
70476
70477         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70478         shadowing the parameter.
70479
70480 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70481
70482         Sync from Libtool:
70483
70484         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70485
70486         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70487         sharing with gnulib.  Report by Eric Blake.
70488
70489 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70490
70491         * modules/isapipe: New file.
70492         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70493
70494 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70495
70496         * modules/configmake (Makefile.am): Add a comment, and omit
70497         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70498         by Bruno Haible.
70499
70500 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70501
70502         * m4/isapipe.m4: New file.
70503
70504 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70505
70506         * lib/isapipe.c, lib/isapipe.h: New files.
70507
70508 2006-08-29  Jim Meyering  <jim@meyering.net>
70509
70510         * modules/configmake (Makefile.am): Make configmake.h depend on
70511         Makefile.  Otherwise, a stale configmake.h could hang around.
70512
70513 2006-08-29  Eric Blake  <ebb9@byu.net>
70514
70515         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70516         resolution of upstream bug 3044.
70517
70518 2006-08-29  Bruno Haible  <bruno@clisp.org>
70519
70520         * modules/localcharset (Depends-on): Add configmake.
70521         (Makefile.am): Remove setting of LIBDIR through DEFS.
70522
70523 2006-08-29  Bruno Haible  <bruno@clisp.org>
70524
70525         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70526         defined.
70527
70528 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70529
70530         * modules/fcntl: New file.
70531         * modules/chdir-safer (Depends-on): Add fcntl.
70532         * modules/fts: Likewise.
70533         * modules/mkdir-p: Likewise.
70534
70535         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70536         This undoes the most recent change, since we're now addressing the
70537         problem in a different way.
70538
70539         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70540         into output, since the output might be called Makefile.am even
70541         if $makefile_name is something different.
70542         (func_import): Use $makefile_am rather than
70543         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70544         empty.
70545
70546         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70547
70548 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70549
70550         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70551         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70552         recent change to stdint.m4, since we're now addressing the problem in a
70553         different way.
70554
70555 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70556
70557         * m4/fcntl_h.m4: New file.
70558
70559 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70560
70561         * lib/fcntl_.h: New file.
70562         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70563         the fcntl module.
70564         * lib/dirchownmod.c: Likewise.
70565         * lib/fts.c: Likewise.
70566
70567         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70568         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70569         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70570         just before including <inttypes.h>, to avoid circular inclusion.
70571
70572 2006-08-28  Jim Meyering  <jim@meyering.net>
70573
70574         * doc/visibility.texi: Actually read and correct the grammar of the
70575         sentence affected by yesterday's change.
70576
70577 2006-08-28  Eric Blake  <ebb9@byu.net>
70578
70579         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70580         needs wrapper.
70581
70582 2006-08-28  Eric Blake  <ebb9@byu.net>
70583
70584         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70585
70586 2006-08-28  Eric Blake  <ebb9@byu.net>
70587
70588         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70589
70590 2006-08-28  Bruno Haible  <bruno@clisp.org>
70591
70592         * modules/c-strstr: New file, from GNU gettext.
70593         * MODULES.html.sh (String handling): Add c-strstr.
70594
70595 2006-08-28  Bruno Haible  <bruno@clisp.org>
70596
70597         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70598         macros.
70599         Reported by Eric Blake.
70600
70601 2006-08-28  Bruno Haible  <bruno@clisp.org>
70602
70603         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70604         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70605         * lib/vasprintf.c: Include errno.h, limits.h.
70606         (EOVERFLOW): New fallback definition.
70607         (vasprintf): Test here whether the string length is > INT_MAX.
70608         * lib/vsnprintf.c: Include errno.h, limits.h.
70609         (EOVERFLOW): New fallback definition.
70610         (vsnprintf): Fix bug when generated string was too long for the buffer.
70611         Test here whether the string length is > INT_MAX.
70612
70613 2006-08-28  Bruno Haible  <bruno@clisp.org>
70614
70615         * lib/inttypes_.h (SCNX*): Remove definitions.
70616         Reported by Eric Blake.
70617
70618 2006-08-28  Bruno Haible  <bruno@clisp.org>
70619
70620         * lib/c-strstr.h: New file, from GNU gettext.
70621         * lib/c-strstr.c: New file, from GNU gettext.
70622
70623 2006-08-28  Bruno Haible  <bruno@clisp.org>
70624
70625         * gnulib-tool: Reorder some statements.
70626
70627 2006-08-28  Bruno Haible  <bruno@clisp.org>
70628
70629         * gnulib-tool: New option --makefile-name.
70630         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70631         $makefile_name.
70632         (func_import): Write $makefile_name to the cache file, and read it from
70633         there unless explicitly specified. Use $makefile_name as file name
70634         instead of Makefile.am. Adjust the recommendations accordingly.
70635
70636 2006-08-28  Bruno Haible  <bruno@clisp.org>
70637
70638         * gnulib-tool (func_verify_module): Check against misapplying patch.
70639
70640 2006-08-28  Bruno Haible  <bruno@clisp.org>
70641
70642         * gnulib-tool (func_relativize, func_relconcat): New functions.
70643         Give an error if --local-dir is given with --update.
70644         Remove trailing slashes from $local_gnulib_dir.
70645         (func_import): Store the relativized $local_gnulib_dir in
70646         gnulib-cache.m4, and read it from there if not specified explicitly.
70647
70648 2006-08-28  Bruno Haible  <bruno@clisp.org>
70649
70650         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70651         is the current directory. Respect also $local_gnulib_dir.
70652
70653 2006-08-28  Bruno Haible  <bruno@clisp.org>
70654             Simon Josefsson  <jas@extundo.com>
70655
70656         BeOS portability.
70657         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70658
70659 2006-08-27  Jim Meyering  <jim@meyering.net>
70660
70661         * doc/visibility.texi: Remove duplicate word: "pointer".
70662
70663 2006-08-26  Bruno Haible  <bruno@clisp.org>
70664
70665         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70666         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70667         (Makefile.am): Create inttypes.h from inttypes_.h.
70668         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70669
70670         * modules/imaxabs: New file.
70671
70672         * modules/imaxdiv: New file.
70673
70674 2006-08-26  Bruno Haible  <bruno@clisp.org>
70675
70676         * m4/inttypes.m4: New file.
70677         * m4/_inttypes_h.m4: Remove file.
70678         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70679         PRI_MACROS_BROKEN.
70680         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70681
70682         * m4/imaxabs.m4: New file.
70683
70684         * m4/imaxdiv.m4: New file.
70685
70686 2006-08-26  Bruno Haible  <bruno@clisp.org>
70687
70688         * lib/inttypes_.h: New file.
70689         * lib/inttypes.h: Remove file.
70690         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70691
70692         * lib/imaxabs.c: New file.
70693
70694         * lib/imaxdiv.c: New file.
70695
70696 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70697
70698         New config-h module, so that "make" output needn't be cluttered
70699         by -DHAVE_CONFIG_H.
70700         * MODULES.html.sh (Support for building libraries and executables):
70701         Add config-h.
70702         * modules/config-h: New file.
70703         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70704         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70705         the config-h module is used.
70706
70707         New configmake module, so that "make" output needn't be cluttered
70708         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70709         * MODULES.html.sh (Support for building libraries and executables):
70710         Add configmake.
70711         * modules/configmake: New file.
70712
70713 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70714
70715         * m4/config-h.m4: New file.
70716
70717 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * config/srclist.txt: Add elisp-comp.
70720
70721 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70722
70723         * MODULES.html.sh (Support for building libraries and executables):
70724         Add elisp-comp.
70725         * build-aux/elisp-comp: New file.
70726         * modules/elisp-comp: New file.
70727
70728 2006-08-24  Bruno Haible  <bruno@clisp.org>
70729
70730         * gnulib-tool (func_create_testdir): Use non-default values of
70731         sourcebase and m4base.
70732
70733 2006-08-24  Bruno Haible  <bruno@clisp.org>
70734
70735         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70736         HTML structure.
70737
70738 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70739
70740         * modules/openat (Depends-on): Add lchown.
70741
70742 2006-08-23  Bruno Haible  <bruno@clisp.org>
70743
70744         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70745         of gl_LOCK_EARLY instead of gl_LOCK.
70746
70747 2006-08-23  Bruno Haible  <bruno@clisp.org>
70748
70749         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70750         on OSF/1 to no.
70751         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70752
70753 2006-08-23  Bruno Haible  <bruno@clisp.org>
70754
70755         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70756         as unusable.
70757
70758         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70759         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70760         (gl_LOCK): New macro.
70761
70762 2006-08-22  Simon Josefsson  <jas@extundo.com>
70763
70764         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70765         to md5 module.
70766
70767 2006-08-22  Simon Josefsson  <jas@extundo.com>
70768
70769         * MODULES.html.sh: Add "Support for maintaining and release
70770         projects".
70771
70772         * build-aux/gnupload: New file, from coreutils.
70773
70774 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70775
70776         Avoid the need for AC_LIBSOURCES in m4 macros.
70777         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70778         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70779         * modules/check-version (EXTRA_DIST): Add check-version.h.
70780         * modules/crc (EXTRA_DIST): Add crc.h.
70781         * modules/des (EXTRA_DIST): Add des.h.
70782         * modules/gc (EXTRA_DIST): Add gc.h.
70783         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70784         * modules/getline (EXTRA_DIST): Add getline.h.
70785         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70786         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70787         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70788         * modules/md2 (EXTRA_DIST): Add md2.h.
70789         * modules/md4 (EXTRA_DIST): Add md4.h.
70790         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70791         * modules/read-file (EXTRA_DIST): Add read-file.h.
70792         * modules/readline (EXTRA_DIST): Add readline.h.
70793         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70794         rijndael-api-fst.h.
70795
70796 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         * m4/rijndael.m4 (gl_ARCFOUR):
70799         * m4/arctwo.m4 (gl_ARCTWO):
70800         * m4/check-version.m4 (gl_CHECK_VERSION):
70801         * m4/crc.m4 (gl_CRC):
70802         * m4/des.m4 (gl_DES):
70803         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70804         * m4/gc.m4 (gl_GC):
70805         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70806         * m4/getline.m4 (gl_FUNC_GETLINE):
70807         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70808         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70809         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70810         * m4/md2.m4 (gl_MD2):
70811         * m4/md4.m4 (gl_MD4):
70812         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70813         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70814         * m4/readline.m4 (gl_FUNC_READLINE):
70815         * m4/rijndael.m4 (gl_RIJNDAEL):
70816         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70817         to get the necessary .h files and whatnot.
70818
70819 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70820
70821         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70822         gnulib rather than the other way around.
70823         * config/srclistvars.sh (COREUTILS): Remove.
70824
70825 2006-08-22  Jim Meyering  <jim@meyering.net>
70826
70827         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70828
70829         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70830
70831 2006-08-22  Eric Blake  <ebb9@byu.net>
70832
70833         * modules/regexprops-generic: New file.
70834         * MODULES.html.sh (Support for building documentation): List it.
70835
70836 2006-08-22  Eric Blake  <ebb9@byu.net>
70837
70838         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70839         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70840         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70841         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70842
70843 2006-08-22  Bruno Haible  <bruno@clisp.org>
70844
70845         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70846         and lib_LTLIBRARIES like the other lib_* variables.
70847
70848 2006-08-22  Bruno Haible  <bruno@clisp.org>
70849
70850         * build-aux/x-to-1.in: New file, from GNU gettext.
70851
70852 2006-08-22  Bruno Haible  <bruno@clisp.org>
70853
70854         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70855         <utmpx.h> exists.
70856
70857 2006-08-22  Bruno Haible  <bruno@clisp.org>
70858
70859         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70860         <utmpx.h> exists.
70861
70862 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70863
70864         BeOS portability.
70865         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70866         exist.
70867         Problem reported by Bruno Haible.
70868
70869 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70870
70871         Avoid the need for AC_LIBSOURCES in m4 macros.
70872         * modules/acl (EXTRA_DIST): Add acl.h.
70873         * modules/argmatch (Files): Add m4/argmatch.m4.
70874         (configure.ac): Add gl_ARGMATCH.
70875         (EXTRA_DIST): Renamed from lib_SOURCES, for
70876         consistency with the other modules.  Remove argmatch.c.
70877         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70878         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70879         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70880         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70881         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70882         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70883         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70884         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70885         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70886         * modules/closeout (EXTRA_DIST): Add closeout.h.
70887         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70888         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70889         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70890         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70891         dirname.h; remove basename.c and stripslash.c.
70892         * modules/exclude (EXTRA_DIST): Add exclude.h.
70893         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70894         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70895         * modules/file-type (EXTRA_DIST): Add file-type.h.
70896         * modules/filemode (EXTRA_DIST): Add filemode.h.
70897         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70898         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70899         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70900         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70901         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70902         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70903         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70904         * modules/getdate (EXTRA_DIST): Add getdate.c.
70905         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70906         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70907         * modules/getpass (EXTRA_DIST): Add getpass.h.
70908         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70909         * modules/group-member (EXTRA_DIST): Add group-member.h.
70910         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70911         * modules/hash (EXTRA_DIST): Add hash.h.
70912         * modules/human (EXTRA_DIST): Add human.h.
70913         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70914         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70915         * modules/lchown (EXTRA_DIST): Add lchown.h.
70916         * modules/long-options (EXTRA_DIST): Add long-options.h.
70917         * modules/lstat (EXTRA_DIST): Add lstat.h.
70918         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70919         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70920         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70921         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70922         * modules/memxor (EXTRA_DIST): Add memxor.h.
70923         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70924         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70925         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70926         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70927         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70928         * modules/physmem (EXTRA_DIST): Add physmem.h.
70929         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70930         * modules/posixver (EXTRA_DIST): Add posixver.h.
70931         * modules/quote (EXTRA_DIST): Add quote.h.
70932         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70933         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70934         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70935         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70936         regex_internal.h regexec.c.
70937         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70938         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70939         * modules/same (EXTRA_DIST): Add same.h.
70940         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70941         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70942         * modules/savedir (EXTRA_DIST): Add savedir.h.
70943         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70944         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70945         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70946         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70947         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70948         * modules/strdup (EXTRA_DIST): Add strdup.h.
70949         * modules/strftime (EXTRA_DIST): Add strftime.h.
70950         * modules/strndup (EXTRA_DIST): Add strndup.h.
70951         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70952         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70953         * modules/time_r (EXTRA_DIST): Add time_r.h.
70954         * modules/timespec (EXTRA_DIST): Add timespec.h.
70955         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70956         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70957         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70958         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70959         * modules/userspec (EXTRA_DIST): Add userspec.h.
70960         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70961         * modules/utimens (EXTRA_DIST): Add utimens.h.
70962         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70963         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70964         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70965         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70966         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70967         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70968         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70969         * modules/yesno (EXTRA_DIST): Add yesno.h.
70970
70971 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70972
70973         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70974
70975         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70976         * m4/dev-ino.m4, same-inode.m4: Remove.
70977
70978         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70979         * m4/acl.m4 (AC_FUNC_ACL):
70980         * m4/backupfile.m4 (gl_BACKUPFILE):
70981         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70982         * m4/canon-host.m4 (gl_CANON_HOST):
70983         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70984         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70985         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70986         * m4/cloexec.m4 (gl_CLOEXEC):
70987         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70988         * m4/closeout.m4 (gl_CLOSEOUT):
70989         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70990         * m4/dirname.m4 (gl_DIRNAME):
70991         * m4/exclude.m4 (gl_EXCLUDE):
70992         * m4/exitfail.m4 (gl_EXITFAIL):
70993         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70994         * m4/file-type.m4 (gl_FILE_TYPE):
70995         * m4/filemode.m4 (gl_FILEMODE):
70996         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70997         * m4/fpending.m4 (gl_FUNC_FPENDING):
70998         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70999         * m4/fts.m4 (gl_FUNC_FTS):
71000         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71001         * m4/getdate.m4 (gl_GETDATE):
71002         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71003         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71004         * m4/getpass.m4 (gl_FUNC_GETPASS):
71005         * m4/gettime.m4 (gl_GETTIME):
71006         * m4/getugroups.m4 (gl_GETUGROUPS):
71007         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71008         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71009         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71010         * m4/hash.m4 (gl_HASH):
71011         * m4/idcache.m4 (gl_IDCACHE):
71012         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71013         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71014         * m4/long-options.m4 (gl_LONG_OPTIONS):
71015         * m4/lstat.m4 (gl_FUNC_LSTAT):
71016         * m4/md5.m4 (gl_MD5):
71017         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71018         * m4/memcoll.m4 (gl_MEMCOLL):
71019         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71020         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71021         * m4/memxor.m4 (gl_MEMXOR):
71022         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71023         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71024         * m4/modechange.m4 (gl_MODECHANGE):
71025         * m4/mountlist.m4 (gl_MOUNTLIST):
71026         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71027         * m4/openat.m4 (gl_FUNC_OPENAT):
71028         * m4/pathmax.m4 (gl_PATHMAX):
71029         * m4/physmem.m4 (gl_PHYSMEM):
71030         * m4/posixtm.m4 (gl_POSIXTM):
71031         * m4/posixver.m4 (gl_POSIXVER):
71032         * m4/quote.m4 (gl_QUOTE):
71033         * m4/quotearg.m4 (gl_QUOTEARG):
71034         * m4/readtokens.m4 (gl_READTOKENS):
71035         * m4/readutmp.m4 (gl_READUTMP):
71036         * m4/regex.m4 (gl_REGEX):
71037         * m4/safe-read.m4 (gl_SAFE_READ):
71038         * m4/safe-write.m4 (gl_SAFE_WRITE):
71039         * m4/same.m4 (gl_SAME):
71040         * m4/save-cwd.m4 (gl_SAVE_CWD):
71041         * m4/savedir.m4 (gl_SAVEDIR):
71042         * m4/settime.m4 (gl_SETTIME):
71043         * m4/sha1.m4 (gl_SHA1):
71044         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71045         * m4/stat-macros.m4 (gl_STAT_MACROS):
71046         * m4/stat-time.m4 (gl_STAT_TIME):
71047         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71048         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71049         * m4/strdup.m4 (gl_FUNC_STRDUP):
71050         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71051         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71052         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71053         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71054         * m4/time_r.m4 (gl_TIME_R):
71055         * m4/timespec.m4 (gl_TIMESPEC):
71056         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71057         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71058         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71059         * m4/userspec.m4 (gl_USERSPEC):
71060         * m4/utimecmp.m4 (gl_UTIMECMP):
71061         * m4/utimens.m4 (gl_UTIMENS):
71062         * m4/xalloc.m4 (gl_XALLOC):
71063         * m4/xgetcwd.m4 (gl_XGETCWD):
71064         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71065         * m4/xreadlink.m4 (gl_XREADLINK):
71066         * m4/xstrtod.m4 (gl_XSTRTOD):
71067         * m4/yesno.m4 (gl_YESNO):
71068         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71069         to get the necessary .h files and whatnot.
71070
71071 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71072             Bruno Haible  <bruno@clisp.org>
71073
71074         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71075         /bin/sh understanding of '!' conditional negation.
71076
71077 2006-08-21  Jim Meyering  <jim@meyering.net>
71078
71079         * modules/openat (Depends-on): Really alphabetize.
71080
71081         * modules/acl (Depends-on): Add error and quote.
71082
71083         * check-module (find_included_lib_files): Add at-func.c to the
71084         ok-to-include-more-than-once white list.
71085
71086         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71087
71088 2006-08-21  Bruno Haible  <bruno@clisp.org>
71089
71090         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71091         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71092         Reported by Martin Lambers <marlam@marlam.de>.
71093
71094 2006-08-21  Bruno Haible  <bruno@clisp.org>
71095
71096         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71097         specify an installation location, don't emit a noinst_LIBRARIES or
71098         noinst_LTLIBRARIES assignment.
71099
71100 2006-08-21  Bruno Haible  <bruno@clisp.org>
71101
71102         BeOS portability.
71103         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71104         BeOS has mbrtowc() but no <wctype.h>.
71105
71106 2006-08-21  Bruno Haible  <bruno@clisp.org>
71107
71108         BeOS portability.
71109         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71110         exist.
71111
71112 2006-08-21  Bruno Haible  <bruno@clisp.org>
71113
71114         BeOS portability.
71115         * lib/mbchar.h: Include <wctype.h> only if it exists.
71116
71117 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71118
71119         Remove files that are no longer needed by their respective modules.
71120         * m4/obstack.m4: Remove.
71121         * m4/strerror_r.m4: Remove.
71122         * m4/uint32_t.m4: Remove.
71123         * m4/uintptr_t.m4: Remove.
71124         * m4/ullong_max.m4: Remove.
71125         * m4/xstrtoimax.m4: Remove.
71126         * m4/xstrtoumax.m4: Remove.
71127
71128         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71129         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71130         dependencies now capture this.
71131
71132         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71133         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71134         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71135         * m4/human.m4 (gl_HUMAN): Likewise.
71136         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71137         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71138
71139         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71140
71141         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71142         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71143         stdint.
71144         * m4/human.m4 (gl_HUMAN): Likewise.
71145         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71146         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71147         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71148         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71149         * m4/xstrtol (gl_XSTRTOL): Likewise.
71150
71151         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71152         AC_TYPE_LONG_LONG_INT.
71153         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71154         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71155         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71156         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71157
71158         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71159         on stdbool.
71160
71161         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71162         (gl_PREREQ_XSTRTOUL): Remove.
71163
71164         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71165
71166         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71167         mode.
71168
71169 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71170
71171         Add and change modules to make it easier for coreutils to use
71172         gnulib-tool.
71173         * modules/backupfile (Files): Remove m4/d-ino.m4.
71174         (Depends-on): Add d-ino.
71175         * modules/cycle-check (Depends-on): Add stdint.
71176         (lib_SOURCES): Add cycle-check.h.
71177         * modules/d-ino: New module.
71178         * modules/d-type: New module.
71179         * modules/error (Files): Remove m4/strerror_r.m4.
71180         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71181         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71182         m4/inttypes_h.m4, m4/uintmax_t.m4.
71183         (Depends-on): Add stdint.
71184         (lib_SOURCES): Add fsusage.h.
71185         * modules/getcwd (Files): Remove d-ino.m4.
71186         (Depends-on): Add d-ino.
71187         * modules/getndelim2 (Depends-on): Add stdint.
71188         * modules/glob (Files): Remove m4/d-type.m4.
71189         (Depends-on): Add d-type.
71190         * modules/host-os: New module.
71191         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71192         m4/inttypes_h.m4, m4/uintmax_t.m4.
71193         * Depends-on: Add stdint.
71194         (lib_SOURCES): Add human.h.
71195         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71196         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71197         m4/uintmax_t.m4, m4/ulonglong.m4.
71198         (Depends-on): Add stdint.
71199         (EXTRA_DIST): Add inttostr.h.
71200         * modules/lchmod: New module.
71201         * modules/link-follow: New module.
71202         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71203         (Depends-on): Add lchmod.
71204         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71205         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71206         (Depends-on): Add stdint.
71207         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71208         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71209         (Depends-on): Add stdint.
71210         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71211         * modules/perl: New module.
71212         * modules/regex (Depends-on): Add stdint.
71213         * modules/rmdir-errno: New module.
71214         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71215         m4/intmax_t.m4.
71216         (Depends-on): Add stdint.
71217         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71218         m4/uintmax_t.m4.
71219         (Depends-on): Add stdint.
71220         * modules/unlink-busy: New module.
71221         * modules/utimecmp (Depends-on): Add stdint.
71222         * modules/uptime: New module.
71223         * modules/winsz-ioctl: New module.
71224         * modules/winsz-termios: New module.
71225         * modules/xnanosleep (Depends-on): Add nanosleep.
71226         * modules/ullong_max: Remove.
71227         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71228         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71229         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71230         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71231         (Depends-on): Add inttypes.
71232         (lib_SOURCES): Add xstrtol.h.
71233         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71234         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71235         * MODULES.html.sh: Move 'assert' into the assert section.
71236         Move 'dummy' into the linking section.
71237         Remove ullong_max.
71238         Add section for compatibility checks for POSIX:2001 functions,
71239         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
71240         winsz-ioctl, and winsz-termios into it.
71241         Add lchmod.
71242         Add top-level Misc section and put host-os, perl, and uptime
71243         into it.
71244
71245 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
71248         now assume the stdint module.  Do not include inttypes.h.
71249         * lib/fsusage.h: Likewise.
71250         * lib/getndelim2.c: Likewise.
71251         * lib/human.h: Likewise.
71252         * lib/inttostr.h: Likewise.
71253         * lib/obstack.c: Likewise.
71254         * lib/regex_internal.h: Likewise.
71255         * lib/tempname.c: Likewise.
71256         * lib/utimecmp.c: Likewise.
71257         * lib/xstrtol.h: Likewise.
71258
71259         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
71260
71261         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
71262         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
71263         * lib/xtime.h: Likewise.
71264
71265 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71266
71267         * modules/openat (Files): Add lib/fchmodat.c.
71268         Fixes problem reported by Jay Youngman.
71269
71270 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71271
71272         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
71273         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
71274
71275 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
71276             Bruno Haible  <bruno@clisp.org>
71277
71278         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
71279         and is a script that invokes bison. Tighten the code. Add comments.
71280
71281 2006-08-18  Jim Meyering  <jim@meyering.net>
71282
71283         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
71284         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
71285         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
71286         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
71287
71288 2006-08-18  Bruno Haible  <bruno@clisp.org>
71289
71290         * modules/bison-i18n: New file.
71291         * MODULES.html.sh (Internationalization functions): Add it.
71292
71293 2006-08-18  Bruno Haible  <bruno@clisp.org>
71294
71295         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
71296         sys/statvfs.h. When getmntinfo was found, check its declaration and
71297         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
71298
71299 2006-08-18  Bruno Haible  <bruno@clisp.org>
71300
71301         * m4/bison-i18n.m4: New file, from bison.
71302
71303 2006-08-18  Bruno Haible  <bruno@clisp.org>
71304
71305         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
71306         (ME_DUMMY): Treat "kernfs" as a dummy.
71307         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
71308
71309 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71310
71311         Update from coreutils.
71312
71313         2006-08-15  Jim Meyering  <jim@meyering.net>
71314
71315         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
71316
71317         2006-01-17  Jim Meyering  <jim@meyering.net>
71318
71319         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
71320
71321         2006-01-11  Jim Meyering  <jim@meyering.net>
71322
71323         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
71324         Check for the lchmod function.
71325
71326 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71327
71328         Update from coreutils.
71329
71330         * lib/__fpending.h: Add copyright notice.
71331         * lib/fprintftime.h: Likewise.
71332         * lib/savedir.c: Use (C) in copyright notice.
71333         * lib/savedir.h: Likewise.
71334
71335         2006-08-15  Jim Meyering  <jim@meyering.net>
71336
71337         * lib/at-func.c: New file, with the logic of all emulated at-functions.
71338         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
71339         in support of the EXPECTED_ERRNO macro.
71340         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
71341         definitions.  Instead, define the appropriate symbols and include
71342         "at-func.c".
71343         * lib/mkdirat.c (mkdirat): Likewise.
71344         * lib/fchmodat.c (fchmodat): Likewise.
71345         (ENOSYS): Remove definition.
71346         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
71347         it.  Don't include "unistd--.h" -- it wasn't ever used.
71348
71349         2006-01-17  Jim Meyering  <jim@meyering.net>
71350
71351         Rewrite fts.c not to change the current working directory,
71352         by using openat, fstatat, fdopendir, etc..
71353
71354         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
71355         (HAVE_OPENAT_SUPPORT): Define.
71356         [_LIBC] (fchdir): Don't undef or define; no longer used.
71357         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
71358         Now, this `function' always succeeds, and consumes its file descriptor
71359         parameter -- so callers must not close such FDs.  Update callers.
71360         (diropen_fd, opendirat, cwd_advance_fd): New functions.
71361         (diropen): Add parameter, SP.  Adjust all callers.
71362         Implement using diropen_fd, rather than open.
71363         (fts_open): Initialize new member, fts_cwd_fd.
71364         Remove fts_rft-setting code.
71365         (fts_close): Close fts_cwd_fd, if necessary.
71366         (__opendir2): Define in terms of opendir or opendirat,
71367         depending on whether the FST_NOCHDIR flag is set.
71368         (fts_build): Since fts_safe_changedir consumes its FD, and since
71369         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71370         and close the dup'd file descriptor upon failure.
71371         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71372         (fts_safe_changedir): Tweak semantics to reflect that this function
71373         now calls cwd_advance_fd and hence consumes its FD argument.
71374         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71375         [struct FTS] (fts_rft): Remove now-unused member.
71376         [struct FTS] (fts_cycle.state): Improve comment.
71377
71378         * lib/openat.c (openat_needs_fchdir): New function.
71379         * lib/openat.h (openat_needs_fchdir): Declare it.
71380
71381 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71382
71383         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71384         Problem and fix reported by Pádraig Brady in
71385         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
71386
71387 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71388
71389         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71390
71391 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71392
71393         * lib/memcoll.c (memcoll): Optimize for the common case where the
71394         arguments are bytewise equal.
71395
71396 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71397
71398         * doc/regexprops-generic.texi: Add a copyright notice.
71399
71400 2006-08-15  Bruno Haible  <bruno@clisp.org>
71401
71402         * modules/tmpdir (License): Change to LGPL.
71403
71404 2006-08-15  Bruno Haible  <bruno@clisp.org>
71405
71406         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71407         module.
71408
71409 2006-08-14  Simon Josefsson  <jas@extundo.com>
71410
71411         * config/srclist.txt: Add gnupload.
71412
71413 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71414
71415         Change copyright notice from LGPL 2 to GPL 2, since that's the
71416         standard form used in the gnulib repository.
71417         * tests/test-lock.c: Likewise.
71418         * tests/test-stdint.c: Likewise.
71419         * tests/test-tls.c: Likewise.
71420
71421         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71422         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71423         Add copyright notice.
71424
71425         * check-module: Add copyright notice.  Output a copyright
71426         notice if "--version" is specified.
71427         * modules/COPYING: New file.
71428         * tests/test-getaddrinfo.c: Add copyright notice.
71429         * tests/test-verify.c: Likewise.
71430
71431 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71432
71433         Change copyright notice from LGPL 2 to GPL 2, since that's the
71434         standard form used in the gnulib repository.
71435         * lib/lock.c: LGPL -> GPL.
71436         * lib/lock.h: Likewise.
71437         * lib/strnlen1.c: Likewise.
71438         * lib/strnlen1.h: Likewise.
71439         * lib/tls.c: Likewise.
71440         * lib/tls.h: Likewise.
71441         * lib/tmpdir.c: Likewise.
71442
71443         * lib/TODO: Remove; this belongs only in coreutils.
71444
71445 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71446
71447         Add copyright notices to long-enough files that lack them, since
71448         otherwise the files aren't clearly free.  Use the same notice that
71449         getdate.texi already uses.
71450         * doc/alloca-opt.texi: Add copyright notice.
71451         * doc/alloca.texi: Likewise.
71452         * doc/ctime.texi: Likewise.
71453         * doc/functions.texi: Likewise.
71454         * doc/gcd.texi: Likewise.
71455         * doc/gnulib-tool.texi: Likewise.
71456         * doc/inet_ntoa.texi: Likewise.
71457         * doc/visibility.texi: Likewise.
71458
71459         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71460         * doc/quote.texi: Add copyright notice.
71461
71462         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71463         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71464         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71465         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71466         is now obsolete, and give a pointer to the Sun list.
71467         Add copyright notice.
71468
71469 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71470
71471         * config/srclistvars.sh: Add copyright notice.
71472
71473 2006-08-14  Eric Blake  <ebb9@byu.net>
71474
71475         Import the following change from libc:
71476
71477         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71478
71479         Upstream bug 2997.
71480         * lib/misc/error.c: Add space between program name and message if file
71481         name is missing.
71482
71483 2006-08-12  Karl Berry  <karl@gnu.org>
71484
71485         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71486         remove, these originate in gnulib now.
71487
71488 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71489
71490         * doc/Makefile (standards.info standards.html standards.dvi):
71491         Also depend on make-stds.texi.
71492
71493 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71494
71495         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71496         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71497
71498         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71499         in wchar_t.  Problem reported by Eric Blake.
71500
71501         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71502         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71503         Also, help the compiler to keep LEN in a register.
71504
71505 2006-08-11  Eric Blake  <ebb9@byu.net>
71506
71507         * users.txt: Sort.  Add tar.
71508
71509 2006-08-11  Bruno Haible  <bruno@clisp.org>
71510
71511         * users.txt: New file.
71512
71513 2006-08-11  Bruno Haible  <bruno@clisp.org>
71514
71515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71516         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71517
71518 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71519
71520         * modules/snprintf (Depends-on): Remove minmax.
71521         (Maintainer): Add self and Bruno.
71522
71523 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71524
71525         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71526         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71527         (EOVERFLOW): Define if the system does not.
71528         Do not include "minmax.h"; it wasn't used.
71529         (snprintf): Don't assume size_t promotes to an unsigned type.
71530         Fix bug when generated string was too long for the buffer: the
71531         buffer's contents are supposed to be the initial prefix of the
71532         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71533         exceeds INT_MAX; do the check ourselves.
71534
71535         Import the following changes from libc:
71536
71537         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71538
71539         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71540         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71541         set wc to the byte which couldn't be converted.
71542         (re_string_reconstruct): Don't clear valid_raw_len before calling
71543         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71544         tip_context using re_string_context_at.
71545
71546         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71547
71548         * lib/posix/regex.h: g++ still cannot handled [restrict].
71549
71550         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71551
71552         * lib/posix/regex.h: Remove special handling for VMS.
71553
71554 2006-08-10  Jim Meyering  <jim@meyering.net>
71555
71556         * modules/same-inode: New module.
71557         * modules/dev-ino: New module.
71558         * modules/cycle-check: Depend on these modules, rather than simply
71559         including their .h files.
71560         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71561         required via m4/cycle-check.m4.
71562         * modules/same: Depend on new same-inode module, rather than
71563         including same-inode.h.
71564         * modules/chdir-safer: New file.
71565
71566         * modules/chown (Depends-on): Add stat-macros.
71567
71568 2006-08-10  Jim Meyering  <jim@meyering.net>
71569
71570         * m4/cycle-check.m4: New file.
71571         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71572         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71573
71574 2006-08-10  Eric Blake  <ebb9@byu.net>
71575
71576         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71577         in from original proposal.
71578
71579 2006-08-10  Eric Blake  <ebb9@byu.net>
71580         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71581
71582         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71583         namespace.
71584
71585 2006-08-10  Bruno Haible  <bruno@clisp.org>
71586
71587         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71588         as well.
71589
71590 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         Sync from coreutils.
71593
71594         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71595
71596         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71597         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71598
71599 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         * modules/restrict: Remove; no longer needed now that we assume
71602         Autoconf 2.59 or later.
71603         * MODULES.html.sh: Remove 'restrict'.
71604         * modules/argp (Depends-on): Remove 'restrict'.
71605         * modules/base64 (Depends-on): Likewise.
71606         * modules/gc (Depends-on): Likewise.
71607         * modules/getaddrinfo (Depends-on): Likewise.
71608         * modules/glob (Depends-on): Likewise.
71609         * modules/inet_ntop (Depends-on): Likewise.
71610         * modules/inet_pton (Depends-on): Likewise.
71611         * modules/memxor (Depends-on): Likewise.
71612         * modules/regex (Depends-on): Likewise.
71613         * modules/strtok_r (Depends-on): Likewise.
71614         * modules/time_r (Depends-on): Likewise.
71615
71616 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71617
71618         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71619         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71620         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71621         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71622         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71623         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71624         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71625         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71626
71627         Merge from coreutils.
71628         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71629         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71630         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71631         * m4/time_r.m4 (gl_TIME_R): Likewise.
71632
71633 2006-08-09  Karl Berry  <karl@gnu.org>
71634
71635         * config/srclist.txt: no more gettext-tools, per Bruno.
71636
71637 2006-08-08  Eric Blake  <ebb9@byu.net>
71638
71639         * modules/verror: New module.
71640         * MODULES.html.sh: Document it.
71641
71642 2006-08-08  Eric Blake  <ebb9@byu.net>
71643
71644         * lib/verror.h, lib/verror.c: New files.
71645
71646 2006-08-08  Eric Blake  <ebb9@byu.net>
71647
71648         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71649         verror_at_line output complies with GNU Coding Standards even when
71650         file is NULL.
71651
71652 2006-08-07  Bruno Haible  <bruno@clisp.org>
71653
71654         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71655         versions of AIX.
71656         Reported by Ralf Wildenhues.
71657
71658 2006-08-07  Bruno Haible  <bruno@clisp.org>
71659
71660         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71661         in an AC_DEFUN. Needed so that the autoconf snippets can use
71662         AC_REQUIRE.
71663
71664 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71665
71666         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71667         Initialize pkgdata_DATA.
71668         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71669         overriding it.
71670
71671 2006-08-06  Eric Blake  <ebb9@byu.net>
71672
71673         * lib/error.h: Fold in some upstream changes from glibc.
71674         * lib/error.c: Likewise.
71675
71676 2006-08-04  Bruno Haible  <bruno@clisp.org>
71677
71678         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71679         Make the mostlyclean-local rule depend on mostlyclean-generic.
71680         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71681
71682 2006-07-31  Bruno Haible  <bruno@clisp.org>
71683
71684         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71685         <stdlib.h>, <string.h>.
71686
71687 2006-07-30  Bruno Haible  <bruno@clisp.org>
71688
71689         * modules/readlink (License): Change to LGPL.
71690
71691 2006-07-30  Bruno Haible  <bruno@clisp.org>
71692
71693         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71694         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71695         set PKGDATADIR to point to it.
71696
71697 2006-07-30  Bruno Haible  <bruno@clisp.org>
71698
71699         * modules/csharpexec (configure.ac): Comment out macro invocation.
71700         * modules/javaexec (configure.ac): Likewise.
71701         * modules/javacomp-script (configure.ac): Likewise.
71702
71703         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71704
71705 2006-07-30  Bruno Haible  <bruno@clisp.org>
71706
71707         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71708         linked-list.
71709
71710 2006-07-30  Bruno Haible  <bruno@clisp.org>
71711
71712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71713
71714 2006-07-30  Bruno Haible  <bruno@clisp.org>
71715
71716         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71717         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71718         get removed.
71719
71720 2006-07-29  Bruno Haible  <bruno@clisp.org>
71721
71722         Make it possible for gnulib-tool to work with locally modified or
71723         augmented gnulib repositories.
71724         * gnulib-tool (func_usage): Document --local-dir option.
71725         (local_gnulib_dir): New variable.
71726         Handle --local-dir option.
71727         (func_lookup_file): New function.
71728         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71729         (func_get_description, func_get_filelist, func_get_description,
71730         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71731         func_get_automake_snippet, func_get_include_directive,
71732         func_get_license, func_get_maintainer): Use func_lookup_file.
71733         (func_import, func_create_testdir): Use func_lookup_file.
71734
71735 2006-07-29  Bruno Haible  <bruno@clisp.org>
71736
71737         * modules/setenv (Depends-on): Add unistd.
71738
71739 2006-07-29  Bruno Haible  <bruno@clisp.org>
71740
71741         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71742
71743 2006-07-29  Bruno Haible  <bruno@clisp.org>
71744
71745         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71746
71747 2006-07-29  Bruno Haible  <bruno@clisp.org>
71748
71749         * gnulib-tool (import, update): If there is no Makefile.am, look at
71750         aclocal.m4, instead of bailing out.
71751
71752 2006-07-29  Bruno Haible  <bruno@clisp.org>
71753
71754         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71755         Categorize the options by when they are useful.
71756
71757 2006-07-29  Bruno Haible  <bruno@clisp.org>
71758
71759         * gnulib-tool (func_usage): Document option --no-libtool.
71760         Handle option --no-libtool.
71761         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71762         for changed semantics of $libtool variable.
71763         (func_import): Likewise. If libtool is not used, show this through
71764         an option --no-libtool.
71765         (func_create_testdir): Update.
71766
71767 2006-07-29  Bruno Haible  <bruno@clisp.org>
71768
71769         * gnulib-tool (func_import): Extend error message about missing
71770         --doc-base.
71771
71772 2006-07-29  Bruno Haible  <bruno@clisp.org>
71773
71774         * gnulib-tool (func_import): Don't create the $docbase directory if
71775         there is no file to store there.
71776
71777 2006-07-29  Bruno Haible  <bruno@clisp.org>
71778
71779         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71780         relevant, look for configure.ac there, not in the current directory.
71781         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71782
71783 2006-07-29  Bruno Haible  <bruno@clisp.org>
71784
71785         * gnulib-tool (SORT): New variable.
71786         (func_usage): Undocument --assume-autoconf option.
71787         Remove --assume-autoconf option handling.
71788         (autoconf_minversion): Determine from the contents of configure.ac.
71789         (func_import): Remove autoconf_minversion handling.
71790         Suggested by Eric Blake.
71791
71792 2006-07-29  Bruno Haible  <bruno@clisp.org>
71793
71794         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71795
71796 2006-07-29  Bruno Haible  <bruno@clisp.org>
71797
71798         * config/srclist.txt (*setenv.[ch]): Remove rules.
71799
71800 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71801
71802         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71803
71804 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71805
71806         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71807         arpa/inet.h.
71808
71809 2006-07-28  Simon Josefsson  <jas@extundo.com>
71810
71811         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71812         * modules/inet_pton (Depends-on): Likewise.
71813
71814 2006-07-28  Simon Josefsson  <jas@extundo.com>
71815
71816         * m4/netinet_in_h.m4: New file.
71817
71818 2006-07-28  Simon Josefsson  <jas@extundo.com>
71819
71820         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71821         #include's.
71822
71823 2006-07-28  Simon Josefsson  <jas@extundo.com>
71824
71825         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71826         #include's.
71827
71828 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71829
71830         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71831         setgid on directories only if they set these bits.
71832         * lib/modechange.h: Remove obsolete comment about masks.
71833
71834 2006-07-28  Eric Blake  <ebb9@byu.net>
71835
71836         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71837         macro expansion.
71838
71839 2006-07-28  Bruno Haible  <bruno@clisp.org>
71840
71841         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71842
71843 2006-07-28  Bruno Haible  <bruno@clisp.org>
71844
71845         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71846
71847 2006-07-28  Bruno Haible  <bruno@clisp.org>
71848
71849         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71850         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71851         Define fallbacks.
71852         Avoids link error on FreeBSD 4.x.
71853         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71854
71855         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71856         encoding.
71857         * lib/mbswidth.c (iswcntrl): Likewise.
71858
71859 2006-07-27  Bruno Haible  <bruno@clisp.org>
71860
71861         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71862         test.
71863
71864 2006-07-27  Bruno Haible  <bruno@clisp.org>
71865
71866         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71867         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71868         defined.
71869
71870 2006-07-26  Eric Blake  <ebb9@byu.net>
71871
71872         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71873
71874 2006-07-26  Eric Blake  <ebb9@byu.net>
71875
71876         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71877         like mingw that lack mkstemp.
71878         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71879         avoid compilation warning on mingw.
71880
71881 2006-07-26  Bruno Haible  <bruno@clisp.org>
71882
71883         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71884         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71885         INT_FAST*_MIN, INTPTR_MIN.
71886
71887 2006-07-25  Bruno Haible  <bruno@clisp.org>
71888
71889         * modules/version-etc (Depends-on): Add stdarg.
71890
71891 2006-07-25  Bruno Haible  <bruno@clisp.org>
71892
71893         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71894         complex commands.
71895
71896 2006-07-25  Bruno Haible  <bruno@clisp.org>
71897
71898         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71899         defined in <stdarg.h> or config.h.
71900
71901 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71902
71903         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71904         (gl_STDIO_SAFER): Remove.
71905
71906 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71907
71908         * MODULES.html.sh (File stream based Input/Output):
71909         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71910         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71911         * modules/fopen-safer, modules/tmpfile-safer: New files.
71912         * modules/stdio-safer: Remove.
71913
71914 2006-07-24  Bruno Haible  <bruno@clisp.org>
71915
71916         * modules/tmpdir: New file.
71917         * MODULES.html.sh (File system functions): Add it.
71918
71919 2006-07-24  Bruno Haible  <bruno@clisp.org>
71920
71921         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71922         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71923
71924 2006-07-24  Bruno Haible  <bruno@clisp.org>
71925
71926         * modules/clean-temp: New file.
71927
71928 2006-07-24  Bruno Haible  <bruno@clisp.org>
71929
71930         * m4/tmpdir.m4: New file, from GNU gettext.
71931
71932 2006-07-24  Bruno Haible  <bruno@clisp.org>
71933
71934         * lib/tmpdir.h: New file, from GNU gettext.
71935         * lib/tmpdir.c: New file, from GNU gettext.
71936
71937 2006-07-24  Bruno Haible  <bruno@clisp.org>
71938
71939         * lib/clean-temp.h: New file, from GNU gettext.
71940         * lib/clean-temp.c: New file, from GNU gettext.
71941
71942 2006-07-23  Eric Blake  <ebb9@byu.net>
71943
71944         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71945         (Depends-on): Add binary-io.
71946
71947 2006-07-23  Eric Blake  <ebb9@byu.net>
71948
71949         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71950
71951 2006-07-23  Eric Blake  <ebb9@byu.net>
71952
71953         * lib/tmpfile-safer.c: New file.
71954         * lib/stdio-safer.h (fopen_safer): Add prototype.
71955         * lib/stdio--.h (tmpfile): Make safer.
71956
71957 2006-07-23  Bruno Haible  <bruno@clisp.org>
71958
71959         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71960         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71961         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71962         gl_linked_remove_at): Use it.
71963
71964 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71965         and Simon Josefsson <jas@extundo.com>
71966
71967         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71968
71969         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71970
71971 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71972
71973         * modules/close-stream: New file.
71974         * modules/closeout (Description): Make it clear that it exits
71975         with a diagnostic on error.
71976         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71977         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71978
71979 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * m4/close-stream.m4: New file.
71982
71983 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71984
71985         * lib/close-stream.c, lib/close-stream.h: New files.
71986
71987 2006-07-22  Bruno Haible  <bruno@clisp.org>
71988
71989         Merge from GNU gettext 0.15.
71990
71991         2006-05-01  Bruno Haible  <bruno@clisp.org>
71992
71993                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71994
71995         2006-07-22  Bruno Haible  <bruno@clisp.org>
71996
71997                 * modules/javaversion: New file.
71998                 * MODULES.html.sh (Java): Add javaversion.
71999
72000         2006-03-12  Bruno Haible  <bruno@clisp.org>
72001
72002                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72003
72004         2005-12-04  Bruno Haible  <bruno@clisp.org>
72005
72006                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72007                 (untested).
72008
72009         2006-06-21  Bruno Haible  <bruno@clisp.org>
72010
72011                 Avoid warnings from recent versions of mcs.
72012                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72013                 -o, -L, -r any more. Use options documented since mcs-1.0
72014                 instead. Similarly for -g.
72015
72016         2005-12-04  Bruno Haible  <bruno@clisp.org>
72017
72018                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72019                 .resources, not .resource.
72020
72021         2005-07-09  Bruno Haible  <bruno@clisp.org>
72022
72023                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72024                 add a .dll suffix.
72025                 Reported by Mark Junker <mjscod@gmx.de>.
72026
72027         2006-07-22  Bruno Haible  <bruno@clisp.org>
72028
72029                 * modules/gettext: Upgrade to gettext-0.15.
72030                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72031                 m4/visibility.m4.
72032                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72033
72034 2006-07-22  Bruno Haible  <bruno@clisp.org>
72035
72036         Merge from GNU gettext 0.15.
72037
72038         2006-03-25  Bruno Haible  <bruno@clisp.org>
72039
72040                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72041
72042         2006-07-21  Bruno Haible  <bruno@clisp.org>
72043
72044                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72045                 "1.1".
72046
72047         2006-05-09  Bruno Haible  <bruno@clisp.org>
72048
72049                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72050                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72051                 for the conftestver execution.
72052
72053         2006-05-01  Bruno Haible  <bruno@clisp.org>
72054
72055                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72056                 optional target-version argument. Verify that the compiler
72057                 groks source of the specified source-version, or add -source
72058                 option as necessary. Verify that the compiler produces
72059                 bytecode in the specified target-version, or add -target and
72060                 -source options as necessary. Make the result of the test
72061                 available as variable CONF_JAVAC. Also log error output in
72062                 config.log.
72063
72064         2006-03-11  Bruno Haible  <bruno@clisp.org>
72065
72066                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72067
72068         2006-05-09  Bruno Haible  <bruno@clisp.org>
72069
72070                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72071                 CLASSPATH_SEPARATOR to a semicolon.
72072
72073         2006-03-12  Bruno Haible  <bruno@clisp.org>
72074
72075                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72076                 available as variable CONF_JAVA, for subsequent autoconf
72077                 tests. Also log error output in config.log.
72078
72079         2006-07-19  Bruno Haible  <bruno@clisp.org>
72080
72081                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72082                 that getline works on glibc2 systems. Needed to avoid trouble
72083                 in relocatable.c.
72084                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72085
72086         2005-12-04  Bruno Haible  <bruno@clisp.org>
72087
72088                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72089                 launcher (untested).
72090
72091         2005-12-04  Bruno Haible  <bruno@clisp.org>
72092
72093                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72094
72095         2006-07-22  Bruno Haible  <bruno@clisp.org>
72096
72097                 * gettext.m4: Update from GNU gettext-0.15.
72098                 * nls.m4: Likewise.
72099                 * po.m4: Likewise.
72100                 * inttypes-pri.m4: Likewise.
72101                 * inttypes-h.m4: Renamed from inttypes.m4.
72102                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72103
72104 2006-07-22  Bruno Haible  <bruno@clisp.org>
72105
72106         Merge from GNU gettext 0.15.
72107
72108         2005-07-05  Bruno Haible  <bruno@clisp.org>
72109
72110                 * printf-args.c (printf_fetchargs): Work around broken
72111                 definition of wint_t on mingw.
72112
72113         2005-02-12  Bruno Haible  <bruno@clisp.org>
72114
72115                 * xallocsa.h: Add extern "C" for C++.
72116
72117         2006-05-17  Bruno Haible  <bruno@clisp.org>
72118
72119                 Cygwin portability.
72120                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72121
72122         2006-04-30  Bruno Haible  <bruno@clisp.org>
72123
72124                 * progreloc.c: Include <mach-o/dyld.h> if available.
72125                 (find_executable): Use _NSGetExecutablePath when possible.
72126
72127         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72128
72129                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72130                 function.
72131
72132         2005-12-29  Bruno Haible  <bruno@clisp.org>
72133
72134                 * progreloc.c (set_program_name_and_installdir): Fix
72135                 compilation error.
72136
72137         2005-12-04  Bruno Haible  <bruno@clisp.org>
72138
72139                 Cygwin portability.
72140                 * progreloc.c: Include <windows.h> also on Cygwin.
72141                 (find_executable): Add support for Cygwin.
72142                 (set_program_name_and_installdir): Handle also platforms with
72143                 nonempty EXEEXT.
72144
72145         2006-07-11  Bruno Haible  <bruno@clisp.org>
72146
72147                 * javacomp.c: Fix a comment.
72148                 Reported by Jim Meyering.
72149
72150         2006-04-30  Bruno Haible  <bruno@clisp.org>
72151
72152                 * javacomp.h (compile_java_class): Add source_version,
72153                 target_version arguments.
72154                 * javacomp.c: Rewritten to choose only a compiler that
72155                 respects the specified source_version and target_version.
72156
72157         2006-06-27  Bruno Haible  <bruno@clisp.org>
72158
72159                 Assume correct S_ISDIR macro.
72160                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72161
72162         2006-07-22  Bruno Haible  <bruno@clisp.org>
72163
72164                 * javaversion.h: New file, from GNU gettext.
72165                 * javaversion.c: New file, from GNU gettext.
72166                 * javaversion.java: New file, from GNU gettext.
72167                 * javaversion.class: New file, from GNU gettext.
72168
72169         2006-05-17  Bruno Haible  <bruno@clisp.org>
72170
72171                 Cygwin portability.
72172                 * javaexec.c (execute_java_class): Test for jview program
72173                 also on Cygwin.
72174
72175         2006-04-09  Bruno Haible  <bruno@clisp.org>
72176
72177                 * fatal-signal.c: Don't include string.h.
72178                 (at_fatal_signal): Use a copying loop instead of memcpy.
72179
72180         2005-12-04  Bruno Haible  <bruno@clisp.org>
72181
72182                 * csharpexec.c: Add support for 'clix' launcher (untested).
72183                 (execute_csharp_using_sscli): New function.
72184                 (execute_csharp_program): Call it.
72185
72186         2006-06-21  Bruno Haible  <bruno@clisp.org>
72187
72188                 Avoid warnings from recent versions of mcs.
72189                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72190                 -o, -L, -r any more. Use options documented since mcs-1.0
72191                 instead. Similarly for -g.
72192
72193         2005-07-09  Bruno Haible  <bruno@clisp.org>
72194
72195                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72196                 add a .dll suffix.
72197                 Reported by Mark Junker <mjscod@gmx.de>.
72198
72199         2006-06-17  Bruno Haible  <bruno@clisp.org>
72200
72201                 * config.charset: Update for NetBSD 3.0.
72202
72203         2006-05-17  Bruno Haible  <bruno@clisp.org>
72204
72205                 Cygwin portability.
72206                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72207
72208         2006-05-16  Bruno Haible  <bruno@clisp.org>
72209
72210                 * localcharset.c [CYGWIN]: Include <windows.h>.
72211                 (get_charset_aliases): For Cygwin, return the same CPxxx
72212                 aliases list as under WIN32.
72213                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72214                 the environment variables. Fall back to GetACP().
72215
72216         2006-04-05  Bruno Haible  <bruno@clisp.org>
72217
72218                 * config.charset: Update Juan Manuel Guerrero's address.
72219
72220         2005-02-12  Bruno Haible  <bruno@clisp.org>
72221
72222                 * allocsa.h: Add extern "C" for C++.
72223
72224         2005-02-10  Bruno Haible  <bruno@clisp.org>
72225
72226                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72227                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72228
72229         2006-07-22  Bruno Haible  <bruno@clisp.org>
72230
72231                 * gettext.h: Update to GNU gettext-0.15.
72232
72233 2006-07-22  Bruno Haible  <bruno@clisp.org>
72234
72235         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
72236         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
72237         lib-prefix.m4, longdouble.m4, ssize_t.m4.
72238
72239 2006-07-21  Eric Blake  <ebb9@byu.net>
72240
72241         * modules/stdlib-safer: New file.
72242         * MODULES.html.sh (File stream based Input/Output): Add
72243         stdlib-safer.
72244
72245 2006-07-21  Eric Blake  <ebb9@byu.net>
72246
72247         * lib/stdlib-safer.h: New file from coreutils, required by
72248         stdlib--.h.
72249
72250 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
72251
72252         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
72253
72254 2006-07-20  Bruno Haible  <bruno@clisp.org>
72255
72256         * gnulib-tool: Recognize new option --assume-autoconf.
72257         (autoconf_minversion): New variable.
72258         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
72259
72260 2006-07-20  Bruno Haible  <bruno@clisp.org>
72261
72262         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
72263
72264 2006-07-19  Derek R. Price  <derek@ximbiot.com>
72265
72266         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
72267         Reindent and repaginate.
72268
72269 2006-07-19  Derek Price  <derek@ximbiot.com>
72270
72271         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
72272         Correct grammar.
72273
72274 2006-07-17  Bruno Haible  <bruno@clisp.org>
72275
72276         * modules/list: New file.
72277         * modules/array-list: New file.
72278         * modules/carray-list, modules/carray-list-tests: New files.
72279         * modules/linked-list, modules/linked-list-tests: New files.
72280         * modules/avltree-list, modules/avltree-list-tests: New files.
72281         * modules/rbtree-list, modules/rbtree-list-tests: New files.
72282         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
72283         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
72284         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
72285         * modules/oset: New file.
72286         * modules/array-oset: New file.
72287         * modules/avltree-oset, modules/avltree-oset-tests: New files.
72288         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
72289         * tests/test-carray_list.c: New file.
72290         * tests/test-linked_list.c: New file.
72291         * tests/test-avltree_list.c: New file.
72292         * tests/test-rbtree_list.c: New file.
72293         * tests/test-linkedhash_list.c: New file.
72294         * tests/test-avltreehash_list.c: New file.
72295         * tests/test-rbtreehash_list.c: New file.
72296         * tests/test-avltree_oset.c: New file.
72297         * tests/test-rbtree_oset.c: New file.
72298         * MODULES.html.sh (Container data structures): New section.
72299
72300 2006-07-17  Bruno Haible  <bruno@clisp.org>
72301
72302         * m4/gl_list.m4: New file.
72303
72304 2006-07-17  Bruno Haible  <bruno@clisp.org>
72305
72306         * lib/gl_list.h: New file.
72307         * lib/gl_list.c: New file.
72308         * lib/gl_array_list.h: New file.
72309         * lib/gl_array_list.c: New file.
72310         * lib/gl_carray_list.h: New file.
72311         * lib/gl_carray_list.c: New file.
72312         * lib/gl_linked_list.h: New file.
72313         * lib/gl_linked_list.c: New file.
72314         * lib/gl_anylinked_list1.h: New file.
72315         * lib/gl_anylinked_list2.h: New file.
72316         * lib/gl_avltree_list.h: New file.
72317         * lib/gl_avltree_list.c: New file.
72318         * lib/gl_anyavltree_list1.h: New file.
72319         * lib/gl_anyavltree_list2.h: New file.
72320         * lib/gl_rbtree_list.h: New file.
72321         * lib/gl_rbtree_list.c: New file.
72322         * lib/gl_anyrbtree_list1.h: New file.
72323         * lib/gl_anyrbtree_list2.h: New file.
72324         * lib/gl_anytree_list1.h: New file.
72325         * lib/gl_anytree_list2.h: New file.
72326         * lib/gl_linkedhash_list.h: New file.
72327         * lib/gl_linkedhash_list.c: New file.
72328         * lib/gl_anyhash_list1.h: New file.
72329         * lib/gl_anyhash_list2.h: New file.
72330         * lib/gl_avltreehash_list.h: New file.
72331         * lib/gl_avltreehash_list.c: New file.
72332         * lib/gl_rbtreehash_list.h: New file.
72333         * lib/gl_rbtreehash_list.c: New file.
72334         * lib/gl_anytreehash_list1.h: New file.
72335         * lib/gl_anytreehash_list2.h: New file.
72336
72337         * lib/gl_oset.h: New file.
72338         * lib/gl_oset.c: New file.
72339         * lib/gl_array_oset.h: New file.
72340         * lib/gl_array_oset.c: New file.
72341         * lib/gl_avltree_oset.h: New file.
72342         * lib/gl_avltree_oset.c: New file.
72343         * lib/gl_rbtree_oset.h: New file.
72344         * lib/gl_rbtree_oset.c: New file.
72345         * lib/gl_anytree_oset.h: New file.
72346
72347 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         * m4/mkancesdirs.m4: New file.
72350         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
72351         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
72352         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
72353         it.
72354
72355 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72356
72357         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
72358         * lib/mkancesdirs.h: New files.
72359         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
72360         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
72361         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
72362         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
72363         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
72364         callers changed.  Revamp internals significantly, by not
72365         attempting to create directories that are temporarily more
72366         permissive than the final results.  Do not attempt to use
72367         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72368         This removes some race conditions, fixes some bugs, and simplifies
72369         things.  Use new dirchownmod function to do owner and mode changes.
72370         * lib/mkdir-p.h: Likewise.
72371         * lib/modechange.c (octal_to_mode): New function.
72372         (struct mode_change): New member mentioned.
72373         (make_node_op_equals): New arg mentioned.  All callers changed.
72374         (mode_compile): Keep track of which mode bits the user has explicitly
72375         mentioned.
72376         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72377         New arg PMODE_BITS, to keep track of which mode bits the user
72378         mentioned; it treats S_ISUID and S_ISGID speciall.
72379         All callers changed.
72380         * lib/modechange.h: Likewise.
72381
72382 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72383
72384         * MODULES.html.sh: Add mkancestors.
72385         * modules/mkancesdirs: New module.
72386         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
72387         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
72388         The chdir-safer and afs files are now orphans; I'll remove them
72389         unless someone speaks up.
72390         Add lib/dirchownmod.c, lib/dirchownmod.h.
72391         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72392         Add lchown, mkancesdirs.
72393         (Maintainer): Add self.
72394
72395 2006-07-15  Karl Berry  <karl@gnu.org>
72396
72397         * gnulib-tool: help message wording/arrangement.
72398
72399 2006-07-14  Simon Josefsson  <jas@extundo.com>
72400
72401         * doc/gnulib.texi (Libtool and Windows): New section.
72402
72403 2006-07-12  Simon Josefsson  <jas@extundo.com>
72404
72405         * modules/gendocs (License): Fix license, approved by Karl.
72406
72407 2006-07-12  Eric Blake  <ebb9@byu.net>
72408
72409         * MODULES.html.sh: Add gendocs.
72410
72411 2006-07-11  Eric Blake  <ebb9@byu.net>
72412
72413         * modules/fdl: New module, to install doc/fdl.texi.
72414         * MODULES.html.sh: Add new section for documentation modules.
72415         * gnulib-tool: Avoid space-tab.
72416         (--doc-base): New option, to manage files from doc.
72417
72418 2006-07-11  Eric Blake  <ebb9@byu.net>
72419
72420         * m4/absolute-header.m4: Fix comments to match recent change.
72421
72422 2006-07-11  Eric Blake  <ebb9@byu.net>
72423
72424         * gnulib-tool: List --doc-base before --tests-base.
72425
72426 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72427
72428         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72429
72430 2006-07-11  Bruno Haible  <bruno@clisp.org>
72431
72432         * README: Mention where to put documentation.
72433
72434 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72435
72436         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72437
72438 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72439
72440         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72441         to stdint.m4.
72442
72443 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72446         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72447         "no/such/file/stdint.h" when there is no such file, so that
72448         the resulting C code can be parsed by dodgy compilers.
72449         Problems reported by Bob Proulx.
72450
72451 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72452
72453         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72454         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72455         macros into the GNU _D_EXACT_NAMLEN.
72456         * lib/savedir.c:  Likewise.
72457         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72458
72459 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72460         and Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72463         * m4/savedir.m4:
72464         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72465         macros into the GNU _D_EXACT_NAMLEN.
72466
72467 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72468
72469         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72470         around the absolute name, to work around a problem with the HP-UX
72471         11.23 native C compiler, reported by Bob Proulx.
72472
72473 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72474
72475         * doc/maintain.texi, make-stds.texi: Sync from
72476         <http://savannah.gnu.org/projects/gnustandards>.
72477
72478 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72479
72480         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72481
72482 2006-07-09  Jim Meyering  <jim@meyering.net>
72483
72484         * m4/glob.m4: Remove a doubled word in a comment.
72485
72486 2006-07-09  Jim Meyering  <jim@meyering.net>
72487
72488         * lib/argp-pv.c: Remove a doubled word in a comment.
72489         * lib/check-version.c (check_version): Likewise.
72490         * lib/javacomp.c (compile_java_class): Likewise.
72491
72492 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72495         for the benefit of people using Autoconf 2.60.  If you want to
72496         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72497         (or m4/onceonly.m4, if pre-2.57) manually.
72498
72499 2006-07-08  Jim Meyering  <jim@meyering.net>
72500
72501         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72502         comment.
72503         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72504         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72505         comment.
72506
72507 2006-07-08  Jim Meyering  <jim@meyering.net>
72508
72509         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72510
72511 2006-07-07  Simon Josefsson  <jas@extundo.com>
72512
72513         * tests/test-crc.c: Change expected crc value, the test vector
72514         were probably computed using the old broken crc.c?
72515
72516 2006-07-06  Simon Josefsson  <jas@extundo.com>
72517
72518         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72519         now the canonical place for the M4 file).
72520
72521         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72522         from the sys_socket dependency now.
72523
72524         * modules/inet_pton (Files): Ditto.
72525
72526         * modules/inet_ntop (Files): Ditto.
72527
72528 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72529
72530         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72531         not gl_PREREQ_GETUSERSHELL.
72532
72533 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72534
72535         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72536         with only one argument, for Autoconf 2.60.
72537         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72538         expand to nothing, so add a shell command to avoid syntax error.
72539         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72540
72541 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72542
72543         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72544
72545 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72546
72547         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72548         no longer needed.  Check for isblank decl.
72549         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72550         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72551         of existence.
72552
72553 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72554
72555         * lib/getloadavg.c: Use __VMS, not VMS.
72556         * lib/getopt.c: Likewise.
72557         * lib/getpagesize.h: Likewise.
72558         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72559         and probably does not work.
72560
72561 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72562
72563         * lib/.cppi-disable: Add wcwidth.
72564         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72565         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72566         (ISGRAPH): Remove.  All uses changed to isgraph.
72567         (FOLD) [!defined _LIBC]: Remove special case.
72568         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72569         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72570         HAVE_ISBLANK.
72571         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72572         case.
72573
72574 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72575
72576         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72577         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72578         brackets.  Other minor changes to suppress some compiler
72579         warnings.
72580
72581 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72582         and Paul Eggert  <eggert@cs.ucla.edu>
72583
72584         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72585         of invoking obsolescent AC_HEADER_DIRENT macro.
72586         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72587         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72588         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72589         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72590         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72591         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72592         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72593         * m4/readdir.m4: Remove; no longer needed.
72594
72595 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72596         and Paul Eggert  <eggert@cs.ucla.edu>
72597
72598         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72599         Don't worry about this obsolete case any more.
72600         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72601         directories.
72602         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72603         worry about this obsolete case any more.
72604         * lib/fts.c: Likewise.
72605         * lib/getcwd.c: Likewise.
72606         * lib/glob.h: Likewise.
72607         * lib/savedir.c: Likewise.
72608
72609 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72612         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72613         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72614         needed.
72615         All uses removed.
72616         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72617         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72618         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72619         needed.
72620         * m4/getdate.m4 (gl_GETDATE): Likewise.
72621         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72622         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72623         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72624         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72625         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72626         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72627         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72628         needed.
72629
72630 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72631
72632         * lib/memcasecmp.c: Include <limits.h>.
72633         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72634         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72635         Don't assume isdigit succeeds only on '0' through '9'.
72636
72637 2006-07-05  Eric Blake  <ebb9@byu.net>
72638
72639         * modules/getaddrinfo (Depends-on): Add snprintf.
72640
72641 2006-07-05  Eric Blake  <ebb9@byu.net>
72642
72643         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72644         to avoid 'header present but could not be compiled' on cygwin.
72645
72646 2006-07-05  Eric Blake  <ebb9@byu.net>
72647
72648         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72649         missing from netdb.h.
72650         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72651
72652 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72653
72654         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72655         no longer needed.
72656         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72657         * m4/getdate.m4 (gl_GETDATE): Likewise.
72658         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72659         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72660         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72661         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72662         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72663
72664 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72665
72666         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72667         All uses of is_space replaced by isspace.
72668         * lib/exit.h: Don't talk about STDC_HEADERS.
72669         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72670         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72671         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72672         replaced by isprint etc.
72673         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72674         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72675         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72676         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72677         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72678         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72679
72680 2006-07-05  Bruno Haible  <bruno@clisp.org>
72681
72682         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72683         the function exists, before testing against AIX.
72684         Reported by Martin Lambers <marlam@marlam.de>.
72685
72686 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72687
72688         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72689         From Mark D. Baushke.
72690
72691 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72692
72693         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72694         to the absolute name, not just one, to bypass Sun C 5.8's
72695         "warning: #include of /usr/include/... may be non-portable".
72696
72697 2006-07-04  Eric Blake  <ebb9@byu.net>
72698
72699         * modules/dirname-tests: New test module.
72700         * tests/test-dirname.c: New file, replacing dirname.c
72701         TEST_DIRNAME section that was recently deleted.
72702
72703 2006-07-04  Bruno Haible  <bruno@clisp.org>
72704
72705         Assume ANSI C header files and <ctype.h> functions.
72706         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72707         (mbsnwidth): Use isprint, iscntrl instead.
72708
72709 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72710
72711         Merge from coreutils.
72712         * MODULES.html.sh: Add xstrtold.
72713         * modules/xstrtold: New file.
72714         * modules/cycle-check (Files): Add lib/same-inode.h.
72715         * modules/dirname (Files): Add m4/double-slash-root.m4.
72716         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72717         * modules/mkdir-p (Files): Add lib/same-inode.h.
72718         * modules/same (Files): Add lib/same-inode.h.
72719
72720 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72721
72722         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72723         This is to keep the terminology clean; POSIX talks about
72724         "absolute pathnames", not "full pathnames", but the GNU
72725         Coding Standards say to use "path" for something else;
72726         so use "absolute" to keep both sides happy.
72727         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72728         Set gl_absolute_header, not gl_full_header_path.
72729         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72730         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72731         All uses changed.
72732
72733         Merge from coreutils.
72734
72735         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72736
72737         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72738         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72739         want to require the building of c-strtod.o.
72740         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72741         needs -lm directly.
72742         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72743
72744         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72745
72746         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72747         --as-needed option if available.  Problem reported by Albert Chin in
72748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72749         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72750         cc merely issues a bunch of annoying warnings for --as-needed
72751         (this problem was reported by Bob Proulx).  Also, try linking with
72752         -lm to detect a bug in binutils 2.16 (this problem was reported
72753         by Ralf Wildenhues).
72754
72755         2006-06-18  Jim Meyering  <jim@meyering.net>
72756
72757         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72758         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72759         macro.
72760         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72761         also check for glibc-2.4's abort-inducing bug.
72762
72763         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72764         Low-probability clean-up should be to use rmdir to get rid of
72765         the just-created directory, not unlink.
72766
72767         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72768         configure fail, and request a bug report to inform us about it.
72769         Add a comment that, barring reports to the contrary, in 2007 we'll
72770         assume ftruncate is universally available.
72771
72772         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72773
72774         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72775
72776         2006-03-12  Jim Meyering  <jim@meyering.net>
72777
72778         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72779         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72780         * m4/same.m4 (gl_SAME): Likewise.
72781         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72782
72783         2006-03-11  Eric Blake  <ebb9@byu.net>
72784
72785         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72786         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72787         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72788         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72789
72790 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72791
72792         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72793         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72794         reported by Mark D. Baushke, one in
72795         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72796
72797         Merge from coreutils.
72798
72799         * lib/.cppi-disable: Add stdint_.h.
72800         * lib/.cvsignore: Add stdint.h.
72801
72802         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72803
72804         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72805         both double and long double versions.
72806         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72807         * lib/xstrtold.c: New file.
72808         * lib/xstrtod.h (xstrtold): New decl.
72809
72810         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72811
72812         * lib/filemode.c (setst): Remove.
72813         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72814         (arguably) clearer, and the generated code is a bit smaller on my
72815         Debian GNU/Linux stable x86 host.
72816
72817         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72818
72819         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72820         Assume that filemode.h includes sys/types.h and sys/stat.h.
72821         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72822         (ftypelet): Reorder to put common cases first, for efficiency.
72823         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72824         to do 'M'.
72825         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72826         of 10, for compatibility with FreeBSD.  All callers changed.
72827         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72828         types that can't be deduced solely from st_mode.  First arg is now a
72829         const pointer.
72830         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72831         (strmode): Renamed from mode_string.
72832         (filemodestring): New decl.
72833         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72834         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72835         needed.
72836         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72837
72838         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72839
72840         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72841         fsusage.h now does that.  Include fsusage.h first, to test interface.
72842         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72843         at most one method (the old code could have generated decls that
72844         didn't conform to C89, not that this was ever exercised).
72845         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72846
72847         2006-03-19  Jim Meyering  <jim@meyering.net>
72848
72849         Work even in a chroot where d_ino values for entries in "/"
72850         don't match the stat.st_ino values for the same names.
72851         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72852         number, iterate through all entries again, using lstat instead.
72853         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72854         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72855
72856         * lib/getcwd.c (__getcwd): Clarify a comment.
72857         Use memcpy in place of a call to strcpy.
72858
72859         2006-03-12  Jim Meyering  <jim@meyering.net>
72860
72861         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72862         matches that of the current directory (which we're about to chdir ".."
72863         out of), then save the dev-ino of the parent, instead.
72864
72865         * lib/same-inode.h (SAME_INODE): New file/macro.
72866         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72867         Include "same-inode.h", instead.
72868         * lib/same.c: Likewise.
72869         * lib/cycle-check.h: Include "same-inode.h".
72870         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72871         * lib/cycle-check.c (SAME_INODE): Remove definition.
72872         * lib/root-dev-ino.h: Include "same-inode.h".
72873
72874         2006-03-11  Eric Blake  <ebb9@byu.net>
72875
72876         * lib/same.c (same_name): s/base_name/last_component/
72877         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72878         * lib/filenamecat.c (file_name_concat): Likewise.
72879
72880         2006-03-11  Eric Blake  <ebb9@byu.net>,
72881                     Paul Eggert  <eggert@cs.ucla.edu>
72882
72883         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72884         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72885         drive prefix.
72886         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72887         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72888         (last_component): New method.
72889         * lib/dirname.c (dir_len): Determine when drive letters need a
72890         subsequent slash.  Preserve // when it is special.
72891         (dir_name): Don't append dot when drive letter is absolute.
72892         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72893         * lib/basename.c (base_name): New semantics - malloc the result.
72894         Preserve // when it is special.  Preserve relative files that look
72895         like drive letters.
72896         (base_len): Preserve // when it is special.
72897         (last_component): New method, similar to old base_name semantics.
72898         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72899         base_name.  Strip redundant slashes from ///.
72900
72901 2006-07-03  Jim Meyering  <jim@meyering.net>
72902
72903         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72904         macro is used before the first cycle_check call.
72905
72906 2006-07-03  Eric Blake  <ebb9@byu.net>
72907
72908         * modules/dirname (Depends-on): Add xstrndup.
72909
72910 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72911
72912         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72913         test cases, so that config.log is a bit easier to follow.
72914
72915 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72916
72917         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72918         both are 64 bits, since this seems to be the tradition, and this
72919         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72920         we ever run into a host that prefers long long to long in this
72921         case, we'll need another configure-time test.  Problem reported by
72922         Jim Meyering.
72923
72924 2006-07-02  Eric Blake  <ebb9@byu.net>
72925
72926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72927
72928 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72929
72930         * modules/inttypes (Depends-on): No longer depends on stdint.
72931         * modules/stdint (Description): Say more about assumptions.
72932         Say that the fast types might differ.  Say macros are used.
72933         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72934         (Makefile.am): Revise list of substituted symbols to match
72935         new stdint.m4.
72936         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72937         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72938         * tests/test-stdint.c (verify_same_types)
72939         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72940         the code conforms to C99/C89.
72941         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72942         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72943
72944 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72945
72946         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72947         but fix a bug, by requiring at least 64 bits.
72948         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72949         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72950         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72951         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72952
72953         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72954         changes.  Make 2.59 a prerequisite.  Check and substitute for
72955         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72956         inttypes.h.  Do not use special include files; just use the
72957         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72958         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72959         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72960         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72961         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72962         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72963         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72964         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72965         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72966         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72967         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72968         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72969         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72970         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72971         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72972         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72973         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72974         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72975         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72976         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72977         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72978         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72979         not check for things that C99 does not require, e.g., int8_t.  If
72980         a test isn't needed unless <stdint.h> isn't working, and is
72981         unlikely to be needed for any other reason, then don't do it
72982         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72983         size_t, since we assume C89 freestanding at least.  Do not check
72984         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72985         the right thing even if the types are not defined.  Instead use:
72986         (gl_STDINT_TYPE_PROPERTIES): New macro.
72987         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72988         testing whether <sys/types.h> clashes, as Autoconf does this for
72989         us now.  All uses removed.
72990         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72991         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72992         (gl_CHECK_TYPE_SAME):
72993         Remove; no longer needed.
72994         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72995         exists, since we'll return 0 anyway in that case.
72996         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72997
72998 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72999
73000         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73001         possible collision with system files.
73002         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73003         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73004         WCHAR_MIN and WCHAR_MAX in this case.
73005         (<stddef.h>): Do not include; no longer needed.
73006         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73007         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73008         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73009         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73010         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73011         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73012         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73013         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73014         !defined(__c99))]: Include in this case too, since it's harmless
73015         now.
73016         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73017         dangerous to do so.
73018         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73019         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73020         (_STDINT_MIN, _STDINT_MAX): New macros.
73021         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73022         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73023         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73024         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73025         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73026         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73027         macros, not typedefs; this simplifies things quite a bit.
73028         Use long int for all types narrower than int64_t.
73029         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73030         Define in terms of long long int or int64_t or long int,
73031         not int64_t or int32_t.  This saves some compile-time testing.
73032         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73033         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73034         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73035         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73036         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73037         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73038         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73039         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73040         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73041         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73042         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73043         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73044         undef any previous version and define our own version, for
73045         simplicity and consistency with the new macros for types.
73046         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73047         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73048         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73049         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73050         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73051         @WINT_T_SUFFIX@ to keep things simple here.
73052         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73053         Simplify by assuming typical 8/16/32/64 host, since we're
73054         already doing that elsewhere anyway.
73055         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73056         and assume long long int is 64 bits if available.  This
73057         speeds up 'configure'.
73058
73059 2006-07-01  Eric Blake  <ebb9@byu.net>
73060
73061         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73062         Reported by Andreas Buening.
73063
73064 2006-07-01  Eric Blake  <ebb9@byu.net>
73065
73066         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73067
73068 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73069
73070         * lib/getaddrinfo.c: fixed typo
73071
73072 2006-06-29  Jim Meyering  <jim@meyering.net>
73073
73074         * modules/strftime (Maintainer): Add my name, since with the
73075         FPRINTFTIME changes strftime.c has forked from glibc.
73076
73077 2006-06-29  Eric Blake  <ebb9@byu.net>
73078
73079         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73080
73081 2006-06-29  Eric Blake  <ebb9@byu.net>
73082
73083         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73084
73085 2006-06-29  Eric Blake  <ebb9@byu.net>
73086
73087         * lib/stat_.h: New file.
73088
73089 2006-06-29  Eric Blake  <ebb9@byu.net>
73090
73091         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73092         unused static function.
73093
73094 2006-06-29  Eric Blake  <ebb9@byu.net>
73095
73096         * doc/functions.texi (Function Portability): Document missing lstat
73097         on mingw.
73098
73099 2006-06-29  Eric Blake  <ebb9@byu.net>
73100
73101         * MODULES.html.sh: Add sys_stat.
73102         * modules/sys_stat: New module.
73103         * modules/mkstemp (Depends-on): Add sys_stat.
73104
73105 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73106
73107         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73108
73109 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73110
73111         * m4/c-bs-a.m4: Removed.
73112
73113 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73114
73115         * lib/strftime.c: Assume strftime() exists.
73116
73117 2006-06-29  Derek Price  <derek@ximbiot.com>
73118
73119         * modules/c-bs-a: Removed - \a is C89.
73120         * MODULES.html.sh: Remove c-bs-a.
73121
73122 2006-06-29  Bruno Haible  <bruno@clisp.org>
73123
73124         * modules/wcwidth (License): Change to LGPL.
73125
73126 2006-06-28  Simon Josefsson  <jas@extundo.com>
73127
73128         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73129         on _WIN32.
73130
73131         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73132         getnameinfo.
73133
73134 2006-06-28  Simon Josefsson  <jas@extundo.com>
73135
73136         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73137
73138 2006-06-28  Simon Josefsson  <jas@extundo.com>
73139
73140         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73141         functions there.  It will succeed on Windows XP, but on Windows
73142         2000 and (presumably) earlier, it will fail, and use the internal
73143         re-implementation.
73144         (use_win32_p): New function.
73145         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73146         Support AI_NUMERICSERV to disable getservbyname.
73147         (getnameinfo): New function, only supports
73148         NI_NUMERICHOST|NI_NUMERICSERV for now.
73149
73150         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73151         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73152         getnameinfo.
73153
73154 2006-06-28  Eric Blake  <ebb9@byu.net>
73155
73156         * modules/wcwidth: New file.
73157         * modules/mbchar (Depends-on): Add wcwidth.
73158         * modules/mbswidth (Depends-on): Add wcwidth.
73159         * MODULES.html.sh: Add wcwidth.
73160
73161 2006-06-28  Eric Blake  <ebb9@byu.net>
73162
73163         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73164         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73165
73166 2006-06-28  Eric Blake  <ebb9@byu.net>
73167
73168         * lib/xvasprintf.h: Fix comments.
73169
73170 2006-06-28  Eric Blake  <ebb9@byu.net>
73171
73172         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73173         * lib/mbswidth.c (wcwidth): Move from here...
73174         * lib/wcwidth.h: ...to this new file.
73175
73176 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73177
73178         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73179
73180         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73181         it's obsolete.
73182         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73183
73184 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73185
73186         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73187         Autoconf 2.60 says this stuff was obsolete.
73188
73189 2006-06-28  Bruno Haible  <bruno@clisp.org>
73190
73191         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73192
73193 2006-06-28  Bruno Haible  <bruno@clisp.org>
73194
73195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73196         gt_TYPE_WCHAR_T.
73197
73198 2006-06-28  Bruno Haible  <bruno@clisp.org>
73199
73200         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73201         declaration for wcwidth.
73202         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73203
73204 2006-06-28  Bruno Haible  <bruno@clisp.org>
73205
73206         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73207         (mkdir): Define using _mkdir.
73208
73209 2006-06-28  Bruno Haible  <bruno@clisp.org>
73210
73211         * lib/getaddrinfo.h: Fix POSIX URL.
73212         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73213         _WIN32.
73214         (use_win32_p): Make static.
73215         (getaddrinfo): Reject service name if it is empty or does not consist
73216         solely of decimal digits, or if its value is > 65535.
73217         (getnameinfo): Remove useless casts.
73218
73219 2006-06-27  Simon Josefsson  <jas@extundo.com>
73220
73221         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73222         Eggert and Martin Lambers.
73223
73224 2006-06-27  Simon Josefsson  <jas@extundo.com>
73225
73226         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73227         Eggert and Martin Lambers.
73228
73229 2006-06-27  Bruno Haible  <bruno@clisp.org>
73230
73231         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73232         result to 0, not to empty.
73233         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73234
73235 2006-06-27  Bruno Haible  <bruno@clisp.org>
73236
73237         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
73238
73239 2006-06-26  Simon Josefsson  <jas@extundo.com>
73240
73241         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
73242         present.
73243
73244 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
73245
73246         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
73247         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
73248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
73249
73250 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
73251
73252         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
73253
73254 2006-06-26  Bruno Haible  <bruno@clisp.org>
73255
73256         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
73257
73258 2006-06-26  Bruno Haible  <bruno@clisp.org>
73259
73260         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
73261
73262 2006-06-26  Bruno Haible  <bruno@clisp.org>
73263
73264         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
73265         SGI C compiler in pre-C99 mode.
73266         Suggested by Mark D. Baushke and Larry Jones.
73267
73268 2006-06-26  Bruno Haible  <bruno@clisp.org>
73269
73270         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
73271         WCHAR_MAX.
73272         Reported by Mark D. Baushke and Larry Jones.
73273
73274 2006-06-26  Bruno Haible  <bruno@clisp.org>
73275
73276         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
73277         in pre-C99 mode.
73278         Suggested by Mark D. Baushke and Larry Jones.
73279
73280 2006-06-23  Simon Josefsson  <jas@extundo.com>
73281             Bruno Haible  <bruno@clisp.org>
73282
73283         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
73284         Emit mostlyclean-local rule.
73285         (func_emit_tests_Makefile_am): Likewise.
73286         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
73287
73288 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
73289
73290         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
73291
73292 2006-06-23  Bruno Haible  <bruno@clisp.org>
73293
73294         * tests/test-stdint.c: Update to match ISO C 99 Technical
73295         Corrigendum 1.
73296
73297 2006-06-23  Bruno Haible  <bruno@clisp.org>
73298
73299         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
73300
73301 2006-06-23  Bruno Haible  <bruno@clisp.org>
73302
73303         * lib/stdint_.h: Treat IRIX like OpenBSD.
73304
73305 2006-06-23  Bruno Haible  <bruno@clisp.org>
73306
73307         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
73308         ISO C 99 Technical Corrigendum 1.
73309
73310 2006-06-22  Simon Josefsson  <jas@extundo.com>
73311
73312         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
73313         MinGW.
73314
73315 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73316
73317         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
73318         needed.  Some compiler complained about some of them.  Problem reported
73319         by Larry Jones in
73320         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
73321
73322 2006-06-21  Simon Josefsson  <jas@extundo.com>
73323
73324         * tests/test-getaddrinfo.c: New file.
73325
73326         * modules/getaddrinfo-tests: New file.
73327
73328         * MODULES.html.sh: Add inet_pton.
73329
73330         * modules/inet_pton: New file.
73331
73332 2006-06-21  Simon Josefsson  <jas@extundo.com>
73333
73334         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
73335         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
73336         of using the (limited) gnulib implementation on Windows XP.
73337
73338         * m4/inet_pton.m4: New file.
73339
73340 2006-06-21  Simon Josefsson  <jas@extundo.com>
73341
73342         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
73343         variable.
73344
73345         * lib/socket_.h: Don't define WINVER.
73346
73347         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
73348         slightly modified to work in gnulib.
73349
73350 2006-06-21  Simon Josefsson  <jas@extundo.com>
73351
73352         * doc/gnulib.texi (Windows sockets): Add.
73353
73354 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
73355
73356         * lib/read-file.c (fread_file): Start with buffer allocation of
73357         0 bytes rather than 1 byte; this simplifies the code.
73358         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
73359         code to free buffer and save/restore errno.
73360         (internal_read_file): Remove unused local.
73361
73362 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
73363
73364         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
73365         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
73366         Problem reported by Denis Excoffier in
73367         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73368
73369 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73370
73371         * modules/sys_socket, modules/socklen: Include sys/types since
73372         FreeBSD 4.x's sys/socket.h needs it.
73373
73374 2006-06-19  Simon Josefsson  <jas@extundo.com>
73375
73376         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73377
73378 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73379
73380         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73381
73382 2006-06-19  Bruno Haible  <bruno@clisp.org>
73383
73384         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
73385         and FULL_PATH_INTTYPES_H in angle brackets.
73386         Reported by Mark D. Baushke <mdb@gnu.org>.
73387
73388 2006-06-17  Eric Blake  <ebb9@byu.net>
73389
73390         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73391         errno.
73392
73393 2006-06-17  Bruno Haible  <bruno@clisp.org>
73394
73395         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73396         <sys/inttypes.h>.
73397
73398 2006-06-17  Bruno Haible  <bruno@clisp.org>
73399
73400         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73401         whether errno is declared. Assume <errno.h> declares errno.
73402
73403 2006-06-17  Bruno Haible  <bruno@clisp.org>
73404
73405         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73406
73407 2006-06-17  Bruno Haible  <bruno@clisp.org>
73408
73409         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73410         problem on Solaris 2.5.1.
73411
73412 2006-06-16  Eric Blake  <ebb9@byu.net>
73413
73414         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73415         * lib/unicodeio.c [!defined errno]: Likewise.
73416         * lib/strtol.c [!defined errno]: Likewise.
73417         * lib/strtod.c [!defined errno]: Likewise.
73418
73419 2006-06-15  Eric Blake  <ebb9@byu.net>
73420
73421         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73422
73423 2006-06-15  Eric Blake  <ebb9@byu.net>
73424
73425         * config/srclist.txt (ssize_t.m4): Lose sync.
73426
73427 2006-06-15  Bruno Haible  <bruno@clisp.org>
73428
73429         * modules/stdint (Files): Include m4/full-header-path.m4,
73430         m4/size_max.m4, m4/wchar_t.m4.
73431         (Makefile.am): Many more substitutions.
73432         * modules/stdint-tests: New file.
73433         * tests/test-stdint.c: New file.
73434
73435 2006-06-15  Bruno Haible  <bruno@clisp.org>
73436
73437         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73438         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73439         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73440         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73441         gl_CHECK_TYPE_SAME): New macros.
73442
73443 2006-06-15  Bruno Haible  <bruno@clisp.org>
73444
73445         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73446
73447 2006-06-15  Bruno Haible  <bruno@clisp.org>
73448
73449         * lib/stdint_.h: Rewritten to be fully auto-configured.
73450         Fixes bug on HP-UX/IA64.
73451
73452 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73453
73454         * lib/getdate.y (__attribute__): Don't define if already defined.
73455         Problem reported by Larry Jones.
73456         * lib/utimens.c (__attribute__): Likewise.
73457
73458 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73461         reported by Andreas Schwab.
73462
73463 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73464             Bruno Haible  <bruno@clisp.org>
73465
73466         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73467         check for the declaration of strnlen and a run test that exposes the
73468         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73469         rpl_strndup.
73470
73471 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73472             Bruno Haible  <bruno@clisp.org>
73473
73474         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73475
73476 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73477
73478         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73479         compile test, for Tru64 4.0D.
73480
73481 2006-05-28  Karl Berry  <karl@gnu.org>
73482
73483         * config/srclist.txt (printf-args.c): lose sync.
73484
73485 2006-05-26  Martin Lambers  <marlam@marlam.de>
73486
73487         * lib/getpass.c: Updates the test for the native W32 API, and adds
73488         missing includes, thus fixing compilation warnings.
73489
73490 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73491
73492         * lib/exclude.c (exclude_fnmatch): New function.
73493         (excluded_file_name): Call exclude_fnmatch.
73494         * lib/exclude.h (excluded_file_name): New prototype
73495
73496 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73497
73498         * lib/tempname.c (small_open, large_open): New macros.
73499         (__open, __open64) [!_LIBC]: Remove.
73500         (__gen_tempname): Use small_open and large_open instead of __open
73501         and __open64.  This fixes a portability bug on HP-UX 11.11i
73502         reported by Simon Wing-Tang in
73503         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73504
73505 2006-05-24  Bruno Haible  <bruno@clisp.org>
73506
73507         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73508         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73509         Reported by Thorsten Maerz <torte@netztorte.de> via
73510         Aaron Stone <aaron@serendipity.cx>.
73511
73512 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73513
73514         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73515         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73516         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73517         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73518         not really conditional on the cache.
73519         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73520
73521 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73522
73523         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73524         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73525         (my_usleep): Don't mishandle maximum value.
73526
73527 2006-05-19  Jim Meyering  <jim@meyering.net>
73528
73529         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73530
73531 2006-05-17  Bruno Haible  <bruno@clisp.org>
73532
73533         Cygwin portability.
73534         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73535
73536 2006-05-17  Bruno Haible  <bruno@clisp.org>
73537
73538         * lib/stdint_.h: Fix recognition of Cygwin.
73539
73540 2006-05-15  Bruno Haible  <bruno@clisp.org>
73541
73542         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73543         on libtool patch by Ralf Wildenhues.
73544
73545 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73546
73547         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73548         test for C99 conformance; (bool) 0.5 is an integer constant
73549         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73550         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73551
73552 2006-05-11  Simon Josefsson  <jas@extundo.com>
73553
73554         * m4/xvasprintf.m4: Fix obvious typo.
73555
73556 2006-05-11  Jim Meyering  <jim@meyering.net>
73557
73558         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73559         James Lemley.
73560
73561 2006-05-10  Simon Josefsson  <jas@extundo.com>
73562
73563         * lib/md4.c: Typo fix, update copyright years.
73564         (K1, K2): Don't use L because it turn computations into 64-bit on
73565         64-bit platforms.
73566
73567 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73568
73569         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73570         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73571         unwanted sign propagation, e.g., on hosts with 64-bit int.
73572         There still are some problems with reeelly weird theoretical hosts
73573         (e.g., 33-bit int) but it's not worth worrying about now.
73574         * lib/sha1.c (rol): Likewise.
73575         (K1, K2, K3, K4): Remove unnecessary L suffix.
73576
73577 2006-05-10  Bruno Haible  <bruno@clisp.org>
73578
73579         * lib/des.c: Cast to avoid warnings.
73580
73581 2006-05-09  Bruno Haible  <bruno@clisp.org>
73582
73583         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73584         (Depends-on): Depend also on xsize, stdarg.
73585         (configure.ac): Add gl_XVASPRINTF.
73586
73587 2006-05-09  Bruno Haible  <bruno@clisp.org>
73588
73589         * m4/xvasprintf.m4: New file.
73590
73591 2006-05-09  Bruno Haible  <bruno@clisp.org>
73592
73593         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73594         (EOVERFLOW): Define fallback value.
73595         (xstrcat): New function.
73596         (xvasprintf): Recognize the special case of a string concatenation.
73597
73598 2006-05-08  Eric Blake  <ebb9@byu.net>
73599
73600         * gnulib-tool (func_version): Base copyright year on CVS date.
73601         (func_emit_copyright_notice): New function.
73602         (func_emit_lib_Makefile_am): Use it.
73603         (func_emit_tests_Makefile_am): Likewise.
73604         (func_import): Likewise.
73605
73606 2006-05-08  Bruno Haible  <bruno@clisp.org>
73607
73608         * modules/stdarg: New file.
73609         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73610
73611 2006-05-08  Bruno Haible  <bruno@clisp.org>
73612
73613         * m4/stdarg.m4: New file, from GNU gettext.
73614
73615 2006-05-08  Bruno Haible  <bruno@clisp.org>
73616
73617         * config/srclist.txt (build-aux/config.rpath): different from latest
73618         release.
73619
73620 2006-05-08  Bruno Haible  <bruno@clisp.org>
73621
73622         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73623
73624 2006-05-05  Jim Meyering  <jim@meyering.net>
73625
73626         * m4/warning.m4: New file, derived from bison's file by the same name.
73627
73628 2006-05-03  Bruno Haible  <bruno@clisp.org>
73629
73630         * lib/stdint_.h: Shorter URL.
73631         * lib/inttypes.h: Likewise.
73632
73633 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73634
73635         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73636
73637 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73638
73639         * lib/verify.h: Document the internals better.  Most of this change
73640         was written by Bruno Haible.
73641
73642 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73643
73644         * doc/verify.texi: New file, partly based on a proposal by
73645         Bruno Haible.
73646
73647 2006-05-02  Bruno Haible  <bruno@clisp.org>
73648
73649         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73650         test from here...
73651         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73652
73653 2006-04-29  Bruno Haible  <bruno@clisp.org>
73654
73655         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73656         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73657
73658 2006-04-29  Bruno Haible  <bruno@clisp.org>
73659
73660         * gnulib-tool: Make --update option actually work.
73661
73662 2006-04-29  Bruno Haible  <bruno@clisp.org>
73663
73664         * doc/gcd.texi: New file.
73665         * doc/gnulib.texi: Include it.
73666
73667 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         * lib/getdate.y (get_date): When adding relative date, start with the
73670         initial time, not with the result of the first mktime call.
73671
73672 2006-04-25  Bruno Haible  <bruno@clisp.org>
73673
73674         * gnulib-tool (func_import): Output the include directives in three
73675         blocks, sorted separately.
73676         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73677
73678 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73679
73680         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73681         to define main with arguments, for C++.  Reported by Eric Blake.
73682         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73683         Prefer 'int main ()' to 'int main (void)', for C++.
73684         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73685         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73686         for 'main', for C99 and C++.
73687
73688 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73689
73690         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73691         Don't assume that exit status -1 is valid.
73692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73693         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73694         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73695         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73696         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73697         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73698         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73699         functions can be used without declaring them, or that you can
73700         exit with status -1.
73701         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73702
73703 2006-04-24  Karl Berry  <karl@gnu.org>
73704
73705         * config/srclist.txt (longdouble.m4): sync lost.
73706
73707 2006-04-24  Eric Blake  <ebb9@byu.net>
73708
73709         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73710
73711 2006-04-24  Bruno Haible  <bruno@clisp.org>
73712
73713         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73714         poll() implementation in AIX.
73715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73716
73717 2006-04-24  Bruno Haible  <bruno@clisp.org>
73718
73719         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73720         assigned exactly once.
73721
73722 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73723             Bruno Haible  <bruno@clisp.org>
73724
73725         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73726         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73727         for AM_CPPFLAGS.
73728
73729 2006-04-23  Bruno Haible  <bruno@clisp.org>
73730
73731         * modules/copy-file: Depend on unistd.
73732         * modules/execute: Likewise.
73733         * modules/fatal-signal: Likewise.
73734         * modules/findprog: Likewise.
73735         * modules/mkdtemp : Likewise.
73736         * modules/pipe: Likewise.
73737         * modules/wait-process: Likewise.
73738
73739 2006-04-23  Bruno Haible  <bruno@clisp.org>
73740
73741         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73742         condition was already detected.
73743         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73744
73745 2006-04-23  Bruno Haible  <bruno@clisp.org>
73746
73747         * lib/copy-file.c: Include <unistd.h> unconditionally.
73748         * lib/execute.c: Likewise.
73749         * lib/fatal-signal.c: Likewise.
73750         * lib/findprog.c: Likewise.
73751         * lib/mkdtemp.c: Likewise.
73752         * lib/pipe.h: Likewise.
73753         * lib/pipe.c: Likewise.
73754         * lib/wait-process.h: Likewise.
73755
73756 2006-04-23  Bruno Haible  <bruno@clisp.org>
73757
73758         * gnulib-tool (func_usage): Fix --import description. Document
73759         --update.
73760         (func_import): Create temporary file in a temporary directory, if
73761         --dry-run is specified. Silence errors from 'grep' when there are no
73762         m4 files in $m4dir.
73763         (func_create_testdir): Silence errors from 'grep' when there are no
73764         m4 files in $m4dir.
73765         Reported by Karl Berry <karl@freefriends.org>.
73766
73767 2006-04-20  Bruno Haible  <bruno@clisp.org>
73768
73769         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73770         one argument, so that the code will be portable to Autoconf 2.60.
73771         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73772         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73773         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73774
73775 2006-04-19  Derek Price  <derek@ximbiot.com>
73776             Eric Blake  <ebb9@byu.net>
73777
73778         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73779         rather than "/full/path.h".  Update comment to match.  Shorten &
73780         generalize m4_translit call via AS_TR_CPP.
73781
73782 2006-04-19  Derek Price  <derek@ximbiot.com>
73783             Eric Blake  <ebb9@byu.net>
73784
73785         * lib/inttypes.h: Correct grammar in comment.
73786
73787 2006-04-18  Derek Price  <derek@ximbiot.com>
73788             Paul Eggert  <eggert@cs.ucla.edu>
73789
73790         * modules/inttypes: New file.
73791         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73792
73793 2006-04-18  Derek Price  <derek@ximbiot.com>
73794             Paul Eggert  <eggert@cs.ucla.edu>
73795
73796         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73797         New files.
73798
73799 2006-04-18  Derek Price  <derek@ximbiot.com>
73800             Paul Eggert  <eggert@cs.ucla.edu>
73801
73802         * lib/inttypes.h: New file.
73803         * lib/strtoimax.c: Assume <inttypes.h>.
73804
73805 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73806
73807         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73808         isn't mounted.  Problem reported by Kir Kolyshkin.
73809
73810 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73811
73812         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73813         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73814         Derek R. Price.
73815         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73816         implementation.
73817
73818 2006-04-12  Eric Blake  <ebb9@byu.net>
73819
73820         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73821         is now done automatically by the corresponding Autoconf macro.
73822
73823 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73824
73825         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73826         time_r.h.
73827
73828 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         Merge regex changes from libc, removing some of our
73831         POSIX-conformance changes that were rejected and redoing them in a
73832         less-intrusive way.
73833
73834         * lib/regcomp.c (re_compile_internal, init_dfa):
73835         Length arg is now size_t, not Idx.  All uses changed.
73836         (peek_token): Forward decl now says internal_function.
73837         (__re_error_msgid, __re_error_msgid_idx):
73838         Now static rather than extern with attribute_hidden.
73839         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73840         For some reason libc prefers K&R style defns for external functions.
73841         (regerror) [!defined _LIBC]: Likewise.
73842         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73843         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73844         (build_range_exp, build_collating_symbol):
73845         Use K&R-style defn.
73846         (re_compile_fastmap): Use '\0' to memset, not 0.
73847         (utf8_sb_map): Make the calculations more obvious.
73848         (init_dfa, parse_bracket_exp, build_charclass_op):
73849         Call calloc and cast result, as glibc does.
73850         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73851         (build_range_exp, build_collating_symbol):
73852         Now internal functions.
73853
73854         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73855
73856         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73857         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73858         Don't depend on VMS; depend on __VMS instead, for POSIX
73859         namespace cleanness.
73860         (regoff_t): Define to ssize_t, not long int.
73861
73862         Remove the REG_ macros named below.  Instead, make the old names
73863         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73864         __USE_GNU_REGEX.
73865         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73866         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73867         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73868         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73869         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73870         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73871         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73872         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73873         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73874         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73875         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73876         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73877         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73878         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73879         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73880         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73881         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73882         (REG_NREGS):
73883         Remove.  All uses replaced by the old RE_* names.
73884         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73885         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73886         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73887         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73888         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73889         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73890         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73891         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73892         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73893         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73894         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73895         Don't bother having these macros be independent of each others'
73896         values, since they no longer exist in the POSIX name space.
73897
73898         Rename the following member names back to their old names,
73899         unless !__USE_GNU_REGEX.  All uses changed back.
73900         (buffer): Renamed from re_buffer.
73901         (allocated): Renamed from re_allocated.
73902         (used): Renamed from re_used.
73903         (syntax): Renamed from re_syntax.
73904         (fastmap): Renamed from re_fastmap.
73905         (translate): Renamed from re_translate.
73906         (can_be_null): Renamed from re_can_be_null.
73907         (regs_allocated): Renamed from re_regs_allocated.
73908         (fastmap_accurate): Renamed from re_fastmap_accurate.
73909         (no_sub): Renamed from re_no_sub.
73910         (not_bol): Renamed from re_not_bol.
73911         (not_eol): Renamed from re_not_eol.
73912         (newline_anchor): Renamed from re_newline_anchor.
73913         (num_regs): Renamed from rm_num_regs.
73914         (start): Renamed from rm_start.
73915         (end): Renamed from rm_end.
73916
73917         (free_state): Move up a bit.
73918
73919         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73920         #define to be empty.
73921         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73922         when that is what is intended.
73923         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73924         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73925         (MAX): New macro.
73926         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73927         All uses changed back to re_malloc, etc.  It's now the caller's
73928         responsibility to check for overflow; all callers changed.
73929         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73930         (re_x2nrealloc): Remove.
73931         (free_state): Remove decl.
73932
73933         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73934         (re_set_registers, re_exec):
73935         Use K&R-style defn.
73936
73937         2006-01-31  Roland McGrath  <roland@redhat.com>
73938
73939         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73940         Reported by Mike Frysinger <vapier@gentoo.org>.
73941
73942         2006-01-15  Andreas Jaeger  <aj@suse.de>
73943
73944         [BZ #1950]
73945         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73946         build_wcs_upper_buffer change.
73947         (build_wcs_upper_buffer): Change return type.
73948
73949         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73950
73951         * lib/regex_internal.h: Include <stdint.h> if available.
73952
73953         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73954
73955         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73956
73957         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73958
73959         * lib/regcomp.c: Adjust for changed secondary hash function.
73960
73961         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73962
73963         * lib/regex.h: Pretty printing.
73964         Clean up namespace a bit.
73965
73966         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73967
73968         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73969         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73970
73971         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73972                     Ulrich Drepper  <drepper@redhat.com>
73973
73974         [BZ #1302]
73975         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73976         changed.
73977         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73978
73979         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73980
73981         [BZ #281]
73982         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73983         * lib/regcomp.c: Remove unnecessary uses of
73984         unsigned RE_TRANSLATE_TYPE.
73985         * lib/regex_internal.h: Likewise.
73986         * lib/regex_internal.c: Likewise.
73987         * lib/regexec.c: Likewise.
73988         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73989
73990         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73991
73992         * lib/regexec.c (find_recover_state): Remove unnecessary
73993         initialization.
73994         (transit_state_bkref): Make DFA a const pointer.
73995         (get_subexp): Likewise.
73996         (check_arrival): Likewise.
73997         (update_cur_sifted_state): Likewise.
73998         (re_search_internal): Likewise.
73999         (prune_impossible_nodes): Likewise.
74000         (acquire_init_state_context): Likewise.
74001         (proceed_next_node): Likewise.
74002         (set_regs): Likewise.
74003         (free_fail_stack_return): Likewise.
74004         (check_arrival_expand_ecl): Mark DFA parameter as const.
74005         (check_arrival_expand_ecl_sub): Likewise.
74006         (check_subexp_limits): Likewise.
74007         (sub_epsilon_src_nodes):  Likewise.
74008         (add_epsilon_src_nodes):  Likewise.
74009         (merge_state_array): Likewise.
74010         (update_regs): Likewise.
74011         (build_trtable): Likewise.
74012         (sift_states_backward): Mark MCTX parameter as const.
74013         (build_sifted_states): Likewise.
74014         (update_cur_sifted_state): Likewise.
74015         (sift_states_mkref): Likewise.
74016         (check_arrival_expand_ecl): Mark eclosure as const.
74017         (check_dst_limits_calc_pos_1): Likewise.
74018         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74019         pointer.
74020
74021         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74022
74023         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74024         (transit_state_sb): Likewise.
74025         (transit_state_mb): Likewise.
74026         (sift_states_iter_mb): Likewise.
74027         (check_arrival_add_next_nodes): Likewise.
74028         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74029         [_LIBC] (re_search_2_stub): Use mempcpy.
74030
74031         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74032         mbrtowc for very simple UTF-8 case.
74033
74034         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74035         a pointer-to-const.
74036         (re_acquire_state_context): Likewise.
74037         * lib/regex_internal.h: Adjust prototypes.
74038
74039         * lib/regex.c: Prevent using C++ compilers.
74040
74041         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74042         (re_acquire_state_context): Likewise.
74043
74044 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74045
74046         * modules/regex (Depends-on): Add ssize_t.
74047
74048 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74051         translation table.
74052
74053 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74054
74055         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74056
74057 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74058             Bruno Haible  <bruno@clisp.org>
74059
74060         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74061         <sys/types.h> and <inttypes.h>.
74062
74063 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74064
74065         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74066         `__error_t_defined', so argp.h will not typedef the former.
74067
74068 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74069
74070         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74071         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74072         glibc names.  Even if glibc is changed to conform to POSIX, the
74073         traditional names will be available anyway, since regex depends on
74074         the extensions module.  Also, fix a longstanding typo in the
74075         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74076         reported by Emanuele Giaquinta.  Also, change sense of cached
74077         variable, so that the message makes sense.
74078
74079 2006-03-24  Simon Josefsson  <jas@extundo.com>
74080
74081         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74082         including some doc fixes.
74083         (base64_encode_alloc): Fix +1 bug on allocation failures.
74084
74085 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74086
74087         * lib/base64.c (base64_encode): Do not read past end of array with
74088         unsanitized input on systems with CHAR_BIT > 8.
74089
74090 2006-03-24  Eric Blake  <ebb9@byu.net>
74091
74092         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74093
74094 2006-03-22  Karl Berry  <karl@gnu.org>
74095
74096         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74097         * config/srclistvars.sh (COREUTILS): new var.
74098
74099 2006-03-17  Jim Meyering  <jim@meyering.net>
74100
74101         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74102         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74103
74104 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74105
74106         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74107         no longer needs it.  Instead, check that regoff_t is as least
74108         as wide as ptrdiff_t.
74109
74110         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74111         so that our regex.h stays compatible with the installed regex.
74112         This is helpful for installers who configure --without-included-regex.
74113         Problem reported by Emanuele Giaquinta.
74114
74115 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74116
74117         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74118         Typedef to long int, not to off_, as POSIX will likely change
74119         in that direction.
74120
74121 2006-03-15  Eric Blake  <ebb9@byu.net>
74122
74123         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74124
74125 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74126
74127         * lib/argp-help.c (validate_uparams): Fix typo
74128         * lib/argp-parse.c (argp_default_options): Consistently begin help
74129         messages with a lowercase letter.
74130
74131 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74134         overrun buffers and shouldn't be used (much as gets shouldn't be
74135         used).
74136         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74137
74138 2006-03-08  Simon Josefsson  <jas@extundo.com>
74139
74140         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74141         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74142
74143 2006-03-08  Simon Josefsson  <jas@extundo.com>
74144
74145         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74146         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74147
74148 2006-03-08  Simon Josefsson  <jas@extundo.com>
74149
74150         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74151         signal that configure disabled the device.
74152
74153 2006-03-08  Simon Josefsson  <jas@extundo.com>
74154
74155         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74156         languages.
74157
74158 2006-03-07  Simon Josefsson  <jas@extundo.com>
74159
74160         * modules/getopt (Depends-on): Add unistd.
74161
74162         * modules/unistd: New file.
74163
74164 2006-03-07  Simon Josefsson  <jas@extundo.com>
74165
74166         * modules/gc-random: New file.
74167
74168 2006-03-07  Simon Josefsson  <jas@extundo.com>
74169
74170         * m4/unistd_h.m4: New file.
74171
74172 2006-03-07  Simon Josefsson  <jas@extundo.com>
74173
74174         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74175         test to be side-effect free by storing the result in the cache
74176         variable gl_cv_lib_readline, and moving the assignment of
74177         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74178         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74179
74180 2006-03-07  Simon Josefsson  <jas@extundo.com>
74181
74182         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74183         error on missing devices (the functions will return an error).
74184
74185         * m4/gc.m4: Move random stuff to gc-random.m4
74186
74187 2006-03-07  Simon Josefsson  <jas@extundo.com>
74188
74189         * lib/unistd_.h: New file.
74190
74191 2006-03-07  Simon Josefsson  <jas@extundo.com>
74192
74193         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74194
74195 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74196
74197         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74198         Problem reported by Juan Manuel Guerrero.
74199
74200 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74201
74202         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74203         the unistd module.
74204         * lib/getlogin_r.c: Likewise.
74205         * lib/getlogin_r.h: Likewise.
74206         * lib/glob.c: Likewise.
74207         * lib/pagealign_alloc.c: Likewise.
74208         * lib/unistd_.h: Remove; no longer needed.
74209
74210 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74211
74212         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74213         Add unistd.
74214         * modules/c-stack (Depends-on): Add unistd.
74215         * modules/getlogin_r: Likewise.
74216         * modules/glob: Likewise.
74217         * modules/pagealign_alloc: Likewise.
74218         * modules/unistd (Files): Remove lib/unistd_.h.
74219         (EXTRA_DIST): Remove.
74220         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74221         need unistd_.h.
74222         (MOSTLYCLEANFILES): Remove unistd.h-t.
74223
74224 2006-03-03  Simon Josefsson  <jas@extundo.com>
74225
74226         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74227
74228 2006-03-03  Simon Josefsson  <jas@extundo.com>
74229
74230         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74231         libidn and bison.
74232
74233 2006-03-03  Simon Josefsson  <jas@extundo.com>
74234
74235         * build-aux/maint.mk: Add indent target.
74236
74237 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
74238
74239         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
74240         our replacement poll.h in any case, to avoid a differing
74241         declaration from a system header.  Seen on AIX.
74242
74243 2006-03-01  Simon Josefsson  <jas@extundo.com>
74244
74245         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
74246         <kasal@ucw.cz>.
74247
74248 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         * modules/gettime (Depends-on): Add extensions module.
74251         * modules/nanosleep (Depends-on): Likewise.
74252         * modules/settime (Depends-on): Likewise.
74253
74254 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74255
74256         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
74257         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
74258         pedantically.
74259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74260         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
74261
74262         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
74263         not "==".  Reported by Ralf Wildenhues.
74264
74265 2006-03-01  Karl Berry  <karl@gnu.org>
74266
74267         * doc/Copyright/request-*: new files, synced from gnuorg.
74268
74269 2006-03-01  Karl Berry  <karl@gnu.org>
74270
74271         * config/srclist.txt (Copyright/*): new entries.
74272
74273 2006-02-28  Simon Josefsson  <jas@extundo.com>
74274
74275         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
74276
74277 2006-02-27  Simon Josefsson  <jas@extundo.com>
74278
74279         * lib/base64.h: Indent #define's.  From Jim Meyering
74280         <jim@meyering.net>.
74281
74282 2006-02-27  Jim Meyering  <jim@meyering.net>
74283
74284         Revert the change of 2006-02-24, so these files can continue
74285         to be sync'd from gettext.
74286         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
74287         of `config.h'.
74288
74289 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74290
74291         * modules/intprops: New file.
74292         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74293         Add intprops.
74294         * modules/getloadavg (Files): Remove lib/intprops.h.
74295         (Depends-on): Add intprops.
74296         * modules/human: Likewise.
74297         * modules/inttostr: Likewise.
74298         * modules/openat: Likewise.
74299         * modules/sig2str: Likewise.
74300         * modules/userspec: Likewise.
74301         * modules/utimecmp: Likewise.
74302         * modules/xnanosleep: Likewise.
74303         * modules/xstrtol: Likewise.
74304
74305 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
74306
74307         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
74308         * modules/lock-tests (TESTS): Use $(EXEEXT).
74309         * modules/tls-tests: Likewise.
74310         * modules/argp-tests: Likewise.
74311         (check_PROGRAMS): New var, replacing...
74312         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
74313
74314 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74315
74316         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
74317         `config.h'.
74318
74319 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
74320
74321         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
74322
74323 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74324
74325         Sync from coreutils.
74326         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
74327         gl_CHDIR_SAFER.
74328
74329 2006-02-22  Jim Meyering  <jim@meyering.net>
74330
74331         Sync from coreutils.
74332         * m4/chdir-safer.m4: New file.
74333
74334 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74335
74336         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
74337         AT_FDCWD exceeds INT_MAX.
74338         * lib/openat.h (AT_FDCWD): Likewise.
74339
74340 2006-02-17  Eric Blake  <address@hidden>
74341
74342         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
74343
74344 2006-02-16  Simon Josefsson  <jas@extundo.com>
74345
74346         * modules/getaddrinfo (Depends-on): Add sys_socket.
74347
74348 2006-02-15  Simon Josefsson  <jas@extundo.com>
74349
74350         * build-aux/maint.mk: Add dsyntax-check rule.
74351
74352 2006-02-15  Eric Blake  <ebb9@byu.net>
74353
74354         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
74355         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
74356         'present but cannot compile' warnings on cygwin.
74357         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
74358         use ws2tcpip.h if sys/socket.h works.
74359         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
74360         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
74361
74362 2006-02-14  Simon Josefsson  <jas@extundo.com>
74363
74364         * modules/maintainer-makefile (Files): Rename.
74365
74366         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74367         and (the local) Makefile.cfg to maint-cfg.mk.
74368
74369         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74370         to the latter.
74371
74372         * modules/maintainer-makefile: New module.
74373
74374         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74375         severaly stripped to make it possible to build it up from scratch
74376         with reliable tests.
74377
74378         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74379         fixes to permit overriding the default actions when configure and
74380         makefile are not available.
74381
74382 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         Sync from coreutils.
74385         * modules/lstat (Depends-on): Don't depend on xalloc.
74386         (License): Change from GPL to LGPL, since this is now simply a
74387         replacement for a libc function.
74388
74389 2006-02-14  Jim Meyering  <jim@meyering.net>
74390
74391         Sync from coreutils.
74392
74393         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74394         failure on deficient systems, and simplify gnulib lgpl dependencies.
74395         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74396         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74397
74398         * lib/xalloc-die.c: Remove unused definition of N_.
74399
74400 2006-02-14  Jim Meyering  <jim@meyering.net>
74401
74402         Sync from coreutils.
74403         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74404         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74405         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74406         double-quote uses of that variable, to accommodate the rare case in
74407         which getmntent is available in none of the libraries checked.  This
74408         happens at least on FreeBSD 5.0.
74409
74410 2006-02-13  Simon Josefsson  <jas@extundo.com>
74411
74412         * gnulib-tool (Usage): Fix --import, from
74413         karl@freefriends.org (Karl Berry).
74414
74415 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74416
74417         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74418
74419 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74420
74421         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74422         "autoupdate" on 2005-12-12.
74423
74424 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74425
74426         * modules/closeout (Depends-on): Remove atexit.
74427
74428 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74429
74430         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74431         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74432
74433 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74436         __EXTENSIONS__ if this causes compilation to fail.  Problem
74437         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74438         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74439
74440 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74441
74442         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74443         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74444         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74445         All uses changed.
74446
74447 2006-01-26  Simon Josefsson  <jas@extundo.com>
74448
74449         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74450         prototype is visible on mingw32.
74451
74452         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74453         for mingw32.
74454
74455         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74456         mingw32).
74457
74458 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74459
74460         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74461         attempt to open for write; this always fails, at least on POSIX
74462         hosts.  This reinstates the 2006-01-09 change, which was
74463         inadvertently removed.
74464
74465 2006-01-26  Bruno Haible  <bruno@clisp.org>
74466
74467         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74468         Reported by Paul Eggert.
74469
74470 2006-01-26  Bruno Haible  <bruno@clisp.org>
74471             Paul Eggert  <eggert@cs.ucla.edu>
74472
74473         * lib/stdbool_.h (_Bool)
74474         [(! (defined __cplusplus || defined __BEOS__)
74475           && !defined __GNUC__
74476           && !(defined __HP_cc || defined __xlc__
74477                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74478                || defined __sgi))]:
74479         #define to signed char in these cases too; this simplifies
74480         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74481         etc., separately) and makes it more conservative.
74482
74483 2006-01-25  Simon Josefsson  <jas@extundo.com>
74484
74485         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74486         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74487         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74488
74489 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74490
74491         * lib/argp-namefrob.h: Bugfix. Remove stray #
74492
74493 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74494
74495         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74496         so that we test the test.
74497         Check for yet another HP-UX cc bug involving *bool |= bool.
74498
74499 2006-01-25  Karl Berry  <karl@gnu.org>
74500
74501         * config/srclist.txt (vasnprintf.c): sync lost.
74502
74503 2006-01-25  Jim Meyering  <jim@meyering.net>
74504
74505         Sync from the stable (b5) branch of coreutils:
74506
74507         * lib/fts.c (fts_children): Don't let close() clobber errno from
74508         failed fchdir().
74509
74510         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74511         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74512         a dangling symlink.  That can also happen at least for ELOOP.
74513         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74514         FYI, this bug predates the inclusion of fts.c in coreutils.
74515
74516         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74517         in their own block, so pre-c99 compilers don't object.
74518
74519         Avoid the double-free (first in fts_read, second in fts_close) that
74520         would occur when an `active' directory is made inaccessible (e.g.,
74521         via chmod a-x) during a traversal.
74522         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74523         before returning.  Reproduce this failure by
74524         mkdir -p a/b; cd a; chmod a-x . b
74525         Reported by Stavros Passas.
74526
74527 2006-01-25  Jim Meyering  <jim@meyering.net>
74528
74529         * lib/fileblocks.c: Remove more useless parentheses.
74530         * lib/readutmp.h: Likewise.
74531
74532 2006-01-25  Bruno Haible  <bruno@clisp.org>
74533
74534         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74535         warnings.
74536         Reported by Paul Eggert.
74537
74538 2006-01-25  Bruno Haible  <bruno@clisp.org>
74539
74540         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74541         rid of a trap command. For Solaris sh.
74542         Reported by Mark D. Baushke <mdb@gnu.org>.
74543
74544 2006-01-24  Simon Josefsson  <jas@extundo.com>
74545
74546         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74547         Bruno.
74548
74549 2006-01-24  Karl Berry  <karl@gnu.org>
74550
74551         * config/srclist.txt (argp-namefrob.h): sync lost.
74552
74553 2006-01-24  Jim Meyering  <jim@meyering.net>
74554
74555         * modules/openat (Files): Add lib/intprops.h.
74556         From Mark D. Baushke.
74557
74558 2006-01-24  Jim Meyering  <jim@meyering.net>
74559
74560         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74561         Reported by Mark D. Baushke.
74562
74563 2006-01-24  Jim Meyering  <jim@meyering.net>
74564
74565         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74566
74567 2006-01-24  Bruno Haible  <bruno@clisp.org>
74568
74569         * modules/strnlen (Maintainer): Change from glibc to all.
74570
74571 2006-01-24  Bruno Haible  <bruno@clisp.org>
74572
74573         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74574         Patch by Paul Eggert.
74575
74576 2006-01-24  Bruno Haible  <bruno@clisp.org>
74577
74578         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74579         already has it.
74580         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74581         2005-11-26.
74582
74583         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74584         'signed char' to avoid problems with the built-in _Bool type.
74585         Reported by Paul Eggert on 2005-11-26.
74586
74587 2006-01-24  Bruno Haible  <bruno@clisp.org>
74588
74589         * gnulib-tool (func_import): Avoid constructing complicated sed
74590         expressions inside backquote.
74591         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74592
74593 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74594
74595         These changes imported from libc.
74596         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74597         test and two separate function calls.
74598         * lib/strndup.c (__strndup): Add libc_hidden_def.
74599
74600 2006-01-23  Simon Josefsson  <jas@extundo.com>
74601
74602         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74603         Remove the test_*_SOURCES variable: automake infers it by default.
74604         * modules/tls-tests: Likewise.
74605
74606 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74607
74608         Work around porting bugs reported by Dieter in
74609         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74610         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74611         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74612         Include "getopt.h" first, to check interface.
74613         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74614         !HAVE_DECL_GETENV.
74615         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74616         (__strndup): Revert to K&R-style function dfns, the glibc style.
74617         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74618         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74619         Include strnlen.h first, to get prototype properly.
74620         (strnlen): Renamed from __strnlen.
74621         Remove weak alias.
74622
74623 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74624
74625         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74626
74627 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74628
74629         * config/srclist.txt: Adjust to reflect glibc reorganization.
74630         This affects only comments.
74631
74632 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74633
74634          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74635          Reported by Bruce Korb <bkorb@gnu.org>.
74636
74637 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74640         to pacify gcc -Wswitch-default.
74641
74642 2006-01-22  Bruno Haible  <bruno@clisp.org>
74643
74644         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74645         temporary buffer for sprintf, take into account the precision also
74646         for 'd', 'i', 'u', 'o', 'x', 'X'.
74647
74648 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74649
74650         * modules/argp-tests: New module
74651         * tests/test-argp.c: New file
74652         * tests/test-argp-2.sh: New file
74653
74654 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74655
74656         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74657         (__argp_base_name): Removed
74658         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74659         typo.
74660         (__argp_base_name): Provide macro definition or extern declaration
74661         depending on the configuration
74662
74663 2006-01-20  Simon Josefsson  <jas@extundo.com>
74664
74665         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74666
74667 2006-01-20  Simon Josefsson  <jas@extundo.com>
74668
74669         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74670
74671 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74672
74673         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74674         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74675         Suggested by Bruno Haible.
74676
74677 2006-01-20  Karl Berry  <karl@gnu.org>
74678
74679         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74680         until changes propagate, I guess.
74681
74682 2006-01-19  Simon Josefsson  <jas@extundo.com>
74683
74684         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74685
74686 2006-01-19  Simon Josefsson  <jas@extundo.com>
74687
74688         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74689
74690 2006-01-19  Simon Josefsson  <jas@extundo.com>
74691
74692         * gnulib-tool: Set check_PROGRAMS.
74693
74694         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74695         modules/des-tests, modules/gc-arcfour-tests,
74696         modules/gc-arctwo-tests, modules/gc-des-tests,
74697         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74698         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74699         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74700         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74701         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74702         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74703         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74704         test_*_SOURCES.
74705
74706 2006-01-18  Simon Josefsson  <jas@extundo.com>
74707
74708         * modules/socklen (Depends-on): Depend on sys_socket.
74709
74710 2006-01-18  Simon Josefsson  <jas@extundo.com>
74711
74712         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74713         modules/des-tests, modules/gc-arcfour-tests,
74714         modules/gc-arctwo-tests, modules/gc-des-tests,
74715         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74716         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74717         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74718         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74719         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74720         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74721         $(EXEEXT) to automake TESTS variable, for mingw32.
74722
74723 2006-01-17  Simon Josefsson  <jas@extundo.com>
74724
74725         * modules/socklen (Include): Need sys/socket.h.
74726
74727 2006-01-17  Bruno Haible  <bruno@clisp.org>
74728
74729         * modules/ssize_t (Include): Add <sys/types.h>.
74730
74731 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74734         it's not portable and it doesn't work with cross-compiles.
74735         Problem reported by Bruno Haible.  Fix missing-$ typo in
74736         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74737         -zignore from being used with Sun's C compiler.
74738
74739 2006-01-12  Simon Josefsson  <jas@extundo.com>
74740
74741         * lib/base64.c: Fix warning, reported by Bruno Haible
74742         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74743
74744 2006-01-12  Bruno Haible  <bruno@clisp.org>
74745
74746         * modules/ldd: New file.
74747         * build-aux/ldd.sh.in: New file.
74748         * MODULES.html.sh (Support for building libraries and executables): Add
74749         ldd.
74750
74751 2006-01-12  Bruno Haible  <bruno@clisp.org>
74752
74753         * m4/ldd.m4: New file.
74754
74755 2006-01-12  Bruno Haible  <bruno@clisp.org>
74756
74757         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74758         endless loop while replacing $auxdir with build-aux.
74759
74760 2006-01-11  Simon Josefsson  <jas@extundo.com>
74761
74762         * lib/stdint_.h (SIZE_MAX): Add missing (.
74763
74764 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         Sync from coreutils.
74767         * lib/md5.c: Fix commentary typos.
74768         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74769         * lib/md5.h (__attribute__): Remove; unused.
74770         * lib/sha1.c: Fix commentary to match md5 better.
74771         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74772         so that we don't need to worry about alignment.  All uses changed.
74773         This merges the 2005-10-28 md5 change into sha1.
74774
74775 2006-01-11  Jim Meyering  <jim@meyering.net>
74776
74777         Sync from coreutils.
74778         * lib/md5.c (OP): Fix spacing.
74779
74780 2006-01-11  Bruno Haible  <bruno@clisp.org>
74781
74782         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74783         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74784         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74785
74786 2006-01-11  Bruno Haible  <bruno@clisp.org>
74787
74788         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74789         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74790         the "early" section as well.
74791
74792 2006-01-11  Bruno Haible  <bruno@clisp.org>
74793
74794         Avoid "ar: no archive members specified" error on MacOS X.
74795         * gnulib-tool (func_modules_add_dummy): New function.
74796         (func_import, func_create_testdir): Invoke it.
74797
74798 2006-01-11  Bruno Haible  <bruno@clisp.org>
74799
74800         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74801         with $auxdir in AC_CONFIG_FILES statements.
74802
74803 2006-01-11  Bruno Haible  <bruno@clisp.org>
74804
74805         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74806         Initialize also noinst_HEADERS to empty.
74807
74808 2006-01-11  Bruno Haible  <bruno@clisp.org>
74809
74810         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74811         variables.
74812         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74813         autoreconf.
74814
74815 2006-01-11  Bruno Haible  <bruno@clisp.org>
74816
74817         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74818         overridable by the user.
74819         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74820
74821 2006-01-10  Simon Josefsson  <jas@extundo.com>
74822
74823         * modules/sys_socket: New file.
74824
74825 2006-01-10  Simon Josefsson  <jas@extundo.com>
74826
74827         * m4/sys_socket_h.m4: New file.
74828
74829 2006-01-10  Simon Josefsson  <jas@extundo.com>
74830
74831         * lib/socket_.h: New file.
74832
74833 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74834
74835         * modules/readutmp (Maintainer): Add myself.
74836
74837 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74838
74839         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74840         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74841         People who are still concerned with buggy memcmp implementations
74842         can invoke gl_FUNC_MEMCMP themselves.
74843
74844 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         * lib/regex_internal.h (BITSET_WORD_BITS):
74847         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74848         preprocessor mishandles large unsigned values as if they were signed.
74849         Problem reported by Claudio Fontana in
74850         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74851
74852 2006-01-10  Jim Meyering  <jim@meyering.net>
74853
74854         Avoid the double-free (first in fts_read, second in fts_close) that
74855         would occur when an `active' directory is made inaccessible (e.g.,
74856         via chmod a-x) during a traversal.
74857         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74858         before returning.  Reproduce this failure by
74859         mkdir -p a/b; cd a; chmod a-x . b
74860         Reported by Stavros Passas.
74861
74862         Sync from coreutils.
74863         * lib/sha1.c: Tweak grammar in a comment.
74864
74865 2006-01-10  Jim Meyering  <jim@meyering.net>
74866
74867         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74868         Patch by Joerg Sonnenberger.
74869
74870 2006-01-10  Bruno Haible  <bruno@clisp.org>
74871
74872         * modules/readutmp: Depend on module free.
74873         * modules/strtok_r: Depend on module restrict.
74874
74875 2006-01-10  Bruno Haible  <bruno@clisp.org>
74876
74877         * modules/gettext (configure.ac): Add an invocation of
74878         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74879
74880 2006-01-10  Bruno Haible  <bruno@clisp.org>
74881
74882         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74883         Reported by Werner Lemberg <wl@gnu.org>.
74884
74885 2006-01-10  Bruno Haible  <bruno@clisp.org>
74886
74887         * lib/localcharset.c: Update from GNU gettext.
74888
74889 2006-01-10  Bruno Haible  <bruno@clisp.org>
74890
74891         * lib/argp.h (__const): Remove macro. Use const instead.
74892         * lib/argp-fmtstream.h (__const): Likewise.
74893         * lib/glob_.h (__const): Remove macro.
74894         * lib/glob-libc.h: Use const instead of __const.
74895
74896 2006-01-10  Bruno Haible  <bruno@clisp.org>
74897
74898         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74899         variable.
74900         Needed to avoid an automake error regarding the 'gettext' module.
74901
74902 2006-01-09  Simon Josefsson  <jas@extundo.com>
74903
74904         * modules/inet_ntop (Depends-on): Add restrict.
74905
74906 2006-01-09  Simon Josefsson  <jas@extundo.com>
74907
74908         * modules/gc-rijndael-tests (License): Put under LGPL.
74909
74910         * modules/gc-des-tests (License): Likewise.
74911
74912         * modules/gc-arcfour-tests (License): Likewise.
74913
74914         * modules/gc-arctwo-tests (License): Likewise.
74915
74916         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74917
74918         * modules/gc-hmac-sha1-tests (Files): Likewise.
74919
74920         * modules/gc-hmac-md5-tests (License): Likewise.
74921
74922         * modules/gc-sha1-tests (License): Likewise.
74923
74924         * modules/gc-md5-tests (License): Likewise.
74925
74926         * modules/gc-md4-tests (License): Likewise.
74927
74928         * modules/gc-md2-tests (License): Likewise.
74929
74930         * modules/gc-tests (License): Likewise.
74931
74932         * modules/des-tests (License): Likewise.
74933
74934         * modules/md4-tests (License): Likewise.
74935
74936         * modules/md2-tests (License): Likewise.
74937
74938 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74939
74940         Sync from coreutils:
74941
74942         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74943         * modules/lib-ignore: New file.
74944         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74945         chdir-safer.m4, lchmod.m4.
74946         * modules/openat: Add mkdirat.c, openat-priv.h.
74947
74948 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74949
74950         Sync from coreutils.
74951         * m4/lib-ignore.m4: New file.
74952         * m4/lchmod.m4: New file.
74953
74954 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         Sync from coreutils.
74957         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74958         for write access: POSIX says that must fail.
74959         * lib/fts.c (diropen): Likewise.
74960         * lib/save-cwd.c (save_cwd): Likewise.
74961         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74962         well, for minor improvements on hosts that lack O_DIRECTORY.
74963         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74964         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74965         Fall back on chown if open failed with EACCES.
74966
74967         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74968         Report an error at compile-time if only a 1-second nominal clock
74969         resolution is found.
74970
74971         * lib/lchmod.h: New file.
74972         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74973         (make_dir_parents): Use lchown rather than chown, and
74974         lchmod rather than chmod.
74975
74976         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74977         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74978         "proc" reported by n0dalus.
74979
74980         * lib/mountlist.c: Include <limits.h>.
74981         (dev_from_mount_options)
74982         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74983         New function.  It no longer assumes "dev=" has the System V meaning
74984         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74985         (read_file_system_list)
74986         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74987         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74988         dev= in that case.
74989
74990         * lib/posixtm.h (PDS_PRE_2000): New macro.
74991         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74992         allow_century.  All usages changed.  Reject dates outside the range
74993         1969-1999 if PDS_PRE_2000 is used.
74994
74995 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         Sync from coreutils.
74998         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74999         (Time of day items): Mention the possibility of leap seconds.
75000         Problem reported by Dr. David Alan Gilbert.
75001
75002 2006-01-09  Jim Meyering  <jim@meyering.net>
75003
75004         Sync from coreutils.
75005
75006         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75007
75008         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75009
75010         * lib/modechange.c (mode_compile): Reject an invalid mode string
75011         that starts with an octal digit.  From Andreas Gruenbacher.
75012
75013         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75014         and dup to open_safer and dup_safer, respectively.
75015         (openat_permissive): Fix typo in comment.
75016
75017         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75018         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75019         (_): Remove; no longer needed.
75020         (openat): Renamed from rpl_openat; no need for rpl_openat
75021         since openat.h renames openat for us.
75022         Replace most of the body with a call to openat_permissive,
75023         to avoid duplicate code.
75024         Port to (probably hypothetical) environments were mode_t is
75025         wider than int.
75026         (openat_permissive): Require mode arg, so that we can check
75027         types better.  Put it just after flags.  Change cwd failure
75028         indicator from pointer-to-bool to pointer-to-errno-value.
75029         All callers changed.
75030         Invoke openat_save_fail and/or openat_restore_fail if
75031         cwd_errno is null, so that openat can call us.
75032         (openat_permissive, fdopendir, fstatat, unlinkat):
75033         Simplify errno handling to avoid some duplicate code,
75034         as it's OK to set errno on success.
75035         * lib/openat.h: Revamp code so that function macros depend on
75036         __OPENAT_PREFIX only, not also on AT_FDCWD.
75037         (openat_ro): Remove.  Caller changed to use openat_permissive.
75038         (openat_permissive): Now a macro, if not a function.
75039         (openat_restore_fail, openat_save_fail): Now always functions,
75040         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75041
75042         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75043         and openat.c.
75044         * lib/mkdirat.c: Include openat-priv.h.
75045         Remove definitions of macros defined therein.
75046         * lib/openat.c: Likewise.
75047
75048         * lib/mkdirat.c (mkdirat): New file and function.
75049         * lib/openat.h (mkdirat): Declare.
75050
75051         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75052
75053         * lib/openat.h (openat_permissive): Declare.
75054         (openat_ro): Define.
75055
75056         * lib/openat.c (EXPECTED_ERRNO): New macro.
75057         (openat_permissive): New function -- used in remove.c rewrite.
75058         (all functions): Set errno just before returning, only if there
75059         was an actual failure.
75060         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75061
75062         Emulate openat-family functions using Linux's procfs, if possible.
75063         Idea and some code based on Ulrich Drepper's glibc changes.
75064
75065         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75066         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75067         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75068         before falling back on save_cwd and restore_cwd.
75069         (fdopendir, fstatat, unlinkat): Likewise.
75070
75071         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75072         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75073
75074         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75075         as second argument to va_arg.  Otherwise, some versions of gcc
75076         warn that `if this code is reached, the program will abort'.
75077
75078 2006-01-09  Jim Meyering  <jim@meyering.net>
75079
75080         Sync from coreutils.
75081         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75082         Require openat-priv.h.
75083
75084 2006-01-09  Bruno Haible  <bruno@clisp.org>
75085
75086         * modules/strnlen (Include): Use strnlen.h.
75087
75088 2006-01-09  Bruno Haible  <bruno@clisp.org>
75089
75090         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75091
75092 2006-01-09  Bruno Haible  <bruno@clisp.org>
75093
75094         * lib/sysexit_.h (EX_OK): New macro.
75095         Suggested by Martin Lambers <marlam@marlam.de>.
75096
75097 2006-01-09  Bruno Haible  <bruno@clisp.org>
75098
75099         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75100         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75101
75102 2006-01-09  Bruno Haible  <bruno@clisp.org>
75103
75104         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75105         numbers.
75106
75107 2006-01-09  Bruno Haible  <bruno@clisp.org>
75108
75109         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75110         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75111         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75112         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75113
75114 2006-01-09  Bruno Haible  <bruno@clisp.org>
75115
75116         * build-aux/javacomp.sh.in: New file, moved from lib/.
75117         * modules/javacomp-script (Files): Update.
75118         (configure.ac): Add AC_CONFIG_FILES invocation.
75119         (EXTRA_DIST): Remove variable.
75120
75121         * build-aux/javaexec.sh.in: New file, moved from lib/.
75122         * modules/javaexec (Files): Update.
75123         (configure.ac): Add AC_CONFIG_FILES invocation.
75124         (EXTRA_DIST): Remove javaexec.sh.in.
75125
75126         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75127         * modules/csharpcomp-script (Files): Update.
75128         (configure.ac): Add AC_CONFIG_FILES invocation.
75129         (EXTRA_DIST): Remove variable.
75130
75131         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75132         * modules/csharpexec (Files): Update.
75133         (configure.ac): Add AC_CONFIG_FILES invocation.
75134         (EXTRA_DIST): Remove csharpexec.sh.in.
75135
75136 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75137
75138         Sync from coreutils.
75139
75140         Add POSIX ACL support
75141         * lib/acl.h (copy_acl, set_acl): Add declarations.
75142         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75143         systems other than Linux.
75144         (chmod_or_fchmod): New function: use fchmod when possible,
75145         and chmod otherwise.
75146         (file_has_acl): Add a POSIX ACL implementation, with a
75147         Linux-specific subcase.
75148         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75149         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75150         acls are unsupported.
75151         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75152         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75153         are unsupported.
75154
75155 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75156
75157         Sync from coreutils.
75158         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75159
75160 2006-01-07  Bruno Haible  <bruno@clisp.org>
75161
75162         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75163         gl_EARLY.
75164
75165 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75166
75167         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75168         Problem reported for Mingw by Mark Junker.
75169
75170 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75171
75172         * README: Gnulib normally doesn't generate a tarball.
75173
75174 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75175
75176         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75177         long int, not int, for nanosecond counts, so that people who are
75178         used to POSIX struct timespec won't be surprised.  Reported by Jim
75179         Meyering.
75180
75181 2005-12-28  Bruno Haible  <bruno@clisp.org>
75182
75183         * build-aux/config.rpath: Update from GNU gettext.
75184
75185 2005-12-16  Jim Meyering  <jim@meyering.net>
75186
75187         * modules/fprintftime: New module.
75188         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75189
75190 2005-12-16  Jim Meyering  <jim@meyering.net>
75191
75192         * m4/fprintftime.m4: New file.
75193
75194 2005-12-16  Jim Meyering  <jim@meyering.net>
75195
75196         * lib/fprintftime.c, lib/fprintftime.h: New files.
75197
75198 2005-12-15  Simon Josefsson  <jas@extundo.com>
75199
75200         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75201         new m4/socklen.m4.
75202
75203 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75204
75205         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75206         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75207
75208 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75209
75210         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75211         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75212         struct uparams is valid. Fall back to the default values if it is
75213         not.
75214
75215 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75216
75217         * modules/argp (Files): Add argp-pin.c
75218         (Depends-on): dirname
75219         (lib_SOURCES): Add argp-pin.c
75220
75221 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75222
75223         * m4/argp.m4:  Check if program_invocation_name and
75224         program_invocation_short_name are declared and define appropriate
75225         macros if they are not.
75226
75227 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75228
75229         * lib/argp-help.c (__argp_base_name): New function
75230         (__argp_short_program_name): Rewrite using __argp_base_name
75231         * lib/argp-namefrob.h: Define program_invocation_name and
75232         program_invocation_short_name if requested
75233         (__argp_base_name): Add prototype
75234         * lib/argp-parse.c (argp_def): Use gettext wrappers
75235         (argp_default_parser): Use __argp_base_name
75236         * lib/argp-pin.c: New file. Defines program_invocation_name and
75237         program_invocation_short_name on systems that lack them.
75238
75239 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75240
75241         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
75242         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75243         porting problem reported by Georg Schwarz in
75244         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75245
75246 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75247
75248         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
75249         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75250         porting problem reported by Georg Schwarz in
75251         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75252
75253 2005-12-05  Bruno Haible  <bruno@clisp.org>
75254
75255         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
75256         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
75257         Reported by Mark Junker <mjscod@gmx.de>.
75258
75259 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
75260
75261         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
75262         Use implementation from Albert Chin, with some
75263         comments/corrections by Stepan Kasal and myself.
75264
75265 2005-12-02  Bruno Haible  <bruno@clisp.org>
75266
75267         * gnulib-tool (func_import): Accept GPLed build tool modules when
75268         --lgpl is given.
75269         * modules/csharpcomp-script: New file.
75270         * modules/csharpcomp: Depend on it.
75271         * modules/javacomp-script: New file.
75272         * modules/javacomp: Depend on it.
75273         Suggested by Simon Josefsson.
75274
75275 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
75276
75277         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
75278         statement, to work around an HP-UX 10.20 compiler bug reported by
75279         Peter O'Gorman.
75280
75281 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75282
75283         * modules/savedir (Depends-on): Add openat.
75284
75285 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75286
75287         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
75288         (uintmax_t) [defined uintmax_t]: Do not declare.
75289         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
75290         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
75291         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
75292         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
75293         sake of portability to weird hosts that C allows (though we don't
75294         know of any practical examples).
75295
75296         * lib/savedir.h (fdsavedir): New decl.
75297         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
75298         contains most of the former guts of savedir.
75299         (savedir): Use savedirstream.
75300         Include "openat.h".
75301
75302 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         * modules/obstack (Files): Add m4/ulonglong.m4.
75305         Problem reported by Davide Angelocola.
75306
75307 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75308
75309         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
75310         coreutils no longer futzes with rounding modes.
75311
75312 2005-11-14  Jim Meyering  <jim@meyering.net>
75313
75314         * lib/mkstemp-safer.c: Include <config.h>, required for possible
75315         replacement of mkstemp.
75316
75317 2005-11-10  Simon Josefsson  <jas@extundo.com>
75318
75319         * lib/readline.c: Remove EOL.
75320
75321 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * modules/gethrxtime (Depends-on): Add gettime.
75324
75325 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75326
75327         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
75328         or gettimeofday; no longer needed.
75329
75330 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75331
75332         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
75333         time business.
75334         (gethrxtime) [! (HAVE_NANOUPTIME
75335         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
75336         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
75337         our own approximation.
75338
75339 2005-11-08  Eric Blake  <ebb9@byu.net>
75340
75341         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75342
75343 2005-11-08  Eric Blake  <ebb9@byu.net>
75344
75345         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75346
75347 2005-11-04  Bruno Haible  <bruno@clisp.org>
75348
75349         * gnulib-tool: Implement --update mode.
75350
75351 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75352
75353         Fix porting problem reported by Theodoros V. Kalamatianos.
75354         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
75355         Don't assume that futimes failing means we must fail.
75356
75357 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75358
75359         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
75360         variables to suggest the intended function of the PATH_MAX check.
75361
75362 2005-10-30  Kean Johnston  <jkj@sco.com>
75363
75364         Trivial changes to support SCO systems.
75365         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
75366         as PATH_MAX.
75367         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75368         where __ptr is null when no I/O is pending.
75369
75370 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75371
75372         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75373         leave errno alone.  Problem reported by Dmitry V. Levin.
75374
75375 2005-10-28  Simon Josefsson  <jas@extundo.com>
75376
75377         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75378         Test more.
75379
75380         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75381
75382         * modules/md2, modules/md2-tests: New files.
75383
75384 2005-10-28  Simon Josefsson  <jas@extundo.com>
75385
75386         * m4/inet_ntop.m4: More tests.
75387
75388         * m4/gc-md2.m4, md2.m4: New file.
75389
75390 2005-10-28  Simon Josefsson  <jas@extundo.com>
75391
75392         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75393         "restrict" keywords, as per POSIX.  Protect the function
75394         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75395         Don't use K&R prototypes.  Check the sprintf return values.
75396         Re-define EAFNOSUPPORT if not present.  Indent.
75397
75398         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75399         suggested by Bruno Haible <bruno@clisp.org>.
75400
75401         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75402
75403         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75404
75405         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75406         libgcrypt).
75407
75408         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75409
75410         * lib/md2.h, lib/md2.c: New files.
75411
75412 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75413
75414         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75415         errno alone.  Problem reported by Frederic Jolliton.
75416
75417 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75418
75419         * modules/verify (License): Change from GPL to LGPL.  This is a
75420         tiny module and there are apparently near-equivalents that are
75421         under the BSD license.
75422
75423 2005-10-24  Simon Josefsson  <jas@extundo.com>
75424
75425         * modules/sha1: Relicense to LGPL.
75426
75427 2005-10-24  Simon Josefsson  <jas@extundo.com>
75428
75429         * lib/md4.h: Shrink buffer size, now that we changed the type.
75430
75431 2005-10-23  Simon Josefsson  <jas@extundo.com>
75432
75433         * gnulib-tool (func_import): Fix --tests-base.
75434
75435 2005-10-22  Simon Josefsson  <jas@extundo.com>
75436
75437         * modules/arcfour (Depends-on): Need stdint.
75438
75439 2005-10-22  Simon Josefsson  <jas@extundo.com>
75440
75441         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75442         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75443
75444 2005-10-22  Simon Josefsson  <jas@extundo.com>
75445
75446         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75447         suggested by Bruno Haible <bruno@clisp.org>.
75448
75449 2005-10-22  Simon Josefsson  <jas@extundo.com>
75450
75451         * lib/crc.h: Include stddef.h, for size_t.
75452
75453 2005-10-22  Simon Josefsson  <jas@extundo.com>
75454
75455         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75456         arcfour_context struct (simplify test vector testing in GNU
75457         Shishi).
75458
75459 2005-10-21  Simon Josefsson  <jas@extundo.com>
75460
75461         * modules/des, modules/des-tests: New files.
75462
75463         * modules/gc-des, modules/gc-des-tests: New files.
75464
75465         * tests/test-des.c, tests/test-gc-des.c: New file.
75466
75467 2005-10-21  Simon Josefsson  <jas@extundo.com>
75468
75469         * modules/arctwo, modules/arctwo-tests: New files.
75470
75471         * tests/test-arctwo.c: New file.
75472
75473         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75474
75475         * tests/test-gc-arctwo.c: New file.
75476
75477 2005-10-21  Simon Josefsson  <jas@extundo.com>
75478
75479         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75480         Bruno Haible <bruno@clisp.org>.
75481
75482         * m4/gc-des.m4: New file.
75483
75484 2005-10-21  Simon Josefsson  <jas@extundo.com>
75485
75486         * m4/arctwo.m4: New file.
75487
75488         * m4/gc-arctwo.m4: New file.
75489
75490 2005-10-21  Simon Josefsson  <jas@extundo.com>
75491
75492         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75493         block.
75494
75495 2005-10-21  Simon Josefsson  <jas@extundo.com>
75496
75497         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75498         <bruno@clisp.org>.
75499
75500         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75501
75502         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75503         Bruno Haible <bruno@clisp.org>.
75504
75505         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75506         <bruno@clisp.org>.
75507
75508 2005-10-21  Simon Josefsson  <jas@extundo.com>
75509
75510         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75511
75512 2005-10-21  Simon Josefsson  <jas@extundo.com>
75513
75514         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75515
75516 2005-10-21  Simon Josefsson  <jas@extundo.com>
75517
75518         * lib/des.h, lib/des.c: New files.
75519
75520         * lib/gc-gnulib.c: Support DES.c
75521
75522 2005-10-21  Simon Josefsson  <jas@extundo.com>
75523
75524         * lib/arctwo.h, lib/arctwo.c: New files.
75525
75526         * lib/gc-gnulib.c: Support ARCTWO.
75527
75528 2005-10-21  Simon Josefsson  <jas@extundo.com>
75529
75530         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75531         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75532
75533 2005-10-21  Simon Josefsson  <jas@extundo.com>
75534
75535         * gnulib-tool (func_import, func_create_testdir): Define automake
75536         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75537         Makefile.am snippet),
75538         suggested by Bruno Haible <bruno@clisp.org>.
75539
75540         * modules/gc (Makefile.am): Use it.
75541
75542 2005-10-21  Bruno Haible  <bruno@clisp.org>
75543
75544         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75545         patch.
75546
75547 2005-10-19  Simon Josefsson  <jas@extundo.com>
75548
75549         * tests/test-gc-rijndael.c: New file.
75550
75551         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75552
75553 2005-10-19  Simon Josefsson  <jas@extundo.com>
75554
75555         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75556         interface too.
75557
75558 2005-10-19  Simon Josefsson  <jas@extundo.com>
75559
75560         * tests/test-gc-arcfour.c: New file.
75561
75562         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75563
75564 2005-10-19  Simon Josefsson  <jas@extundo.com>
75565
75566         * modules/gc-md4, modules/gc-md4-tests: New file.
75567
75568         * tests/test-gc-md4.c: New file.
75569
75570 2005-10-19  Simon Josefsson  <jas@extundo.com>
75571
75572         * m4/gc-md4.m4: New file.
75573
75574 2005-10-19  Simon Josefsson  <jas@extundo.com>
75575
75576         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75577         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75578         <kasal@ucw.cz>.
75579
75580 2005-10-19  Simon Josefsson  <jas@extundo.com>
75581
75582         * m4/gc-arcfour.m4: New file.
75583
75584         * m4/gc-rijndael.m4: New file.
75585
75586 2005-10-19  Simon Josefsson  <jas@extundo.com>
75587
75588         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75589
75590 2005-10-19  Simon Josefsson  <jas@extundo.com>
75591
75592         * lib/gc-gnulib.c: Support ARCFOUR.
75593
75594 2005-10-19  Simon Josefsson  <jas@extundo.com>
75595
75596         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75597         support.
75598
75599         * lib/gc.h: Add ECB enum type.
75600
75601         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75602
75603 2005-10-18  Simon Josefsson  <jas@extundo.com>
75604
75605         * tests/test-md5.c: New file.
75606
75607         * modules/md5-tests: New file.
75608
75609 2005-10-18  Simon Josefsson  <jas@extundo.com>
75610
75611         * tests/test-md4.c: New file.
75612
75613         * modules/md4, modules/md4-tests: New files.
75614
75615 2005-10-18  Simon Josefsson  <jas@extundo.com>
75616
75617         * m4/md4.m4: New file.
75618
75619 2005-10-18  Simon Josefsson  <jas@extundo.com>
75620
75621         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75622
75623 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75624
75625         * gnulib-tool (func_create_testdir): Omit the second check whether
75626         BUILT_SOURCES in nonempty.
75627
75628 2005-10-17  Simon Josefsson  <jas@extundo.com>
75629
75630         * tests/test-rijndael.c: New file.
75631
75632 2005-10-17  Simon Josefsson  <jas@extundo.com>
75633
75634         * modules/sha1: Depend on stdint instead of md5.
75635
75636         * modules/md5: Depend on stdint, remove uint32_t.
75637
75638 2005-10-17  Simon Josefsson  <jas@extundo.com>
75639
75640         * modules/gc-sha1-tests: New file.
75641
75642         * tests/test-gc-sha1.c: New file.
75643
75644 2005-10-17  Simon Josefsson  <jas@extundo.com>
75645
75646         * m4/md5.m4: Remove call to uint32_t.m4.
75647
75648 2005-10-17  Simon Josefsson  <jas@extundo.com>
75649
75650         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75651
75652         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75653         md5.h.
75654
75655         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75656
75657         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75658
75659 2005-10-17  Simon Josefsson  <jas@extundo.com>
75660
75661         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75662
75663 2005-10-17  Simon Josefsson  <jas@extundo.com>
75664
75665         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75666
75667 2005-10-17  Simon Josefsson  <jas@extundo.com>
75668
75669         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75670
75671         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75672
75673 2005-10-17  Bruno Haible  <bruno@clisp.org>
75674
75675         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75676         that it can also be used in a test.
75677
75678 2005-10-16  Bruno Haible  <bruno@clisp.org>
75679
75680         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75681         TESTS_ENVIRONMENT, so that individual tests can augment it.
75682
75683         * gnulib-tool (func_create_testdir): Use an intermediate target for
75684         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75685         macros, like $(ALLOCA_H), which cannot be passed through the command
75686         line.
75687
75688 2005-10-15  Simon Josefsson  <jas@extundo.com>
75689
75690         * modules/rijndael-tests: New file.
75691
75692         * modules/rijndael: New file.
75693
75694 2005-10-15  Simon Josefsson  <jas@extundo.com>
75695
75696         * m4/rijndael.m4: New file.
75697
75698 2005-10-15  Simon Josefsson  <jas@extundo.com>
75699
75700         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75701
75702         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75703
75704 2005-10-14  Simon Josefsson  <jas@extundo.com>
75705
75706         * tests/test-arcfour.c: New file.
75707
75708         * modules/arcfour, modules/arcfour-tests: New files.
75709
75710 2005-10-14  Simon Josefsson  <jas@extundo.com>
75711
75712         * m4/arcfour.m4: New file.
75713
75714 2005-10-14  Simon Josefsson  <jas@extundo.com>
75715
75716         * lib/arcfour.h, lib/arcfour.c: New files.
75717
75718 2005-10-14  Roland McGrath  <roland@redhat.com>
75719
75720         Import from libc.  [BZ #1331]
75721         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75722         macro argument.
75723         Reported by Matej Vela <vela@debian.org>.
75724
75725 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75726
75727         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75728         include <wchar.h>; no longer needed.
75729
75730 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75731
75732         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75733
75734 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75735         and  Ulrich Drepper  <drepper@redhat.com>
75736
75737         Import from libc.
75738         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75739         instead of inline stream orientation test and two separate
75740         function calls.  Pay no attention to USE_IN_LIBIO.
75741
75742 2005-10-13  Simon Josefsson  <jas@extundo.com>
75743
75744         * modules/gc-hmac-md5-tests: New file.
75745
75746         * tests/test-gc-hmac-sha1.c: New file.
75747
75748         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75749
75750         * modules/gc-hmac-md5-tests: New file.
75751
75752         * tests/test-gc-md5.c: New file.
75753
75754         * modules/gc-md5-tests: New file.
75755
75756 2005-10-13  Simon Josefsson  <jas@extundo.com>
75757
75758         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75759         Move memory allocation outside of loop.
75760
75761 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75762
75763         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75764         intermediate directory is in a read-only file system.  Problem
75765         reported by Eric Blake.
75766
75767 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75768
75769         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75770
75771 2005-10-12  Simon Josefsson  <jas@extundo.com>
75772
75773         * tests/test-hmac-sha1.c: New file.
75774
75775         * modules/hmac-sha1-tests: New file.
75776
75777         * modules/hmac-sha1: New file.
75778
75779 2005-10-12  Simon Josefsson  <jas@extundo.com>
75780
75781         * modules/gc-sha1: New file.
75782
75783 2005-10-12  Simon Josefsson  <jas@extundo.com>
75784
75785         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75786
75787         * tests/test-gc-pbkdf2-sha1.c: New file.
75788
75789 2005-10-12  Simon Josefsson  <jas@extundo.com>
75790
75791         * modules/gc-md5, modules/gc-hmac-md5: New files.
75792
75793         * modules/gc (Files): Remove md5, memxor and hmac files.
75794
75795 2005-10-12  Simon Josefsson  <jas@extundo.com>
75796
75797         * m4/gc-pbkdf2-sha1.m4: New file.
75798
75799         * m4/gc-hmac-sha1.m4: New file.
75800
75801         * m4/gc-sha1: New file.
75802
75803         * m4/hmac-sha1.m4: New file.
75804
75805 2005-10-12  Simon Josefsson  <jas@extundo.com>
75806
75807         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75808
75809         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75810
75811 2005-10-12  Simon Josefsson  <jas@extundo.com>
75812
75813         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75814         suggested by Bruno Haible <bruno@clisp.org>.
75815
75816 2005-10-12  Simon Josefsson  <jas@extundo.com>
75817
75818         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75819
75820 2005-10-12  Simon Josefsson  <jas@extundo.com>
75821
75822         * lib/gc-pbkdf2-sha1.c: New file.
75823
75824         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75825
75826 2005-10-12  Simon Josefsson  <jas@extundo.com>
75827
75828         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75829
75830         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75831
75832 2005-10-12  Simon Josefsson  <jas@extundo.com>
75833
75834         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75835         GC_USE_HMAC_MD5, respectively.
75836
75837         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75838         (gc_md5): Fix typo.
75839
75840         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75841
75842         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75843
75844         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75845
75846 2005-10-12  Bruno Haible  <bruno@clisp.org>
75847
75848         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75849         Reported by Stepan Kasal <kasal@ucw.cz>.
75850
75851 2005-10-11  Simon Josefsson  <jas@extundo.com>
75852
75853         * tests/test-crc.c: New file.
75854
75855         * modules/crc, modules/crc-tests: New files.
75856
75857 2005-10-11  Simon Josefsson  <jas@extundo.com>
75858
75859         * m4/crc.m4: New file.
75860
75861 2005-10-11  Simon Josefsson  <jas@extundo.com>
75862
75863         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75864
75865         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75866
75867         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75868
75869 2005-10-11  Simon Josefsson  <jas@extundo.com>
75870
75871         * lib/crc.h, lib/crc.c: New files.
75872
75873         * lib/gc.h (gc_hash_buffer): Add doc.
75874
75875 2005-10-11  Bruno Haible  <bruno@clisp.org>
75876
75877         * modules/c-strcasestr: New file.
75878         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75879
75880 2005-10-11  Bruno Haible  <bruno@clisp.org>
75881
75882         * modules/c-strcase: New file.
75883         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75884
75885 2005-10-11  Bruno Haible  <bruno@clisp.org>
75886
75887         * lib/strcasecmp.c: Include limits.h.
75888         (strcasecmp): Avoid integer overflow on exotic platforms.
75889         * lib/strncasecmp.c: Include limits.h.
75890         (strncasecmp): Avoid integer overflow on exotic platforms.
75891         Reported by Paul Eggert.
75892
75893 2005-10-11  Bruno Haible  <bruno@clisp.org>
75894
75895         * lib/c-strcasestr.h: New file, from GNU gettext.
75896         * lib/c-strcasestr.c: New file, from GNU gettext.
75897
75898 2005-10-11  Bruno Haible  <bruno@clisp.org>
75899
75900         * lib/c-strcase.h: New file, from GNU gettext.
75901         * lib/c-strcasecmp.c: New file, from GNU gettext.
75902         * lib/c-strncasecmp.c: New file, from GNU gettext.
75903
75904 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         * modules/mempcpy (License): GPL -> LGPL.
75907         * modules/strchrnul (License): Likewise.
75908         * modules/sysexits (License): Likewise.
75909
75910 2005-10-08  Simon Josefsson  <jas@extundo.com>
75911
75912         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75913
75914 2005-10-07  Simon Josefsson  <jas@extundo.com>
75915
75916         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75917
75918 2005-10-06  Simon Josefsson  <jas@extundo.com>
75919
75920         * tests/test-hmac-md5.c: New file.
75921
75922         * modules/hmac-md5-tests: New file.
75923
75924         * modules/hmac-md5: New file.
75925
75926 2005-10-06  Simon Josefsson  <jas@extundo.com>
75927
75928         * m4/hmac-md5.m4: New file.
75929
75930         * m4/memxor.m4: Require gl_C_RESTRICT.
75931
75932 2005-10-06  Simon Josefsson  <jas@extundo.com>
75933
75934         * lib/memxor.c (memxor): Avoid casts and warnings.
75935
75936 2005-10-06  Simon Josefsson  <jas@extundo.com>
75937
75938         * lib/hmac-md5.c: New file.
75939
75940         * lib/hmac.h: New file.
75941
75942 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75943
75944         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75945         promotes to int, not unsigned int, to catch the AIX 5.3
75946         compiler bug.
75947
75948 2005-10-05  Simon Josefsson  <jas@extundo.com>
75949
75950         * modules/memxor: New file.
75951
75952         * modules/iconv (Files): Move config.rpath to havelib, it is used
75953         there.
75954
75955         * modules/havelib (Files): Add config.rpath.
75956
75957 2005-10-05  Simon Josefsson  <jas@extundo.com>
75958
75959         * m4/memxor.m4: New file.
75960
75961 2005-10-05  Simon Josefsson  <jas@extundo.com>
75962
75963         * lib/memxor.c (memxor): Fix compiler error.
75964
75965         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75966         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75967
75968         * lib/memxor.h, lib/memxor.c: New files.
75969
75970         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75971         we assume all systems have it, suggested by Jim Meyering
75972         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75973         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75974         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75975         same reasons.
75976
75977 2005-10-05  Simon Josefsson  <jas@extundo.com>
75978
75979         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75980
75981 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75982
75983         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75984         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75985         needed, since the source code now assumes these .h files.
75986
75987 2005-10-05  Derek Price  <derek@ximbiot.com>
75988
75989         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75990
75991 2005-10-05  Bruno Haible  <bruno@clisp.org>
75992
75993         * modules/stdint (License): Change to LGPL.
75994
75995 2005-10-04  Simon Josefsson  <jas@extundo.com>
75996
75997         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75998         D. Baushke" <mdb@gnu.org>.
75999
76000 2005-10-04  Bruno Haible  <bruno@clisp.org>
76001
76002         * lib/verify.h (verify_true): Provide alternative definition for C++.
76003
76004 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76005
76006         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76007         (SSIZE_MAX): New macro, if not already defined.
76008         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76009         than 2 GiB.
76010
76011 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76012
76013         Sync from coreutils.
76014         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76015         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76016         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76017         ULLONG_MAX doesn't work with 2.7.2.1.
76018
76019 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76022         From Ben Pfaff.
76023
76024         * modules/exclude (Depends-on): Depend on verify.
76025         * modules/strtoimax (Depends-on): Likewise.
76026         * modules/utimecmp (Depends-on): Likewise.
76027
76028 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76029
76030         * lib/exclude.c: Include verify.h.
76031         (verify): Remove.  All callers changed to use verify.h's version.
76032         * lib/strtoimax.c: Likewise.
76033         * lib/utimecmp.c: Likewis.e
76034
76035         Sync from coreutils.
76036         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76037         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76038         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76039         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76040         bother returning ENOSYS if settimeofday or stime fails; just let
76041         them return whatever errno they want to return.
76042         * lib/utimens.c: Include unistd.h, for dup2.
76043         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76044         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76045
76046 2005-10-02  Jim Meyering  <jim@meyering.net>
76047
76048         Sync from coreutils.
76049         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76050         from glibc-2.2.5 that fails for read-only files.
76051
76052 2005-10-02  Jim Meyering  <jim@meyering.net>
76053
76054         Sync from coreutils.
76055         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76056         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76057         `#if HAVE_CONFIG_H'.
76058         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76059         Remove AT_FDCWD test.
76060         Do not consume the fd unless successful.
76061         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76062         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76063         block, so that we don't even try to compile it if settimeofday is
76064         available.  This works around a compilation failure on OSF1 V5.1,
76065         due to stime requiring a `long int*' while tv_sec is `int'.
76066
76067 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76068
76069         Sync from coreutils.
76070         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76071         against `yes', rather than just testing for nonempty.
76072
76073 2005-10-01  Simon Josefsson  <jas@extundo.com>
76074
76075         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76076         and Darwin.
76077
76078         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76079         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76080         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76081         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76082         Check if struct addrinfo is declared.
76083
76084 2005-10-01  Simon Josefsson  <jas@extundo.com>
76085
76086         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76087         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76088         AI_* and EAI_* definitions.  Protect function declarations.
76089
76090 2005-10-01  Jim Meyering  <jim@meyering.net>
76091
76092         Sync from coreutils.
76093
76094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76095         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76096         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76097         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76098         in the inet and nsl libraries.  Required on Solaris 5.7.
76099
76100 2005-10-01  Jim Meyering  <jim@meyering.net>
76101
76102         Sync from coreutils.
76103         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76104         in the inet and nsl libraries.  Required on Solaris 5.7.
76105
76106 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76107
76108         * lib/getdelim.c (getdelim): Remove unused variables.
76109
76110 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76111
76112         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76113         so that the code works even with ancient cpp.  Portability problem
76114         with GCC 2.7.2.1 reported by Thomas M.Ott.
76115
76116 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76117
76118         * modules/regex (Depends-on): Add strcase.
76119
76120         * modules/gethostname (Licence): Change from GPL to LGPL, since
76121         gethostname.c is a trivial implementation of a standard library
76122         function.
76123         * modules/poll (License): Change from GPL to LGPL, since it's
76124         derived from LGPL code.
76125
76126 2005-09-27  Jim Meyering  <jim@meyering.net>
76127
76128         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76129         HAVE_CONFIG_H.
76130
76131         * lib/intprops.h (signed_type_or_expr__): Define.
76132         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76133         for unsigned types.
76134
76135 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76136
76137         * lib/verify.h (verify_expr): Remove, replacing with:
76138         (verify_true): New macro that returns true instead of void.
76139         (verify_type__): Remove.
76140         (verify): Use verify_true rather than verify_type__.
76141
76142 2005-09-26  Bruno Haible  <bruno@clisp.org>
76143
76144         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76145         is necessary.
76146         (lib_SOURCES): Remove mbchar.c.
76147         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76148         (Files): Add m4/mbrtowc.m4.
76149         * modules/mbiter: Likewise.
76150         * modules/mbuiter: Likewise.
76151
76152 2005-09-26  Bruno Haible  <bruno@clisp.org>
76153
76154         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76155         compile mbchar.c if they are not both present.
76156         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76157         * m4/mbiter.m4 (gl_MBITER): Likewise.
76158         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76159         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76160         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76161
76162 2005-09-25  Jim Meyering  <jim@meyering.net>
76163
76164         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76165         also uses socklen_t.
76166
76167 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76168
76169         * lib/utimens.c (ENOSYS): Define if not already defined.
76170         (futimens): Support having a null PATH if the file descriptor
76171         is nonnegative.
76172
76173         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76174         Remove.
76175         (__attribute): Define to empty unless GCC 3.1 or later.
76176         This works around a core dump on OpenBSD 3.4, which has GCC
76177         2.95.3, which dumps core when given __attribute__(()).  It also
76178         simplifies other tests, since we really don't want to bother with
76179         worrying about which ancient version of GCC supported what.
76180         Original problem reported by Yoann Vandoorselaere, with part of
76181         the fix suggested by Derek Price.
76182
76183 2005-09-24  Jim Meyering  <jim@meyering.net>
76184
76185         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76186         so we can once again use a positive bitfield width of 1 -- now we
76187         don't have to explain why we were using a bitfield width of 2.
76188
76189 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76192         and similarly for the other external symbols.  Problem reported
76193         by James Gallager.
76194
76195         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76196         bug reported by Jim Meyering.
76197
76198         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76199         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76200         not needed, since socklen is a prerequisite module.
76201
76202 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76203
76204         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76205         Problem reported by Eric Blake.
76206         (getaddrinfo): Initialize se so that it's not garbage.
76207         Redo internal storage allocation so that it doesn't make unportable
76208         assumptions about alignment.
76209         Fix a memory leak.
76210
76211         * lib/utimens.c (futimens): Use futimesat if available.
76212         Prefer it to futimes since it doesn't have the futimes bug.
76213
76214         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76215         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76216         Instead, declare a function that returns a pointer to an array,
76217         and use verify_type__ to declare the size of the array.
76218         Problem and germ of a solution reported by Bruno Haible.
76219         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76220         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76221
76222 2005-09-23  Jim Meyering  <jim@meyering.net>
76223
76224         Sync from coreutils.
76225         Correct build failure (socklen_t not defined) on at least
76226         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76227         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76228
76229 2005-09-23  Jim Meyering  <jim@meyering.net>
76230
76231         * modules/getaddrinfo (Depends-on): Add socklen.
76232
76233 2005-09-23  Bruno Haible  <bruno@clisp.org>
76234
76235         * tests/test-verify.c: New file.
76236
76237 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76238
76239         Sync from coreutils.
76240
76241         * modules/argmatch (Depends-on): Add verify.
76242         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
76243         unistd-safer.
76244         * modules/save-cwd (Depends-on): Likewise.
76245
76246         * modules/openat (Files): Add lib/openat-die.c.
76247         (Depends-on): Remove error, exitfail.
76248         Add dirname.
76249
76250         * modules/verify: New file.
76251         * MODULES.html.sh (Diagnostics <assert.h>): New section,
76252         with "verify" module.
76253
76254 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76255
76256         Sync from coreutils.
76257
76258         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
76259         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
76260         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
76261         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
76262         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
76263         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
76264         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
76265         Don't bother checking for string.h, stdlib.h, unistd.h.
76266         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
76267         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
76268         module's job.
76269         * m4/jm-macros.m4 (gl_MACROS): Likewise.
76270         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
76271
76272         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
76273         (gl_GETDATE): Use it.
76274
76275         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
76276
76277 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76278
76279         Sync from coreutils.
76280
76281         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
76282         stat-time.h.
76283         * lib/argmatch.h: Include verify.h
76284         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
76285         (ARGMATCH_ASSERT): Remove; unused.
76286         * lib/canonicalize.c: Assume STDC_HEADERS.
76287         * lib/exclude.c: Include "strcase.h".
76288         * lib/regex_internal.h [!defined _LIBC]: Likewise.
76289         * lib/getusershell.c: Include stdio--.h rather than stdio.h
76290         and stdio-safer.h.
76291         (getusershell): Call fopen, not fopen_safer.
76292         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
76293         Do not include unistd-safer.h.
76294         (save_cwd): Don't call fd_safer; no longer needed
76295         now that we include fcntl--.h.
76296
76297         * lib/getdate.y (relative_time): New type.
76298         (RELATIVE_TIME_0): New constant.
76299         (parser_control): Use relative_time instead of doing it ourselves.
76300         (%union): Add new relative_time rel member.
76301         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
76302         Now typeless.
76303         (relunit, relunit_snumber): Now of type rel.
76304         (zone, rel, relunit, get_date): Adjust to above changes.
76305
76306         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
76307         Do not include unistd-safer.h.
76308         (getloadavg): Don't call fd_safer; no longer needed
76309         now that we include fcntl--.h.
76310
76311         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
76312         (make_dir_parents): Treat ENOSYS like EEXIST.
76313
76314         Improve quality of diagnostics on restore_cwd failure.
76315         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
76316         (make_dir_parents): Last arg is now int * (for errno), not bool *.
76317         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
76318         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
76319         each time through the loop.  Do not diagnose restore_cwd failure;
76320         that is the caller's job (and perhaps the caller does not care).
76321
76322         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
76323         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
76324         If the file already exists but is not a directory, don't bother
76325         to try to make its parents.
76326         Close potential file descriptor leak if we can't chdir("/") (!).
76327         Don't always return true if chdir($PWD) fails; return true only
76328         if the requested action was done successfully (except for the
76329         chdir($PWD)).
76330         Don't log final directory unless we actually made it.
76331         Refactor to avoid duplicate code to fix up permissions.
76332         Don't attempt to fix up parent permissions if chdir($PWD) fails.
76333
76334         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
76335         to make it a bit faster and (I hope) clearer.
76336         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
76337         Fix bug in formats like %2N.
76338
76339         * lib/verify.h: New file.
76340
76341 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76342
76343         Sync from coreutils.
76344         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
76345
76346 2005-09-22  Jim Meyering  <jim@meyering.net>
76347
76348         Sync from coreutils.
76349
76350         * m4/lstat.m4 (gl_FUNC_LSTAT):
76351         Use AC_LIBSOURCES to require lstat.c and lstat.h.
76352         Remove obsolete comment.
76353         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
76354         * m4/xstrtod.m4: Likewise.
76355
76356         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
76357
76358 2005-09-22  Jim Meyering  <jim@meyering.net>
76359
76360         Sync from coreutils.
76361
76362         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
76363
76364         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
76365         the .tm_year member, since otherwise gcc-4.0 would now warn about
76366         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76367
76368         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76369         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76370
76371         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76372         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76373         when run in a time zone for which daylight savings time is in effect
76374         for the starting date.
76375
76376         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76377         stop us from restricting permissions of just-created absolute-named
76378         directories.
76379         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76380         to restore initial working directory.
76381         * lib/mkdir-p.c (make_dir_parents): New parameter:
76382         different_working_dir, to tell caller if/when we change the working
76383         directory and are unable to return to the initial one.
76384         * lib/mkdir-p.h (make_dir_parents): Update prototype.
76385         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
76386         `return false'.  This fixes a bug introduced on 2004-07-30.
76387
76388         * lib/openat.c (fdopendir): Be sure to close the supplied
76389         file descriptor before returning.  This makes our replacement
76390         implementation a little closer to Solaris's, where fdopendir
76391         ties the file descriptor to the returned DIR* pointer.
76392         * lib/openat.c (unlinkat): New function.
76393         * lib/openat.h (unlinkat): Add prototype.
76394         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76395         (openat_restore_fail): Rename from openat_restore_die.
76396         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76397
76398         Provide an alternative to exiting immediately upon save_cwd or
76399         restore_cwd failure.  Now, an application can arrange e.g.,
76400         to perform a longjump in that case.
76401         * lib/openat.c: Include dirname.h.
76402         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76403         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76404         and openat_restore_die rather than calling error directly.
76405         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76406
76407         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76408         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76409         define.
76410
76411         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76412         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76413                             int utc, int nanoseconds);
76414         Background:
76415         date should not have to allocate a megabyte of virtual memory to
76416         handle a format argument like +%1048575T.  When implemented with
76417         strftime, it must allocate such a buffer, use strftime to fill it
76418         in, print it, then free it.
76419         With fprintftime, it simply prints everything and exits.
76420         With no need for memory allocation, that's one fewer way to fail.
76421         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76422         optional field width, not before, so we accept %9:z, not %:9z.
76423         (my_strftime): Be sure to use L_('x') for literals.
76424
76425         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76426         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76427         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76428         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76429         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76430         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76431         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76432         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76433         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76434         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76435         * lib/xgethostname.c, lib/xreadlink.c:
76436         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76437
76438         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76439         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76440         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76441         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76442         and don't include <sys/file.h>).
76443
76444 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76445
76446         Sync from coreutils.
76447
76448         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76449         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76450         [!LDAV_DONE]: Avoid unused variable warning.
76451
76452 2005-09-21  Bruno Haible  <bruno@clisp.org>
76453
76454         * lib/unicodeio.h (unicode_to_mb): New declaration.
76455
76456 2005-09-20  Derek Price  <derek@ximbiot.com>
76457
76458         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76459         getaddrinfo.h.
76460
76461 2005-09-20  Bruno Haible  <bruno@clisp.org>
76462
76463         * gnulib-tool: Remove trailing slashes from the values specified for
76464         --source-base, --m4-base, --tests-base, --aux-dir.
76465         Suggested by Simon Josefsson <jas@extundo.com>.
76466
76467 2005-09-20  Bruno Haible  <bruno@clisp.org>
76468
76469         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76470         func_modules_to_filelist, func_import, func_create_testdir): Make all
76471         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76472         change when gnulib-tool is invoked in a different locale.
76473
76474 2005-09-19  Simon Josefsson  <jas@extundo.com>
76475
76476         * m4/socklen.m4: Fix typo.
76477
76478 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76479
76480         Use a consistent style for including <config.h>.
76481         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76482         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76483         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76484         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76485         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76486         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76487         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76488         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76489         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76490         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76491         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76492         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76493         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76494         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76495         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76496         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76497         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76498         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76499         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76500         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76501         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76502         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76503         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76504         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76505         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76506         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76507         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76508         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76509         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76510         lib/xstrtoumax.c, lib/yesno.c:
76511         Standardize inclusion of config.h.
76512         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76513         lib/inttostr.h:  Removed inclusion of config.h from header files.
76514         * lib/inttostr.c:  Adjusted in-tree users.
76515         * lib/timespec.h: Remove superfluous warning to include config.h.
76516         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76517         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76518         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76519         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76520         config.h with HAVE_CONFIG_H.
76521
76522 2005-09-19  Jim Meyering  <jim@meyering.net>
76523
76524         * modules/pathmax (License): Change to LGPL.
76525
76526 2005-09-19  Derek Price  <derek@ximbiot.com>
76527
76528         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76529
76530 2005-09-19  Bruno Haible  <bruno@clisp.org>
76531
76532         * gnulib-tool (import): Provide default for --tests-base.
76533
76534 2005-09-19  Bruno Haible  <bruno@clisp.org>
76535
76536         * doc/quote.texi: New file, extracted from gnulib.texi.
76537         * doc/ctime.texi: New file, extracted from gnulib.texi.
76538         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76539         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76540         * doc/gnulib.texi: Include them.
76541
76542 2005-09-18  Bruno Haible  <bruno@clisp.org>
76543
76544         Portability fix.
76545         * gnulib-tool (func_readlink): New function.
76546         (func_ln_if_changed): Use it.
76547
76548 2005-09-18  Bruno Haible  <bruno@clisp.org>
76549
76550         * gnulib-tool: Support --with-tests also with --import.
76551         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76552         (func_import): Use variables $testsbase and $inctests. Emit a
76553         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76554         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76555         SUBDIRS += $testsdir.
76556         (func_create_testdir): Update.
76557
76558 2005-09-18  Bruno Haible  <bruno@clisp.org>
76559
76560         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76561         instead of $dry_run.
76562         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76563         (func_ln_if_changed): Don't handle dry-run here.
76564         (func_import): In dry-run mode, detect more precisely which actions
76565         would be performed, and don't use "...ing" verbs.
76566
76567 2005-09-18  Bruno Haible  <bruno@clisp.org>
76568
76569         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76570         (func_import): Use join on two temporary files instead of three nested
76571         loops, in order to determine which files are new or old.
76572
76573 2005-09-18  Bruno Haible  <bruno@clisp.org>
76574
76575         * gnulib-tool (func_import): Comment out code that spits out the
76576         new files with --dry-run.
76577
76578 2005-09-18  Bruno Haible  <bruno@clisp.org>
76579
76580         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76581
76582 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76583
76584         * lib/stat-time.h: New file.
76585         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76586         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76587         in a different way.
76588         (timespec_cmp): New function.
76589         * lib/utimecmp.c: Include stat-time.h.
76590         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76591         members exist, not on the obsolescent ST_MTIM_NSEC.
76592         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76593
76594 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76595
76596         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76597
76598 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * MODULES.html.sh (File system functions): Add stat-time.
76601         * modules/stat-time: New file.
76602         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76603         is now done in a different way, by the stat-time module.
76604         * modules/utimecmp (Depends-on): Add stat-time.
76605
76606 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76607
76608         * m4/st_mtim.m4: Remove.  Superseded by...
76609         * m4/stat-time.m4: New file.
76610         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76611         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76612
76613 2005-09-15  Derek Price  <derek@ximbiot.com>
76614
76615         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76616
76617 2005-09-15  Derek Price  <derek@ximbiot.com>
76618
76619         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76620         * lib/regex_internal.c: Ditto, using this...
76621         (__GNUC_PREREQ): ...new macro.
76622         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76623         using...
76624         (__GNUC_PREREQ): ...this new macro.
76625
76626         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76627
76628 2005-09-15  Derek Price  <derek@ximbiot.com>
76629             Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76632         changes, consolidating in...
76633         * lib/regex_internal.h: ...this file.
76634
76635 2005-09-13  Jim Meyering  <jim@meyering.net>
76636
76637         * lib/canon-host.c: Filter through gnu indent and reword comments
76638         slightly.
76639         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76640
76641 2005-09-13  Derek Price  <derek@ximbiot.com>
76642
76643         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76644         failure.
76645         Reported by Jim Meyering  <jim@meyering.net>.
76646
76647 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76648
76649         * lib/base64.c: Typo.
76650         (base64_encode): Put b64str in initialized data section.
76651
76652 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76653
76654         Merge glibc and coreutils changes into gnulib, plus a few
76655         extra fixes.
76656         * lib/md5.c: Use #error rather than a string.
76657         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76658         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76659         (__attribute__): Define to empty for non recent-GCC.
76660         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76661         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76662         Renamed from their non-__ counterparts, with new macros replacing
76663         them if not _LIBC.  Add __THROW attribute.
76664         (rol): Remove.
76665         (struct md5_ctx): Align buffer if using GCC.
76666         * lib/sha1.h (struct sha1_ctx): Likewise.
76667         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76668         The old name was backwards.
76669         (NOTSWAP): Remove; not used.
76670         (rol): New macro, moved here from md5.h.
76671         (sha1_process_block): Remove a FIXME that doesn't make sense.
76672
76673 2005-09-12  Derek Price  <derek@ximbiot.com>
76674
76675         Return usable errors from canon-host.
76676         * lib/canon-host.h: New file.
76677         * lib/canon-host.c (canon_host): Wrap...
76678         (canon_host_r): ...this new function, which now relies exclusively on
76679         getaddrinfo.
76680         (ch_strerror): New function.
76681         (last_cherror): New global.
76682         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76683         interface.
76684         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76685         void *.
76686         (freeaddrinfo): Free ai->ai_canonname when set.
76687
76688 2005-09-12  Derek Price  <derek@ximbiot.com>
76689
76690         Make canon-host require getaddrinfo.
76691         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76692         AC_LIBSOURCE canon-host.h.  Call...
76693         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76694         gl_GETADDRINFO.
76695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76696
76697 2005-09-12  Derek Price  <derek@ximbiot.com>
76698
76699         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76700         LGPL.
76701         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76702
76703 2005-09-12  Derek Price  <derek@ximbiot.com>
76704
76705         * lib/gai_strerror.c: Include config.h when available.  Include
76706         getaddrinfo.h before other headers to test interface.
76707         Reported by Larry Jones <lawrence.jones@ugs.com>.
76708
76709 2005-09-12  Derek Price  <derek@ximbiot.com>
76710             Paul Eggert  <eggert@cs.ucla.edu>
76711
76712         * modules/glob (Files): Add glob-libc.h.
76713
76714 2005-09-12  Derek Price  <derek@ximbiot.com>
76715             Paul Eggert  <eggert@cs.ucla.edu>
76716
76717         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76718         glob_.h, glob-libc.h.
76719         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76720
76721 2005-09-12  Derek Price  <derek@ximbiot.com>
76722             Paul Eggert  <eggert@cs.ucla.edu>
76723
76724         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76725         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76726         protecting things that should be done only in gnulib contexts.
76727         * lib/glob_.h: New file, containing only the glob things needed for
76728         gnulib.
76729         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76730         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76731         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76732         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76733         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76734         and to respect the namespace rules better.
76735
76736 2005-09-08  Simon Josefsson  <jas@extundo.com>
76737
76738         * modules/socklen: New file.
76739
76740 2005-09-08  Simon Josefsson  <jas@extundo.com>
76741
76742         * m4/socklen.m4: New file.
76743
76744 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76745
76746         * modules/utimens (Files): Add m4/utimbuf.m4, since
76747         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76748         Reported by Sergey Poznyakoff.
76749
76750 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76751
76752         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76753         definitions, since that's the preferred style in glibc.
76754         Fix a minor spacing issue, and update copyright notice to match
76755         glibc's.
76756
76757 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76760
76761 2005-09-06  Simon Josefsson  <jas@extundo.com>
76762
76763         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76764         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76765
76766 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76767
76768         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76769         warning.
76770
76771 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76772
76773         * config/srclist.txt: Add glibc bug 1302.
76774
76775 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         Change bitset word type from unsigned int to unsigned long int,
76778         as this has better performance on typical 64-bit hosts.
76779         Port bitset code to hosts with unusual word sizes.
76780         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76781         (build_collating_symbol):
76782         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76783         argument is a bitset.  This is merely a style issue, but it makes
76784         it clearer that an entire array is expected.
76785         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76786         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76787         Port to the case where bitset_word is not the same as unsigned int.
76788         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76789         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76790         Likewise.
76791         * lib/regexec.c (check_dst_limits_calc_pos_1,
76792         check_subexp_matching_top):
76793         (build_trtable, group_nodes_into_DFAstates):
76794         Likewise.
76795         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76796         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76797         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76798         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76799         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76800         * lib/regcomp.c (optimize_subexps, lower_subexp):
76801         Work even if bitset_word has holes in its bitwise representation.
76802         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76803         * lib/regexec.c (check_dst_limits_calc_pos_1,
76804         check_subexp_matching_top):
76805         Likewise.
76806         * lib/regex_internal.c (re_string_reconstruct):
76807         Don't assume UCHAR_MAX == 255.
76808         * lib/regex_internal.h (bitset_set_all): Likewise.
76809         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76810         All uses changed.
76811         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76812         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76813         All uses changed.
76814         (BITSET_WORD_MAX): New macro.
76815         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76816         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76817         (bitset_empty, bitset_copy):
76818         Prefer sizeof (bitset) to multiplying it out ourselves.
76819         (bitset_not_merge): Remove; unused.
76820         (bitset_contain): Return bool, not unsigned int with one bit on.
76821         All callers changed.
76822         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76823         alignment than re_node_set; do this by defining a new internal
76824         type struct dests_alloc and using it to allocate memory.
76825
76826 2005-09-05  Bruno Haible  <bruno@clisp.org>
76827
76828         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76829         links.
76830
76831 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76832
76833         * modules/size_max (Makefile.am): Add size_max.h
76834
76835 2005-09-04  Derek Price  <derek@ximbiot.com>
76836
76837         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76838
76839 2005-09-03  Simon Josefsson  <jas@extundo.com>
76840
76841         * gnulib-tool: Fix typo.
76842
76843 2005-09-03  Simon Josefsson  <jas@extundo.com>
76844
76845         * config/srclist.txt: Add glibc bug 1293.
76846
76847 2005-09-03  Derek Price  <derek@ximbiot.com>
76848
76849         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76850         From Larry Jones <lawrence.jones@ugs.com>.
76851
76852 2005-09-02  Simon Josefsson  <jas@extundo.com>
76853
76854         * modules/socklen: New file.
76855
76856 2005-09-02  Simon Josefsson  <jas@extundo.com>
76857
76858         * modules/havelib: New module.
76859
76860         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76861         Use havelib.
76862
76863 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76864
76865         Check for arithmetic overflow when calculating sizes, to prevent
76866         some buffer-overflow issues.  These patches are conservative, in the
76867         sense that when I couldn't determine whether an overflow was possible,
76868         I inserted a run-time check.
76869         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76870         macros.
76871         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76872         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76873         (re_xnrealloc, re_x2nrealloc): New inline functions.
76874         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76875         parse_bracket_exp):
76876         (build_equiv_class, build_charclass): Check for arithmetic overflow
76877         in size expression calculations.
76878         * lib/regex_internal.c (re_string_realloc_buffers):
76879         (build_wcs_upper_buffer, re_node_set_add_intersect):
76880         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76881         (re_dfa_add_node, register_state): Likewise.
76882         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76883         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76884         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76885         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76886
76887 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76890         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76891
76892 2005-09-02  Bruno Haible  <bruno@clisp.org>
76893
76894         Support for lib vs. lib64 distinction on biarch platforms.
76895         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76896         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76897         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76898
76899 2005-09-02  Bruno Haible  <bruno@clisp.org>
76900
76901         * gnulib-tool (import): In the other first-use case, provide defaults
76902         as well.
76903
76904 2005-09-02  Bruno Haible  <bruno@clisp.org>
76905
76906         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76907         patches not yet found in the latest gettext release.
76908
76909 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76912         to avoid a collision with bits/local_lim.h in glibc.
76913         All uses changed.  Problem reported by Dmitry V. Levin in
76914         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76915
76916         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76917         bugs in int versus size_t comparisons.
76918         (re_string_context_at): Fix bug where the code assumed that
76919         Idx is signed.
76920
76921         Use bool where appropriate.
76922         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76923         All callers changed.
76924         (calc_eclosure_iter): Likewise, for ROOT arg.
76925         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76926         (build_charclass_op): Likewise, for NON_MATCH arg.
76927         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76928         (re_string_construct_common): Likewise, for ICASE arg.
76929         * lib/regexec.c (re_search_2_stub, re_search_stub):
76930         Likewise, for RET_LEN arg.
76931         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76932         (set_regs): Likewise, for FL_BACKTRACK arg.
76933         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76934         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76935         (calc_eclosure_iter, parse_bracket_exp):
76936         Use bool for internal variables that are booleans.
76937         * lib/regexec.c (re_search_internal, check_matching,
76938         proceed_next_node):
76939         (set_regs, build_sifted_states, sift_states_bkref):
76940         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76941         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76942         (find_collation_sequence_value):
76943         Likewise.
76944         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76945         (re_node_set_compare):
76946         Return bool, not int. All callers changed.
76947         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76948         (build_trtable, check_node_accept): Likewise.
76949         * lib/regex_internal.h: Include stdbool.h.
76950
76951         Fix bugs uncovered when converting to bool.
76952         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76953         failure instead of charging ahead blindly.
76954         * lib/regex_internal.c (register_state): Likewise.
76955         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76956         for freeing internal storage.
76957         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76958         bitset pieces used as boolean, to avoid undefined behavior
76959         on hosts that do int overflow checking.
76960
76961 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76962
76963         * config/srclist.txt: Add glibc bugs 1285-1287.
76964
76965 2005-09-01  Jim Meyering  <jim@meyering.net>
76966
76967         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76968         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76969         Require gl_STAT_MACROS, too.
76970
76971 2005-09-01  Bruno Haible  <bruno@clisp.org>
76972
76973         * gnulib-tool (import): In the first-use case, provide defaults.
76974
76975 2005-09-01  Bruno Haible  <bruno@clisp.org>
76976
76977         * gnulib-tool (func_import): Remove the .tmp files.
76978
76979 2005-09-01  Bruno Haible  <bruno@clisp.org>
76980
76981         * gnulib-tool (func_import): Fix handling of symbolic links.
76982
76983 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76984
76985         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76986         old glibc regex code mishandles strings longer than 2**31 bytes.
76987         This patch fixes this when the regex code is used in gnulib
76988         (i.e., outside glibc).
76989
76990         This patch should not affect the use of the regex code inside
76991         glibc.  No doubt this problem also needs to be handled for glibc
76992         as well, but the result will be an incompatible change to the
76993         glibc ABI, and the old ABI will have to be supported too.  That
76994         can be the the subject for another patch.
76995
76996         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76997         governing whether the rest of this patch is active.  By default,
76998         the macro is disabled and the patch has no effect.
76999         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77000         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77001         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77002         (re_match_2, re_set_registers): Use the new types.
77003         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77004         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77005         New macros.
77006         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77007         (re_string_context_at, bin_tree_t, re_dfastate_t):
77008         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77009         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77010         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77011         (re_string_char_size_at, re_string_wchar_at):
77012         (re_string_elem_size_at):
77013         Use the new types and macros to port to 64-bit hosts.
77014         Use unsigned types for internal values, so that the code
77015         mostly works even for arrays larger than SSIZE_MAX.
77016         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77017         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77018         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77019         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77020         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77021         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77022         (calc_inveclosure, parse_dup_op, build_range_exp):
77023         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77024         (fetch_number, create_token_tree, mark_opt_subexp):
77025         Likewise.
77026         * lib/regex_internal.c (re_string_construct_common,
77027         create_ci_newstate):
77028         (create_cd_newstate, re_string_allocate, re_string_construct):
77029         (re_string_realloc_buffers, build_wcs_upper_buffer):
77030         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77031         (re_string_reconstruct, re_string_peek_byte_case):
77032         (re_string_fetch_byte_case, re_string_context_at):
77033         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77034         (re_node_set_init_copy, re_node_set_add_intersect):
77035         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77036         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77037         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77038         (re_acquire_state, re_acquire_state_context, register_state):
77039         Likewise.
77040         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77041         search_cur_bkref_entry):
77042         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77043         (re_search_internal, re_search_2_stub, re_search_stub)
77044         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77045         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77046         (update_cur_sifted_state, check_dst_limits):
77047         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77048         (check_subexp_limits, sift_states_bkref, merge_state_array):
77049         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77050         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77051         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77052         (expand_bkref_cache, check_node_accept_bytes):
77053         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77054         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77055         (acquire_init_state_context, check_halt_node_context):
77056         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77057         (sift_states_backward, clean_state_log_if_needed):
77058         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77059         (find_recover_state, transit_state_sb, transit_state_mb):
77060         (transit_state_bkref, build_trtable, match_ctx_clean):
77061         Likewise.
77062         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77063         to work around an assumption that REG_MISSING is negative.
77064
77065         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77066         (seek_collating_symbol_entry) [defined _LIBC]:
77067         (lookup_collation_sequence_value) [defined _LIBC]:
77068         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77069         Use prototypes rather than old-style function definitions.
77070         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77071         (transit_state_sb) [0]:
77072         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77073
77074         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77075         rm_eo.
77076
77077         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77078         (optimize_subexps, lower_subexp):
77079         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77080         since the signed shift might overflow.  Use 1u<<31 instead.
77081         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77082         Likewise.
77083         * lib/regexec.c (check_dst_limits_calc_pos_1,
77084         check_subexp_matching_top): Likewise.
77085
77086         * lib/regcomp.c (optimize_subexps, lower_subexp):
77087         Use CHAR_BIT rather than 8, for clarity.
77088         * lib/regexec.c (check_dst_limits_calc_pos_1):
77089         (check_subexp_matching_top): Likewise.
77090         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77091         have to worry about portability issues when shifting it left.
77092         Remove no-longer-needed test for table_size > 0.
77093         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77094         in a word, as the resulting behavior is undefined.
77095         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77096         in one case, a <= should have been an <, and in another case the
77097         whole test was missing.
77098         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77099         the standard name CHAR_BIT.
77100         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77101         this is not true on one's complement and signed-magnitude hosts.
77102
77103         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77104         next_last_offset.
77105         (struct re_dfa_t): Remove unused member states_alloc.
77106         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77107
77108 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77111         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77112         and large-file glibc and in 32-bit large-file Solaris.
77113
77114 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77115
77116         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77117         lengths fit in regoff_t; this isn't true if regoff_t is the same
77118         width as size_t.
77119         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77120         (= START + RANGE) instead of RANGE.  This avoids overflow
77121         problems when regoff_t is the same width as size_t.
77122         All callers changed.
77123         (re_search_2_stub): Check for overflow when adding the
77124         sizes of the two strings.
77125         (re_search_stub): Check for overflow when adding START
77126         to RANGE; if it occurs, substitute the extreme value.
77127
77128 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77129
77130         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77131
77132 2005-08-31  Jim Meyering  <jim@meyering.net>
77133
77134         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77135         a pointer-to-const.
77136         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77137         (register_state): Likewise.
77138         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77139         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77140         (group_nodes_into_DFAstates): Likewise.
77141
77142 2005-08-31  Jim Meyering  <jim@meyering.net>
77143
77144         * check-module: Add a FIXME comment.
77145
77146 2005-08-31  Eric Blake  <ebb9@byu.net>
77147
77148         * modules/unistd-safer (Files): Add unistd--.h.
77149         * modules/stdio-safer (Files): Add stdio--.h.
77150
77151 2005-08-31  Derek Price  <derek@ximbiot.com>
77152
77153         * lib/getdelim.c (getdelim): Return EOF on EOF.
77154         Reported by Larry Jones <lawrence.jones@ugs.com>.
77155
77156 2005-08-31  Bruno Haible  <bruno@clisp.org>
77157
77158         Avoid unnecessary diffs in the generated lib/Makefile.am.
77159         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77160         the generated files.
77161         (func_import): Don't set cmd.
77162
77163 2005-08-31  Bruno Haible  <bruno@clisp.org>
77164
77165         * lib/strstr.c: Include <stddef.h>, for NULL.
77166         * lib/strcasestr.c: Likewise.
77167         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77168
77169 2005-08-31  Bruno Haible  <bruno@clisp.org>
77170
77171         * gnulib-tool: New option --macro-prefix.
77172         (func_import): Use macro_prefix.
77173         (import): Handle option --macro-prefix.
77174
77175 2005-08-31  Bruno Haible  <bruno@clisp.org>
77176
77177         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77178         Also use new variables cached_lgpl, cached_libtool.
77179
77180 2005-08-31  Bruno Haible  <bruno@clisp.org>
77181
77182         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77183         always instantiating them.
77184
77185 2005-08-31  Bruno Haible  <bruno@clisp.org>
77186
77187         * gnulib-tool (func_import): Read the previous cached settings
77188         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77189         earlier added by gnulib but are now dropped. Warn when a gnulib file
77190         overwrites a non-gnulib file.
77191
77192 2005-08-31  Bruno Haible  <bruno@clisp.org>
77193
77194         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77195         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77196         projects that don't keep autogenerated files in CVS. Put into
77197         actioncmd only the specified modules, not the transitive closure.
77198
77199 2005-08-31  Bruno Haible  <bruno@clisp.org>
77200
77201         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77202         Create directories that shall be filled.
77203         (import): Don't look for gl_* macros in configure.ac. Recurse across
77204         all directories containing a gnulib-cache.m4 files, if meaningful.
77205
77206 2005-08-31  Bruno Haible  <bruno@clisp.org>
77207
77208         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77209         (import): Set seen_libtool when we see gl_LIBTOOL.
77210
77211 2005-08-31  Bruno Haible  <bruno@clisp.org>
77212
77213         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77214         declaration macro definitions from generated gnulib.m4.
77215
77216 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77217
77218         * lib/iconvme.h: Add prototype for iconv_alloc.
77219
77220 2005-08-29  Simon Josefsson  <jas@extundo.com>
77221
77222         * lib/iconvme.c: Fix errno.
77223
77224 2005-08-29  Bruno Haible  <bruno@clisp.org>
77225
77226         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77227         that it works when the directory contains spaces.
77228
77229 2005-08-29  Bruno Haible  <bruno@clisp.org>
77230
77231         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77232
77233 2005-08-29  Bruno Haible  <bruno@clisp.org>
77234
77235         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
77236         Emit more advice.
77237
77238 2005-08-29  Bruno Haible  <bruno@clisp.org>
77239         and Stepan Kasal  <kasal@ucw.cz>
77240
77241         * check-module: If more parameters are given, check each of them
77242         separately; add more exceptions, as noted by Jim Meyering.
77243         (check_module): New procedure.
77244         (%exempt_header): Now contains all exceptions.
77245
77246 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
77247
77248         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
77249
77250 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77251
77252         * lib/iconvme.c: Split iconv_string into iconv_alloc.
77253
77254 2005-08-28  Bruno Haible  <bruno@clisp.org>
77255
77256         * m4/gnulib-tool.m4: New file.
77257
77258 2005-08-27  Jim Meyering  <jim@meyering.net>
77259
77260         * modules/unistd-safer (Files): Add pipe-safer.c.
77261         * modules/fcntl-safer (Files): Add creat-safer.c.
77262
77263 2005-08-27  Jim Meyering  <jim@meyering.net>
77264
77265         * m4/stdlib-safer.m4: New file.  From coreutils.
77266         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
77267         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
77268         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
77269         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
77270         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
77271
77272 2005-08-27  Jim Meyering  <jim@meyering.net>
77273
77274         * lib/fopen-safer.c: Merge minor changes from coreutils.
77275         * lib/dup-safer.c: Likewise.
77276         * lib/fd-safer.c: Likewise.
77277
77278         Merge from coreutils.
77279         * lib/stdio--.h: New file.
77280         * lib/stdlib--.h: New file.
77281         * lib/mkstemp-safer.c: New file.
77282
77283         GNU tar needs these.
77284         * lib/pipe-safer.c: New file.
77285         * lib/creat-safer.c: New file.
77286         * lib/fcntl--.h (creat): Define to creat_safer.
77287         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
77288         * lib/unistd--.h (pipe): Define to pipe_safer.
77289         * lib/unistd-safer.h: Declare pipe_safer.
77290
77291 2005-08-26  Simon Josefsson  <jas@extundo.com>
77292
77293         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
77294         Haible <bruno@clisp.org>.
77295
77296 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
77297
77298         * lib/regex_internal.h: Remove all references to
77299         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
77300         or better.
77301         (bitset_not, bitset_merge, bitset_not_merge):
77302         (bitset_mask, re_string_allocate, re_string_construct):
77303         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
77304         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
77305         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
77306         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
77307         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77308         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77309         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
77310         (re_acquire_state_context):
77311         Remove unnecessary forward decls.
77312         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
77313         Put __attribute at function definition,
77314         now that the function decl has been removed.
77315         * lib/regex_internal.c (re_string_peek_byte_case):
77316         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
77317         Likewise.
77318
77319 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
77320
77321         * m4/regex.m4: Add AC_PREREQ(2.50).
77322         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
77323
77324 2005-08-25  Simon Josefsson  <jas@extundo.com>
77325
77326         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
77327         __fsetlocking.
77328
77329 2005-08-25  Simon Josefsson  <jas@extundo.com>
77330
77331         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
77332         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
77333         GLIBC specific code.
77334
77335 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77336
77337         Make regex safe for g++.  This fixes one real bug (an "err"
77338         that should have been "*err").  g++ problem reported by
77339         Sam Steingold.
77340         * lib/regex_internal.h (re_calloc): New macro, consistent with
77341         re_malloc etc.  All callers of calloc changed to use re_calloc.
77342         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
77343         not int.  All callers changed.
77344         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
77345         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
77346         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
77347         (find_recover_state): Change "err" to "*err"; this fixes what
77348         appears to be a real bug.
77349         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
77350         versus int.
77351
77352 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77353
77354         * modules/regex (Depends-on): Add malloc, since the code
77355         assumes that !malloc(0) means failure.
77356
77357 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77358
77359         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
77360
77361         alloca modernization/simplification for regex.
77362         * lib/regex.c: Remove portability cruft for alloca.  This no longer
77363         needs to be at the start of the file, and can be moved into
77364         regex_internal.h and simplified.
77365         * lib/regex_internal.h: Include <alloca.h>.
77366         (__libc_use_alloca) [!defined _LIBC]: New macro.
77367         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77368         now works outside glibc.
77369
77370 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77371
77372         * config/srclist.txt: Add glibc bugs 1241, 1245.
77373
77374 2005-08-25  Jim Meyering  <jim@meyering.net>
77375
77376         * lib/open-safer.c: Include <config.h>.
77377         Otherwise, we'd lose LARGEFILE support in any file using
77378         e.g. "fcntl--.h"
77379
77380 2005-08-25  Bruno Haible  <bruno@clisp.org>
77381
77382         * m4/minmax.m4: Require autoconf 2.52.
77383         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77384         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
77385         alternatives of translit over the alphabet.
77386         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
77387
77388 2005-08-24  Simon Josefsson  <jas@extundo.com>
77389
77390         * tests/test-getpass.c: New file.
77391
77392 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77393
77394         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77395         for GNU regex features.
77396
77397 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77398
77399         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77400         * lib/regex.h (regerror): Likewise.
77401
77402         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77403         requires this.  (The code never needed it.)
77404
77405         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77406         All uses of recently-renamed identifiers changed to use the new,
77407         POSIX-compliant names.  The code will build and run just fine
77408         without these changes, but it's better to eat our own dog food
77409         and use the standard-conforming names.
77410
77411         * lib/regex.h: Fix a multitude of POSIX name space violations.
77412         These changes have an effect only for programs that define
77413         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77414         do not change anything for programs compiled in the normal way.
77415         Also, there is no effect on the ABI.
77416
77417         (_REGEX_SOURCE): New macro.
77418         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77419         defined and _GNU_SOURCE is not; this fixes a name space violation.
77420
77421         Rename the following macros to obey POSIX requirements.
77422         The old names are still visible as macros if _REGEX_SOURCE is defined.
77423         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77424         RE_BACKSLASH_ESCAPE_IN_LISTS.
77425         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77426         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77427         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77428         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77429         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77430         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77431         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77432         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77433         (REG_INTERVALS): renamed from RE_INTERVALS.
77434         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77435         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77436         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77437         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77438         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77439         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77440         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77441         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77442         RE_UNMATCHED_RIGHT_PAREN_ORD.
77443         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77444         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77445         (REG_DEBUG): renamed from RE_DEBUG.
77446         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77447         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77448         unusual, since we can't clash with the POSIX REG_ICASE.
77449         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77450         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77451         (REG_NO_SUB): renamed from RE_NO_SUB.
77452         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77453         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77454         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77455         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77456         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77457         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77458         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77459         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77460         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77461         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77462         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77463         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77464         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77465         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77466         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77467         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77468         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77469         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77470         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77471         (REG_FIXED): Renamed from REGS_FIXED.
77472         (REG_NREGS): Renamed from RE_NREGS.
77473
77474         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77475         of other REG_* macros, since POSIX says the user is allowed to
77476         #undef these macros selectively.
77477
77478         (reg_errcode_t): Update comment stating what other tables need
77479         to be consistent.
77480
77481         Rename the following enum values to obey POSIX requirements.
77482         The old names are still visible as macros.
77483         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77484         is not defined, since GNU is supposed to be a superset of POSIX as
77485         much as possible, and since we want reg_errcode_t to be a signed
77486         type for implementation consistency.
77487         (_REG_NOERROR): Renamed from REG_NOERROR.
77488         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77489         (_REG_BADPAT): Renamed from REG_BADPAT.
77490         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77491         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77492         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77493         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77494         (_REG_EBRACK): Renamed from REG_EBRACK.
77495         (_REG_EPAREN): Renamed from REG_EPAREN.
77496         (_REG_EBRACE): Renamed from REG_EBRACE.
77497         (_REG_BADBR): Renamed from REG_BADBR.
77498         (_REG_ERANGE): Renamed from REG_ERANGE.
77499         (_REG_ESPACE): Renamed from REG_ESPACE.
77500         (_REG_BADRPT): Renamed from REG_BADRPT.
77501         (_REG_EEND): Renamed from REG_EEND.
77502         (_REG_ESIZE): Renamed from REG_ESIZE.
77503         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77504         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77505         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77506         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77507         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77508
77509         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77510         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77511         changed.  But support the old name if the new one is not defined
77512         and if _REGEX_SOURCE.
77513
77514         Change the following member names in struct re_pattern_buffer.
77515         The old names are still supported if !_REGEX_SOURCE.
77516         The new names are always supported, regardless of _REGEX_SOURCE.
77517         (re_buffer): Renamed from buffer.
77518         (re_allocated): Renamed from allocated.
77519         (re_used): Renamed from used.
77520         (re_syntax): Renamed from syntax.
77521         (re_fastmap): Renamed from fastmap.
77522         (re_translate): Renamed from translate.
77523         (re_can_be_null): Renamed from can_be_null.
77524         (re_regs_allocated): Renamed from regs_allocated.
77525         (re_fastmap_accurate): Renamed from fastmap_accurate.
77526         (re_no_sub): Renamed from no_sub.
77527         (re_not_bol): Renamed from not_bol.
77528         (re_not_eol): Renamed from not_eol.
77529         (re_newline_anchor): Renamed from newline_anchor.
77530
77531         Change the following member names in struct re_registers.
77532         The old names are still supported if !_REGEX_SOURCE.
77533         The new names are always supported, regardless of _REGEX_SOURCE.
77534         (rm_num_regs): Renamed from num_regs.
77535         (rm_start): Renamed from start.
77536         (rm_end): Renamed from end.
77537
77538         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77539         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77540         Prepend __ to parameter names.
77541
77542         Undo yesterday's changes.
77543
77544 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77547         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77548         lib/regex.c.
77549
77550 2005-08-24  Jim Meyering  <jim@meyering.net>
77551
77552         Sync from coreutils.
77553         * m4/fcntl-safer.m4: New file.
77554
77555         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77556         and object files for this module.
77557
77558 2005-08-24  Jim Meyering  <jim@meyering.net>
77559
77560         Sync from coreutils.
77561         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77562
77563 2005-08-24  Jim Meyering  <jim@meyering.net>
77564
77565         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77566         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77567
77568 2005-08-24  Jim Meyering  <jim@meyering.net>
77569
77570         * modules/fcntl-safer: New module.
77571         * modules/fts (Depends-on): Add fcntl-safer.
77572         * MODULES.html.sh (File descriptor based Input/Output):
77573         Add fcntl-safer.
77574
77575 2005-08-24  Bruno Haible  <bruno@clisp.org>
77576
77577         Support for unit test modules.
77578         * modules/README: Mention tests modules.
77579         * modules/TEMPLATE-TESTS: New file.
77580         * gnulib-tool: New options --extract-tests-module, --with-tests and
77581         --tests-base (unused for the moment).
77582         (testsbase, inctests): New variables.
77583         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77584         (func_verify_module): Exclude TEMPLATE-TESTS.
77585         (func_verify_nontests_module, func_verify_tests_module): New functions.
77586         (func_get_dependencies): Add implicit dependency for tests modules.
77587         (func_get_tests_module): New function.
77588         (func_modules_transitive_closure): When --with-tests was specified,
77589         include the unit tests as well, unless explicitly avoided.
77590         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77591         (func_emit_tests_Makefile_am): New function.
77592         (func_create_testdir): When --with-tests was specified, emit a
77593         tests/ directory.
77594         * MODULES.html.sh (Future developments): Update.
77595
77596 2005-08-24  Bruno Haible  <bruno@clisp.org>
77597
77598         * modules/tls-tests: New file.
77599         * tests/test-tls.c: New file, from GNU gettext.
77600
77601 2005-08-24  Bruno Haible  <bruno@clisp.org>
77602
77603         * modules/lock-tests: New file.
77604         * tests/test-lock.c: New file, from GNU gettext.
77605
77606 2005-08-24  Bruno Haible  <bruno@clisp.org>
77607
77608         * lib/lock.h: Add multiple inclusion guard.
77609         * lib/tls.h: Add multiple inclusion guard.
77610
77611 2005-08-24  Bruno Haible  <bruno@clisp.org>
77612
77613         * gnulib-tool: Add support for the --aux-dir option to
77614         --create-testdir, --create-megatestdir, --test, --megatest.
77615         (func_create_testdir, func_create_megatestdir): Optionally emit a
77616         AC_CONFIG_AUX_DIR directive.
77617         (create-testdir, create-megatestdir, test, megatest): Provide a
77618         default value for $auxdir.
77619
77620 2005-08-24  Bruno Haible  <bruno@clisp.org>
77621
77622         * gnulib-tool (import): Use compound statement instead of subshell
77623         where possible.
77624
77625 2005-08-24  Bruno Haible  <bruno@clisp.org>
77626
77627         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77628
77629 2005-08-24  Bruno Haible  <bruno@clisp.org>
77630
77631         * gnulib-tool (func_version): Update.
77632
77633 2005-08-24  Bruno Haible  <bruno@clisp.org>
77634
77635         * gnulib-tool (func_import, func_create_testdir,
77636         func_create_megatestdir): Quote all autoconf macro arguments.
77637
77638 2005-08-24  Bruno Haible  <bruno@clisp.org>
77639
77640         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77641         option --force, because --force causes the aclocal.m4 of each
77642         subdirectory to be newer than the corresponding config.h.in.
77643
77644 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77645
77646         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77647         All contents moved to gl_REGEX.
77648         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77649         assume that it does.
77650
77651 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * lib/regex.h (REG_NOSYS)
77654         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77655         Define, since POSIX requires it as of 2001.
77656         (_REG_ENOSYS)
77657         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77658         New private symbol, used to keep the enum signed in all cases.
77659         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77660         Youngman in
77661         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77662
77663         * lib/regex_internal.c (re_string_skip_chars, register_state):
77664         (calc_state_hash):
77665         Remove forward decls; no longer needed now that we use prototypes.
77666         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77667         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77668         (clean_state_log_if_needed): Likewise.
77669
77670 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77671
77672         * config/srclist.txt: Add glibc bugs 1231-1233.
77673
77674 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77675
77676         Fix problems reported by Sam Steingold in
77677         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77678         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77679         assumed that reg_errcode_t is a signed type, which is not
77680         necessarily true if _XOPEN_SOURCE is not defined.
77681         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77682         since some compilers warn about it otherwise.
77683
77684 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77685
77686         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77687         (init_word_char, create_initial_state, duplicate_node_closure):
77688         (fetch_token, peek_token_bracket, build_range_exp):
77689         (build_collating_symbol): Remove forward decls; no longer needed
77690         now that we use prototypes.
77691
77692         * lib/regcomp.c:
77693         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77694         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77695         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77696         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77697         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77698         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77699         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77700         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77701         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77702         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77703         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77704         (build_charclass, build_charclass_op, fetch_number, create_tree):
77705         (create_token_tree, mark_opt_subexp, duplicate_tree):
77706         Use prototypes rather than old-style definitions.
77707
77708         * lib/regex_internal.c:
77709         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77710         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77711         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77712         (re_string_reconstruct, re_string_peek_byte_case):
77713         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77714         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77715         (re_node_set_init_copy, re_node_set_add_intersect):
77716         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77717         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77718         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77719         (re_acquire_state, re_acquire_state_context, register_state):
77720         (create_ci_newstate, create_cd_newstate, free_state):
77721         Likewise.
77722         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77723         re_search_2):
77724         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77725         (re_search_internal, prune_impossible_nodes):
77726         (acquire_init_state_context, check_matching, static):
77727         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77728         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77729         (update_regs, sift_states_backward, build_sifted_states):
77730         (clean_state_log_if_needed, merge_state_array):
77731         (update_cur_sifted_state, add_epsilon_src_nodes):
77732         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77733         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77734         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77735         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77736         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77737         (check_arrival, check_arrival_add_next_nodes):
77738         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77739         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77740         (check_node_accept_bytes, check_node_accept, extend_buffers):
77741         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77742         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77743         (sift_ctx_init):
77744         Likewise.
77745
77746         * lib/regex_internal.h:
77747         (re_string_allocate, re_string_construct, re_string_reconstruct):
77748         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77749         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77750         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77751         (re_string_context_at, re_string_peek_byte_case):
77752         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77753         is defined, since we now use prototypes always.
77754
77755         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77756         C89 or better.  All uses removed.
77757
77758 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * config/srclist.txt: Add glibc bugs 1220-1227.
77761
77762 2005-08-20  Jim Meyering  <jim@meyering.net>
77763
77764         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77765         of unused local, dfa.
77766
77767 2005-08-20  Bruno Haible  <bruno@clisp.org>
77768
77769         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77770
77771 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77772
77773         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77774         (re_node_set_insert_last, re_dfa_add_node):
77775         Rename local variables to avoid GCC shadowing warnings.
77776
77777 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77778
77779         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77780         [defined lint]: Suppress bogus uninitialized-variable warnings.
77781
77782         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77783         and let the caller return REG_ESPACE if out of space.  This
77784         removes an uninitialied-variable warning with GCC 4.0.1, and also
77785         avoids taking the address of a local variable.  All callers
77786         changed.
77787
77788 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77789
77790         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77791         $LIBCSRC/posix/regexec.c.
77792         Add glibc bug 1217 for regcomp.c.
77793
77794 2005-08-19  Jim Meyering  <jim@meyering.net>
77795
77796         * lib/regexec.c (proceed_next_node): Redo local variables to
77797         avoid GCC shadowing warnings.
77798
77799 2005-08-18  Bruno Haible  <bruno@clisp.org>
77800
77801         * lib/strstr.c (strstr): Fix return value in multibyte case.
77802         * lib/strcasestr.c (strcasestr): Likewise.
77803
77804 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77805
77806         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77807
77808 2005-08-17  Jim Meyering  <jim@meyering.net>
77809
77810         Make the %s format (seconds since the epoch) work for a negative
77811         number and when used with a zero-padded field width, e.g. %015s.
77812
77813         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77814         label so that it precedes the code to set `digits'.  Otherwise,
77815         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77816         print `00-22'.  Now, it prints `-0022', as it should.
77817
77818 2005-08-17  Bruno Haible  <bruno@clisp.org>
77819
77820         * modules/strstr (Files): Add m4/mbrtowc.m4.
77821         (Depends-on): Add mbuiter.
77822
77823 2005-08-17  Bruno Haible  <bruno@clisp.org>
77824
77825         * modules/strcasestr: New file.
77826         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77827         strcasestr.
77828
77829 2005-08-17  Bruno Haible  <bruno@clisp.org>
77830
77831         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77832
77833 2005-08-17  Bruno Haible  <bruno@clisp.org>
77834
77835         * modules/mbuiter: New file.
77836         * MODULES.html.sh (Extended multibyte and wide character utilities):
77837         Add mbuiter.
77838
77839 2005-08-17  Bruno Haible  <bruno@clisp.org>
77840
77841         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77842         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77843
77844 2005-08-17  Bruno Haible  <bruno@clisp.org>
77845
77846         * m4/strcasestr.m4: New file.
77847
77848 2005-08-17  Bruno Haible  <bruno@clisp.org>
77849
77850         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77851         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77852
77853 2005-08-17  Bruno Haible  <bruno@clisp.org>
77854
77855         * lib/strcasestr.h: New file.
77856         * lib/strcasestr.c: New file.
77857
77858 2005-08-17  Bruno Haible  <bruno@clisp.org>
77859
77860         * lib/strcasecmp.c: Use mbuiter.h.
77861
77862 2005-08-17  Bruno Haible  <bruno@clisp.org>
77863
77864         * lib/mbuiter.h: New file.
77865
77866 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77867
77868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77869         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77870         and gl_GETOPT are both invoked via different paths (as happens
77871         with GNU tar CVS because it uses both argp and getopt), the former
77872         wins.
77873
77874 2005-08-16  Bruno Haible  <bruno@clisp.org>
77875
77876         * modules/tls: New file.
77877         * MODULES.html.sh (Multithreading): Add tls.
77878
77879 2005-08-16  Bruno Haible  <bruno@clisp.org>
77880
77881         * modules/strnlen1: New file.
77882         * MODULES.html.sh (String handling): Add strnlen1.
77883
77884 2005-08-16  Bruno Haible  <bruno@clisp.org>
77885
77886         * modules/strcase (Files): Add m4/mbrtowc.m4.
77887         (Depends-on): Add strnlen1, mbchar.
77888
77889 2005-08-16  Bruno Haible  <bruno@clisp.org>
77890
77891         * modules/mbiter: New file.
77892         * MODULES.html.sh (Extended multibyte and wide character utilities):
77893         Add mbiter.
77894
77895 2005-08-16  Bruno Haible  <bruno@clisp.org>
77896
77897         * modules/mbfile: New file.
77898         * MODULES.html.sh (Extended multibyte and wide character utilities):
77899         Add mbfile.
77900
77901 2005-08-16  Bruno Haible  <bruno@clisp.org>
77902
77903         * modules/mbchar: New file.
77904         * MODULES.html.sh (Extended multibyte and wide character utilities):
77905         New section.
77906
77907 2005-08-16  Bruno Haible  <bruno@clisp.org>
77908
77909         * m4/tls.m4: New file, from GNU gettext.
77910
77911 2005-08-16  Bruno Haible  <bruno@clisp.org>
77912
77913         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77914         always.
77915         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77916
77917 2005-08-16  Bruno Haible  <bruno@clisp.org>
77918
77919         * m4/mbiter.m4: New file.
77920
77921 2005-08-16  Bruno Haible  <bruno@clisp.org>
77922
77923         * m4/mbfile.m4: New file.
77924
77925 2005-08-16  Bruno Haible  <bruno@clisp.org>
77926
77927         * m4/mbchar.m4: New file.
77928
77929 2005-08-16  Bruno Haible  <bruno@clisp.org>
77930
77931         * lib/tls.h: New file, from GNU gettext.
77932         * lib/tls.c: New file, from GNU gettext.
77933
77934 2005-08-16  Bruno Haible  <bruno@clisp.org>
77935
77936         * lib/strnlen1.h: New file.
77937         * lib/strnlen1.c: New file.
77938
77939 2005-08-16  Bruno Haible  <bruno@clisp.org>
77940
77941         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77942         (mbi_init): Update.
77943         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77944         NUL byte, not after it.
77945
77946 2005-08-16  Bruno Haible  <bruno@clisp.org>
77947
77948         * lib/strcase.h (strcasecmp): Add note in comments.
77949         * lib/strncasecmp.c: Use code from strcasecmp.c.
77950         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77951         (strcasecmp): Work correctly in multibyte locales.
77952
77953 2005-08-16  Bruno Haible  <bruno@clisp.org>
77954
77955         * lib/mbiter.h: New file.
77956
77957 2005-08-16  Bruno Haible  <bruno@clisp.org>
77958
77959         * lib/mbfile.h: New file.
77960
77961 2005-08-16  Bruno Haible  <bruno@clisp.org>
77962
77963         * lib/mbchar.h: New file.
77964         * lib/mbchar.c: New file.
77965
77966 2005-08-16  Bruno Haible  <bruno@clisp.org>
77967
77968         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77969         the valid ones. Makes the comparison operations transitive:
77970         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77971         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77972
77973 2005-08-15  Simon Josefsson  <jas@extundo.com>
77974
77975         * modules/ssize_t (License): Change to 'unlimited'.
77976
77977         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77978
77979 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77980
77981         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77982         Add comments for each pending glibc patch.
77983
77984 2005-08-15  Bruno Haible  <bruno@clisp.org>
77985
77986         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77987         __cplusplus is defined.
77988
77989 2005-08-14  Jim Meyering  <jim@meyering.net>
77990
77991         Sync from coreutils.
77992
77993         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77994         Use the hash-table-based cycle-detection code not just when
77995         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77996         Reported by James Youngman in
77997         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77998         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77999         FTS_TIGHT_CYCLE_CHECK.
78000         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78001         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78002         once again.
78003         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78004         * lib/fts.c (fd_safer): Remove decl.
78005         Include fcntl--.h rather than unistd-safer.h
78006         (fts_safe_changedir): Don't call fd_safer; no longer needed
78007         now that we include fcntl--.h.
78008
78009 2005-08-12  Simon Josefsson  <jas@extundo.com>
78010
78011         * modules/getndelim2: Use ssize_t module.
78012         * modules/getnline: Likewise.
78013         * modules/safe-read: Likewise.
78014         * modules/xreadlink: Likewise.
78015
78016         * modules/ssize_t: New file.
78017
78018 2005-08-12  Simon Josefsson  <jas@extundo.com>
78019
78020         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78021
78022 2005-08-12  Simon Josefsson  <jas@extundo.com>
78023
78024         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78025         ssize_t.
78026
78027 2005-08-12  Simon Josefsson  <jas@extundo.com>
78028
78029         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78030         readline, getdelim and check_version.
78031         (Support for systems lacking ISO C 99: Sizes of integer types):
78032         Add size_max.
78033
78034 2005-08-12  Bruno Haible  <bruno@clisp.org>
78035
78036         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78037
78038 2005-08-11  Simon Josefsson  <jas@extundo.com>
78039
78040         * modules/readline: New file.
78041
78042         * modules/strnlen (Files): Add strnlen.h.
78043
78044 2005-08-11  Simon Josefsson  <jas@extundo.com>
78045
78046         * m4/readline.m4: New file.
78047
78048 2005-08-11  Simon Josefsson  <jas@extundo.com>
78049
78050         * lib/readline.h, readline.c: New file.
78051
78052 2005-08-11  Simon Josefsson  <jas@extundo.com>
78053
78054         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78055         gl_AVOID.
78056
78057 2005-08-11  Bruno Haible  <bruno@clisp.org>
78058
78059         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78060
78061 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78062
78063         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78064
78065 2005-08-10  Simon Josefsson  <jas@extundo.com>
78066
78067         * tests/test-iconvme.c: New file.
78068
78069 2005-08-10  Simon Josefsson  <jas@extundo.com>
78070
78071         * m4/strnlen.m4: New file.
78072
78073         * m4/strndup.m4: Don't check for strnlen declaration, done in
78074         strnlen.m4.
78075
78076 2005-08-10  Simon Josefsson  <jas@extundo.com>
78077
78078         * lib/strndup.c: Use strnlen.h.
78079
78080         * lib/strnlen.h: New file.
78081
78082 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78083
78084         * README: Typos.
78085
78086 2005-08-02  Simon Josefsson  <jas@extundo.com>
78087
78088         * modules/readline: New file.
78089
78090 2005-08-02  Simon Josefsson  <jas@extundo.com>
78091
78092         * modules/getdelim: New file.
78093
78094         * modules/getline: Rewrite, don't use getndelim2.
78095
78096 2005-08-02  Simon Josefsson  <jas@extundo.com>
78097
78098         * m4/getline.m4: Separate out getdelim stuff into separate module.
78099
78100         * m4/getdelim.m4: New file.
78101
78102 2005-08-02  Simon Josefsson  <jas@extundo.com>
78103
78104         * lib/getline.h, getline.c: Rewrite.
78105
78106         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78107
78108 2005-07-31  Bruno Haible  <bruno@clisp.org>
78109
78110         * lib/lock.h (gl_lock_initializer): New macro.
78111         (gl_lock_define_initialized): Use it.
78112         (gl_rwlock_initializer): New macro.
78113         (gl_rwlock_define_initialized): Use it.
78114         (gl_recursive_lock_initializer): New macro.
78115         (gl_recursive_lock_define_initialized): Use it.
78116
78117 2005-07-30  Karl Berry  <karl@gnu.org>
78118
78119         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78120         Report from Ben Pfaff, regarding getopt.
78121
78122 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78123
78124         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78125         normal way.
78126         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78127         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78128         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78129         (gl_GETOPT): Use the new macros.  Most of the implementation
78130         is moved to the new macros.  This is for programs like Emacs
78131         that don't want all the functionality of gl_GETOPT.
78132
78133 2005-07-26  Bruno Haible  <bruno@clisp.org>
78134
78135         * m4/lock.m4: Update from GNU gettext.
78136
78137 2005-07-26  Bruno Haible  <bruno@clisp.org>
78138
78139         * lib/lock.h: Update from GNU gettext.
78140         * lib/lock.c: Update from GNU gettext.
78141
78142 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78143
78144         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78145         obsolescent AC_TRY_RUN.  Include the default includes files, for
78146         'exit'.
78147
78148 2005-07-24  Bruno Haible  <bruno@clisp.org>
78149
78150         * modules/visibility: New file.
78151         * MODULES.html.sh (Misc): Add visibility.
78152
78153 2005-07-24  Bruno Haible  <bruno@clisp.org>
78154
78155         * m4/visibility.m4: New file.
78156
78157 2005-07-24  Bruno Haible  <bruno@clisp.org>
78158
78159         * doc/visibility.texi: New file.
78160
78161 2005-07-22  Bruno Haible  <bruno@clisp.org>
78162
78163         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78164         $(ALLOCA_H), redundant through BUILT_SOURCES.
78165         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78166         redundant through BUILT_SOURCES.
78167         * modules/byteswap (Makefile.am): Remove explicit dependency on
78168         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78169         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78170         $(FNMATCH_H), redundant through BUILT_SOURCES.
78171         * modules/getopt (Makefile.am): Remove explicit dependency on
78172         $(GETOPT_H), redundant through BUILT_SOURCES.
78173         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78174         redundant through BUILT_SOURCES.
78175         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78176         redundant through BUILT_SOURCES.
78177         * modules/stdbool (Makefile.am): Remove explicit dependency on
78178         $(STDBOOL_H), redundant through BUILT_SOURCES.
78179         * modules/stdint (Makefile.am): Remove explicit dependency on
78180         $(STDINT_H), redundant through BUILT_SOURCES.
78181         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78182         Remove explicit dependency on $(SYSEXITS_H).
78183         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78184
78185 2005-07-18  Simon Josefsson  <jas@extundo.com>
78186
78187         * lib/check-version.c (check_version): Accept identical versions too.
78188
78189 2005-07-18  Bruno Haible  <bruno@clisp.org>
78190
78191         * modules/lock: New file.
78192         * MODULES.html.sh (Multithreading): New section.
78193
78194 2005-07-18  Bruno Haible  <bruno@clisp.org>
78195
78196         * m4/lock.m4: New file, from GNU gettext.
78197
78198 2005-07-18  Bruno Haible  <bruno@clisp.org>
78199
78200         * lib/lock.h: New file, from GNU gettext.
78201         * lib/lock.c: New file, from GNU gettext.
78202
78203 2005-07-18  Bruno Haible  <bruno@clisp.org>
78204
78205         * lib/lock.h (gl_once_t): New type.
78206         (gl_once_define, gl_once): New macros.
78207         * lib/lock.c (fresh_once): New variable.
78208         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78209         functions.
78210
78211 2005-07-16  Simon Josefsson  <jas@extundo.com>
78212
78213         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78214         workaround, suggested by Bruno.
78215
78216 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78217
78218         * modules/xalloc (Depends-on): Add xalloc-die.
78219         * modules/xvasprintf (Depends-on): Add xalloc-die.
78220
78221 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78222
78223         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78224         with a minor change.
78225
78226 2005-07-15  Bruno Haible  <bruno@clisp.org>
78227
78228         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78229         When using lib/poll.c, define poll as rpl_poll.
78230
78231 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78232
78233         * modules/argp (Depends-on): Remove unlocked-io.
78234
78235 2005-07-14  Derek Price  <derek@ximbiot.com>
78236
78237         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
78238         for glob symlink bug.
78239
78240 2005-07-14  Bruno Haible  <bruno@clisp.org>
78241
78242         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
78243         Instead, test for *_unlocked function declarations directly.
78244
78245 2005-07-11  Simon Josefsson  <jas@extundo.com>
78246
78247         * modules/size_max: New file.
78248
78249         * modules/xsize: Depend on size_max module for size_max.m4.
78250
78251 2005-07-11  Simon Josefsson  <jas@extundo.com>
78252
78253         * lib/size_max.h: New file.
78254
78255 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
78258         copyright symbol and the year.
78259         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
78260         (version_etc_va): Use parameterized copyright notice.
78261         Reword to conform to the current GNU coding standards.
78262
78263 2005-07-11  Karl Berry  <karl@gnu.org>
78264
78265         * doc/gnulib.texi (Quoting): new node.
78266         (Initial import): more info, from Patrice.
78267
78268 2005-07-11  Bruno Haible  <bruno@clisp.org>
78269
78270         * gnulib-tool (func_usage): Document option --avoid.
78271         (Command line options): Handle --avoid.
78272         (func_acceptable): New function.
78273         (func_modules_transitive_closure): Use it.
78274
78275 2005-07-11  Bruno Haible  <bruno@clisp.org>
78276
78277         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
78278         Reported by Jim Meyering.
78279
78280 2005-07-10  Bruno Haible  <bruno@clisp.org>
78281
78282         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
78283         Needed when size_t is smaller than 'unsigned int'.
78284         Reported by Paul Eggert.
78285
78286 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78287
78288         * modules/argp (Depends-on): Add unlocked-io
78289
78290 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78291
78292         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
78293         block of defines.
78294
78295 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78296
78297         * config/srclist.txt: Comment out regcomp.c, since we have a porting
78298         fix now.
78299
78300 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
78301         and Paul Eggert  <eggert@cs.ucla.edu>
78302
78303         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
78304         in wint_t, not wchar_t.  Remove now-unnecessary cast.
78305
78306 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         * modules/regex (Files): Add lib/regex_internal.c,
78309         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
78310         (Depends-on): Add extensions.
78311         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
78312
78313 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78314
78315         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
78316         pathconf.
78317         * m4/same.m4 (gl_SAME): Likewise.
78318         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
78319
78320         * m4/regex.m4: Adjust to new libc regex implementation.
78321         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
78322         all the .c and .h parts of (the new) regex.
78323         Quote the m4 stuff better.
78324         Check for RE_ICASE bug of old gnulib.
78325         Check for REG_STARTEND of recent libc.
78326         Rename local variables from jm_* to gl_*.
78327         Quote operand of "test -f".
78328         Say "recent enough" version of libc, not "version 2".
78329         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
78330         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
78331         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
78332         Remove check for btowc, isascii.
78333         Require AM_LANGINFO_CODESET.
78334
78335 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78336
78337         * lib/regex.c, regex.h: Sync from libc.
78338         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
78339         * lib/regexec.c:
78340         New files, synced from libc, except that regex_internal.h
78341         currently has a small porting fix.
78342
78343 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78344
78345         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
78346         regex_internal.c, regexec.c.
78347         Add regex_internal.h too, but as a comment, since the libc version
78348         is currently broken in gnulib mode.
78349
78350 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         Support programs like Emacs that use gnulib but not gettext.
78353         * MODULES.html.sh (Internationalization functions): Add gettext-h.
78354         * modules/gettext-h: New file.
78355         * modules/gettext (Files): Remove lib/gettext.h.
78356         (Depends-on): Add gettext-h.
78357         (Makefile.am): Remove lib_SOURCES.
78358         * modules/argmatch, modules/c-stack, modules/closeout:
78359         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
78360         * modules/execute, modules/file-type, modules/getaddrinfo:
78361         * modules/getopt, modules/human, modules/javacomp:
78362         * modules/javaexec, modules/mkdir-p, modules/obstack:
78363         * modules/openat, modules/pagealign_alloc, modules/pipe:
78364         * modules/quotearg, modules/regex, modules/rpmatch:
78365         * modules/unicodeio, modules/userspec, modules/version-etc:
78366         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78367         * modules/xsetenv:
78368         Depend on gettext-h, not gettext.
78369
78370 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78371
78372         * gnulib-tool (func_import): Add support for 'public domain' license.
78373         * modules/alloca, modules/atexit, modules/memmove:
78374         Now public domain, not GPL.
78375         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78376         * modules/realloc, modules/strerror, modules/strtod:
78377         Now LGPL, not GPL.
78378
78379 2005-07-05  Bruno Haible  <bruno@clisp.org>
78380
78381         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78382         autoconf CVS. Needed for mingw.
78383
78384 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78385
78386         Remove the dependency of the strftime module on the tzset module.
78387         * modules/strftime (Depends-on): Remove dependency on tzset.
78388
78389 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78390
78391         Remove the dependency of the strftime module on the tzset module.
78392         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78393         gl_FUNC_TZSET_CLOBBER.
78394
78395 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78396
78397         Remove the dependency of the strftime module on the tzset module.
78398         * lib/strftime.c (my_strftime)
78399         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78400         Copy the input structure, to work around some of the bug with
78401         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78402         Solaris releases, you should also use the tzset module, but we won't
78403         require it as a dependency any more since we don't want LGPLed code
78404         to depend on GPLed code.
78405
78406 2005-07-02  Jim Meyering  <jim@meyering.net>
78407
78408         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78409         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78410         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78411         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78412
78413 2005-07-02  Jim Meyering  <jim@meyering.net>
78414
78415         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78416
78417 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78418
78419         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78420         declares only 'struct timespec;' (!).
78421
78422 2005-07-01  Jim Meyering  <jim@meyering.net>
78423
78424         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78425         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78426         * lib/save-cwd.c, tempname.c:
78427         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78428         and don't include <sys/file.h>).
78429
78430 2005-06-29  Jim Meyering  <jim@meyering.net>
78431
78432         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78433         type name.  Use the variable name instead.
78434         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78435         Likewise.
78436
78437 2005-06-28  Simon Josefsson  <jas@extundo.com>
78438
78439         * modules/check-version (Files): Add check-version.m4.
78440
78441 2005-06-28  Simon Josefsson  <jas@extundo.com>
78442
78443         * m4/check-version.m4: New file, suggested by Jim Meyering
78444         <jim@meyering.net>.
78445
78446 2005-06-28  Simon Josefsson  <jas@extundo.com>
78447
78448         * lib/check-version.h, lib/check-version.c: New files.
78449
78450 2005-06-28  Simon Josefsson  <jas@extundo.com>
78451
78452         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78453         collision with global variable.  Better indentation.  Don't
78454         increment buffer pointer beyond buffer end.  Based on comments
78455         from Paul Eggert <eggert@cs.ucla.edu>.
78456
78457         * lib/base64.h: Indent.
78458
78459 2005-06-28  Simon Josefsson  <jas@extundo.com>
78460
78461         * doc/gnulib.texi (Library version handling): New section.
78462
78463 2005-06-28  Jim Meyering  <jim@meyering.net>
78464
78465         * check-module (find_included_lib_files): Hard-code another
78466         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78467         but modules/fts-lgpl (correctly) does not list those files.
78468
78469         * modules/canonicalize (Files): Add lib/pathmax.h.
78470
78471 2005-06-25  Simon Josefsson  <jas@extundo.com>
78472
78473         * modules/check-version: New file.
78474
78475 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78476
78477         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78478         initializer of struct addrinfo, as an indication that we don't
78479         care how many members the structure has.
78480
78481 2005-06-24  Derek Price  <derek@ximbiot.com>
78482         and Bruno Haible  <bruno@clisp.org>
78483
78484         Remove stat module & update lstat.
78485         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78486         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78487         * m4/stat.m4: Remove this file.
78488
78489 2005-06-24  Derek Price  <derek@ximbiot.com>
78490         and Bruno Haible  <bruno@clisp.org>
78491
78492         Remove stat module & update lstat.
78493         * lib/stat.c: Remove this file...
78494         (slash_aware_lstat): ...moving this content and its support...
78495         * lib/lstat.c (rpl_lstat): ...into here.
78496         * lib/lstat.h: New file.
78497
78498 2005-06-24  Derek Price  <derek@ximbiot.com>
78499         and Bruno Haible  <bruno@clisp.org>
78500
78501         Remove stat module & update lstat.
78502         * config/srclist.txt (libc sources): Remove stat.
78503
78504 2005-06-24  Derek Price  <derek@ximbiot.com>
78505         and Bruno Haible  <bruno@clisp.org>
78506
78507         Remove stat module & update lstat.
78508         * MODULES.html.sh (stat): Remove.
78509         * MODULES.html: Regenerated.
78510         * modules/lstat (Description): Correct function name.
78511         (Files): Add "lstat.h".
78512         (Depends-on): Remove stat, add xalloc, stat-macros.
78513         * modules/stat: Remove this file.
78514         (Include): Add "lstat.h", remove <sys/stat.h>.
78515
78516 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78517
78518         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78519         (ranged_convert): Don't save conversion in a temporary struct.
78520         This causes a warning with GCC 4.0.0, and anyway in the typical
78521         case it's not worth the extra 100 bytes or so of code.
78522         (ranged_convert, __mktime_internal): When calling a function via a
78523         pointer P, use P () rather than (*P) (), as we now assume C89 or
78524         better.
78525
78526 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78527
78528         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78529         "who -r" failed to give output.  Problem reported by Tim Waugh.
78530
78531         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78532         (xcalloc): Use it to avoid needless tests.
78533         Problem reported by Jim Meyering.
78534
78535 2005-06-20  Derek Price  <derek@ximbiot.com>
78536
78537         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78538         unnecessary for Autoconfs > 2.59c.
78539
78540 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78541
78542         * lib/argp.h (__option_is_short): Check upper limit of
78543         __key. Isprint() requires its argument to have the value
78544         of an unsigned char or EOF.
78545
78546 2005-06-16  Jim Meyering  <jim@meyering.net>
78547
78548         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78549         when either N or S is zero.
78550
78551 2005-06-16  Derek Price  <derek@ximbiot.com>
78552
78553         * m4/bison.m4: Declare YACC & YFLAGS precious.
78554
78555 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78556
78557         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78558         multibyte string or pattern, fall back on unibyte matching.
78559         Problem reported by James Youngman.
78560
78561 2005-06-08  Bruno Haible  <bruno@clisp.org>
78562
78563         * modules/csharpcomp: New file.
78564         * MODULES.html.sh (C#): Add csharpcomp.
78565
78566 2005-06-08  Bruno Haible  <bruno@clisp.org>
78567
78568         * m4/csharpcomp.m4: New file, from GNU gettext.
78569
78570 2005-06-08  Bruno Haible  <bruno@clisp.org>
78571
78572         * lib/csharpcomp.h: New file, from GNU gettext.
78573         * lib/csharpcomp.c: New file, from GNU gettext.
78574         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78575
78576 2005-06-08  Bruno Haible  <bruno@clisp.org>
78577
78578         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78579         warning on mingw.
78580
78581 2005-06-07  Derek Price  <derek@ximbiot.com>
78582
78583         Sync from CVS.
78584         * lib/glob_.h: Indent nested #ifdef.
78585
78586 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78587
78588         Sync from coreutils.
78589         Use "file name" when talking about file names, instead of "filename"
78590         or "path", as per the GNU coding standards.
78591         * lib/mkdir-p.c: Renamed from makepath.c.
78592         (make_dir_parents): Renamed from make_path.  All callers changed.
78593         * lib/mkdir-p.h: Likewise.  All includers changed.
78594         * lib/filenamecat.c: Renamed from path-concat.c.
78595         (file_name_concat): Renamed from path_concat.  All callers changed.
78596         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78597         * lib/filenamecat.h: Likewise.  All includers changed.
78598         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78599         in comments or local variable names.
78600         * lib/basename.c: Likewise.
78601         * lib/canonicalize.c, canonicalize.h: Likewise.
78602         * lib/dirname.c, dirname.h: Likewise.
78603         * lib/euidaccess.c: Likewise.
78604         * lib/exclude.c: Likewise
78605         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78606         * lib/fsusage.c, fsuage.h: Likewise.
78607         * lib/fts.c, fts_.h: Likewise.
78608         * lib/getcwd.c: Likewise.
78609         * lib/getloadavg.c: Likewise.
78610         * lib/mkstemp.c: Likewise.
78611         * lib/mountlist.c, mountlist.h: Likewise.
78612         * lib/openat.c, openat.h: Likewise.
78613         * lib/readlink-stub.c: Likewise.
78614         * lib/readutmp.c, readutmp.h: Likewise.
78615         * lib/rename.c: Likewise.
78616         * lib/rmdir.c: Likewise.
78617         * lib/same.c: Likewise.
78618         * lib/savedir.c: Likewise.
78619         * lib/stripslash.c: Likewise.
78620         * lib/tempname.c: Likewise.
78621         * lib/xreadlink.c: Likewise.
78622         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78623         All uses changed.
78624         * lib/exclude.h: Likewise.
78625
78626         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78627         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78628         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78629         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78630         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78631         files have been getting away with it for years (MORE/BSD 4.3
78632         is extinct now).
78633         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78634         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78635
78636         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78637         Define to 256, not 255, as per modern POSIX.
78638
78639 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78640
78641         Sync from coreutils.
78642         Use "file name" when talking about file names, instead of "filename"
78643         or "path", as per the GNU coding standards.
78644         * MODULES.html.sh: mkdir-p renamed from makepath.
78645         filenamecat renamed from path-concat.
78646         * modules/filenamecat: Renamed from modules/path-concat.
78647         (Files): filenamecat.h and filenamecat.c renamed from
78648         path-concat.h and path-concat.c.
78649         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78650         (Include): filenamecat.h, not path-concat.h.
78651         * modules/mkdir-p: Renamed from modules/makepath.
78652         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78653         makepath.c.
78654         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78655         (Include): mkdir-p.h, not makepath.h.
78656
78657 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78658
78659         Sync from coreutils.
78660         * m4/mkdir-p.m4: Renamed from makepath.m4.
78661         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78662         Rename files from makepath.c to mkdir-p.c, and from
78663         makepath.h to mkdir-p.h.
78664         * m4/filenamecat.m4: Renamed from path-concat.m4.
78665         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78666         Rename files from path-concat.c to filenamecat.c,
78667         and from path-concat.h to filenamecat.h.
78668         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78669         "file name" in local variables or comments.
78670         * m4/rename.m4: Likewise.
78671
78672 2005-06-01  Bruno Haible  <bruno@clisp.org>
78673
78674         * modules/csharpexec: New file.
78675         * MODULES.html.sh (C#): New section.
78676
78677 2005-06-01  Bruno Haible  <bruno@clisp.org>
78678
78679         * m4/csharp.m4: New file, from GNU gettext.
78680         * m4/csharpexec.m4: New file, from GNU gettext.
78681
78682 2005-06-01  Bruno Haible  <bruno@clisp.org>
78683
78684         * lib/csharpexec.h: New file, from GNU gettext.
78685         * lib/csharpexec.c: New file, from GNU gettext.
78686         * lib/csharpexec.sh.in: New file, from GNU gettext.
78687
78688 2005-05-31  Derek Price  <derek@ximbiot.com>
78689             Paul Eggert  <eggert@cs.ucla.edu>
78690
78691         Sync from cvs.
78692         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78693
78694 2005-05-31  Derek Price  <derek@ximbiot.com>
78695             Paul Eggert  <eggert@cs.ucla.edu>
78696
78697         Sync from cvs.
78698         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78699
78700 2005-05-29  Derek Price  <derek@ximbiot.com>
78701
78702         * config/srclist.txt (glob_.h, glob.c): Add these files.
78703
78704 2005-05-29  Derek Price  <derek@ximbiot.com>
78705
78706         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78707         * modules/glob: New file.
78708         * modules/getlogin_r: Add link to POSIX spec in description.
78709
78710 2005-05-29  Derek Price  <derek@ximbiot.com>
78711             Paul Eggert  <eggert@cs.ucla.edu>
78712
78713         * m4/glob.m4: New file.
78714
78715 2005-05-29  Derek Price  <derek@ximbiot.com>
78716             Paul Eggert  <eggert@cs.ucla.edu>
78717
78718         * lib/glob_.h, lib/glob.c: New files.
78719
78720 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78721
78722         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78723         * modules/fts-lgpl (Depends-on): Remove gettext.
78724
78725 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78726
78727         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78728         and don't require gt_INTTYPES_PRI.
78729
78730 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78731
78732         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78733
78734         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78735         the configuration hassle isn't worth it.
78736         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78737         (LONGEST_MODIFIER, PRIuMAX): Remove.
78738
78739 2005-05-27  Bruno Haible  <bruno@clisp.org>
78740
78741         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78742
78743 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78744
78745         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78746         _POSIX_PTHREAD_SEMANTICS for Solaris.
78747
78748 2005-05-25  Derek Price  <derek@ximbiot.com>
78749
78750         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78751
78752 2005-05-25  Derek Price  <derek@ximbiot.com>
78753             Paul Eggert  <eggert@cs.ucla.edu>
78754
78755         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78756         * lib/getlogin_r.c, getlogin_r.h: New files.
78757
78758 2005-05-25  Bruno Haible  <bruno@clisp.org>
78759             Derek Price  <derek@ximbiot.com>
78760
78761         * lib/getlogin_r.h: Simplify API documentation.
78762
78763 2005-05-23  Derek Price  <derek@ximbiot.com>
78764
78765         * modules/minmax (Files): Add m4/minmax.m4.
78766         (configure.ac): Add gl_MINMAX.
78767
78768 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78769
78770         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78771         so that unistd-safer.h (GPL'ed code) need not be included.
78772
78773 2005-05-22  Bruno Haible  <bruno@clisp.org>
78774
78775         * m4/minmax.m4: New file.
78776         Based on a patch by Derek Price <derek@ximbiot.com>.
78777
78778 2005-05-22  Bruno Haible  <bruno@clisp.org>
78779
78780         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78781         (INT64_MIN): Fix definition.
78782         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78783
78784         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78785         NEED_SIGNED_INT_TYPES.
78786
78787         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78788         HAVE_SYSTEM_INTTYPES.
78789
78790 2005-05-22  Bruno Haible  <bruno@clisp.org>
78791
78792         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78793         Also include <sys/param.h> if it defines MIN, MAX.
78794         Based on a patch by Derek Price <derek@ximbiot.com>.
78795
78796 2005-05-21  Jim Meyering  <jim@meyering.net>
78797
78798         * modules/fts (Files): Add m4/inttypes-pri.m4.
78799         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78800
78801 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78802
78803         New fts module.
78804         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78805         (setup_dir, free_dir): New functions.
78806         (enter_dir, leave_dir): Define trivial
78807         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78808         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78809         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78810         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78811         Move to fts-cycle.c.
78812         (fts_open): Use setup_dir.
78813         (fts_close): Use free_dir.
78814         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78815         This adds a label and some gotos, but the alternatives were messier.
78816         Check for memory allocation failure when entering a dir.
78817         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78818         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78819         (FTS): New member fts_cycle, that is a union that contains the
78820         old active_dir_ht and cycle_state.  All uses changed to mention
78821         fts_cycle.ht and fts_cycle.state.
78822         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78823         fts.c, with the following changes:
78824         (setup_dir, free_dir): New functions.
78825         (enter_dir): Now returns bool.  Return true if successful, false
78826         if memory exhausted.  All callers changed.
78827         Do not bother partly cleaning up on
78828         memory allocation failure; that is free_dir's job.
78829         However, free ad if hash_insert fails, to avoid memory leak.
78830         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78831         fts->fts_options to see which union member to use.
78832
78833 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78834
78835         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78836         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78837
78838 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78839
78840         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78841
78842 2005-05-20  Jim Meyering  <jim@meyering.net>
78843
78844         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78845         Now a macro, to pacify GCC.
78846
78847 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78848
78849         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78850         of -1.
78851
78852 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78853
78854         * lib/chown.c (rpl_chown): Return -1 on failure.
78855
78856 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78857
78858         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78859         Don't check for stddef.h.
78860         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78861         don't use its results.
78862         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78863         since we include them unconditionally.  Don't require
78864         AM_STDBOOL_H, since stdbool is a prerequisite.
78865         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78866         since we assume C89 or better.
78867         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78868         as we don't use their results.
78869         Don't check for fchdir, memmove, memset, strrchr, as we use
78870         them unconditionally.
78871         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78872         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78873
78874 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78875
78876         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78877         Include <stddef.h> unconditionally, since we assume C89 now.
78878         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78879         * lib/fts.c: Include fts_.h first, to check interface.
78880         Do not include intprops.h; no longer needed.
78881         Include cycle-check.h and hash.h, since fts_.h no longer does.
78882         Remove unnecessary casts of closedir to void.
78883         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78884         decide whether to decrement nlinks.
78885         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78886         (FTS): Use struct hash_table * instead of Hash_table, so that
78887         we no longer need to include hash.h here.
78888
78889 2005-05-18  Jim Meyering  <jim@meyering.net>
78890
78891         * modules/dirfd (License): Change to LGPL.  Most of the code
78892         is already in the public domain.
78893
78894 2005-05-18  Jim Meyering  <jim@meyering.net>
78895
78896         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78897         Reported by Yoann Vandoorselaere.
78898
78899 2005-05-17  Jim Meyering  <jim@meyering.net>
78900
78901         * m4/fts.m4: New file, from coreutils.
78902
78903 2005-05-17  Jim Meyering  <jim@meyering.net>
78904
78905         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78906
78907 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78908
78909         Sync from coreutils.
78910         * m4/unlinkdir.m4: New file.
78911
78912 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78913
78914         Sync from coreutils.
78915         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78916         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78917         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78918         White space changes only.
78919         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78920         special.
78921         * lib/yesno.c: Include getline.h, not ctype.h.
78922         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78923         Use getline to remove arbitrary restriction on response length.
78924
78925 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78926
78927         * config/srclist-update: Spell out "Street" in FSF postal
78928         mail address; this is the style the FSF seems to prefer.
78929
78930         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78931         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78932         this updates FSF postal mail address.
78933
78934         Sync from coreutils.
78935         * modules/unlinkdir: New file.
78936         * modules/yesno (Depends-on): Add getline.
78937         * MODULES.html.sh (File system functions): Add unlinkdir.
78938
78939 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78940
78941         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78942         lib/strsep.h:
78943         Change the initial comment to refer to GPL, not LGPL.
78944         gnulib-tool will change it to LGPL as needed.
78945
78946         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78947         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78948         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78949         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78950         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78951         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78952         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78953         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78954         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78955         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78956         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78957         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78958         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78959         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78960         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78961         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78962         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78963         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78964         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78965         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78966         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78967         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78968         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78969         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78970         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78971         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78972         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78973         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78974         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78975         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78976         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78977         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78978         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78979         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78980         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78981         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78982         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78983         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78984         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78985         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78986         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78987         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78988         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78989         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78990         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78991         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78992         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78993         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78994         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78995         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78996         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78997         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78998         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78999         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79000         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79001         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79002         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79003         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79004         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79005         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79006         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79007         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79008         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79009         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79010         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79011         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79012         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79013         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79014         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79015         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79016         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79017         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79018         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79019         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79020         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79021         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79022         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79023         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79024         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79025         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79026         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79027         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79028         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79029         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79030         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79031         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79032         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79033         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79034         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79035         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79036         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79037         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79038         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79039         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79040         lib/yesno.c, lib/yesno.h:
79041         Update FSF postal mail address.
79042
79043 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79044
79045         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79046         tests/test-memmem.c, tests/test-stpncpy.c:
79047         Update FSF postal mail address.
79048
79049 2005-05-13  Bruno Haible  <bruno@clisp.org>
79050
79051         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79052         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79053         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79054         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79055         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79056         Add support for 64-bit integers in the MSVC compiler.
79057
79058 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79059
79060         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79061
79062 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79063
79064         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79065
79066 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79067
79068         * doc/getdate.texi (General date syntax): Don't say that date
79069         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79070         Problem reported by Nic Ferrier.
79071
79072 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79073
79074         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79075         specified in ai_socktype. Fix invalid ai_protocol
79076         check. ai_protocol is usually set to 0 or depending on
79077         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79078         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79079         ai_socktype / ai_protocol in the returned addrinfo structure.
79080
79081 2005-05-10  Simon Josefsson  <jas@extundo.com>
79082
79083         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79084         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79085
79086 2005-05-10  Karl Berry  <karl@gnu.org>
79087
79088         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79089         (from http://www.gnu.org/licenses).
79090         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79091         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79092         fdl.texi suffices.
79093
79094 2005-05-10  Karl Berry  <karl@gnu.org>
79095
79096         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79097         (COPYING.DOC): remove.
79098
79099         * config/srclist-update: new FSF address.
79100
79101 2005-05-10  Derek Price  <derek@ximbiot.com>
79102
79103         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79104         possible.
79105
79106 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79107             Bruno Haible  <bruno@clisp.org>
79108
79109         * modules/inet_ntop: New file.
79110         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79111         inet_ntop.
79112
79113 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79114             Bruno Haible  <bruno@clisp.org>
79115
79116         * m4/inet_ntop.m4: New file.
79117
79118 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79119             Bruno Haible  <bruno@clisp.org>
79120
79121         * lib/inet_ntop.h: New file.
79122         * lib/inet_ntop.c: New file, from glibc with modifications.
79123
79124 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79125
79126         * modules/time_r (License): Change to LGPL.
79127         * modules/extensions (License): Change to LGPL.  Actually,
79128         the license is more permissive than that, but currently gnulib-tool
79129         doesn't know how to handle more-permissive licenses.
79130
79131         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79132         Problem reported by Dave Love.
79133
79134 2005-05-08  Jim Meyering  <jim@meyering.net>
79135
79136         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79137         blank.
79138
79139 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79140
79141         * modules/argmatch (Depends-on): Add stdbool.
79142         * modules/backupfile (Depends-on): Likewise.
79143         * modules/chdir-long (Depends-on): Likewise.
79144         * modules/closeout (Depends-on): Likewise.
79145         * modules/cycle-check (Depends-on): Likewise.
79146         * modules/dirname (Depends-on): Likewise.
79147         * modules/fnmatch (Depends-on): Likewise.
79148         * modules/fsusage (Depends-on): Likewise.
79149         * modules/fwriteerror (Depends-on): Likewise.
79150         * modules/getcwd (Depends-on): Likewise.
79151         * modules/getloadavg (Depends-on): Likewise.
79152         * modules/hard-locale (Depends-on): Likewise.
79153         * modules/makepath (Depends-on): Likewise.
79154         * modules/mountlist (Depends-on): Likewise.
79155         * modules/nanosleep (Depends-on): Likewise.
79156         * modules/posixtm (Depends-on): Likewise.
79157         * modules/quotearg (Depends-on): Likewise.
79158         * modules/readtokens (Depends-on): Likewise.
79159         * modules/readtokens0 (Depends-on): Likewise.
79160         * modules/readutmp (Depends-on): Likewise.
79161         * modules/save-cwd (Depends-on): Likewise.
79162         * modules/strftime (Depends-on): Likewise.
79163         * modules/userspec (Depends-on): Likewise.
79164         * modules/utimecmp (Depends-on): Likewise.
79165         * modules/xgetcwd (Depends-on): Likewise.
79166         * modules/xnanosleep (Depends-on): Likewise.
79167         * modules/xstrtod (Depends-on): Likewise.
79168         * modules/yesno (Depends-on): Likewise.
79169
79170 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79171
79172         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79173         needless checks.
79174
79175 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79176
79177         Merge from coreutils.  Among other things,
79178         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79179         * lib/fd-safer.c: New file.
79180         * lib/fcntl-safer.h, open-safer.c: Remove.
79181         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79182         * lib/dup-safer.c: Include unistd-safer.h first.
79183         Don't include errno.h.
79184         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79185         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79186         * lib/file-type.c: Rely on file-type.h change.
79187         * lib/getloadavg.c: Include unistd-safer.h.
79188         (getloadavg): Use safer open.
79189         * lib/getusershell.c: Include "stdio-safer.h".
79190         (getusershell): Use safer fopen.
79191         * lib/long-options.c (long_options): Use NULL rather than 0.
79192         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79193         'free'.
79194         * lib/modechange.c: Likewise.
79195         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79196         (MODE_DONE): New constant.
79197         (struct mode_change): Remove 'next' member.
79198         (make_node_op_equals): New function; like the old one of the
79199         same name, except it allocates an array.
79200         (mode_compile, mode_create_from_ref): Use it.
79201         (mode_compile): Allocate result as an array, not a linked list.
79202         Parse octal string ourself, so that we catch mistakes like "+0".
79203         (mode_adjust): Arg is an array, not a linked list.
79204         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79205         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79206         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79207         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79208         Remove.  This is now stat-macros.h's job.
79209         (talloc): Remove.  All callers replaced by xalloc, so that
79210         our invokers don't have to worry about reporting memory failures.
79211         (make_node_op_equals): Remove.
79212         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79213         New constants.
79214         (struct mode_change): Moved here from modechange.h.
79215         (mode_append_entry): Remove.
79216         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79217         apps to have incorrect behavior.  Use simpler algorithm for head
79218         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79219         Detect more invalid usages rather than having somewhat-random behavior.
79220         Don't insert an "a=" action, as that leads to incorrect behavior.
79221         (mode_compile, mode_create_from_ref): Return NULL on error instead
79222         of an enum, since now there's only one way to have an error.  All
79223         callers changed.
79224         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79225         at the correct time.  Simplify calculation of "+u" and its ilk.
79226         Don't mishandle "+X".
79227         (mode_free): Remove "register" and localize decls.
79228         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79229         (struct mode_change): Move to modechange.c; callers don't
79230         need to see this stuff.
79231         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79232         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79233         (mode_change, mode_adjust): Reflect the new signatures noted above.
79234         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79235         that might redefine system include files.
79236         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
79237         (my_usleep): Use NULL rather than (void *) 0.
79238         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
79239         Use siginterrupt to specify that system calls should be interrupted.
79240         (rpl_nanosleep): Move initialization of suspended closer to call of
79241         my_usleep.
79242         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
79243         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
79244         (desirable_utmp_entry): New function.
79245         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
79246         using x2nrealloc, to simplify logic.
79247         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
79248         size calculation.  Do not assume utmp file is a regular file.
79249         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
79250         (READ_UTMP_CHECK_PIDS): New constant.
79251         * lib/save-cwd.c: Include unistd-safer.h.
79252         (save_cwd): Use fd_safer.
79253         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
79254         [!_LIBC] Include "stat-macros.h" instead.
79255         * lib/unistd-safer.h (fd_safer): New decl.
79256
79257 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79258
79259         * modules/getloadavg (Depends-on): Add unistd-safer.
79260         * modules/getusershell (Depends-on): Add stdio-safer.
79261         * modules/lstat (Depends-on): Remove xalloc.
79262         * modules/mkstemp (Depends-on): Add stat-macros.
79263         * modules/modechange (Depends-on): Remove xstrtol.
79264         Add stat-macros, xalloc.
79265         * modules/save-cwd (Depends-on): Add unistd-safer.
79266         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
79267         * modules/unistd-safer (Files): Add lib/fd-safer.c
79268         (Makefile.am): Remove lib_SOURCES.
79269
79270         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
79271         Remove fcntl-safer; unistd-safer supersedes it.
79272
79273 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79274
79275         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
79276         AC_HEADER_STAT.
79277         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
79278         (gl_PREREQ_CHOWN): Remove.
79279         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
79280         it.  Don't require AC_HEADER_STAT.
79281         (gl_PREREQ_LSTAT): Remove.
79282         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
79283         Don't require AC_HEADER_STAT.
79284         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
79285         (gl_PREREQ_RMDIR): Remove.
79286         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
79287         mention stat-macros.h or AC_HEADER_STAT, since we'll make
79288         the stat-macros module a prerequisite.
79289         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
79290         * m4/filemode.m4 (gl_FILEMODE): Likewise.
79291         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
79292         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
79293         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
79294         variable names.
79295         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
79296         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
79297         variable prefixes.
79298         * m4/fcntl-safer.m4: Remove.
79299         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
79300         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
79301         Invoke gl_PREREQ_FD_SAFER.
79302         (gl_PREREQ_FD_SAFER): New macro.
79303         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
79304         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
79305         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
79306         Remove duplicate call to AC_LIBOBJ(readutmp).
79307         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
79308
79309         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
79310         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
79311
79312 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79313
79314         * MODULES.html.sh (Misc): Add byteswap.
79315
79316 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79317
79318         * modules/getcwd (Depends-on): Add extensions.
79319         * modules/openat (Depends-on): Likewise.
79320
79321 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79322
79323         * modules/byteswap: New file.
79324
79325 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79326
79327         * m4/byteswap.m4: New file.
79328
79329 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79330
79331         * lib/byteswap_.h: New file.
79332
79333 2005-04-25  Karl Berry  <karl@gnu.org>
79334
79335         * m4/gettext.m4: Update from GNU gettext 0.14.4.
79336
79337 2005-04-25  Albert Chin  <china@thewrittenword.com>
79338
79339         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
79340         Toolkit C bug.
79341
79342 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
79343
79344         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
79345         (func_ln_if_changed): Remove forcibly for no error message
79346         in case file does not exist.
79347
79348 2005-04-19  Simon Josefsson  <jas@extundo.com>
79349
79350         * gnulib-tool (Options): Make --symlink mean --symbolic.
79351
79352 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
79353
79354         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
79355
79356 2005-04-16  Simon Josefsson  <jas@extundo.com>
79357
79358         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
79359
79360 2005-04-15  Simon Josefsson  <jas@extundo.com>
79361
79362         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
79363
79364 2005-04-15  Simon Josefsson  <jas@extundo.com>
79365
79366         * gnulib-tool: Rename --symlink to --symbolic.
79367
79368 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79369
79370         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79371         symbolic links to files instead of copying/moving.  Add --aux-dir,
79372         specifying directory relative --dir where auxiliary build tools
79373         are placed.
79374
79375 2005-04-14  Bruno Haible  <bruno@clisp.org>
79376
79377         * modules/allocsa (License): Change to LGPL.
79378         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79379
79380 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79381
79382         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79383         that "UTC +1 second" continues to work.  Problem reported
79384         by Dmitry V. Levin.
79385         (relunit_snumber): New rule.
79386         (relunit): Use it.
79387
79388 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79389
79390         * lib/getdate.y (universal_time_zone_table): New constant.
79391         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79392         universal_time_zone_table.
79393         (lookup_zone): Prefer universal_time_zone_table to
79394         local_time_zone_table, so that "GMT" time stamps are allowed in
79395         London during the summer.  Problem reported by Ian Abbott.
79396
79397 2005-04-12  Jim Meyering  <jim@meyering.net>
79398
79399         * lib/human.c (humblock): Set *options even when returning due to
79400         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79401         warning from gcc-4.
79402
79403 2005-04-09  Jim Meyering  <jim@meyering.net>
79404
79405         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79406         -Wuninitialized: initialize tm0.tm_year.
79407
79408 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79411         count, since there's no maximum.  All uses changed.
79412         Add member dsts_seen.
79413         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79414         not being INT_MAX.
79415         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79416         Use pc_rels_seen to decide whther a date is absolute.
79417
79418         * lib/getdate.y (number): Don't overwrite year.
79419         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79420         check.
79421
79422 2005-04-02  Simon Josefsson  <jas@extundo.com>
79423
79424         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79425         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79426
79427 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79428
79429         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79430         where no absolute path name can be longer than PATH_MAX.
79431
79432 2005-03-27  Jim Meyering  <jim@meyering.net>
79433
79434         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79435
79436 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79437
79438         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79439         "one's complement" -> "ones' complement" in comment, as per Knuth.
79440         "value of type" -> "type or expression" in comment.
79441         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79442
79443 2005-03-26  Jim Meyering  <jim@meyering.net>
79444
79445         Comment nits.
79446         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79447         Correct typos: s/or/of/.
79448
79449 2005-03-26  Jim Meyering  <jim@meyering.net>
79450
79451         * modules/check-include-files: Move to ../ and rename to...
79452         * check-module: ...this.
79453
79454 2005-03-25  Jim Meyering  <jim@meyering.net>
79455
79456         * modules/xvasprintf (Files): Add xalloc.h.
79457
79458 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79459
79460         * modules/gettext (Files): config/config.rpath ->
79461         build-aux/config.rpath
79462         * modules/iconv (Files): Likewise.
79463         Problem reported by Oskar Liljeblad.
79464
79465 2005-03-23  Jim Meyering  <jim@meyering.net>
79466
79467         * modules/check-include-files: New script to check for
79468         missing dependencies, multiple includes, etc.
79469
79470         * modules/c-strtold (Depends-on): Add xalloc.
79471         * modules/c-strtod (Depends-on): Add xalloc.
79472         * modules/hash (Depends-on): Add xalloc.
79473         (Files): Remove lib/xalloc.h.
79474
79475         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79476         * modules/userspec (Files): Add lib/inttostr.h.
79477
79478 2005-03-23  Jim Meyering  <jim@meyering.net>
79479
79480         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79481
79482 2005-03-22  Jim Meyering  <jim@meyering.net>
79483
79484         * modules/stat-macros: New module.
79485         * modules/canonicalize, modules/euidaccess, modules/file-type,
79486         * modules/filemode, modules/lchown, modules/makepath,
79487         * modules/rmdir, modules/stat: Depend on new stat-macros module
79488         rather than listing lib/stat-macros.h manually.
79489         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79490
79491 2005-03-22  Jim Meyering  <jim@meyering.net>
79492
79493         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79494
79495 2005-03-22  Bruno Haible  <bruno@clisp.org>
79496
79497         * config/srclist.txt: Replace target directory 'config' with
79498         'build-aux'.
79499         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79500         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79501         ../build-aux/.
79502
79503 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         * modules/chdir-long (Depends-on): Add mempcpy.
79506
79507         * modules/acl, modules/backupfile, modules/c-strtod,
79508         modules/c-strtold, modules/canon-host, modules/canonicalize,
79509         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79510         modules/exclude, modules/exitfail, modules/file-type,
79511         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79512         modules/getdate, modules/getline, modules/getpagesize,
79513         modules/getpass, modules/getugroups, modules/group-member,
79514         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79515         modules/inttostr, modules/long-options, modules/makepath,
79516         modules/md5, modules/memcasecmp, modules/memcoll,
79517         modules/modechange, modules/mountlist, modules/path-concat,
79518         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79519         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79520         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79521         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79522         modules/strftime, modules/strndup, modules/strverscmp,
79523         modules/timespec, modules/unlocked-io, modules/userspec,
79524         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79525         modules/yesno:
79526         Remove lib_SOURCES line from Makefile.am section, as this is now
79527         done automatically by the corresponding Autoconf macro.
79528
79529 2005-03-21  Jim Meyering  <jim@meyering.net>
79530
79531         Changes imported from coreutils.
79532
79533         * lib/cycle-check.c: Don't include xalloc.h.
79534
79535         * lib/path-concat.c: Don't include assert.h.
79536         (path_concat): Remove assertion that would have triggered
79537         for ABASE starting with more than one slash.
79538         Reported by Andreas Schwab.
79539
79540         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79541         properly when ABASE is an absolute file name.
79542         Correct the description of this function.
79543         Include <assert.h>.
79544         Add an assertion and a test driver.
79545         This fixes a bug introduced on 2004-07-02.
79546         Andreas Schwab reported the resulting failure of cp --parents:
79547         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79548
79549 2005-03-21  Jim Meyering  <jim@meyering.net>
79550
79551         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79552         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79553
79554 2005-03-21  Jim Meyering  <jim@meyering.net>
79555         and  Paul Eggert  <eggert@cs.ucla.edu>
79556
79557         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79558         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79559         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79560         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79561         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79562         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79563         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79564         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79565         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79566         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79567         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79568         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79569         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79570         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79571         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79572         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79573         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79574         for these modules.
79575
79576 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79577
79578         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79579         (which shouldn't happen), generate nothing instead of returning 0
79580         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79581
79582 2005-03-16  Bruno Haible  <bruno@clisp.org>
79583
79584         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79585         HAVE_LONGLONG_64BIT.
79586
79587 2005-03-16  Bruno Haible  <bruno@clisp.org>
79588
79589         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79590         HAVE_LONGLONG_64BIT.
79591
79592 2005-03-16  Bruno Haible  <bruno@clisp.org>
79593
79594         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79595         HAVE_LONGLONG_64BIT.
79596
79597 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79598
79599         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79600         reliably distinguish strftime failure from empty output on POSIX
79601         hosts.
79602
79603 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79604
79605         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79606         (iconv_string): Don't guess a size-zero buffer, as that might cause
79607         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79608         result would be 'too large', where 'too large' is (heuristically)
79609         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79610         overflow concerns.  This will prevent some unwanted malloc failures
79611         when the inputs are very large.
79612
79613 2005-03-15  Karl Berry  <karl@gnu.org>
79614
79615         * config/srclist.txt (config.rpath): from gettext.
79616         * config/config.rpath: update.
79617
79618 2005-03-15  Bruno Haible  <bruno@clisp.org>
79619
79620         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79621         to 'negate'.
79622
79623         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79624         variable.
79625
79626         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79627         results.
79628
79629 2005-03-14  Simon Josefsson  <jas@extundo.com>
79630
79631         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79632         <fx@gnu.org>.
79633
79634 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79637         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79638         intprops.h.
79639         * lib/strtol.c: Likewise.
79640
79641 2005-03-14  Jim Meyering  <jim@meyering.net>
79642
79643         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79644         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79645         to be nonzero so that we (and caller) can detect the difference
79646         between a valid zero-length expansion and an error return, even
79647         when the underlying strftime fails before writing anything into
79648         that location.
79649
79650 2005-03-14  Bruno Haible  <bruno@clisp.org>
79651
79652         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79653         Update from GNU gettext 0.14.3.
79654
79655 2005-03-10  Jim Meyering  <jim@meyering.net>
79656
79657         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79658
79659 2005-03-10  Jim Meyering  <jim@meyering.net>
79660
79661         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79662         so that this module works on systems without fchdir.
79663
79664 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79665
79666         Factor int-properties macros into a single file, except for
79667         glibc-related files.
79668         * lib/intprops.h: New file.
79669         * lib/getloadavg.c: Include it instead of limits.h.
79670         (INT_STRLEN_BOUND): Remove.
79671         * lib/human.c: Include intprops.h.
79672         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79673         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79674         302/1000.
79675         * lib/inttostr.h: Include intprops.h instead of limits.h.
79676         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79677         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79678         for consistency with intprops.h.
79679         (time_t_is_integer, twos_complement_arithmetic): Use them.
79680         * lib/sig2str.h: Include <signal.h>, intprops.h.
79681         (INT_STRLEN_BOUND): Remove.
79682         * lib/strftime.c (TYPE_SIGNED): Remove.
79683         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79684         * lib/strtol.c: Adjust comments to match intprops.h.
79685         * lib/userspec.c: Include intprops.h.
79686         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79687         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79688         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79689         instead of rolling our own expressions.
79690         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79691
79692         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79693         instead of int.
79694         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79695         the right thing even if adding 1900 would overflow.  Similarly
79696         for tm_mon + 1 and tm_yday + 1.
79697         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79698         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79699         (DO_SIGNED_NUMBER): New macro.
79700         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79701
79702 2005-03-07  Bruno Haible  <bruno@clisp.org>
79703
79704         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79705
79706 2005-03-07  Bruno Haible  <bruno@clisp.org>
79707
79708         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79709
79710 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79711
79712         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79713         (func_import): Only replace files via --import when they have actually
79714         changed.
79715
79716 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79717
79718         * m4/mmap-anon.m4: New file.
79719         * m4/pagealign_alloc.m4: New file.
79720
79721 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79722             Bruno Haible  <bruno@clisp.org>
79723
79724         * modules/pagealign_alloc: New file.
79725         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79726
79727 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79728             Bruno Haible  <bruno@clisp.org>
79729
79730         * lib/pagealign_alloc.h: New file.
79731         * lib/pagealign_alloc.c: New file.
79732
79733 2005-03-03  Bruno Haible  <bruno@clisp.org>
79734
79735         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79736         Use an all-permissive copyright notice, recommended by RMS.
79737
79738 2005-03-02  Bruno Haible  <bruno@clisp.org>
79739
79740         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79741         of AIX, the replacement has to be done only after <string.h> is
79742         included, therefore not in config.h. stpncpy.h does the replacement,
79743         and stpncpy.c uses it.
79744
79745 2005-03-02  Bruno Haible  <bruno@clisp.org>
79746
79747         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79748         stpncpy.c uses it.
79749
79750 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79751
79752         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79753         The workaround isn't strictly needed for POSIX conformance, and
79754         it's too much of a pain to configure and maintain.  We'll ask
79755         people to fix their kernels instead.
79756         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79757         (NANOSLEEP_BUG_WORKAROUND): Remove.
79758         (xnanosleep): Remove the workaround.
79759
79760 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79761
79762         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79763         Reported by Derek Price.
79764         (Include): Add "timespec.h".
79765
79766         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79767
79768 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79771         to detect nanosleep bug.
79772
79773 2005-03-01  Bruno Haible  <bruno@clisp.org>
79774
79775         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79776
79777 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79778
79779         * modules/gethrxtime: New file.
79780         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79781         (Depends-on): Add gethrxtime.
79782         (configure.ac): Add gl_XNANOSLEEP.
79783         (Makefile.am): Remove lib_SOURCES line.
79784
79785 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79786
79787         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79788         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79789
79790 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79791
79792         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79793         * lib/timespec.h (gettime): Return void, since it always
79794         succeeds now.  All uses changed.
79795         * lib/gettime.c (gettime): Likewise.
79796         [HAVE_NANOTIME]: Prefer nanotime.
79797         Assume gettimeofday succeeds, as POSIX requires.
79798         Assime time () succeeds, since other code already does.
79799         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79800         (timespec_subtract): Remove.
79801         (NANOSLEEP_BUG_WORKAROUND): New constant.
79802         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79803         things considerably.  Use it only on GNU/Linux hosts, since the
79804         workaround shouldn't be needed elsewhere.
79805
79806 2005-02-24  Bruno Haible  <bruno@clisp.org>
79807
79808         * modules/gettext (Files): Add m4/glibc2.m4.
79809
79810 2005-02-24  Bruno Haible  <bruno@clisp.org>
79811
79812         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79813         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79814         * m4/progtest.m4:
79815         Update from GNU gettext 0.14.2.
79816         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79817
79818 2005-02-24  Bruno Haible  <bruno@clisp.org>
79819
79820         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79821         * lib/config.charset: Update from GNU gettext 0.14.2.
79822
79823 2005-02-24  Bruno Haible  <bruno@clisp.org>
79824
79825         * lib/gettext.h: Update from GNU gettext 0.14.2.
79826
79827 2005-02-23  Simon Josefsson  <jas@extundo.com>
79828
79829         * m4/iconvme.m4: New file.
79830
79831 2005-02-23  Jim Meyering  <jim@meyering.net>
79832
79833         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79834         change.
79835         Thanks to Bruno Haible for catching it.
79836
79837 2005-02-22  Simon Josefsson  <jas@extundo.com>
79838
79839         * modules/iconvme: New file.
79840
79841         * MODULES.html.sh: Add iconvme.
79842
79843 2005-02-22  Simon Josefsson  <jas@extundo.com>
79844
79845         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79846
79847 2005-02-22  Simon Josefsson  <jas@extundo.com>
79848
79849         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79850
79851 2005-02-22  Jim Meyering  <jim@meyering.net>
79852
79853         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79854         s/ifndef/ifdef/.
79855
79856 2005-02-20  Neil Conway  <neilc@samurai.com>
79857
79858         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79859         returned by OSX/Darwin if the specified buffer is not large
79860         enough for the hostname.
79861
79862 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79863
79864         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79865         pass it to _help, otherwise the latter coredumps trying to
79866         dereference state.root_argp.
79867
79868 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         * modules/chdir-long (Depends-on): Add memrchr.
79871         * modules/memrchr (Files): Add lib/memrchr.h.
79872         (Include): "memrchr.h".
79873
79874 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79877
79878 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79879
79880         * lib/memrchr.h: New file.
79881         * lib/chdir-long.c: Include it.
79882         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79883         Don't bother including stddef.h.
79884
79885 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79886
79887         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79888         inclusion.
79889         Include <sys/types.h>, for dev_t.
79890         (ME_DUMMY, ME_REMOTE): Move from here....
79891         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79892         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79893         Dmitry V. Levin.
79894         Include mountlist.h first, to test the interface.
79895
79896 2005-01-29  Bruno Haible  <bruno@clisp.org>
79897
79898         * lib/progname.c (program_name): Initialize.
79899         Needed when linking statically on MacOS X.
79900
79901 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         Sync from coreutils.
79904         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79905         (Depends-on): Add c-strtod.
79906         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79907
79908 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         Sync from coreutils.
79911         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79912
79913         Remove files that are specific to coreutils.
79914         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79915
79916 2005-01-28  Bruno Haible  <bruno@clisp.org>
79917
79918         * modules/javacomp: New file.
79919         * MODULES.html.sh (Java): Add javacomp.
79920
79921 2005-01-28  Bruno Haible  <bruno@clisp.org>
79922
79923         * m4/javacomp.m4: New file, from GNU gettext.
79924
79925 2005-01-28  Bruno Haible  <bruno@clisp.org>
79926
79927         * lib/javacomp.sh.in: New file, from GNU gettext.
79928         * lib/javacomp.h: New file, from GNU gettext.
79929         * lib/javacomp.c: New file, from GNU gettext.
79930
79931 2005-01-26  Simon Josefsson  <jas@extundo.com>
79932
79933         * lib/gai_strerror.c: Use GPL in header.
79934
79935 2005-01-26  Bruno Haible  <bruno@clisp.org>
79936
79937         * modules/javaexec: New file.
79938         * MODULES.html.sh (Java): Add javaexec.
79939
79940 2005-01-26  Bruno Haible  <bruno@clisp.org>
79941
79942         * m4/javaexec.m4: New file, from GNU gettext.
79943
79944 2005-01-26  Bruno Haible  <bruno@clisp.org>
79945
79946         * lib/javaexec.sh.in: New file, from GNU gettext.
79947         * lib/javaexec.h: New file, from GNU gettext.
79948         * lib/javaexec.c: New file, from GNU gettext.
79949
79950 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79951
79952         * modules/lchown (Depends-on): Remove lchown.h
79953
79954 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79955
79956         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79957         must be defined if the header file was not found, in order
79958         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79959
79960 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79961
79962         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79963         initializers for struct pentry_state.
79964         (__argp_error): Check return value of __asprintf
79965         (__argp_failure): Translate error message
79966
79967         * lib/argp-parse.c: Removed braces around the expansion of N_()
79968
79969 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79972         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79973         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79974         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79975         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79976         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79977         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79978         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79979         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79980         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79981         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79982         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79983         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79984         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79985         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79986         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79987         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79988         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79989         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79990         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79991         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79992         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79993         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79994         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79995         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79996         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79997         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79998         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79999         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80000         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80001         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80002         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80003         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80004         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80005         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80006         Use an all-permissive copyright notice, recommended by RMS.
80007
80008 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80009
80010         * modules/chdir-long (Depends-on): Remove mempcpy.
80011
80012 2005-01-21  Jim Meyering  <jim@meyering.net>
80013
80014         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80015         same value as for Solaris 9.
80016
80017         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80018         component length.  This included changing the parameter to be
80019         of type `char *' rather than `char const *'.
80020         * lib/chdir-long.h (chdir_long): Update prototype.
80021
80022         * lib/openat.c (fdopendir, fstatat): New functions.
80023         * lib/openat.h: Include headers required for use of DIR and struct
80024         stat.
80025         [AT_SYMLINK_NOFOLLOW]: Define.
80026         (fdopendir, fstatat): Add prototypes.
80027
80028 2005-01-21  Bruno Haible  <bruno@clisp.org>
80029
80030         * modules/classpath: New file.
80031         * MODULES.html.sh (Java): Add classpath.
80032
80033 2005-01-21  Bruno Haible  <bruno@clisp.org>
80034
80035         * lib/classpath.h: New file, from GNU gettext.
80036         * lib/classpath.c: New file, from GNU gettext.
80037
80038 2005-01-20  Simon Josefsson  <jas@extundo.com>
80039
80040         * modules/version-etc-fsf: New file.
80041
80042 2005-01-20  Simon Josefsson  <jas@extundo.com>
80043
80044         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80045         * lib/version-etc.c: Remove version_etc_copyright.
80046         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80047         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80048
80049 2005-01-20  Simon Josefsson  <jas@extundo.com>
80050
80051         * lib/base64.h (isbase64): Add.
80052
80053         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80054         using a unsigned prototype, don't inline.
80055         (base64_decode): Use it.
80056
80057 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80058
80059         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80060         it.
80061
80062 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80063
80064         * lib/save-cwd.c (save_cwd): Remove code to support the case
80065         where fchdir is missing or flaky.
80066
80067 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80068
80069         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80070
80071 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80072
80073         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80074         AC_LIBSOURCES now does this.
80075         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80076         with new ullong_max module.
80077
80078 2005-01-19  Bruno Haible  <bruno@clisp.org>
80079
80080         * modules/sh-quote: New file.
80081         * MODULES.html.sh (Executing programs): Add sh-quote.
80082
80083 2005-01-19  Bruno Haible  <bruno@clisp.org>
80084
80085         * lib/sh-quote.h: New file, from GNU gettext.
80086         * lib/sh-quote.c: New file, from GNU gettext.
80087
80088 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80089
80090         Merge from coreutils.
80091         * m4/ullong_max.m4: New file.
80092         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80093         (gl_MACROS): Assume localeconv exists.
80094
80095 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80096
80097         Merge changes from coreutils, as described below in several
80098         changelogs dated today.
80099
80100         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80101         (O_DIRECTORY): Remove; not needed here, since "." must be
80102         a directory.  All uses removed.
80103         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80104         universal on Suns, and we also need to test for IRIX.
80105         Revamp code to use 'if' rather than '#if'.
80106         Avoid unnecessary comparison of cwd->desc to 0.
80107
80108         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80109         for known valid error numbers rather than observed invalid ones.
80110
80111 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80112
80113         * modules/ullong_max: New file.
80114
80115         * modules/chdir-long, modules/openat: New files.
80116         * modules/save-cwd (Depends-on): Depend on chdir-long.
80117         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80118
80119 2005-01-18  Jim Meyering  <jim@meyering.net>
80120
80121         Merge from coreutils.
80122         * m4/chdir-long.m4, m4/openat.m4: New files.
80123         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80124         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80125         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80126         is sane and DOES follow symlinks.  Besides, testing 20 different
80127         systems found no broken chown implementations.
80128         Prompted by a change in rsync's copy of this macro.
80129         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80130
80131         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80132
80133         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80134         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80135         NULL-means-set-to-current-time semantics.
80136         Remove temporary file immediately, rather than waiting
80137         for configure's at-exit trap code to do it.
80138
80139 2005-01-18  Jim Meyering  <jim@meyering.net>
80140
80141         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80142
80143         * lib/utimens.c (futimens): Account for the fact that futimes
80144         can also fail with errno == ENOSYS or errno == ENOENT.
80145         Patch from Dmitry V. Levin.
80146
80147         Change the name of the robust chdir function from chdir to chdir_long.
80148         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80149         (restore_cwd): Use chdir_long, not chdir.
80150         * lib/chdir-long.c: Renamed from chdir.c.
80151         * lib/chdir-long.h: Renamed from chdir.h.
80152         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80153         Hurd.
80154
80155 2005-01-18  Bruno Haible  <bruno@clisp.org>
80156
80157         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80158         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80159         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80160         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80161         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80162         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80163         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80164         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80165         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80166         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80167         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80168         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80169         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80170         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80171         Use an all-permissive copyright notice, recommended by RMS.
80172
80173 2005-01-18  Bob Proulx  <bob@proulx.com>
80174
80175         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80176         simplify offsetof() macro construct to avoid compile failure with
80177         native HP-UX 11.0 ANSI C compiler.
80178
80179 2005-01-17  Bruno Haible  <bruno@clisp.org>
80180
80181         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80182         redundant because stpncpy.m4 takes care of it.
80183
80184 2005-01-17  Bruno Haible  <bruno@clisp.org>
80185
80186         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80187
80188 2005-01-17  Bruno Haible  <bruno@clisp.org>
80189
80190         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80191         used.
80192
80193 2005-01-17  Bruno Haible  <bruno@clisp.org>
80194
80195         * lib/fwriteerror.h (fwriteerror): Change specification to include
80196         fclose.
80197         * lib/fwriteerror.c: Include <stdbool.h>.
80198         (fwriteerror): At the end, close the file stream. Record whether
80199         stdout was already closed.
80200
80201 2005-01-17  Bruno Haible  <bruno@clisp.org>
80202
80203         * lib/execute.c (environ): Declare if needed.
80204         * lib/pipe.c (environ): Likewise.
80205         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80206
80207 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80208
80209         * modules/argp: Depend on vsnprintf
80210
80211 2005-01-10  Jim Meyering  <jim@meyering.net>
80212
80213         * modules/closeout (Depends-on): Add atexit.
80214
80215 2005-01-06  Bruno Haible  <bruno@clisp.org>
80216
80217         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80218
80219 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80222         definitions to be after all include files, to avoid collisions.
80223         Problem reported by Bob Proulx.
80224
80225 2005-01-04  Jim Meyering  <jim@meyering.net>
80226
80227         Changes imported from coreutils.
80228         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80229         as the mkstemp template, use a temporary directory and an
80230         8.3-friendly template to avoid trouble on systems like DJGPP.
80231         Reported by Juan M. Guerrero via Stepan Kasal.
80232         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80233         close. Remove the temporary directory right away, rather than waiting
80234         for configure's at-exit trap code to do it.
80235         Suggestion from Stepan Kasal.
80236
80237 2005-01-01  Simon Josefsson  <jas@extundo.com>
80238
80239         * gnulib-tool: Print #include directives when --import'ing.
80240
80241 2004-12-28  Simon Josefsson  <jas@extundo.com>
80242
80243         * tests/test-base64.c: Include required header files.  Remove
80244         unused variables.
80245
80246 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80247
80248         * modules/error (Depends-on): Remove gettext.
80249
80250 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80251
80252         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
80253         not needed.  This removes a dependency on the gettext module.
80254         [defined _LIBC]: Do not include <libintl.h>; not needed.
80255
80256 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80257
80258         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
80259         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
80260
80261 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80262
80263         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
80264         HAVE_DECL_STRTOLD.
80265
80266 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80267
80268         * modules/getdate (Depends-on): Remove alloca-opt.
80269
80270 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80271
80272         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
80273
80274 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80275
80276         * lib/argp-parse.c: Include <stddef.h>.
80277         (alignof, alignto): New macros.
80278         (parser_init): Don't assume that void * is aligned sufficiently
80279         for struct option.
80280
80281         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
80282         need to extend the stack.
80283         (YYINITDEPTH): New macro, so that the initial stack isn't overly
80284         large.
80285
80286 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80287
80288         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
80289
80290 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80291
80292         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
80293         (2004-10-24) change.  Apparently this was a false alarm.
80294
80295         * modules/getdate: Depend on alloca-opt, not alloca.
80296
80297 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80298
80299         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
80300         Remove now-obsolete comment about AIX.
80301         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
80302         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
80303         (YYMAXDEPTH): New macro.
80304
80305 2004-12-18  Simon Josefsson  <jas@extundo.com>
80306
80307         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
80308
80309 2004-12-18  Bruno Haible  <bruno@clisp.org>
80310
80311         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
80312
80313 2004-12-18  Bruno Haible  <bruno@clisp.org>
80314
80315         * lib/fatal-signal.c (fatal_signals): Make non-const.
80316         (init_fatal_signals): New function.
80317         (uninstall_handlers, install_handlers): Ignore signals that were set to
80318         SIG_IGN.
80319         (at_fatal_signal): Call init_fatal_signals.
80320         (init_fatal_signal_set): Likewise. Ignore signals that were set to
80321         SIG_IGN.
80322         Reported by Paul Eggert.
80323
80324 2004-12-18  Bruno Haible  <bruno@clisp.org>
80325
80326         * doc/alloca.texi: New file.
80327         * doc/alloca-opt.texi: New file.
80328
80329 2004-12-17  Jim Meyering  <jim@meyering.net>
80330
80331         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
80332         Otherwise, install-sh could exit with improper exit status when
80333         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
80334
80335 2004-12-16  Simon Josefsson  <jas@extundo.com>
80336
80337         * tests/test-base64.c: Add license.
80338
80339 2004-12-15  Stepan Kasal  <address@hidden>
80340
80341         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
80342
80343 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
80344
80345         * modules/getcwd (Files): Add m4/d-ino.m4.
80346         Suggested by Mark D. Baushke.
80347
80348 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80349
80350         * lib/getdate.y (textint): New member "negative".
80351         (time_zone_hhmm): New function.
80352         Expect 14 shift-reduce conflicts, not 13.
80353         (o_colon_minutes): New rule.
80354         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
80355         (yylex): Set the "negative" member of signed numbers.
80356
80357 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80358
80359         * doc/getdate.texi (Time of day items, Time zone items):
80360         Describe new formats +00:00, UTC+00:00.
80361
80362 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80363
80364         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
80365         spurious "-l"s.  Problem reported by Stepan Kasal.
80366
80367 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80368
80369         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80370         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80371
80372 2004-12-04  Simon Josefsson  <jas@extundo.com>
80373
80374         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80375         Vandoorselaere <yoann@prelude-ids.org>.
80376
80377 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80378
80379         Changes imported from coreutils.
80380         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80381         exist.
80382         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80383
80384 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80385
80386         Changes imported from coreutils.
80387         * lib/hard-locale.c: Assume <locale.h> exists.
80388         Include "strdup.h".
80389         (GLIBC_VERSION): New macro.
80390         (hard_locale): Assume setlocale exists.
80391         Rewrite to avoid #ifdef.
80392         Use strdup rather than malloc + strcpy.
80393         * lib/human.c: Assume <locale.h> exists.
80394         (human_readable): Assume localeconv exists.
80395
80396 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80397
80398         * modules/hard-locale (Depends-on): Add strdup.
80399
80400 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80401
80402         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80403         convert T2, not T.  (Imported from libc.)
80404
80405 2004-11-30  Simon Josefsson  <jas@extundo.com>
80406
80407         * modules/restrict (License): Change to LGPL.
80408
80409 2004-11-30  Simon Josefsson  <jas@extundo.com>
80410
80411         * m4/restrict.m4: Add copyright and copying conditions.
80412
80413 2004-11-30  Simon Josefsson  <jas@extundo.com>
80414
80415         * m4/base64.m4: New file.
80416
80417 2004-11-30  Simon Josefsson  <jas@extundo.com>
80418
80419         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80420         base64.
80421
80422         * tests/test-base64.c: New file.
80423
80424         * modules/base64: New file.
80425
80426 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80427
80428         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80429         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80430
80431         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80432
80433 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80434
80435         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80436         (__getcwd.c): Don't restore errno; glibc doesn't.
80437         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80438         first, falling back to our code only if its results look suspicious.
80439         Ensure that the resulting buffer is only as large as necessary.
80440
80441         * lib/readutmp.c: Include readutmp.h first.
80442         Include <errno.h>, since readutmp.h no longer does that.
80443         * lib/readutmp.h: Don't include <errno.h>,
80444         <sys/param.h>, <time.h>; not needed to establish interface.
80445         (errno): Remove decl.
80446         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80447         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80448         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80449
80450 2004-11-28  Simon Josefsson  <jas@extundo.com>
80451
80452         * lib/base64.h, base64.c: New file.
80453
80454 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80455
80456         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80457
80458 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80459
80460         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80461         (Depends-on): Remove pathmax, same.  Add mempcpy.
80462         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80463         (Makefile.am): Append getcwd.h to lib_SOURCES.
80464         (Include): Add getcwd.h.
80465         (Maintainer): Change from Jim Meyering to "all, glibc",
80466         since getdate now uses intended-for-glibc code.
80467         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80468         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80469
80470 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80473         HP's ANSI C compiler.
80474         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80475         Declaring int functions causes warnings on some modern systems and
80476         shouldn't be needed to compile on ancient ones.
80477         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80478         defined.
80479
80480         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80481         with the following changes.
80482         (__set_errno): Parenthesize properly.
80483         Include <stdbool.h>.
80484         (MIN, MAX, MATCHING_INO): New macros.
80485         (__getcwd): Define with prototype, not K&R form.
80486         Use heuristics to allocate default buffer on stack if possible.
80487         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80488         behavior, and to avoid the PATH_MAX limit when computing
80489         ../../../../...
80490         Use MATCHING_INO to compare inode number to file.
80491         Check for arithmetic overflow in size calculations.
80492         Fix bug in reallocation of dot array that caused getcwd to fail
80493         on directories nested deeper than 75.
80494         Be more careful about saving errno on error.
80495         Do not use realloc; use only free+malloc, as this is a bit
80496         more flexible and avoids a needless copy operation.
80497         Do not inspect st_dev and st_ino for symbolic links; POSIX
80498         doesn't specify the latter.
80499         Check for closedir errors.
80500         Avoid needless casts.
80501         Use "#ifdef weak_alias" around weak_alias, to be like other
80502         glibc code.
80503         The following changes to getcwd.c have effect only when used in
80504         gnulib; they have no effect inside glibc proper.
80505         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80506         as alloca isn't used.
80507         (alloca, __alloca): Likewise.
80508         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80509         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80510         unconditionally, as gnulib assumes C89 or better.
80511         Do not include <sys/param.h>.
80512         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80513         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80514         better.
80515         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80516         Include <dirent.h> in a way that is compatible with modern Autoconf.
80517         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80518         New macros, if not already defined.
80519         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80520         Use "_LIBC", not "defined _LIBC", for consistency.
80521         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80522         a mempcpy module.
80523         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80524         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80525         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80526         credit only to Jim Meyering and adjust the copyright dates.
80527         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80528         <stdlib.h>, <unistd.h>, "pathmax.h".
80529         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80530         (INITIAL_BUFFER_SIZE): Remove.
80531         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80532
80533 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80534
80535         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80536         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80537         Use the _ONCE methods, for efficiency.
80538         Check for fcntl.h.  In test program, include <errno.h>
80539         and <fcntl.h> if available.  Remove old K&R cruft from
80540         test program.  Check for common errors in GNU/Linux,
80541         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80542         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80543         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80544         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80545         name accordingly.
80546         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80547         accommodate new getcwd.c.
80548         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80549         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80550         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80551         that's all we need now.
80552
80553 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80554
80555         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80556         argp-parse.c depends on getopt internals, that means we should
80557         always use our getopt, to be on the safe side.
80558         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80559         order not to spoil the result of an eventual previous invocation
80560         of gl_GETOPT_SUBSTITUTE.
80561
80562 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80563
80564         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80565         redefinition warnings. To avoid them, include the defines
80566         in `#if !defined __need_getopt ... #endif'. The only place
80567         where __getopt_argv_const is used is in definitions
80568         of getopt_long and getopt_long_only below, which are as well
80569         protected by `#ifndef __need_getopt'.
80570         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80571         __need_getopt after including <stdio.h> and <unistd.h> These
80572         headers might have defined it.
80573
80574 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80575
80576         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80577
80578 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80579
80580         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80581         (futimens): New function, which uses futimes if available.
80582         (futimens, utimens): Support timespec==NULL, with same semantics
80583         as utime and utimens.
80584         * lib/utimens.h (futimens): New decl.
80585
80586 2004-11-23  Jim Meyering  <jim@meyering.net>
80587
80588         * lib/getopt_.h: Remove trailing blanks.
80589
80590 2004-11-23  Jim Meyering  <jim@meyering.net>
80591
80592         * lib/__fpending.c: Add comment.
80593
80594 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80595
80596         * modules/canonicalize (Depends-on): Add xreadlink.
80597         Problem reported by James Youngman.
80598
80599 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80600
80601         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80602         New macros.
80603         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80604         optopt): Use them instead of invoking ## directly; otherwise, the
80605         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80606
80607 2004-11-19  Bruno Haible  <bruno@clisp.org>
80608
80609         * lib/strtok_r.c: Move comments from here...
80610         * lib/strtok_r.h: ... to here.
80611
80612 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80613
80614         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80615         implementations that mishandle size_t overflow.
80616
80617 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80618
80619         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80620         might fail.  Problem reported by Yoann Vandoorselaere.
80621         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80622         implementations that mishandle size_t overflow.
80623
80624 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80625
80626         * modules/canon-host (Depends-on): Add strdup.
80627
80628 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80629
80630         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80631
80632 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80633
80634         * lib/canon-host.c: Include "strdup.h".
80635         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80636         Use strdup instead of malloc/strcpy to duplicate strings.
80637
80638         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80639         (human_space_before_unit): New constant.
80640         * lib/human.c (human_readable): Support it.
80641
80642         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80643         (xgetcwd): Set errno correctly when failing.
80644         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80645         the failure is actually due to a PATH_MAX problem.
80646
80647         Further getopt changes to make it more likely that glibc will
80648         buy the changes back.
80649         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80650         (getopt): Use it, so to preserve glibc semantic
80651         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80652         when compiling for libc.
80653         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80654         (getopt_long, getopt_long_only): Use it.
80655
80656         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80657         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80658         (getopt): Argv is now char * const *, as per standard.
80659         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80660         not char *__getopt_argv_const *.
80661         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80662         _getopt_long_only_r): Likewise.
80663         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80664         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80665         _getopt_long_r, _getopt_long_only_r): Likewise.
80666         * lib/getopt_.h (__getopt_argv_const): Remove.
80667         (getopt): Argv is now char * const *, as per standard.
80668
80669         * lib/getdate.y (tORDINAL): New token.
80670         (day, relunit): Allow it for relative times.
80671         (relative_time_table): Use tORDINAL for ordinals.
80672
80673 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80674
80675         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80676         Document that "second" isn't allowed as an ordinal number.
80677
80678 2004-11-16  Jim Meyering  <jim@meyering.net>
80679
80680         * modules/closeout (Depends-on): Add fpending.
80681
80682 2004-11-15  Jim Meyering  <jim@meyering.net>
80683
80684         * lib/closeout.c: Include "__fpending.h" once again.
80685         Include <stdbool.h>.
80686         (close_stdout): Don't fail just because stdout was closed initially,
80687         since some programs don't write to stdout in the normal course of
80688         operation (other than --version and --help), and we don't want this
80689         function to make e.g. `touch file >&-' fail.
80690         But do fail if it was closed and someone has tried to write to it.
80691         E.g., `printf foo >&-' must fail.
80692
80693 2004-11-13  Jim Meyering  <jim@meyering.net>
80694
80695         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80696
80697 2004-11-12  Simon Josefsson  <jas@extundo.com>
80698
80699         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80700         small doc fix is still pending.
80701
80702 2004-11-11  Simon Josefsson  <jas@extundo.com>
80703
80704         * modules/strtok_r: New file.
80705
80706         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80707         strtok_r.
80708
80709 2004-11-11  Simon Josefsson  <jas@extundo.com>
80710
80711         * m4/strtok_r.m4: New file.
80712
80713         * m4/getopt.m4: Replace opterr.
80714
80715 2004-11-11  Simon Josefsson  <jas@extundo.com>
80716
80717         * lib/strtok_r.h, strtok_r.c: New file.
80718
80719 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80720
80721         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80722         of replacing opterr, getopt, etc.  This should handle the
80723         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80724
80725 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80726
80727         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80728         we can stop lying to compilers about the constness of argv when we
80729         are compiled outside glibc.
80730         (getopt, getopt_long, getopt_long_only): Use it.
80731         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80732         _getopt_internal, getopt): Likewise.
80733         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80734         _getopt_long_only_r): Likewise.
80735         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80736         _getopt_long_r, _getopt_long_only_r): Likewise.
80737
80738         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80739         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80740         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80741         the other external symbols.
80742         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80743         declaration, since the above renaming now works around collisions.
80744
80745 2004-11-11  Jim Meyering  <jim@meyering.net>
80746
80747         * lib/linebreak.c: Remove trailing blanks.
80748         * lib/alloca_.h: Likewise.
80749         * lib/acosl.c: Likewise.
80750         * lib/euidaccess.c: Likewise.
80751         * lib/allocsa.h: Likewise.
80752
80753 2004-11-10  Simon Josefsson  <jas@extundo.com>
80754
80755         * m4/getaddrinfo.m4: New file.
80756
80757 2004-11-10  Simon Josefsson  <jas@extundo.com>
80758
80759         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80760
80761 2004-11-10  Simon Josefsson  <jas@extundo.com>
80762
80763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80764         getaddrinfo.
80765
80766         * modules/getaddrinfo: New file.
80767
80768 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80769
80770         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80771
80772 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80773
80774         * lib/mktime.c (SHR): New macro, which is a portable
80775         substitute for >> that should work even on Crays.
80776         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80777         Problem reported by Mark D. Baushke in
80778         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80779         * lib/getdate.y (SHR): Likewise.
80780         (tm_diff): Use it.
80781         * lib/strftime.c (SHR): Likewise.
80782         (tm_diff): Use it.
80783         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80784         quote_these_too, so that right shifts are well defined.  All uses
80785         changed.
80786
80787 2004-11-10  Jim Meyering  <jim@meyering.net>
80788
80789         Ensure that no close failure goes unreported.
80790         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80791         return early when it seems there's nothing to flush.
80792         Don't include __fpending.h.
80793
80794 2004-11-10  Jim Meyering  <jim@meyering.net>
80795
80796         * modules/closeout (Depends-on): Remove fpending.
80797
80798 2004-11-10  Jim Meyering  <jim@meyering.net>
80799
80800         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80801
80802 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80803
80804         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80805         gl_FUNC_STRFTIME.
80806         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80807         and AC_REQUIRE when possible, to avoid duplicate checks.
80808         Check for <wchar.h>.
80809
80810 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80811
80812         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80813
80814 2004-11-09  Bruno Haible  <bruno@clisp.org>
80815
80816         * m4/sockpfaf.m4: New file.
80817
80818 2004-11-05  Bruno Haible  <bruno@clisp.org>
80819
80820         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80821         Reported by Mark D. Baushke <mdb@cvshome.org>.
80822
80823 2004-11-04  Bruno Haible  <bruno@clisp.org>
80824
80825         2004-09-11  Bruno Haible  <bruno@clisp.org>
80826                 * allocsa.valgrind: New file.
80827         2004-02-06  Bruno Haible  <bruno@clisp.org>
80828                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80829                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80830                 Reported by Christopher Seip <chris.seip@hp.com>.
80831
80832 2004-11-04  Bruno Haible  <bruno@clisp.org>
80833
80834         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80835         (Makefile.am): Distribute it.
80836
80837 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80838
80839         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80840         with errno == ERANGE if the buffer is too small.
80841         Problem reported by Mark D. Baushke.
80842
80843 2004-11-03  Albert Chin  <china@thewrittenword.com>
80844             Paul Eggert  <eggert@cs.ucla.edu>
80845
80846         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80847         equivalent, substitute $ac_type for equivalent type rather than
80848         blindly using uint32_t *always* which won't work if uint32_t is not
80849         available.  Define _UINT32_T to work around typedef of uint32_t if
80850         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80851         2.5.1.
80852
80853 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80854
80855         * m4/jm-macros.m4: Sync from coreutils.
80856         (gl_MACROS): Check for mbrlen, for pathchk.
80857         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80858
80859 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80860
80861         * lib/xreadlink.c (MAXSIZE): New macro.
80862         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80863         size does not exceed MAXSIZE.  Avoid cast.
80864         As suggested by Mark D. Baushke in
80865         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80866         if readlink fails with buffer size just under MAXSIZE, try again
80867         with MAXSIZE.
80868
80869 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80870
80871         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80872
80873 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80874         and  Paul Eggert  <eggert@cs.ucla.edu>
80875
80876         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80877         (get_date): Overparenthesize to avoid GCC warning.
80878
80879 2004-11-02  Bruno Haible  <bruno@clisp.org>
80880
80881         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80882         returns void.
80883
80884 2004-11-02  Bruno Haible  <bruno@clisp.org>
80885
80886         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80887         function returns void.
80888
80889 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80890
80891         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80892         fflush_unlocked, flockfile, funlockfile, funlockfile,
80893         fputs_unlocked, putc_unlocked.
80894
80895 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80896
80897         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80898         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80899         already declared.
80900
80901 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80902
80903         * modules/getdate (Files): Add doc/getdate.texi.
80904         (Depends-on): Add setenv, xalloc.
80905
80906 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80907
80908         * lib/getdate.y: Add support for TZ="foo" within a date string.
80909         Fix some bugs near time_t boundaries.  Reject dates with
80910         out-of-range components, e.g., "Sept 31".
80911         Include <stdlib.h>, "setenv.h", "xalloc.h".
80912         (ISDIGIT_LOCALE): Remove; unused.
80913         Note that the TZ and time functions used here are not reentrant.
80914         (mktime_ok, get_tz): New functions.
80915         (TZBUFSIZE): New constant.
80916         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80917         This requires that we sometimes generate our own TZ="XXX..." setting.
80918
80919 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80920
80921         * doc/getdate.texi: New file, from coreutils with modifications for
80922         the new TZ parsing.
80923
80924 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80925
80926         * lib/mktime.c (not_equal_tm): Remove redundant check.
80927
80928 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80929
80930         * modules/regex (lib_SOURCES): Add regex.c.
80931         Reported by James Youngman in
80932         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80933
80934 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80935
80936         * lib/getdate.y: Use Bison 1.875 features, and some minor
80937         code cleanups.  This change does not affect semantics.
80938         Don't include <stdlib.h>; no longer needed.
80939         Don't include unlocked-io.h; only the "#if TEST" code uses
80940         stdio, and performance isn't crucial there.
80941         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80942         Bison 1.875 features as described below.
80943         All uses of "PC." replaced by "pc->".
80944         (YYSTYPE): Add a forward declaration.
80945         (yylex, yyerror): Use full prototypes in forward decls.
80946         Use "%pure-parser" rather than obsolescent "%pure_parser".
80947         Use %parse-param and %lex-param instead of obsolescent
80948         YYPARSE_PARAM and YYLEX_PARAM.
80949         (meridian_table, month_and_day_table, time_units_table,
80950         relative_time_table, time_zone_table, military_table,
80951         lookup_zone, lookup_word, get_date):
80952         Use NULL instead of 0 where appropriate.
80953         (to_hour): Avoid abort (), to avoid a dependency on
80954         stdlib.h.
80955         (yyerror, yylex): Now accepts parser_control * arg.
80956         (main) [TEST]: Use '\0' rather than 0 for char.
80957
80958 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80959
80960         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80961
80962 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80963
80964         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80965         It's now the caller's responsibility to handle the case where
80966         !HAVE_GETPAGESIZE && !defined getpagesize.
80967
80968         * lib/mktime.c (leapyear): Arg is long int, not int.
80969
80970 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80973
80974 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80975
80976         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80977         missing.  Problem reported by James Youngman.
80978
80979 2004-10-16  Simon Josefsson  <jas@extundo.com>
80980
80981         * gnulib-tool: Fix comments.  Fix parse problem.
80982         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80983
80984 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80985
80986         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80987         implementation of getopt_long.  Problem reported by Alexander Taler in:
80988         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80989
80990 2004-10-15  Bruno Haible  <bruno@clisp.org>
80991
80992         * gnulib-tool: Untabify. Initialize supplied_libname.
80993         (func_usage): More homogenous output.
80994         (func_modules_transitive_closure, func_modules_to_filelist,
80995         func_emit_lib_Makefile_am): New functions.
80996         (func_import): New function, extracted from big case statement. Use
80997         func_get_license, func_modules_transitive_closure,
80998         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80999         opt_lgpl. Don't use test -a, as it's not portable.
81000         (func_create_testdir): Use func_modules_transitive_closure,
81001         func_modules_to_filelist, func_emit_lib_Makefile_am.
81002
81003 2004-10-15  Bruno Haible  <bruno@clisp.org>
81004
81005         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81006
81007 2004-10-15  Bruno Haible  <bruno@clisp.org>
81008
81009         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81010         the portions belonging to each module.
81011         Suggested by Derek Robert Price <derek@ximbiot.com>.
81012
81013 2004-10-12  Simon Josefsson  <jas@extundo.com>
81014
81015         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81016         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81017         to real functions.
81018
81019 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81020
81021         * modules/vsnprintf: New file.
81022
81023 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81024
81025         * m4/vsnprintf.m4: New file.
81026
81027 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81028
81029         * lib/vsnprintf.h: New file.
81030         * lib/vsnprintf.c: New file.
81031
81032 2004-10-11  Bruno Haible  <bruno@clisp.org>
81033
81034         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81035         vsnprintf.
81036
81037 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81038
81039         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81040
81041 2004-10-07  Bruno Haible  <bruno@clisp.org>
81042
81043         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81044         fits into the provided buffer.
81045
81046 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81047
81048         * lib/diacrit.c, diacrit.h: Add GPL notice.
81049
81050         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81051         notice.
81052         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81053         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81054         This avoids a potential constant-folding bug.
81055
81056 2004-10-05  Bruno Haible  <bruno@clisp.org>
81057
81058         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81059         for the declaration of strsep.
81060
81061 2004-10-05  Bruno Haible  <bruno@clisp.org>
81062
81063         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81064
81065 2004-10-04  Simon Josefsson  <jas@extundo.com>
81066
81067         * modules/memmem: New file.
81068         * tests/test-memmem.c: New file.
81069         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81070
81071 2004-10-04  Simon Josefsson  <jas@extundo.com>
81072
81073         * m4/memmem.m4: New file.
81074
81075 2004-10-04  Simon Josefsson  <jas@extundo.com>
81076
81077         * lib/memmem.h: New file.
81078         * lib/memmem.c: New file, taken from glibc.
81079
81080 2004-10-04  Simon Josefsson  <jas@extundo.com>
81081
81082         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81083         '#ifdef USE_UNLOCKED_IO'.
81084
81085 2004-10-04  Simon Josefsson  <jas@extundo.com>
81086
81087         * config/srclist.txt: Add memmem from glibc.
81088
81089 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81090
81091         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81092
81093         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81094         modules/exclude, modules/getdate, modules/getline,
81095         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81096         modules/getusershell, modules/linebuffer, modules/md5,
81097         modules/mountlist, modules/posixtm, modules/readtokens,
81098         modules/readutmp, modules/regex, modules/sha1,
81099         modules/version-etc, modules/yesno:
81100         Remove dependency on unlocked-io.
81101
81102 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81103
81104         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81105
81106         * m4/unlocked-io.m4: Add copyright notice.
81107         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81108
81109 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81110
81111         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81112         * lib/xmalloc.c (xmemdup): Likewise.
81113         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81114         XFREE): Remove these long-obsolescent macros.
81115         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81116         * lib/xstrdup.c: Remove.
81117
81118         * lib/regex.c (re_comp): Cast gettext return value to char *,
81119         Problem reported by Martin Neitzel via Mark D. Baushke.
81120
81121 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81122
81123         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81124         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81125         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81126         regex.c, sha1.c, version-etc.c, yesno.c:
81127         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81128         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81129         the includer's responsibility.
81130
81131         Sync from coreutils.
81132
81133         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81134         points to the start of a string, as the C Standard says the
81135         resulting behavior is undefined.
81136
81137         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81138         simple -> simple_backups, numbered_existing ->
81139         numbered_existing_backups, numbered -> numbered_backups
81140         to avoid shadowing problems.  All uses changed.
81141         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81142         * lib/backupfile.c (check_extension, numbered_backup):
81143         Rename locals to avoid shadowing 'basename'.
81144         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81145         once.
81146
81147         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81148         * lib/.cvsignore: Add getopt.h.
81149
81150 2004-10-04  Bruno Haible  <bruno@clisp.org>
81151
81152         * modules/README: New file.
81153         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81154         not a module.
81155
81156 2004-10-02  Jim Meyering  <jim@meyering.net>
81157
81158         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81159
81160 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81161
81162         * modules/strsep: New file.
81163
81164 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81165
81166         * m4/strsep.m4: New file.
81167
81168 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81169
81170         * lib/strsep.h: New file.
81171         * lib/strsep.c: New file.
81172
81173 2004-10-01  Simon Josefsson  <jas@extundo.com>
81174
81175         * lib/snprintf.c (snprintf): Handle size==0.
81176
81177 2004-10-01  Simon Josefsson  <jas@extundo.com>
81178             Bruno Haible  <bruno@clisp.org>
81179
81180         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81181         (snprintf): Declare 'args'.
81182
81183 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81184
81185         * lib/snprintf.c: Remove comments as to why each header is needed.
81186
81187 2004-10-01  Bruno Haible  <bruno@clisp.org>
81188
81189         * MODULES.html.sh: Add strsep.
81190
81191 2004-09-30  Simon Josefsson  <jas@extundo.com>
81192
81193         * modules/snprintf: New file.
81194
81195 2004-09-30  Simon Josefsson  <jas@extundo.com>
81196
81197         * m4/snprintf.m4: New file.
81198
81199 2004-09-30  Simon Josefsson  <jas@extundo.com>
81200
81201         * lib/snprintf.h, lib/snprintf.c: New files.
81202
81203 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81204
81205         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81206         (hol_entry_help): Never translate an empty string.
81207         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81208         * lib/argp.h (OPTION_NO_TRANS): New option.
81209
81210 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81211
81212         * modules/argp (Maintainer): Replace Simon Josefsson
81213         by Sergey Poznyakoff.
81214
81215 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81216
81217         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81218         changes merged back into glibc.
81219
81220 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81221
81222         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81223
81224 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81225
81226         * lib/xvasprintf.c: Include xalloc.h.
81227         (xvasprintf): Use xalloc_die, not xmalloc_die.
81228
81229 2004-09-29  Bruno Haible  <bruno@clisp.org>
81230
81231         * modules/alloca-opt: New file, derived from modules/alloca.
81232         * modules/allocsa: Depend on alloca-opt instead of alloca.
81233         * modules/setenv: Likewise.
81234         * modules/vasnprintf: Likewise.
81235         * MODULES.html.sh: Add alloca-opt.
81236
81237 2004-09-28  Simon Josefsson  <jas@extundo.com>
81238
81239         * gnulib-tool: New parameter --lgpl, to asseert that modules are
81240         LGPL, and to replace license template from GPL to LGPL.
81241
81242 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81243
81244         * modules/dummy: Change license to LGPL.
81245
81246 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81247
81248         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
81249
81250 2004-09-24  Simon Josefsson  <jas@extundo.com>
81251
81252         * modules/minmax (License): Change from GPL to LGPL.
81253
81254 2004-09-23  Simon Josefsson  <jas@extundo.com>
81255
81256         * gnulib-tool (--import): Typo.
81257
81258 2004-09-23  Simon Josefsson  <jas@extundo.com>
81259
81260         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
81261
81262 2004-09-22  Bruno Haible  <bruno@clisp.org>
81263
81264         * modules/*: Add 'License' field.
81265         * gnulib-tool: Accept --extract-license option.
81266         (func_get_license): New function.
81267
81268 2004-09-21  Bruno Haible  <bruno@clisp.org>
81269
81270         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
81271         Reported by Simon Josefsson.
81272
81273 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81274
81275         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
81276         gl_AC_TYPE_LONG_LONG.
81277
81278 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81279
81280         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
81281
81282 2004-09-18  Simon Josefsson  <jas@extundo.com>
81283         and  Paul Eggert  <eggert@cs.ucla.edu>
81284
81285         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
81286         calls with autoreconf.  Define GL_LIB.
81287
81288 2004-09-14  Karl Berry  <karl@gnu.org>
81289
81290         * config/srclist.txt: unsync setenv.c, sigh.
81291
81292 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81293
81294         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
81295         Problem reported by Bruno Haible in:
81296         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
81297
81298 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81299
81300         * config/srclist.txt: Comment out argp-pvh.c.
81301
81302 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
81303
81304         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
81305         in case some system header has #define'd it.  Problem reported by
81306         Soeren D. Schulze in
81307         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
81308
81309 2004-09-09  Karl Berry  <karl@gnu.org>
81310
81311         * regex.[ch]: delete from the root.  These were supposed to be
81312                 synced with emacs cvs, but this has not happened for about
81313                 a year, and anyway nothing else uses emacs regex.[ch].
81314                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
81315                 lib/regex[.ch] is untouched.
81316
81317 2004-09-09  Bruno Haible  <bruno@clisp.org>
81318
81319         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
81320
81321 2004-09-09  Bruno Haible  <bruno@clisp.org>
81322
81323         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
81324         modifications.
81325         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
81326
81327 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81328
81329         * modules/xvasprintf: New file.
81330         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
81331
81332 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81333
81334         * lib/xvasprintf.h: New file.
81335         * lib/xvasprintf.c: New file.
81336         * lib/xasprintf.c: New file.
81337
81338 2004-09-08  Bruno Haible  <bruno@clisp.org>
81339
81340         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
81341
81342 2004-09-08  Bruno Haible  <bruno@clisp.org>
81343
81344         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
81345         length is > INT_MAX.
81346         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
81347         more.
81348
81349 2004-09-08  Bruno Haible  <bruno@clisp.org>
81350
81351         * lib/stdint_.h: New file, taken from GNU clisp.
81352
81353 2004-09-08  Bruno Haible  <bruno@clisp.org>
81354             Oskar Liljeblad  <oskar@osk.mine.nu>
81355
81356         * modules/stdint: New file.
81357         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
81358
81359 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81360
81361         Import from coreutils.
81362         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
81363         strings on unbounded length.  alloca's performance benefits aren't
81364         that important here.
81365         (V_STRDUP): Remove.
81366         (parse_with_separator): New function, with most of the internals
81367         of the old parse_user_spec.  Allow user to omit both user and group,
81368         for compatibility with FreeBSD.
81369         Clone only the user name, not the entire spec.
81370         Do not set *uid, *gid unless entirely successful.
81371         Avoid memory leak in some failing cases.
81372         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81373         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81374         (parse_user_spec): Rewrite to use parse_with_separator.
81375
81376 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * modules/userspec: Don't depend on alloca.
81379
81380 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81381
81382         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81383
81384 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81385
81386         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
81387         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
81388         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81389
81390 2004-08-16  Simon Josefsson  <jas@extundo.com>
81391
81392         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81393         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81394         Add --dry-run for --import.
81395         Let user provided command line parameters override configure.ac
81396         settings.
81397
81398 2004-08-12  Simon Josefsson  <jas@extundo.com>
81399
81400         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81401         as discussed with Paul Eggert in threads rooted at
81402         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81403         and
81404         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81405         Before, the test was empty, and relied on ELIDE_CODE in source
81406         code.)
81407         (gl_PREREQ_GETOPT): New macro.
81408         (gl_GETOPT): Use them.
81409
81410 2004-08-12  Simon Josefsson  <jas@extundo.com>
81411
81412         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81413         * lib/getopt_.h: Renamed from getopt.h.
81414
81415 2004-08-12  Simon Josefsson  <jas@extundo.com>
81416
81417         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81418         Change default library name from libfoo to libgnu.
81419         Now, if you have a configure.ac that says:
81420                 gl_SOURCE_BASE(gl)
81421                 gl_M4_BASE(gl/m4)
81422                 gl_MODULES(error getopt etcetera)
81423                 gl_INIT
81424         you can import all you need by running:
81425                 ../gnulib/gnulib-tool --import
81426
81427         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81428         (Makefile.am): Rewrite, use logic from argz.
81429         (Include): Use <getopt.h> instead of "getopt.h".
81430
81431 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81432
81433         * modules/argp (Files): Add m4/unlocked-io.m4.
81434         (Depends-on): Add extensions.
81435
81436 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81437
81438         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81439         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81440         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81441         Check for program_invocation_name, program_invocation_short_name,
81442         flockfile, funlockfile, features.h, _getopt_long_only_r.
81443
81444 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81445
81446         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81447         its complicated substitute.
81448         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81449         and program_invocation_name.
81450         (__argp_basename) [!_LIBC]: Remove; the only use was
81451         replaced by its body.
81452         (__argp_short_program_name): Change condition from
81453         !defined __argp_short_program_name to
81454         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81455         to match argp-namefrob.h.
81456         (__argp_failure): Don't assume strerror_r returns char *.
81457         * lib/argp-parse.c (N_): Define unconditionally.
81458         (argp_default_options): Fill out initializers with 0 to avoid
81459         gcc warnings.
81460
81461 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81462
81463         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81464         getopt1.c.
81465
81466 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81467
81468         Merge from coreutils.
81469
81470         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81471
81472         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81473         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81474
81475 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81476
81477         Merge from coreutils.
81478
81479         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81480         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81481         for Reliant Unix 5.43.
81482
81483         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81484         (union fooround): Use uintmax_t, not long int.
81485         The rest is a merge from libc:
81486         [defined _LIBC]: Include <shlib-compat.h>.
81487         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81488
81489         * lib/settime.c (settime): Recode to avoid warning with
81490         Sun Forte C 6U2.
81491
81492         * lib/strverscmp.c: Convert to UTF-8.
81493
81494 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81495
81496         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81497         m4/uintmax_t.m4.
81498
81499 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81500
81501         * modules/xalloc-die: New file.
81502         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81503
81504         * modules/md5 (Files): Add m4/uint32_t.m4.
81505         * modules/sha1: Renamed from modules/sha.
81506         (Files):
81507         Rename lib/sha.h to lib/sha1.h.
81508         Rename lib/sha.c to lib/sha1.c.
81509         Rename m4/sha.m4 to m4/sha1.m4.
81510         (lib_SOURCES): Likewise.
81511         (configure.ac): Rename gl_SHA to gl_SHA1.
81512         (Include): sha.h -> sha1.h.
81513
81514 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81515
81516         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81517         * m4/sha1.m4: Renamed from sha.m4.
81518         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81519
81520 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81521
81522         * lib/obstack.h (obstack_empty_p):
81523         Don't assume that chunk->contents is suitably aligned.
81524         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81525         Likewise. Problem reported by Benno in
81526         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81527
81528         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81529         readable.  This could be improved further but it'd take some work.
81530
81531 2004-08-08  Simon Josefsson  <jas@extundo.com>
81532
81533         * modules/xgethostname (Depends-on): Remove exit and error (not
81534         used).
81535
81536         * modules/getpass-gnu: Add getpass.h.
81537         (Depends-on): Add stdbool.
81538         * modules/getpass: Add getpass.h.
81539
81540 2004-08-08  Simon Josefsson  <jas@extundo.com>
81541
81542         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81543         Check getpass declaration.
81544
81545 2004-08-08  Simon Josefsson  <jas@extundo.com>
81546
81547         * lib/xgethostname.c: Don't include error.h (not used).
81548
81549         * lib/getpass.h: Add.
81550         * lib/getpass.c: Include getpass.h first.
81551
81552 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81553
81554         * lib/xalloc-die.c: New file.
81555         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81556         All uses removed.
81557         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81558         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81559         xalloc-die.c.
81560         (_, N_, xalloc_die): Move to xalloc-die.c.
81561         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81562         so that we needn't mess with xalloc_msg_memory_exhausted.
81563
81564         * lib/sha1.h: Renamed from sha.h.
81565         (SHA1_H): Renamed from _SHA_H.
81566         (sha1_ctx): Renamed from sha_ctx.
81567         (sha1_init_ctx): Renamed from sha_init_ctx.
81568         (sha1_process_block): Renamed from sha_process_block.
81569         (sha1_process_bytes): Renamed from sha_process_bytes.
81570         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81571         (sha1_read_ctx): Renamed from sha_read_ctx.
81572         (sha1_stream): Renamed from sha_stream.
81573         (sha1_buffer): Renamed from sha_buffer.
81574         * lib/sha1.c: Likewise; renamed from sha.c.
81575         Do not include <sys/types.h>.
81576         Include <stddef.h> rather than <stdlib.h>.
81577
81578 2004-08-08  Bruno Haible  <bruno@clisp.org>
81579
81580         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81581         FILESYSTEM_PREFIX_LEN.
81582         * lib/progreloc.c: Likewise.
81583         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81584
81585 2004-08-06  Simon Josefsson  <jas@extundo.com>
81586
81587         * modules/progname (Depends-on): Don't depend on stdbool.
81588
81589 2004-08-06  Simon Josefsson  <jas@extundo.com>
81590
81591         * modules/getsubopt: New file.
81592         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81593         getsubopt.
81594
81595 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81596
81597         More merge from coreutils.
81598
81599         * m4/utimens.m4, m4/utimecmp.m4: New files.
81600         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81601         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81602         prereq.m4, sha.m4: Import changes from coreutils.
81603
81604 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81605
81606         More merge from coreutils.
81607         * modules/raise, modules/readtokens0, modules/utimens:
81608         * modules/utimecmp, module/xnanosleep: New files.
81609         * modules/strftime: Add lib/strftime.h.
81610         Change include from <time.h> to "strftime.h".
81611         * modules/yesno: Add lib/yesno.h.
81612         * modules/backupfile: Remove lib/addext.c.
81613         * modules/euidaccess: Add stat-macros.h.
81614         * modules/canonicalize, modules/euidaccess,
81615         modules/filemode, modules/lchown, modules/makepath,
81616         modules/rmdir, modules/stat: Likewise.
81617
81618 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81619
81620         Merge from tar.
81621         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81622         SIZE_MAX is a valid preprocessor constant.
81623         (__argp_basename): Change from "#ifndef _LIBC"
81624         to "#ifndef __argp_short_program_name", so that
81625         we don't compile these functions for tar.
81626
81627         More merges from coreutils.
81628         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81629         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81630         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81631         * lib/addext.c: Remove; no longer needed.
81632         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81633         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81634         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81635         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81636         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81637         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81638         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81639         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81640         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81641         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81642         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81643         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81644         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81645         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81646         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81647         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81648         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81649         Import changes from coreutils.
81650
81651 2004-08-05  Simon Josefsson  <jas@extundo.com>
81652
81653         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81654
81655 2004-08-05  Simon Josefsson  <jas@extundo.com>
81656
81657         * m4/getsubopt.m4: New file.
81658
81659 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81660
81661         Merge from coreutils.
81662
81663         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81664         * m4/getcwd-path-max.m4: New files.
81665
81666         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81667         FILESYSTEM_PREFIX_LEN ->
81668         FILE_SYSTEM_PREFIX_LEN.
81669         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81670         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81671         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81672         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81673
81674         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81675         prerequisite modules now handle the DOS stuff.
81676         Don't check for unistd.h.
81677
81678 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81679
81680         Merge from coreutils.
81681
81682         * lib/.gdb-history: Remove; this doesn't belong here.
81683
81684         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81685         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81686         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81687         * lib/getcwd.c: New files.
81688
81689         * lib/dirname.h: Include <stdbool.h>.
81690         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81691         for consistency with POSIX terminology.  All uses changed.
81692         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81693         (strip_trailing_slashes): Use bool for booleans.
81694         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81695
81696         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81697         sometimes returns a positive errno value even when it succeeds.
81698         (print_errno_message) [!LIBC]: Fall back on strerror if
81699         __strerror_r fails.
81700
81701         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81702         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81703         (longest_relative_suffix): New function.
81704         (path_concat): Use it.  Assume first argument is not NULL.
81705         Port to DOS.  Omit redundant separators.
81706         Report an error instead of returning NULL.
81707         Use mempcpy instead of memcpy.
81708         (xpath_concat): Remove: not declared or used.
81709
81710         * lib/same.h: Include <stdbool.h>
81711         (same_name): Return bool, not int.
81712         * lib/same.c (same_name): Likewise.
81713         (errno): Don't declare; we assume C89 or better now.
81714
81715         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81716         if not already defined.
81717
81718         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81719         * lib/dup-safer.c (errno): Likewise.
81720
81721 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81722
81723         Merge from coreutils.
81724         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81725         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81726         * modules/path-concat: Don't depend on strdup.
81727
81728 2004-08-03  Simon Josefsson  <jas@extundo.com>
81729
81730         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81731         * lib/progname.h: Don't include stdbool.h.
81732
81733 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81734
81735         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81736         * MODULES.html.sh (func_all_modules): Remove fatal.
81737
81738 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81739
81740         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81741
81742 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81743
81744         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81745         working.
81746
81747 2004-08-02  Simon Josefsson  <jas@extundo.com>
81748
81749         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81750         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81751         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81752
81753 2004-08-01  Simon Josefsson  <jas@extundo.com>
81754
81755         * lib/xgetdomainname.c: Include stdlib.h, for free().
81756
81757 2004-07-19  Bruno Haible  <bruno@clisp.org>
81758
81759         * MODULES.html.sh (func_all_modules): Add dummy.
81760
81761 2004-07-16  Simon Josefsson  <jas@extundo.com>
81762
81763         * modules/dummy: New file.
81764
81765 2004-07-16  Simon Josefsson  <jas@extundo.com>
81766
81767         * lib/dummy.c: New file.
81768
81769 2004-07-16  Bruno Haible  <bruno@clisp.org>
81770
81771         * lib/backupfile.h: Add extern "C" for C++.
81772         * lib/closeout.h: Likewise.
81773         * lib/copy-file.h: Likewise.
81774         * lib/findprog.h: Likewise.
81775         * lib/full-write.h: Likewise.
81776         * lib/pathname.h: Likewise.
81777         * lib/progname.h: Likewise.
81778         * lib/stpcpy.h: Likewise.
81779         * lib/stpncpy.h: Likewise.
81780         * lib/strcase.h: Likewise.
81781         * lib/strstr.h: Likewise.
81782         * lib/xalloc.h: Likewise.
81783
81784         * lib/mbswidth.h: Add extern "C" for C++.
81785         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81786
81787 2004-07-13  Robert Millan  <robertmh@gnu.org>
81788
81789         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81790
81791 2004-07-09  Simon Josefsson  <jas@extundo.com>
81792
81793         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81794         failed without this.)
81795
81796 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81797
81798         * modules/chown (Files): Add lib/fchown-stub.c, since
81799         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81800
81801 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81802
81803         * lib/fchown-stub.c: New file.
81804
81805 2004-06-24  Jim Meyering  <jim@meyering.net>
81806
81807         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81808
81809 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81810
81811         * modules/argz: Omit "#include".
81812
81813         * MODULES.html.sh (func_all_modules): Add calloc, to match
81814         2004-06-01 addition of calloc module.
81815
81816 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81817
81818         * m4/argz.m4: New file, which is autoupdated from libtool.
81819
81820 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81821
81822         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81823         libtool.
81824
81825 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81826
81827         * config/srclist-update: Don't insist on "USA." before the
81828         close-comment, as libtool omits the period and puts the */ on a
81829         separate line.
81830         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81831         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81832
81833 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81834
81835         * modules/argz: New file.
81836         * MODULES.html.sh (func_all_modules): Add argz.
81837
81838 2004-06-12  Jim Meyering  <jim@meyering.net>
81839         and  Paul Eggert  <eggert@cs.ucla.edu>
81840
81841         * modules/hash (Files): Add lib/xalloc.h.
81842         * modules/pipe (Depends-on): Add wait-process.
81843         * modules/stat (Depends-on): Add xalloc.
81844         * modules/userspec (Files): Add lib/userspec.h.
81845         * modules/xstrto
81846
81847         Upgrade from gettext-0.13.
81848         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81849         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81850         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81851
81852 2004-06-10  Jim Meyering  <jim@meyering.net>
81853
81854         * lib/calloc.c: New file.
81855
81856 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81857
81858         * lib/getdate.y (yylex): Allow space between sign and number.
81859         Problem reported by Dan Jacobson.
81860
81861 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81862
81863         Merge from coreutils CVS.
81864
81865         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81866         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81867         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81868         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81869         xstrtol.m4: Fix copyright date and/or serial number.
81870
81871         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81872         See if we need an fchown replacement.
81873         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81874         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81875         and use the replacement function if we detect either defect.
81876
81877         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81878         gl_UTIMECMP.
81879
81880 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81881         and  Jim Meyering  <jim@meyering.net>
81882
81883         Merge from coreutils CVS.
81884
81885         * lib/stat-macros.h: New file, with contents from file-type.h
81886         and coreutils' system.h.
81887         * lib/file-type.c: Include "stat-macros.h".
81888         * lib/file-type.h (file_type): Move all macro definitions to new file,
81889         stat-macros.h.
81890
81891         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81892         Wrap old code with this conditional.
81893         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81894         function that does not dereference symlinks.
81895         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81896
81897         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81898         dependency problems.
81899         (xreadlink): Accept new arg SIZE, for efficiency.
81900         All decls and uses changed.
81901         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81902
81903         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81904         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81905
81906         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81907         sysexits.h.
81908
81909 2004-06-01  Jim Meyering  <jim@meyering.net>
81910
81911         * m4/calloc.m4: New file.
81912
81913 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81914
81915         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81916         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81917         Also, fix a typo in a diagnostic.
81918
81919 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81920
81921         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81922         or AC_FUNC_REALLOC.
81923
81924 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81925
81926         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81927         macros to be defined.
81928         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81929         the allocator returns NULL because the requested size is zero.
81930
81931 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81932
81933         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81934         var.  Add comment explaining why libc still defines it.  This
81935         merges the following patch from glibc:
81936         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81937
81938 2004-05-20  Andreas Schwab  <schwab@suse.de>
81939
81940         * m4/free.m4: Replace free if it not known to work, not the other
81941         way round.
81942
81943 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81944
81945         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81946         present in glibc since revision 1.1 of this file.
81947         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81948         obstack_alignment_mask, obstack_alloc, obstack_base,
81949         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81950         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81951         obstack_grow0, obstack_init, obstack_int_grow,
81952         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81953         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81954         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81955         nonexistent functions.
81956
81957 2004-05-18  Karl Berry  <karl@gnu.org>
81958
81959         * config/srclist.txt: break link for vasnprintf.c.
81960
81961 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81962
81963         Port obstack to the AS/400, where pointers are 16 bytes wide and
81964         you cannot cast an integer to a valid pointer.  This patch is
81965         currently waiting to be integrated into glibc; see
81966         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81967
81968         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81969         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81970         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81971         (struct obstack): temp member is now a union of a pointer and
81972         an integer, instead of an integer.  All integer uses changed.
81973         This does not affect the physical layout of struct obstack,
81974         except on hosts (like the AS/400) where the size or alignment of
81975         void * is greater than that of ptrdiff_t.
81976         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81977         __STDC__)]: Store temporary in pointer member of union, not
81978         integer member.
81979         * lib/obstack.c: Include <stddef.h>, for offsetof.
81980         (struct fooalign): Remove; it doesn't need a name.
81981         (union fooround): Change double to long double, and add void *.
81982         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81983         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81984         not a macro.  Hence the values are always int; so remove all
81985         casts-to-int in uses.
81986
81987 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81988
81989         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81990         we can get this patch merged into glibc.
81991
81992 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81993             Paul Eggert  <eggert@cs.ucla.edu>
81994
81995         * m4/argp: Depend on alloca.
81996
81997 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81998             Paul Eggert  <eggert@cs.ucla.edu>
81999
82000         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82001         freecoding.
82002
82003 2004-05-17  Bruno Haible  <bruno@clisp.org>
82004
82005         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82006         precision that consists of a '.' followed by an empty digit string.
82007         Patch by Tor Lillqvist <tml@iki.fi>.
82008
82009 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82010
82011         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82012         for backward compatibility with older code.  We need our own
82013         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82014         it under some other name, and our alloca.h will define it.
82015
82016 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82017             Derek Price  <derek@ximbiot.com>
82018
82019         * lib/alloca.c: Include <alloca.h>, to get our interface.
82020         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82021         include <alloca.h> first.  Use C89 prototype for alloca; this
82022         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82023         Use #elif for simplicity, since we can assume C89 now.
82024         Don't try to source the system alloca.h since it will not be found
82025         and to prevent recursively including its replacement.
82026         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82027         * lib/regex.c: Likewise.
82028
82029 2004-05-16  Derek Price  <derek@ximbiot.com>
82030             Paul Eggert  <eggert@cs.ucla.edu>
82031
82032         getline cleanup.  This changes the getndelim2 API: both order of
82033         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82034         no delimiter).
82035
82036         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82037         interface does that.
82038         (getline): Always use getdelim, so that we don't have two
82039         copies of this code.
82040         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82041         if available.
82042         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82043         (GETNDELIM2_MAXIMUM): New macro.
82044         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82045         instead of the old practice of delim2==0.  All callers changed.
82046         Return -1 on overflow, instead of returning junk.
82047         Do not set *linesize unless allocation succeeds.
82048         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82049         that we include sys/types.h.
82050         * lib/getnline.h: Likewise.
82051         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82052         (getndelim2): Reorder arguments.
82053         * lib/getnline.c (getnline, getndelim):
82054         Don't discard the NMAX argument.
82055         (getnline): Invoke getndelim, to avoid code duplication.
82056         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82057         of (size_t) -1 by callers of the getnline family.
82058
82059 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82060
82061         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82062         Check for gettimeofday.
82063         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82064         Check for settimeofday, stime.
82065
82066 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82067
82068         * lib/nanosleep.c (suspended): Change its type from int to
82069         sig_atomic_t volatile.
82070         (first_call): Make it private to rpl_nanosleep, and have it
82071         be zero initially as that's a bit faster.
82072         (my_usleep): Round up fractional times instead of truncating them,
82073         as this is the usual meaning for 'sleep'.
82074
82075         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82076         doesn't work.
82077         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82078         (ENOSYS): Define if not defined.
82079         (settime): Fall back on stime if it exists and settimeofday fails.
82080         But don't bother with fallbacks if a method fails with errno == EPERM.
82081
82082 2004-05-11  Jim Meyering  <jim@meyering.net>
82083
82084         Prior to this change, the save_cwd caller required read access to the
82085         current directory on most systems (ones with the fchdir function).
82086
82087         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82088         fails, try write-only, and finally, resort to using xgetcwd.
82089
82090 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82091
82092         * lib/obstack.c, obstack.h: Import changes from libc.
82093
82094 2004-04-28  Bruno Haible  <bruno@clisp.org>
82095
82096         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82097         also implicitly appends .exe to executables.
82098         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82099         accepts Windows pathnames.
82100         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82101         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82102         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82103         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82104         Reported by Derek Robert Price <derek@ximbiot.com>.
82105
82106 2004-04-21  Karl Berry  <karl@gnu.org>
82107
82108         * config/srclist.txt (localcharset.c): break sync.
82109
82110 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82111
82112         * m4/host-os.m4: Add a copyright notice.
82113
82114 2004-04-20  Jim Meyering  <jim@meyering.net>
82115
82116         Change UTILS_ to gl_ in AC_DEFINE'd names.
82117         Change utils_- and jm_-prefixed variables, too.
82118         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82119         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82120         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82121
82122         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82123         Don't emit trailing blanks.
82124         Also rename jm_-prefixed variables to have gl_ prefix.
82125
82126         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82127         Also rename jm_-prefixed variables to have gl_ prefix.
82128
82129         * m4/jm-macros.m4: Reflect the renamings.
82130         * m4/prereq.m4: Likewise.
82131
82132 2004-04-20  Jim Meyering  <jim@meyering.net>
82133
82134         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82135         memory.
82136
82137 2004-04-20  Jim Meyering  <jim@meyering.net>
82138             Bruno Haible  <bruno@clisp.org>
82139
82140         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82141         memory when realloc fails.
82142
82143 2004-04-19  Jim Meyering  <jim@meyering.net>
82144
82145         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82146         now that readutmp.c may call `free (0)'.
82147
82148 2004-04-19  Bruno Haible  <bruno@clisp.org>
82149
82150         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82151         * m4/inttypes_h.m4: Likewise.
82152         * m4/stdint_h.m4: Likewise.
82153         * m4/intmax_t.m4: Likewise.
82154         * m4/uintmax_t.m4: Likewise.
82155
82156 2004-04-18  Jim Meyering  <jim@meyering.net>
82157
82158         * m4/prereq.m4: Don't forbid jm_ prefix.
82159
82160         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82161         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82162         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82163         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82164         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82165         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82166         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82167         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82168         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82169         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82170         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82171         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82172         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82173         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82174         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82175         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82176         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82177         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82178         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82179
82180 2004-04-18  Jim Meyering  <jim@meyering.net>
82181
82182         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82183         failure, don't leak memory and do call END_UTMP_ENT.
82184
82185 2004-04-16  Jim Meyering  <jim@meyering.net>
82186
82187         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82188         coreutils' stat program.
82189         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82190
82191 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82192
82193         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82194         C89.
82195         (CHAR_BIT): Remove, since we assume C89.
82196         Include <stdint.h> if available, as per current Autoconf CVS advice.
82197
82198 2004-03-31  Jim Meyering  <jim@meyering.net>
82199
82200         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82201         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82202         * m4/xalloc.m4: Likewise.
82203
82204 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82205
82206         Merge from coreutils.
82207
82208         * m4/inttostr.m4: New file.
82209         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82210         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82211         Require gl_CLOCK_TIME.
82212         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82213
82214 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82215
82216         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82217         not bool, to be more consistent with Unix conventions.
82218         Suggested by Bruno Haible.
82219
82220         Merge from coreutils.
82221
82222         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82223         * lib/umaxtostr.c: New files.
82224
82225         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82226         the usual <time.h> dance.
82227         (get_date): Change signature to support fractional time stamps.
82228         All callers changed.
82229         * lib/getdate.y: Include "getdate.h" first, as we can now
82230         assume C89 and don't need to worry about 'const'.
82231         Similarly, include "unlocked-io.h" near start, not in middle.
82232         Include <limits.h>.
82233         (textint.value): Use long int rather than int.
82234         (textint.digits): Use size_t rather than int.
82235         (BILLION, LOG10_BILLION): New constants.
82236         (parser_control): New member rel_ns.  Members day_ordinal,
82237         time_zone, month, day, hour, minutes, rel_year, rel_month,
82238         rel_day, rel_hour, rel_minutes, rel_seconds
82239         are now long int, not int.  Member seconds is now struct timespec,
82240         not int.  New member timespec_seen.  Members dates_seen, days_seen,
82241         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
82242         not int.
82243         (%union.intval): Now long int, not int.
82244         New member timespec.
82245         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
82246         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
82247         (spec): Now is a timespec or an item list.
82248         (timespec, items): New nonterminals.
82249         (time, rel, relunit, number, get_date):
82250         Add support for fractional seconds.
82251         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
82252         (gmtime, localtime, mktime): Remove decls; not needed with C89.
82253         (to_hour): First arg is now long int, not int.
82254         (to_year): Returns long int, not int.
82255         Don't treat year -70 like 70.
82256         (tm_diff): Returns long int, not int.
82257         (lookup_word): Use bool instead of int when appropriate.
82258         (yylex): Use size_t for count, not int.
82259         Detect overflow when parsing large integer constants.
82260         Add support for fractions.
82261         (get_date): Make pointers 'const' if possible.
82262         Use more-portable code to detect integer overflow.
82263         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
82264         Don't use ctime; it's not reliable if the year has >4 digits.
82265
82266         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
82267         This is for compatibility with BSD.
82268
82269         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
82270         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
82271         From coreutils' system.h.
82272
82273         * lib/userspec.c: Don't include "posixver.h".
82274         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
82275         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
82276         compatible extension.  Simplify code by removing a boolean int
82277         that was always nonzero if a string was nonnull.
82278
82279 2004-03-30  Jim Meyering  <jim@meyering.net>
82280
82281         Merge from coreutils.
82282
82283         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
82284         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
82285         on some systems one must include <grp.h> before it.
82286         Reported by Christian Krackowizer.
82287
82288 2004-03-30  Jim Meyering  <jim@meyering.net>
82289
82290         Merge from coreutils.
82291
82292         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
82293
82294         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
82295         an empty input stream.
82296
82297         * lib/readtokens.c: Include <stdbool.h>.
82298         (readtoken): Use `size_t' rather than int/long.
82299         All callers adjusted.
82300         Use `bool' rather than `int' where appropriate.
82301         Use memset rather than an explicit loop.
82302         Use x2nrealloc rather than xrealloc.
82303         Allow the use of `\0' as a delimiter.
82304         (readtokens): Likewise.
82305         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
82306
82307 2004-03-30  Jim Meyering  <jim@meyering.net>
82308
82309         * m4/realloc.m4: Remove file, since now it does no more than
82310         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
82311         the `configure.ac' section of module/realloc.
82312         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
82313
82314 2004-03-30  Bruno Haible  <bruno@clisp.org>
82315
82316         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
82317         nonnull.
82318
82319 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82320
82321         Merge changes to getloadavg.c from coreutils and Emacs.
82322
82323         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
82324         Define to an expression, not to the empty string.
82325         Include cloexec.h and xalloc.h.
82326         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
82327         Use set_cloexec_flag rather than rolling our own.
82328         * lib/cloexec.c, lib/cloexec.h: New files.
82329
82330 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82331
82332         * m4/cloexec.m4: New file.
82333
82334 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82335
82336         * lib/getopt.h: Sync with libc CVS.
82337
82338 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82339             Bruno Haible  <bruno@clisp.org>
82340
82341         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
82342         mbswidth.
82343
82344 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82345             Bruno Haible  <bruno@clisp.org>
82346
82347         * lib/mbswidth.h: Include <wchar.h> only if
82348         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
82349         <wchar.h>.
82350         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
82351
82352 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82353
82354         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
82355         Sync with libc CVS.
82356         * lib/getopt_int.h: New file, also synced from libc.
82357
82358 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82359
82360         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
82361         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
82362         Bring back getopt.c, getopt.h, getopt1.c.
82363
82364 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82365
82366         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82367         All uses changed.  Check for sa_sigaction member; this fixes
82368         a bug first reported by Jason Andrade in
82369         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82370
82371 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82372
82373         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82374         '#if' expressions.  Unlike the code it replaces, it does not
82375         depend on (defined _SC_PAGESIZE).  However, it does depend on
82376         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82377         first reported by Jason Andrade in
82378         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82379
82380 2004-02-25  Simon Josefsson  <jas@extundo.com>
82381
82382         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82383
82384 2004-02-25  Simon Josefsson  <jas@extundo.com>
82385
82386         * lib/strdup.h: New file.
82387         * lib/strdup.c: Include it.
82388         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82389         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82390
82391 2004-02-23  Karl Berry  <karl@gnu.org>
82392
82393         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82394         (from fencepost.gnu.org:/gd/gnuorg).
82395
82396 2004-02-23  Karl Berry  <karl@gnu.org>
82397
82398         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82399         * config/srclist.txt: add maintain/standards documents.
82400
82401 2004-02-18  Bruno Haible  <bruno@clisp.org>
82402
82403         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82404         Reported by Derek Robert Price <derek@ximbiot.com>.
82405
82406 2004-02-16  Karl Berry  <karl@gnu.org>
82407
82408         * config/mkinstalldirs, install-sh: update from automake.
82409
82410 2004-02-06  Karl Berry  <karl@gnu.org>
82411
82412         * m4/po.m4: update from gettext 0.14.1.
82413
82414 2004-02-06  Karl Berry  <karl@gnu.org>
82415
82416         * lib/config.charset: update from gettext 0.14.1.
82417
82418 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82419
82420         Add comments and code, prompted by suggestions from Bruno Haible
82421         for sh-quote.
82422         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82423         describing the enum quoting_style values.
82424         * lib/quotearg.c (quotearg_alloc): New function.
82425         (quotearg_buffer_restyled): Treat lone { and } as special.
82426         Treat = as special.  Work around bug with older shells
82427         that "see" a '\' that is really the 2nd byte of a multibyte char.
82428         Quote empty string with shell_quoting_style.
82429
82430 2004-02-03  Bruno Haible  <bruno@clisp.org>
82431
82432         * m4/pipe.m4: New file, from GNU gettext.
82433
82434 2004-02-03  Bruno Haible  <bruno@clisp.org>
82435
82436         * lib/pipe.h: New file, from GNU gettext.
82437         * lib/pipe.c: New file, from GNU gettext.
82438
82439 2004-01-27  Bruno Haible  <bruno@clisp.org>
82440
82441         * m4/execute.m4: New file, from GNU gettext.
82442
82443 2004-01-27  Bruno Haible  <bruno@clisp.org>
82444
82445         * lib/execute.h: New file, from GNU gettext.
82446         * lib/execute.c: New file, from GNU gettext.
82447         * lib/w32spawn.h: New file, from GNU gettext.
82448
82449 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82450
82451         Merge from diffutils.
82452
82453         * lib/file-type.c (file_type): Add typed memory objects.
82454         * lib/file-type.h (S_TYPEISTMO): New macro.
82455
82456         * lib/c-stack.h (c_stack_action): Remove argv argument.
82457         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82458         (die): Don't calculate message unless segv_action returns.
82459         (get_stack_location, min_address_from_argv, max_address_from_argv,
82460         volatile stack_base, volatile_stack_size): Remove.
82461         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82462         that every segmentation violation is a stack overflow.  (Ouch!)
82463         See Debian bug 136249 (still outstanding) for more info about why
82464         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82465
82466 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82467
82468         Exit-status fix from coreutils.
82469
82470         Use exit_failure consistently in place of EXIT_FAILURE,
82471         so that program exit statuses are consistent on failure.
82472
82473         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82474         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82475         * lib/argmatch.h: Comment fix to match the above.
82476         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82477         Now a macro referring to exit_failure, instead of a separate
82478         variable.  Include "exitfail.h" to get it.
82479         * lib/xstrtol.h: Include "exitfail.h".
82480         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82481
82482         * lib/long-options.c (parse_long_options): Use prototype
82483         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82484         for clarity.
82485
82486 2004-01-21  Jim Meyering  <jim@meyering.net>
82487
82488         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82489         so as not to conflict with a different-sized __mktime_internal
82490         function in GNU libc.
82491         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82492         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82493
82494 2004-01-20  Karl Berry  <karl@gnu.org>
82495
82496         * config/config.guess: update from config.
82497
82498         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82499
82500 2004-01-20  Bruno Haible  <bruno@clisp.org>
82501
82502         Safer stack allocation.
82503         * lib/setenv.c: Include allocsa.h.
82504         (alloca): Remove fallback definition.
82505         (freea): Remove macro.
82506         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82507         instead of freea.
82508
82509 2004-01-20  Bruno Haible  <bruno@clisp.org>
82510
82511         * m4/eealloc.m4: New file, from GNU gettext.
82512
82513 2004-01-20  Bruno Haible  <bruno@clisp.org>
82514
82515         * m4/allocsa.m4: New file, from GNU gettext.
82516
82517 2004-01-20  Bruno Haible  <bruno@clisp.org>
82518
82519         * lib/xallocsa.h: New file, from GNU gettext.
82520         * lib/xallocsa.c: New file, from GNU gettext.
82521
82522 2004-01-20  Bruno Haible  <bruno@clisp.org>
82523
82524         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82525
82526 2004-01-20  Bruno Haible  <bruno@clisp.org>
82527
82528         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82529         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82530         specially.
82531
82532 2004-01-20  Bruno Haible  <bruno@clisp.org>
82533
82534         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82535         patch.
82536
82537 2004-01-20  Bruno Haible  <bruno@clisp.org>
82538
82539         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82540
82541 2004-01-20  Bruno Haible  <bruno@clisp.org>
82542
82543         * lib/eealloc.h: New file.
82544
82545 2004-01-20  Bruno Haible  <bruno@clisp.org>
82546
82547         * lib/binary-io.h: Avoid warnings on Cygwin.
82548
82549 2004-01-20  Bruno Haible  <bruno@clisp.org>
82550
82551         * lib/allocsa.h: New file, from GNU gettext.
82552         * lib/allocsa.c: New file, from GNU gettext.
82553
82554 2004-01-18  Karl Berry  <karl@gnu.org>
82555
82556         * doc/gpl.texi, doc/lgpl.texi: new files.
82557
82558 2004-01-18  Karl Berry  <karl@gnu.org>
82559
82560         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82561         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82562
82563 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82564
82565         Merge from coreutils.
82566
82567         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82568         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82569         (gl_DEFAULT_POSIX2_VERSION): Move
82570         the documentation from 'configure' into 'config.hin',
82571         so that 'configure --help' isn't burdened by it and
82572         we don't have to worry about its formatting there.
82573         Reword the documentation so that it's more succinct
82574         and can be run together into a single paragraph.
82575         * m4/same.m4 (gl_SAME): Check for pathconf.
82576
82577 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82578
82579         Merge from coreutils.
82580
82581         * lib/posixver.c: Include posixver.h.
82582
82583         * lib/same.c: Include <stdbool.h>, <limits.h>.
82584         (_POSIX_NAME_MAX): Define if not defined.
82585         (MIN): New macro.
82586         (same_name): If file names are silently truncated, report
82587         that the file names are the same if they are the same after
82588         the silent truncation.
82589
82590         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82591         conversion function.
82592         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82593         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82594         longer needed.
82595
82596 2004-01-15  Jim Meyering  <jim@meyering.net>
82597
82598         Merge from coreutils.
82599
82600         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82601         if no library is required.
82602         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82603         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82604         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82605         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82606         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82607         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82608         value, $ac_cv_search_crypt, if it's "none required".
82609         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82610         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82611         not gl_FUNC_GETLOADAVG.
82612         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82613         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82614
82615 2004-01-15  Jim Meyering  <jim@meyering.net>
82616
82617         Merge from coreutils.
82618
82619         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82620         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82621         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82622
82623         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82624         optional configure-time default.
82625
82626         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82627
82628         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82629
82630 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82631
82632         Merge from coreutils.
82633
82634         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82635         value, $ac_cv_search_nanosleep, if it's "none required".
82636
82637 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82638
82639         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82640         with like-named macro in fnmatch.c.
82641         (EXT): Use an internal constant instead.
82642
82643         Merge fnmatch patches from glibc.
82644         * lib/fnmatch.c (mbsinit): Remove define.
82645         Add libc_hidden_ver (__fnmatch, fnmatch).
82646         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82647         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82648
82649 2004-01-14  Karl Berry  <karl@gnu.org>
82650
82651         * config/install-sh: update from automake.
82652
82653 2004-01-13  Karl Berry  <karl@gnu.org>
82654
82655         * config/install-sh: update from automake.
82656
82657 2004-01-09  Karl Berry  <karl@gnu.org>
82658
82659         * config/install-sh: update from automake.
82660
82661 2004-01-05  Karl Berry  <karl@gnu.org>
82662
82663         * config/config.{sub,guess}: update from config.
82664
82665 2003-12-31  Karl Berry  <karl@gnu.org>
82666
82667         * config/depcomp: update from automake.
82668
82669 2003-12-14  Karl Berry  <karl@gnu.org>
82670
82671         * lib/config.charset: update from gettext-runtime.
82672
82673 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82674
82675         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82676         Bug reported by Alfred M. Szmidt.
82677
82678 2003-12-03  Bruno Haible  <bruno@clisp.org>
82679
82680         * m4/gettext.m4: Upgrade from gettext-0.13.
82681         * m4/po.m4: Upgrade from gettext-0.13.
82682         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82683         * m4/intmax.m4: New file, from gettext-0.13.
82684         * m4/printf-posix.m4: New file, from gettext-0.13.
82685
82686 2003-11-29  Karl Berry  <karl@gnu.org>
82687
82688         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82689
82690 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82691             Bruno Haible  <bruno@clisp.org>
82692
82693         * lib/printf-parse.h: Don't include sys/types.h.
82694         (ARG_NONE): New macro.
82695         (char_directive): Change type of *arg_index fields to size_t.
82696         * lib/printf-parse.c: Don't include sys/types.h.
82697         (SSIZE_MAX): Remove macro.
82698         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82699         Remove unnecessary overflow check.
82700         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82701         fields.
82702
82703 2003-11-25  Bruno Haible  <bruno@clisp.org>
82704
82705         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82706
82707 2003-11-25  Bruno Haible  <bruno@clisp.org>
82708
82709         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82710         gt_TYPE_SSIZE_T.
82711
82712 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82713
82714         * modules/alloca: Remove dependency on xalloc.
82715
82716 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82717
82718         * lib/alloca.c: Remove dependency on xalloc module.
82719         (xalloc_die): Remove.
82720         (memory_full) [!defined emacs]: New macro.
82721         [!defined emacs]: Don't include xalloc.h.
82722         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82723         address arithmetic overflows.  Change datatypes a bit to avoid
82724         unnecessary casts.
82725
82726 2003-11-22  Jim Meyering  <jim@meyering.net>
82727
82728         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82729         s/size/size_t/.
82730
82731 2003-11-21  Karl Berry  <karl@gnu.org>
82732
82733         * config/config.{sub,guess}: update from config.
82734
82735 2003-11-18  Karl Berry  <karl@gnu.org>
82736
82737         * config/config.{sub,guess}: update from config.
82738
82739         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82740
82741 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82742
82743         * README: Mention that S+T cannot overflow if S is the size of
82744         an existing object and T is sufficiently small.
82745
82746 2003-11-17  Jim Meyering  <jim@meyering.net>
82747
82748         On systems without utime and without a utimes function capable of
82749         dealing with a NULL struct utimbuf* argument, this utime replacement
82750         could -- in unusual circumstances -- leak a file descriptor.
82751         * lib/utime.c: Include <unistd.h> and <errno.h>.
82752         (utime_null): Be sure to close `fd' and to preserve errno.
82753         Reported by Geoff Collyer via Arnold Robbins.
82754
82755 2003-11-17  Bruno Haible  <bruno@clisp.org>
82756
82757         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82758         (Depends-on): Add xsize.
82759
82760 2003-11-17  Bruno Haible  <bruno@clisp.org>
82761
82762         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82763
82764 2003-11-17  Bruno Haible  <bruno@clisp.org>
82765
82766         * lib/vasnprintf.c (alloca): Remove fallback definition.
82767         (freea): Remove definition.
82768         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82769         Reported by Paul Eggert.
82770
82771 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82772             Bruno Haible  <bruno@clisp.org>
82773
82774         Protect against address arithmetic overflow.
82775         * lib/printf-args.h: Include stddef.h.
82776         (arguments): Change type of field 'count' to size_t.
82777         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82778         'unsigned int' where appropriate.
82779         * lib/printf-parse.h: Include sys/types.h.
82780         (char_directive): Change type of *arg_index fields to ssize_t.
82781         (char_directives): Change type of fields 'count', max_*_length to
82782         size_t.
82783         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82784         (SSIZE_MAX): Define fallback value.
82785         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82786         instead of 'int' where appropriate. Check a_allocated, d_allocated
82787         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82788         * lib/vasnprintf.c: Include xsize.h.
82789         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82790         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82791         overflow. Avoid wraparound when converting a width or precision from
82792         decimal to binary.
82793
82794 2003-11-16  Bruno Haible  <bruno@clisp.org>
82795
82796         Update from GNU gettext.
82797         * lib/printf-parse.c: Generalize to it can be compiled for wide
82798         strings.
82799         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82800         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82801         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82802         SNPRINTF): New macros.
82803         Don't include <alloca.h> if the file is used inside libintl.
82804         (local_wcslen): New function, for Solaris 2.5.1.
82805         (VASNPRINTF): Use it instead of wcslen.
82806
82807 2003-11-16  Bruno Haible  <bruno@clisp.org>
82808
82809         * lib/xsize.h (xmax): New function.
82810         (xsum, xsum3, xsum4): Declare as "pure" functions.
82811
82812 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82813
82814         * modules/xalloc (Files): Undo latest change, since xalloc.h
82815         no longer needs SIZE_MAX or PTRDIFF_MAX.
82816
82817 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82818
82819         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82820         gl_PTRDIFF_MAX.
82821
82822 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82823
82824         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82825         "return", to pacify some unknown compiler.  Problem reported
82826         by Joerg Schilling.
82827
82828 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82829
82830         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82831         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82832         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82833         heuristic is just as accurate as far as we know, and it removes a
82834         dependency on size_max.m4 and ptrdiff_max.m4.
82835
82836 2003-11-11  Bruno Haible  <bruno@clisp.org>
82837
82838         * modules/xsize (Files): Add m4/size_max.m4.
82839         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82840
82841 2003-11-11  Bruno Haible  <bruno@clisp.org>
82842
82843         * m4/size_max.m4: New file.
82844         * m4/ptrdiff_max.m4: New file.
82845         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82846         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82847         (gl_XALLOC): Invoke it.
82848
82849 2003-11-11  Bruno Haible  <bruno@clisp.org>
82850
82851         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82852         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82853         defined.
82854
82855 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82856
82857         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82858         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82859         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82860         From Bruno Haible.
82861         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82862         not (size_t) -1, since it's defined here.
82863
82864 2003-11-09  Karl Berry  <karl@gnu.org>
82865
82866         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82867
82868 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82869
82870         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82871         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82872         Reject sizes of exactly SIZE_MAX bytes.
82873         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82874         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82875
82876 2003-11-05  Bruno Haible  <bruno@clisp.org>
82877
82878         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82879         SIZE_MAX defined in <limits.h> on Solaris.
82880
82881 2003-11-04  Jim Meyering  <jim@meyering.net>
82882
82883         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82884         variable names, rather than @VAR@.
82885         * modules/poll: Likewise.
82886
82887 2003-11-04  Bruno Haible  <bruno@clisp.org>
82888
82889         * modules/xsize: New file.
82890         * modules/linebreak: Depend on xsize.
82891         * MODULES.html.sh (func_all_modules): Add xsize.
82892
82893 2003-11-04  Bruno Haible  <bruno@clisp.org>
82894
82895         * m4/xsize.m4: New file.
82896
82897 2003-11-04  Bruno Haible  <bruno@clisp.org>
82898
82899         * lib/xsize.h: New file.
82900         * lib/linebreak.c: Include xsize.h.
82901         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82902         argument for overflow.
82903         Suggested by Paul Eggert.
82904
82905 2003-11-03  Karl Berry  <karl@gnu.org>
82906
82907         * config/config.{guess,sub}: update from config.
82908
82909 2003-11-03  Jim Meyering  <jim@meyering.net>
82910
82911         * modules/userspec (lib_SOURCES): Add userspec.h.
82912         (Include): Add "userspec.h".
82913         Improve description.
82914
82915 2003-11-03  Jim Meyering  <jim@meyering.net>
82916
82917         * lib/userspec.c: Include "userspec.h".
82918         * lib/userspec.h: New file.
82919
82920 2003-11-03  Bruno Haible  <bruno@clisp.org>
82921
82922         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82923
82924 2003-11-03  Bruno Haible  <bruno@clisp.org>
82925
82926         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82927         available, to avoid (extremely rare) race condition.
82928         Suggested by Paul Eggert.
82929
82930 2003-11-02  Karl Berry  <karl@gnu.org>
82931
82932         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82933
82934 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82935
82936         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82937         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82938         (read_filesystem_list): Set and use me_type_malloced.
82939         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82940         whatever the type happens to be), for brevity and consistency.
82941         Check for size calculation overflow on Alphas running OSF/1.
82942
82943 2003-10-31  Jim Meyering  <jim@meyering.net>
82944
82945         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82946
82947         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82948
82949 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82950             Bruno Haible  <bruno@clisp.org>
82951
82952         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82953         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82954
82955 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82956
82957         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82958         netbsd*-gnu*.  Suggested by Robert Millan.
82959
82960 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82961
82962         * modules/group-member: Depend on stdbool.
82963
82964 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82965
82966         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82967
82968 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82969
82970         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82971         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82972         after the 'gnu' in these cases.  This fixes some bugs in the
82973         previous change, and is based on suggestions by Robert Millan.
82974
82975 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82976
82977         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82978         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82979         no longer needed.
82980         * lib/quotearg.c (quotearg_n_options): Use it.
82981         * lib/group-member.c: Include <stdbool.h>.
82982         (free_group_info): Arg is now const *; don't free arg.
82983         (get_group_info): Now returns bool and accepts struct group_info *,
82984         rather than returning a malloc'ed struct group_info *.
82985         All uses changed.  Check for overflow in internal size calculation.
82986
82987         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82988         rather than xmalloc/xrealloc.
82989         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82990         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82991         conformance bug: the old code used a pointer after freeing the
82992         storage that it addressed.
82993         * lib/hash.c (hash_initialize): Simplify the code by using
82994         xalloc_oversized rather than doing it by hand.
82995         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82996         the buffer preserved.  Use free and xmalloc instead.
82997         * lib/quotearg.c (quotearg_n_options): Likewise.
82998         Use a simpler test for size overflow.  Don't use xalloc_oversized
82999         because unsigned int might be wider than size_t (!); this suggests
83000         that we should switch from unsigned int to size_t for slot numbers.
83001
83002 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83003
83004         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83005         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83006         NetBSD kernels.  Requested by Richard Stallman.
83007
83008 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83009
83010         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83011         to allocate the returned structure.  Do not allocate a subarray,
83012         as x2nrealloc will do that.
83013         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83014         instead of xnrealloc.
83015         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83016
83017 2003-10-27  Bruno Haible  <bruno@clisp.org>
83018
83019         * lib/stdbool_.h: Better support for BeOS.
83020
83021 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83022
83023         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83024         now uses inline.
83025
83026 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83027
83028         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83029         callers that want to do their own size-overflow checking.  Include
83030         <stdbool.h>, since xalloc_oversized returns bool.
83031         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83032         to use xalloc_oversized.
83033
83034         Add two functions x2realloc, x2nrealloc, for programs that grow
83035         arrays dynamically by doubling their sizes.
83036         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83037         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83038         New functions.
83039
83040         Port to C99 semantics for 'inline' of external functions.
83041         Bug reported by Bruno Haible.
83042         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83043         with the old contents of xnmalloc.
83044         (xnmalloc, xmalloc): Use it.
83045         (xnrealloc_inline): New static inline function,
83046         with the old contents of xnrealloc.
83047         (xnrealloc, xrealloc): Use it.
83048
83049         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83050         that.
83051
83052 2003-10-26  Karl Berry  <karl@gnu.org>
83053
83054         * config/srclist.txt (COPYING.DOC): no longer available from
83055         /gd/gnuorg; don't know where the ultimate source is.
83056
83057 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83058
83059         Fix several address-calculation bugs in the hash modules,
83060         plus some minor code cleanup.
83061
83062         * lib/hash.h: Include <stdbool.h>, for bool.
83063         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83064         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83065         hash_get_n_entries, hash_get_max_bucket_length,
83066         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83067         hash_rehash): Use size_t rather than unsigned.
83068         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83069         hash_get_n_buckets_used, hash_get_n_entries,
83070         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83071         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83072         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83073         Likewise.
83074         (SIZE_MAX): Define if not defined.
83075         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83076         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83077         hash_print):
83078         Use const * when possible.
83079         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83080         (check_tuning): Fix bug: if tuning parameters were very close to
83081         0 or 1, rounding errors could have caused subscript violations.
83082         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83083         (hash_initialize): Add 'fail:' label
83084         to free table and return NULL, and use it to simplify code.
83085         Use calloc rather than clearing the storage ourself.
83086         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83087         buffer size calculations.
83088         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83089         Include <stddef.h>, for size_t.
83090         * lib/hash-pjw.c (hash_pjw): Likewise.
83091         Switch to method described by Bruno Haible.
83092         Include <limits.h>, for CHAR_BIT.
83093         (SIZE_BITS): New macro.
83094
83095 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83096
83097         * m4/getline.m4 (AM_FUNC_GETLINE):
83098         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83099         hosts.  Problem reported by Derek Robert Price in
83100         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83101         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83102         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83103
83104 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83105
83106         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83107         ceiling the allocation at NMAX bytes rather than silently
83108         discarding input bytes before NMAX is reached.  This makes
83109         a difference only if NMAX exceeds SIZE_MAX / 2.
83110
83111         * lib/obstack.c: Merge from glibc.
83112         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83113         Add libc_hidden_def (_obstack_newchunk).
83114         (_obstack_free) [! defined _LIBC]: Remove.
83115         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83116         a clone of the function body.
83117         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83118         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83119
83120         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83121         glibc.
83122         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83123         arg to memcpy.
83124
83125         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83126         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83127         Don't use lvalue casts, as GCC plans to remove support for them
83128         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83129         was also present in the non-GCC version, indicating that this
83130         code had always been buggy and had never been widely used.
83131         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83132         Use the fast variant of each macro, rather than copying the
83133         definiens of the fast variant; that way, we'll be more likely to
83134         catch future bugs in the fast variants.
83135
83136 2003-10-20  Bruno Haible  <bruno@clisp.org>
83137
83138         * modules/wait-process: New file.
83139         * MODULES.html.sh (func_all_modules): Add wait-process.
83140
83141 2003-10-20  Bruno Haible  <bruno@clisp.org>
83142
83143         * m4/wait-process.m4: New file.
83144
83145 2003-10-20  Bruno Haible  <bruno@clisp.org>
83146
83147         * lib/wait-process.h: New file, from GNU gettext.
83148         * lib/wait-process.c: New file, from GNU gettext.
83149
83150 2003-10-19  Jim Meyering  <jim@meyering.net>
83151
83152         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83153         HPUX 10.20.
83154
83155 2003-10-18  Karl Berry  <karl@gnu.org>
83156
83157         * config/config.guess: update from config.
83158
83159 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83160
83161         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83162         (getgroups): First arg is int, not size_t.
83163         Don't let 'free' mangle errno.
83164
83165 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83166
83167         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83168
83169 2003-10-16  Karl Berry  <karl@gnu.org>
83170
83171         * config/config.{guess,sub}: update from config.
83172
83173 2003-10-16  Jim Meyering  <jim@meyering.net>
83174
83175         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83176         memcpy.
83177
83178 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83179
83180         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83181         (SIZE_MAX): Remove.
83182         (new_exclude, add_exclude_file): Initial size no longer needs to
83183         be a power of 2.
83184         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83185         our own address arithmetic overflow checking.
83186
83187         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83188         (fnmatch): Do not alloca more than 2000 wide characters;
83189         instead, use malloc for large buffers.
83190         Check for address arithmetic overflow, and return -1
83191         with errno set to ENOMEM in that case.
83192         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83193         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83194         instead, return -1.  Check for address arithmetic overflow.
83195
83196 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83197
83198         Handle invalid suffixes and overflow independently, so that
83199         callers can treat them independently as needed.  Fix some bugs in
83200         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83201         suffix for a human-readable blocksize.  The major caller-visible
83202         change is the addition of a new
83203         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83204         that both overflow and suffix chars were found.
83205
83206         * lib/human.c (humblock): Don't check separately for invalid suffix
83207         char; that is xstrtoumax's job (now that its bug is fixed).
83208         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83209         INTMAX_MAX]: New macros.
83210         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83211         TYPE_MAXIMUM): New macros.
83212         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83213         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83214         if overflow occurs, as it's what __strtol does and it's more useful
83215         in practice.
83216         (__xstrtol): If __strtol reports some error other than ERANGE,
83217         reflect it to the caller as LONGINT_INVALID.  If it reports
83218         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83219         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83220         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83221         value.
83222         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83223         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83224         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83225         [defined UINTMAX_MAX]: New macros.
83226
83227 2003-10-14  Bruno Haible  <bruno@clisp.org>
83228
83229         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83230
83231 2003-10-14  Bruno Haible  <bruno@clisp.org>
83232
83233         * m4/sig_atomic_t: New file, from GNU gettext.
83234         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83235
83236 2003-10-14  Bruno Haible  <bruno@clisp.org>
83237
83238         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
83239         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
83240         Also use volatile where needed.
83241
83242 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83243
83244         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
83245         Change maintainer from Bruno Haible to 'all'.
83246
83247 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83248
83249         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
83250
83251 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83252
83253         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
83254         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
83255         and define in terms of the other primitives.
83256         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
83257         (SIZE_MAX): Define if not already defined.
83258         (array_size_overflow): New function.
83259         (xalloc_die): Abort instead of exiting if 'error' returns.
83260         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
83261         (xmalloc, xrealloc): Use them.
83262         (xcalloc): Check for address arithmetic overflow.
83263         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
83264         a bit faster than strcpy.
83265
83266 2003-10-10  Simon Josefsson  <jas@extundo.com>
83267
83268         * modules/argp (Depends-on): Add restrict and strcase.
83269
83270 2003-10-10  Simon Josefsson  <jas@extundo.com>
83271
83272         * m4/argp.m4: Add AC_C_INLINE.
83273
83274 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83275
83276         Merge getpass from libc, plus a few fixes.
83277
83278         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
83279         Include <stdbool.h>.
83280         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
83281         __fsetlocking to empty.
83282         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
83283         do include <bits/libc-lock.h>.
83284         Do not include <fcntl.h>; not needed.
83285         [_LIBC]: Include <wchar.h>.
83286         (NOTCANCEL_MODE): New macro.
83287         (flockfile, funlockfile) [_LIBC]: New macros.
83288         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
83289         [!_LIBC]: New macros.
83290         (call_fclose): New function.
83291         (getpass): Use it.  Save tty stream separately; this simplifies the
83292         code and makes it more reliable if stdin happens to equal stdout.
83293         Invoke __fsetlocking on tty.
83294         Handle thread cancellation if needed.
83295         Namespace cleanup (use __tcgetattr, __getline).
83296         Use bool for Booleans.
83297         [USE_IN_LIBIO]: Handle wide streams.
83298         [!_LIBC]: Unconditionally do the fseek, since we don't know what
83299         stream might go where.
83300
83301         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
83302         doesn't have to include <stdio.h> before us.
83303         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
83304         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
83305         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
83306         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
83307         if not declared, so that we can use getpass.c code from libc without
83308         rewriting it.
83309         (flockfile, ftrylockfile, funlockfile): New macros.
83310
83311 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83312
83313         * modules/getpass: Depend on stdbool.
83314
83315 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83316
83317         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
83318
83319 2003-10-07  Karl Berry  <karl@gnu.org>
83320
83321         * config/config.{guess,sub}: update from config.
83322
83323 2003-10-06  Jim Meyering  <jim@meyering.net>
83324             Bruno Haible  <bruno@clisp.org>
83325
83326         This lets translators provide better translations for the
83327         "Written by ..." part of --version output.
83328         * lib/version-etc.h: Include stdarg.h.
83329         (version_etc_copyright): Declare as readonly.
83330         (version_etc): Make this function variadic with a NULL-terminated list
83331         of author name strings.
83332         (version_etc_va): New declaration.
83333         * lib/version-etc.c: Include stdarg.h, stdlib.h.
83334         (version_etc_copyright): Declare as readonly.
83335         (version_etc_va): New function. Provide a different translatable string
83336         for each possible number of authors < 10. Abbreviate when there are 10
83337         authors or more.
83338         (version_etc): Make this function variadic. Call version_etc_va.
83339         Suggestion from Gary V. Vaughan.
83340
83341         * lib/long-options.h (parse_long_options): Change prototype: the
83342         authors string is moved to the end and becomes variadic.
83343         * lib/long-options.c: Include stdarg.h.
83344         (parse_long_options): Make this function variadic, too.
83345         Call version_etc_va, not version_etc.
83346
83347 2003-10-06  Bruno Haible  <bruno@clisp.org>
83348
83349         * modules/version-etc-2: Remove file.
83350         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
83351
83352 2003-10-06  Bruno Haible  <bruno@clisp.org>
83353
83354         * modules/fatal-signal: New file.
83355         * MODULES.html.sh (func_all_modules): Add fatal-signal.
83356
83357 2003-10-06  Bruno Haible  <bruno@clisp.org>
83358
83359         * m4/fatal-signal.m4: New file.
83360         * m4/signalblocking.m4: New file, from GNU gettext.
83361
83362 2003-10-06  Bruno Haible  <bruno@clisp.org>
83363
83364         * lib/version-etc-2.h: Remove file.
83365         * lib/version-etc-2.c: Remove file.
83366
83367 2003-10-06  Bruno Haible  <bruno@clisp.org>
83368
83369         * lib/fatal-signal.h: New file, from GNU gettext.
83370         * lib/fatal-signal.c: New file, from GNU gettext.
83371
83372 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83373
83374         * README: Rework advice for preventing empty .o files.
83375         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83376         not <sys/types.h>.
83377
83378 2003-10-04  Karl Berry  <karl@gnu.org>
83379
83380         * lib/argp*: update from libc.
83381
83382 2003-10-04  Karl Berry  <karl@gnu.org>
83383
83384         * config/config.{guess,sub}: update from config.
83385
83386 2003-10-02  Bruno Haible  <bruno@clisp.org>
83387
83388         * modules/lchown (Include): Add lchown.h.
83389         * modules/time_r (Include): Use "..." syntax.
83390         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83391
83392 2003-10-01  Simon Josefsson  <jas@extundo.com>
83393
83394         * MODULES.html.sh (func_all_modules): Move gethostname from section
83395         'based on' to section 'lacking' POSIX:2001.
83396
83397 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83398
83399         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83400         to output mode on the same stream.
83401
83402 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83403
83404         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83405         Fix arg typo in previous patch.
83406
83407 2003-09-28  Jim Meyering  <jim@meyering.net>
83408
83409         * lib/error.c: Correct cpp indentation.
83410
83411 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83412
83413         * modules/free: New file.
83414
83415 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83416
83417         * m4/free.m4: New file.
83418
83419 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83420
83421         * lib/minmax.h (MIN, MAX)
83422         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83423         Omit the special code that used __typeof__, since we worry that
83424         it could be more trouble than it's worth.  See:
83425         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83426         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83427
83428         * lib/free.c: New file.
83429
83430 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83431
83432         Trivial fixes to Makefile.am parts of module listings.
83433         * modules/strstr: Append strstr.h to lib_SOURCES.
83434         * modules/strcase: Likewise, for strcase.h.
83435
83436 2003-09-27  Karl Berry  <karl@gnu.org>
83437
83438         * config/mkinstalldirs: update from automake.
83439
83440 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83441
83442         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83443         (error_tail): Do not loop, reallocating temporary buffer, since
83444         the output cannot contain more wide characters than the input
83445         contains bytes, the size must be big enough already.  This avoids
83446         one potential size overflow calculation.  Check for size overflow
83447         when calculating temporary buffer size.  Free temporary buffer
83448         when done, if it was allocated with malloc; this plugs a memory
83449         leak.  Remove casts from void * to pointers, that are no longer
83450         needed now that we're assuming C89 or better.
83451
83452         Merge error changes from glibc.
83453
83454         * lib/error.c, error.h: Update copyright notice header to match glibc.
83455         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83456         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83457         Disable cancellation while printing error.
83458         * lib/error.h: Prepend __ to parameter names.
83459
83460 2003-09-26  Jim Meyering  <jim@meyering.net>
83461
83462         * lib/error.c (error_tail): Move some declarations
83463         into inner scope where the local variables are used.
83464
83465 2003-09-26  Bruno Haible  <bruno@clisp.org>
83466
83467         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83468         stpncpy().
83469         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83470
83471 2003-09-26  Bruno Haible  <bruno@clisp.org>
83472
83473         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83474         (stpncpy): Define as alias for gnu_stpncpy.
83475         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83476
83477 2003-09-25  Simon Josefsson  <jas@extundo.com>
83478
83479         * lib/xgetdomainname.h: New file.
83480         * lib/xgetdomainname.c: New file.
83481
83482 2003-09-25  Simon Josefsson  <jas@extundo.com>
83483             Bruno Haible  <bruno@clisp.org>
83484
83485         * modules/getdomainname: New file.
83486         * modules/xgetdomainname: New file.
83487         * MODULES.html.sh (func_all_modules): Add getdomainname,
83488         xgetdomainname.
83489
83490 2003-09-25  Simon Josefsson  <jas@extundo.com>
83491             Bruno Haible  <bruno@clisp.org>
83492
83493         * m4/getdomainname.m4: New file.
83494
83495 2003-09-25  Simon Josefsson  <jas@extundo.com>
83496             Bruno Haible  <bruno@clisp.org>
83497
83498         * lib/getdomainname.h: New file.
83499         * lib/getdomainname.c: New file.
83500
83501 2003-09-25  Karl Berry  <karl@gnu.org>
83502
83503         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83504
83505 2003-09-25  Karl Berry  <karl@gnu.org>
83506
83507         * config/install-sh: update from automake.
83508
83509 2003-09-25  Bruno Haible  <bruno@clisp.org>
83510
83511         * modules/version-etc-2: New file, from modules/version-etc with
83512         modifications.
83513         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83514
83515 2003-09-25  Bruno Haible  <bruno@clisp.org>
83516
83517         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83518         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83519
83520 2003-09-24  Simon Josefsson  <jas@extundo.com>
83521
83522         * modules/xgethostname: Add xgethostname.h.
83523
83524 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83525
83526         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83527         the buffer associated with the argument.  Bug reported by
83528         Simon Josefsson.
83529
83530 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83531
83532         * README: Document assumptions that 'int' is at least 32 bits
83533         wide, that integer arithmetic is 2's complement without overflow,
83534         that there are no holes in integer values, that adding sizes of
83535         two nonoverlapping objects can't overflow, and that all-bits-zero
83536         yields scalar zero.  Fix spelling and capitalization typos.
83537
83538 2003-09-19  Karl Berry  <karl@gnu.org>
83539
83540         * lib/argp.h: update from libc.
83541
83542 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83543
83544         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83545         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83546         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83547
83548 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83549
83550         * gnulib-tool: Use "test -h", not "test -L", for portability
83551         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83552         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83553         (sed_extract_prog): Issue s commands one-by-one, rather than
83554         using \| in one s command.
83555
83556 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83557
83558         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83559         input error, instead of returning NULL the next time we are called
83560         (and therefore losing track of errno).
83561
83562 2003-09-16  Bruno Haible  <bruno@clisp.org>
83563
83564         * gnulib-tool (func_create_testdir): Warn about duplicated
83565         dependencies.
83566
83567 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83568
83569         * modules/argmatch, modules/fatal, modules/obstack,
83570         modules/xalloc, modules/xgethostname: Sort dependencies by
83571         importance, not alphabetically.
83572
83573 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83574
83575         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83576         fails, so that the caller gets the proper errno.
83577
83578         * lib/readutmp.c (read_utmp): Likewise.
83579         Check for fstat error.  Close stream and free storage
83580         when failing.
83581
83582 2003-09-14  Karl Berry  <karl@gnu.org>
83583
83584         * config/srclist.txt (strdup.c): disable for c89 changes.
83585
83586 2003-09-14  Jim Meyering  <jim@meyering.net>
83587
83588         * lib/getloadavg.c: Correct cpp indentation.
83589         * lib/strdup.c: Likewise.
83590         * lib/vasnprintf.c: Likewise.
83591
83592 2003-09-14  Bruno Haible  <bruno@clisp.org>
83593
83594         * modules/fwriteerror: New file.
83595         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83596
83597 2003-09-14  Bruno Haible  <bruno@clisp.org>
83598
83599         * lib/fwriteerror.h: New file.
83600         * lib/fwriteerror.c: New file.
83601
83602 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83603
83604         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83605         modules/xgethostname, modules/xalloc: Depend on exit.
83606
83607 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83608
83609         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83610
83611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83612         and AC_MINIX, too, so that their extensions are available.
83613
83614         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83615         This macro has been superseded by gl_BACKUPFILE.
83616
83617         More patches to assume C89 or better.
83618
83619         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83620
83621         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83622         unconditionally.
83623         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83624         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83625         Include <string.h>, <stdlib.h> unconditionally.
83626         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83627         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83628         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83629         headers or for string.h.
83630         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83631         or strtoul.
83632
83633         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83634         headers.
83635         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83636         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83637         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83638         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83639         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83640         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83641         memcpy, memset.
83642         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83643         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83644         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83645         strtol.
83646         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83647         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83648         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83649         strtoul.
83650
83651 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83652
83653         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83654         * lib/obstack.c [!defined _LIBC]: Likewise.
83655         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83656         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83657         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83658
83659         More changes to assume C89 or better.
83660
83661         * lib/error.c (error_tail): Assume vprintf.
83662
83663         * lib/argmatch.c (getenv): Remove decl.
83664         * lib/progreloc.c (get_full_program_name): Define via prototype.
83665         * lib/setenv.c (clearenv): Likewise.
83666         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83667         needed.
83668         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83669         (malloc, memcpy): Remove decls.
83670         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83671         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83672         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83673         (memcpy): Remove macro.
83674         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83675         (__P): Remove.  All uses removed.
83676         (PTR): Remove.  All uses changed to void *.
83677         (CHAR_BIT, NULL): Remove.
83678         (spaces, zeros, memset_space, memset_zero)
83679         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83680         Remove.
83681         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83682         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83683         Define with prototype.
83684         Remove now-unnecessary prototype decl.
83685         (extra_args_spec): Assume ANSI C.  All uses changed.
83686         (extra_args_spec_iso): Remove.
83687         (my_strftime, emacs_strftimeu): Define via prototype.
83688         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83689         unconditionally.
83690         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83691         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83692         (strtoul, strtol): Remove decls.
83693         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83694         LONG_MAX): Remove.
83695         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83696         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83697         (LOCALE_PARAM_PROTO): New macro.
83698         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83699         (INTERNAL (strtol), strtol): Define with a prototype.
83700         (PARAMS): Remove.  All uses removed.
83701         * lib/tempname.c: Include <string.h> unconditionally.
83702         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83703         * lib/xgethostname.c (main): Define with a prototype.
83704         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83705         Include <stdlib.h> unconditionally.
83706         (calloc, malloc, realloc, free): Remove decls.
83707         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83708         Include <stdlib.h> unconditionally.  Sort include file names.
83709         (strtod): Remove.
83710         (xstrtod): Define with a prototype.
83711         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83712         (strtol, strtoul): Remove decls.
83713
83714 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83715
83716         More patches to assume C89 or better.
83717         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83718         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83719         string.h, memchr, STDC_HEADERS.
83720
83721 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83722
83723         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83724         Include <stdlib.h>, <string.h> unconditionally.
83725         Remove now-unnecessary cast to char *.
83726         * lib/strnlen.c: Include <string.h> unconditionally.
83727         * lib/yesno.c (yesno): Define with a prototype.
83728
83729 2003-09-11  Bruno Haible  <bruno@clisp.org>
83730
83731         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83732
83733 2003-09-10  Jim Meyering  <jim@meyering.net>
83734
83735         * lib/error.c: Correct indentation of cpp directives.
83736
83737 2003-09-10  Bruno Haible  <bruno@clisp.org>
83738
83739         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83740         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83741         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83742         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83743         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83744         <stdlib.h> and <string.h> checks.
83745         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83746         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83747
83748 2003-09-10  Bruno Haible  <bruno@clisp.org>
83749
83750         * lib/strcspn.c: Include <string.h> unconditionally.
83751         * lib/strpbrk.c: Include <string.h> unconditionally.
83752         * lib/strstr.c: Include <string.h> unconditionally.
83753         * lib/unicodeio.c: Include <string.h> unconditionally.
83754         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83755         * lib/unsetenv.c: Likewise.
83756         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83757         * lib/yesno.c: Include <stdlib.h> unconditionally.
83758         (rpmatch): Add prototype.
83759
83760 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83761
83762         More patches to assume C89 or better.
83763         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83764         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83765         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83766         or for string.h.
83767         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83768         stdlib.h.
83769         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83770         C headers.
83771         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83772         string.h.
83773         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83774         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83775         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83776         or for string.h.
83777         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83778         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83779         C headers.
83780         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83781         memcpy.
83782         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83783         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83784         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83785         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83786         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83787         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83788         string.h, free.
83789         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83790         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83791         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83792         C headers, or for string.h.
83793         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83794         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83795         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83796         headers, memory.h, stdlib.h, string.h, strings.h.
83797         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83798         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83799         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83800         strchr.
83801         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83802         headers, memory.h, string.h.
83803         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83804         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83805         free.
83806         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83807         headers.
83808         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83809         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83810         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83811         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83812         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83813
83814 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83815
83816         More K&R removal.
83817
83818         * lib/acosl.c (main): Use a prototype.
83819         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83820         tanl.c: Likewise.
83821
83822         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83823
83824         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83825         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83826         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83827         with a prototype.
83828         * lib/getopt.c (const): Remove macro.
83829         Include <string.h> unconditionally.
83830         (my_index): Remove; all uses changed to strchr.
83831         (strlen): Remove decl.
83832         (exchange): Remove forward decl; no longer needed.
83833         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83834         Define with prototype.
83835         * lib/getopt1.c (const): Remove macro.
83836         (getopt_long, getopt_long_only, main): Define with prototype.
83837
83838         * lib/getugroups.c: Include <string.h> unconditionally.
83839
83840         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83841         (getusershell, setusershell, endusershell, readname, main):
83842         Define with prototypes.
83843
83844         * lib/group-member.c: Include group-member.h first.
83845         Include <stdlib.h> unconditionally.
83846
83847         * lib/hard-locale.c: Include hard-locale.h first.
83848         Include <stdlib.h>, <string.h> unconditionally.
83849
83850         * lib/hash.c (free, malloc): Remove decls.
83851         Include <stdlib.h> unconditionally.
83852
83853         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83854         (getenv): Do not declare.
83855
83856         * lib/idcache.c: Include <string.h> unconditionally.
83857
83858         * lib/long-options.c: Include long-options.h first, to test interface.
83859         Include <stdlib.h> unconditionally.
83860
83861         * lib/makepath.c: Include makepath.h first, to test interface.
83862         Include <stdlib.h> and <string.h> unconditionally.
83863
83864         * lib/linebuffer.c: Include <stdlib.h>.
83865         (free): Remove decl.
83866
83867         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83868         stddef.h. rpl_malloc returns void *, not char *.
83869         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83870         prototype.
83871
83872         * lib/md5.h: Include <limits.h> unconditionally.
83873         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83874         (__P): Remove; all uses removed.
83875         * lib/md5.c: Include "md5.h" first.
83876         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83877         md5_buffer, md5_process_bytes, md5_process_block):
83878         Define with prototypes.
83879         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83880         * lib/sha.c: Include "sha.h" first.
83881         Include <stdlib.h>, <string.h> unconditionally.
83882
83883         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83884         * lib/memcmp.c (__ptr_t): Likewise.
83885         * lib/memrchr.c (__ptr_t): Likewise.
83886         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83887         Include <string.h> unconditionally.
83888         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83889         * lib/memchr.c: Include <stdlib.h> unconditionally.
83890         * lib/memchr.c (LONG_MAX): Remove.
83891         * lib/memrchr.c (LONG_MAX): Likewise.
83892         * lib/memchr.c (__memchr): Define via a prototype.
83893         * lib/memrchr.c (__memrchr): Likewise.
83894         * lib/memcmp.c (__P): Remove, and remove all uses.
83895         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83896         Remove forward decls; no longer needed.
83897         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83898         Use types required by C89 in prototype.
83899
83900         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83901         * lib/savedir.c: Likewise.
83902         * lib/mkdir.c (free): Remove decl.
83903         * lib/rmdir.c (rmdir): Define with a prototype.
83904         * lib/savedir.c: Include savedir.h first, to test interface.
83905
83906         * lib/mktime.c (STDC_HEADERS): Remove.
83907         Include <stdlib.h>, <string.h> unconditionally.
83908
83909         * lib/modechange.c: Include <stdlib.h> unconditionally.
83910         (malloc): Remove decl.
83911
83912         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83913         (free): Remove decl.
83914
83915         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83916         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83917         (This type really should be intptr_t, but that's a C99ism.)
83918         (_obstack_memcpy): Remove: all uses changed to memcpy.
83919         Include <string.h> unconditionally.
83920         (struct obstack): Assume __STDC__ for types of members
83921         chunkfun, freefun, extra_arg.
83922         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83923         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83924         obstack_begin, obstack_specify_allocation,
83925         obstack_specify_allocation_with_arg, obstack_chunkfun,
83926         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83927         Remove unprototyped decls and the macros that use them.
83928         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83929         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83930         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83931         (defined __STDC__ && __STDC__)]:
83932         Remove nonprototyped code.
83933         Include <stdlib.h> unconditionally.
83934         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83935         _obstack_allocated_p, _obstack_free, obstack_free,
83936         _obstack_memory_used, print_and_abort):
83937         Define using prototypes.
83938         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83939         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83940         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83941         obstack_next_free, obstack_object_size, obstack_room) [0]:
83942         Remove unused, unprototyped code.
83943
83944         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83945
83946         * lib/physmem.c (physmem_total, physmem_available, main): Define
83947         with prototypes.
83948
83949         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83950         (main): Define with a prototype.
83951
83952         * lib/posixver.c (getenv): Remove decl.
83953
83954         * lib/putenv.c (malloc): Returns void *, not char *.
83955         Include <string.h> unconditionally.
83956         (strchr, memcpy, NULL): Do not define.
83957
83958         * lib/readtokens.c: Include readtokens.h first, to test interface.
83959         Include <stdlib.h>, <string.h> unconditionally.
83960         (init_tokenbuffer): Define with a prototype.
83961
83962         * lib/regex.c (PARAMS): Remove.  All uses removed.
83963         All uses of _RE_ARGS removed, too.
83964         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83965         unconditionally.
83966         (bzero): Assume memset exists.
83967         (memcmp, memcpy, NULL): Remove.
83968         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83969         char, or assignments to local vars of type signed char.
83970         (init_syntax_once, PREFIX(extract_number_and_incr),
83971         PREFIX(print_partial_compiled_pattern),
83972         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83973         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83974         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83975         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83976         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83977         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83978         wcs_compile_range, byte_compile_range, truncate_wchar,
83979         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83980         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83981         count_mbs_length, wcs_re_match_2_internal,
83982         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83983         PREFIX(alt_match_null_string_p),
83984         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83985         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83986         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83987         now-unnecessary declaration, if any.
83988         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83989         regcomp, regexec):
83990         Remove now-unnecessary casts among pointer types.
83991         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83992
83993         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83994         (free): Remove decl.
83995
83996         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83997
83998         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83999         (free): Remove decl.
84000
84001         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84002         * lib/xgetcwd.c: Likewise.
84003
84004         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84005         (free): Remove decl.
84006
84007         * lib/strchrnul.c (strchrnul): Define with a prototype.
84008         Fix bug: c_in was not converted to char before searching.
84009
84010         The following changes are not K&R related:
84011
84012         * lib/group-member.h: Include <sys/types.h>, so that this file is
84013         self-contained.
84014         * lib/makepath.h: Likewise.
84015
84016         * lib/getusershell.c (readname, default_index, line_size, readname):
84017         Use size_t, not int, for sizes.
84018         (readname): If the size overflows, report an error instead of
84019         looping forever.
84020
84021 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84022
84023         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84024         libc.
84025
84026 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84027
84028         * README: New section: portability guidelines.
84029
84030 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84031
84032         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84033         C89 spec.
84034
84035 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84036
84037         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84038
84039 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84040
84041         Assume C89 or better; remove K&R cruft.
84042         A few of these changes were first proposed by Derek Robert Price
84043         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84044
84045         * lib/addext.c: Include <string.h> unconditionally.
84046         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84047         Don't declare getenv or malloc.
84048
84049         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84050         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84051         (NULL): Remove.
84052         (find_stack_direction, alloca): Use prototypes.
84053
84054         * lib/atexit.c (atexit): Define using a prototype.
84055
84056         * lib/basename.c, dirname.c, stripslash.c:
84057         Include <string.h> unconditionally.
84058
84059         * lib/bcopy.c: Include <stddef.h>.
84060         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84061
84062         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84063
84064         * lib/error.h (error, error_at_line, error_print_progname)
84065         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84066         * lib/error.c: Include error.h first, to check interface.
84067         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84068         (VA_START): Remove; all uses changeed to va_start.
84069         (exit, strerror): Remove decls.
84070         (error_print_progname): Prototype uncondionally.
84071         Don't include <errno.h>; no longer needed.
84072         (private_strerror): Remove.
84073         (error_tail): Always define.
84074         (error, error_at_line): Assume C89 or better; always use prototypes.
84075         * lib/fatal.c: Include "fatal.h" first, to test interface.
84076         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84077         (VA_START): Remove; all uses changed to va_start.
84078         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84079         this case.
84080         (exit): Remove decl.
84081         (fatal): Prototype unconditionally.  Assume va_start works.
84082         Abort at end, to pacify gcc.
84083
84084         * lib/euidaccess.c (main): Define with a prototype.
84085
84086         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84087
84088         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84089
84090         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84091         prototypes.
84092         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84093         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84094         (getenv): Remove decl.
84095         (fnmatch): Define using a prototype.
84096         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84097         (FCT): Define using a prototype.
84098
84099         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84100
84101         * lib/gethostname.c: Include <stddef.h>.
84102         (gethostname): Define with prototype.  Length is size_t, not int.
84103
84104 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84105
84106         Assume C89 or better; remove K&R cruft.
84107         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84108         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84109         string.h, getenv, malloc.
84110         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84111         headers.
84112         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84113         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84114         do not check for strerror.
84115         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84116         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84117         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84118         do not check for doprnt or vprintf.
84119         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84120         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84121
84122 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84123
84124         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84125         getversion.c should have been removed then, but was accidentally
84126         preserved.
84127
84128         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84129         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84130
84131 2003-09-08  Karl Berry  <karl@gnu.org>
84132
84133         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84134                 config, forget about prep.
84135
84136         * config/depcomp, missing: update from automake.
84137
84138 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84139
84140         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84141         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84142
84143 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84144
84145         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84146         copy_tm_result.  Bug reported by Simon Josefsson in
84147         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84148
84149 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84150
84151         * m4/time_r.m4: New file.
84152         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84153         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84154         is. Check for timegm declaration.
84155         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84156         Do not check for gmtime_r.
84157         Replace mktime if __mktime_internal does not exist and if mktime
84158         hasn't been replaced already.
84159
84160 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84161
84162         * lib/time_r.c, lib/time_r.h: New files.
84163
84164         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84165         __localtime_r.
84166         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84167         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84168
84169         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84170         __gmtime_r.
84171         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84172         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84173         Include <time_r.h>.
84174
84175         * lib/timegm.c: Switch to glibc implementation, with the following
84176         changes:
84177         [defined HAVE_CONFIG_H]: Include <config.h>.
84178         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84179         (__mktime_internal) [!defined _LIBC]: New decl.
84180         (__gmtime_r) [!defined _LIBC]: New macro and function.
84181         (timegm): Use a prototype, since gnulib assumes C89.
84182         Do not bother declaring tmp to be const, as it's not really usefu.
84183         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84184         (timegm): Declare only if HAVE_DECL_TIMEGM.
84185
84186 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84187
84188         * MODULES.html.sh (func_all_modules): Add time_r.
84189         * modules/time_r: New file.
84190         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84191         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84192
84193 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84194
84195         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84196         Bug reported by Lute Kamstra in
84197         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84198
84199         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84200         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84201         course with correspondingly smaller numbers for tomorrow and
84202         yesterday.  From Tadayoshi Funaba.  Originally installed into
84203         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84204         coreutils merge?).
84205
84206 2003-08-31  Simon Josefsson  <jas@extundo.com>
84207
84208         * modules/timegm: New file.
84209         * MODULES.html.sh (func_all_modules): Add timegm.
84210
84211 2003-08-31  Simon Josefsson  <jas@extundo.com>
84212
84213         * m4/timegm.m4: New file.
84214
84215 2003-08-31  Simon Josefsson  <jas@extundo.com>
84216
84217         * lib/timegm.h: New file.
84218         * lib/timegm.c: New file.  Based on
84219         wget-1.8.2/src/http.c:mktime_from_utc.
84220
84221 2003-08-31  Karl Berry  <karl@gnu.org>
84222
84223         * lib/argp.h: update from libc.
84224
84225 2003-08-28  Bruno Haible  <bruno@clisp.org>
84226
84227         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84228         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84229         followed by '#define fnmatch fnmatch_posix' gives an error.
84230
84231 2003-08-28  Bruno Haible  <bruno@clisp.org>
84232
84233         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84234         warning on QNX, which defines O_BINARY to 000000.
84235
84236 2003-08-27  Jim Meyering  <jim@meyering.net>
84237
84238         * m4/mkstemp.m4: Require that the system mkstemp be able to create
84239         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
84240         would fail after 32.  Reported by Danny Levinson.  Details here:
84241         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
84242
84243 2003-08-24  Bruno Haible  <bruno@clisp.org>
84244
84245         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
84246         MSVC7 <stdio.h> is included later.
84247
84248 2003-08-22  Simon Josefsson  <jas@extundo.com>
84249
84250         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
84251
84252 2003-08-20  Karl Berry  <karl@gnu.org>
84253
84254         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
84255
84256 2003-08-20  Bruno Haible  <bruno@clisp.org>
84257
84258         * modules/progname: New file.
84259         * MODULES.html.sh (func_all_modules): Add progname.
84260
84261 2003-08-20  Bruno Haible  <bruno@clisp.org>
84262
84263         * lib/progname.h: New file, from GNU gettext.
84264         * lib/progname.c: New file, from GNU gettext.
84265         * lib/progreloc.c: New file, from GNU gettext.
84266
84267 2003-08-19  Jim Meyering  <jim@meyering.net>
84268
84269         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
84270         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
84271
84272 2003-08-19  Bruno Haible  <bruno@clisp.org>
84273
84274         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
84275         more.
84276
84277 2003-08-19  Bruno Haible  <bruno@clisp.org>
84278
84279         * lib/xstrdup.c: Assume <string.h> exists.
84280
84281 2003-08-18  Paul Eggert  <eggert@twinsun.com>
84282
84283         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
84284         in makefile rules.
84285
84286 2003-08-18  Jim Meyering  <jim@meyering.net>
84287
84288         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
84289         * m4/lib-ld.m4: Likewise.
84290
84291 2003-08-18  Jim Meyering  <jim@meyering.net>
84292
84293         * lib/setenv.h: Indent nested cpp directive.
84294         * lib/vasnprintf.c: Remove trailing blanks.
84295
84296 2003-08-17  Simon Josefsson  <jas@extundo.com>
84297
84298         * modules/xstrndup: New file.
84299         * MODULES.html.sh (func_all_modules): Add xstrndup.
84300
84301 2003-08-17  Simon Josefsson  <jas@extundo.com>
84302
84303         * modules/argp: Fix autoconf macro name. Add more dependencies.
84304
84305 2003-08-17  Simon Josefsson  <jas@extundo.com>
84306
84307         * m4/xstrndup.m4: New file.
84308
84309 2003-08-17  Simon Josefsson  <jas@extundo.com>
84310
84311         * m4/argp.m4: New file.
84312
84313 2003-08-17  Simon Josefsson  <jas@extundo.com>
84314             Bruno Haible  <bruno@clisp.org>
84315
84316         * lib/xstrndup.h: New file.
84317         * lib/xstrndup.c: New file.
84318
84319 2003-08-17  Bruno Haible  <bruno@clisp.org>
84320
84321         * modules/strndup (Files, Include): Add lib/strndup.h.
84322
84323 2003-08-17  Bruno Haible  <bruno@clisp.org>
84324
84325         * modules/euidaccess (Files): Add lib/euidaccess.h.
84326
84327 2003-08-17  Bruno Haible  <bruno@clisp.org>
84328
84329         * lib/strndup.h: New file.
84330
84331 2003-08-17  Bruno Haible  <bruno@clisp.org>
84332
84333         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
84334         like AC_GNU_SOURCE.
84335         * modules/extensions (configure.ac): Comment out the invocation of
84336         gl_USE_SYSTEM_EXTENSIONS.
84337
84338 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84339
84340         Merges from coreutils, etc.
84341         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
84342         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
84343         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
84344         fixing a typo.
84345         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
84346         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
84347
84348 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84349
84350         Document merge from coreutils.
84351         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
84352         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
84353         * modules/utime: Add m4/utimes-null.m4.
84354
84355 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84356
84357         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
84358         space, undoing this 2003-08-12 change:
84359         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84360
84361 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84362
84363         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
84364         strtoul.c from libc, undoing this 2003-08-12 change:
84365         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84366
84367 2003-08-16  Jim Meyering  <jim@meyering.net>
84368
84369         Merges from coreutils.
84370         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84371         prefix.  Adjust cache variables similarly.  Create 500 rather than
84372         just 300 files, to exercise bug on Darwin6.5, too.
84373         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84374         $missing_dir.
84375         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84376         AM_SYS_POSIX_TERMIOS.
84377         Reported by mkc@mathdogs.com.
84378         Also change use of $am_cv_sys_posix_termios
84379         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84380         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84381         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84382         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84383         in /proc/mounts until it finds one with matching device number.  This
84384         is unnecessary when the FILE argument *is* a mount point.  No stat call
84385         is necessary in that case.  So, disable the statvfs-testing code on
84386         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
84387         as RedHat bug# 84846.
84388         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84389         to 1MB, so as not to render systems with no stack size limit (e.g.,
84390         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84391         Include <unistd.h>.  On some systems,
84392         it is required for the definition of _SC_PAGESIZE.
84393
84394 2003-08-16  Jim Meyering  <jim@meyering.net>
84395
84396         Merge from coreutils.
84397         * lib/xstrtoimax.c: #else #if -> #elif.
84398         * lib/xstrtoumax.c: Likewise.
84399
84400 2003-08-16  Jim Meyering  <jim@meyering.net>
84401
84402         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84403         * m4/utimes.m4: Removed.
84404         * m4/utimes-null.m4: Renamed from utimes.m4.
84405
84406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84407         to 1MB, so as not to render systems with no stack size limit (e.g.,
84408         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84409         Include <unistd.h>.  On some systems,
84410         it is required for the definition of _SC_PAGESIZE.
84411
84412 2003-08-16  Jim Meyering  <jim@meyering.net>
84413         and Paul Eggert  <eggert@cs.ucla.edu>
84414
84415         Merges from coreutils, etc.
84416
84417         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84418         using the latest version from cvs.  This avoids problems with #line
84419         directives using a vendor (Sun) compiler.
84420         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84421         Don't set GETGROUPS_LIB here; now it's
84422         done via getgroups.m4's wrapper function.
84423         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84424         rather than just in sh-util/configure.in, so that the
84425         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84426         same.
84427         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84428         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84429         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84430         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84431         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84432         Remove code that is now done by the newly-required macros.
84433         Append $(EXEEXT) to DF_PROG.
84434         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84435         Do not invoke or require the following here,
84436         since prereq.m4 or some gnulib .m4 now does this for us:
84437         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84438         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84439         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84440         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84441         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84442         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84443         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84444         AC_FUNC_OBSTACK.
84445         Do not replace the following functions, as this is now the job
84446         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84447         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84448         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84449         atexit getpass, strdup, getpagesize.
84450         Replace 'raise'.
84451         Do not check for the following functions, as this is now the job
84452         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84453         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84454         setregid.
84455         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84456         Check for sys/sysctl.h.
84457         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84458         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84459         of checking for ssize_t ourselves.
84460
84461         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84462         Require every macro that gnulib/modules/* suggests for us.
84463         (jm_PREREQ_ADDEXT): New macro.
84464         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84465         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84466
84467         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84468         (gl_PHYSMEM): Use it.
84469         Also check for `table' function.
84470         Check for new headers and functions.
84471         Add check for sys/sysmp.h.
84472         With suggestions from Kaveh Ghazi.
84473         Ignore headers that are present but cannot be compiled.  This
84474         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84475         C 5.4.
84476
84477 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84478
84479         Document merge from coreutils.
84480         * modules/userspec: Depend on posixver.
84481         * modules/strftime: Depend on tzset.
84482
84483 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84484
84485         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84486         rather than tab, after '#' in shell-script copyright notices.
84487         Suggested by Bruno Haible.
84488
84489 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84490
84491         * config/srclist-update: Use three spaces, rather than tab, after '#'
84492         in shell-script copyright notices.  Suggested by Bruno Haible.
84493         Remove unnecessary parenthesization in regular expression.
84494
84495 2003-08-15  Jim Meyering  <jim@meyering.net>
84496
84497         Merge from coreutils.
84498         * lib/xgethostname.c: Include <stdlib.h>.
84499         (xghostname): Don't exit for anything other than memory-related
84500         failure; just return NULL.
84501         * lib/userspec.c: Include "posixver.h".
84502         (parse_user_spec): Accept `.' as a separator only
84503         in pre-POSIX-200112 mode.
84504         * lib/strtoimax.c: Use #elif rather than #else #if.
84505         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84506         Remove function, now that we can rely on a working tzset function.
84507         [!_LIBC]: Ensure that the required autoconf test has been run.
84508         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84509         Use underlying_strftime for %r.
84510         * lib/sha.c: Merge in some clean-up and optimization changes from
84511         glibc.
84512         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84513         Ensure that it is a multiple of 64.
84514         Rearrange loop exit tests so as to avoid performing an
84515         additional fread after encountering an error or EOF.
84516         * lib/realloc.c: Update copyright date.
84517
84518 2003-08-15  Jim Meyering  <jim@meyering.net>
84519         and Paul Eggert  <eggert@twinsun.com>
84520
84521         Merge from coreutils.
84522         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84523         member but strut utmpx does not.  Needed for AIX 4.3.3.
84524         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84525
84526 2003-08-15  Jim Meyering  <jim@meyering.net>
84527         and Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         Merges from coreutils, etc.
84530         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84531         Require gl_FUNC_TZSET_CLOBBER.
84532         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84533         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84534         members.
84535
84536 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84537
84538         Help the merge from coreutils.
84539         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84540         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84541         * m4/tzset.m4: Use it too.
84542
84543 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84544
84545         * modules/tzset: New file.
84546
84547 2003-08-14  Jim Meyering  <jim@meyering.net>
84548
84549         Merges from coreutils.
84550         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84551         variable names, rather than @FNMATCH_H@.
84552         * modules/alloca: Likewise for $(ALLOCA_H).
84553
84554         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84555         the three copies of the literal target, `fnmatch.h'.
84556         * modules/alloca (alloca.h): Likewise.
84557
84558 2003-08-14  Jim Meyering  <jim@meyering.net>
84559
84560         Merge from coreutils.
84561         * m4/tzset.m4: New file.
84562         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84563         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84564         otherwise, AIX 5.1 systems would end up using the latter.
84565         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84566         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84567         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84568         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84569
84570 2003-08-14  Jim Meyering  <jim@meyering.net>
84571
84572         Merge from coreutils.
84573         * lib/obstack.h: Whitespace changes.
84574         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84575         and xcalloc return values.
84576         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84577         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84578         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84579         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84580         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84581         error from mntctl.
84582         Use mntctl's return value to drive the entry-processing loop, since
84583         we can't rely on the value of the vmt_length member in the last
84584         entry.  On some systems doing so could result in exhausting
84585         virtual memory.  Based in part on a patch from Mike Jetzer.
84586
84587 2003-08-14  Jim Meyering  <jim@meyering.net>
84588         and Paul Eggert  <eggert@twinsun.com>
84589
84590         Merges from coreutils, plus other fixes.
84591         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84592         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84593         for credits and details.  Thanks to Kaveh Ghazi for helping
84594         to keep these files in sync.
84595         (ARRAY_SIZE): Define it.
84596         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84597         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84598         (memcasecmp): Don't assume size_t fits in unsigned int.
84599         Remove casts and duplicate code.
84600         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84601         (memcpy): Remove definition.
84602         Merge in some clean-up and optimization changes from glibc.
84603         [BLOCKSIZE]: Move definition to top of file.
84604         Ensure that it is a multiple of 64.
84605         Rearrange loop exit tests so as to avoid performing an
84606         additional fread after encountering an error or EOF.
84607         * lib/md5.h (md5_uintptr): Define.
84608         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84609         return to the initial working directory.  Preserve errno
84610         for caller.
84611         * lib/idcache.c: Include "xalloc.h".
84612         (xmalloc, xrealloc): Remove decls.
84613         (getuser): Remove casts no longer required in C89.
84614         * lib/human.c: Include stdio.h, for sprintf.
84615         * lib/group-member.c: Include "xalloc.h".
84616         (xmalloc, xrealloc): Remove decls.
84617         (get_group_info): Remove casts no longer required in C89.
84618         * lib/getusershell.c (readname): Remove casts no longer required in
84619         C89.
84620         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84621         * lib/getline.c: Whitespace fix, from coreutils.
84622
84623 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84624
84625         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84626         Check for isascii.
84627
84628         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84629         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84630         Undo previous (whitespace-only) change.
84631
84632 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84633
84634         * lib/exclude.c: Include <ctype.h>
84635         (IN_CTYPE_DOMAIN): New macro.
84636         (is_space): New fn.
84637         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84638         and empty lines.
84639
84640         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84641         Undo previous (whitespace-only) change.
84642
84643 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84644
84645         * config/srclist-update: Change update back to the old behavior,
84646         leaving whitespace alone.  Use one 'sed' command rather than a
84647         pipeline.
84648         (fixlicense): Now a variable, not a function.
84649         (remove_trailing_blanks): Remove.
84650         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84651         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84652         Undo previous (whitespace-only) change.
84653
84654 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84655
84656         Merge from coreutils.
84657         * modules/euidaccess: Add lib_SOURCES, include for new
84658         file euidaccess.h
84659
84660 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84661
84662         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84663         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84664         Normalize leading white space and remove trailing white space.
84665
84666         Merge from coreutils
84667         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84668
84669         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84670         0.12.1.  These files are now being upgraded automatically by
84671         ../config/srclist-update.
84672
84673 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84674
84675         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84676         Normalize leading white space and remove trailing white space.
84677         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84678         notice, as per ../config/srclist-update.
84679
84680         Merge from coreutils.
84681         * lib/euidaccess.h: New file.
84682         * lib/euidaccess.c: Include it.
84683         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84684         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84685         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84686
84687 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84688
84689         * config/srclist-update: Add copyright notice.
84690         (remove_id_lines, remove_trailing_blanks): New constants.
84691         (fixfile): Use them to normalize spacing a bit in copied files.
84692         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84693         Normalize leading white space and remove trailing white space.
84694
84695         * config/texinfo.tex: Sync with texinfo.
84696
84697         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84698         strtoul.c from libc, to merge coreutils whitespace changes.
84699
84700         * config/srclist.txt: Get the following m4 files from gettext:
84701         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84702         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84703         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84704         wint_t.m4.
84705
84706 2003-08-12  Karl Berry  <karl@gnu.org>
84707
84708         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84709         been made.
84710
84711 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84712
84713         * modules/gnu-source, m4/gnu-source.m4:
84714         Remove; we're assuming Autoconf 2.54 or later now.
84715         Suggested by Bruno Haible.
84716         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84717
84718 2003-08-11  Bruno Haible  <bruno@clisp.org>
84719
84720         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84721
84722 2003-08-11  Bruno Haible  <bruno@clisp.org>
84723
84724         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84725         (vasnprintf): Use it instead of wcslen.
84726
84727 2003-08-11  Bruno Haible  <bruno@clisp.org>
84728
84729         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84730         value to ensure that _Bool promotes to int. Use #define for _Bool when
84731         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84732
84733 2003-08-10  Karl Berry  <karl@gnu.org>
84734
84735         * lib/regex.h: update from libc (whitespace fix).
84736
84737 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84738
84739         Merge some files from coreutils.  These changes were
84740         originally made by Jim Meyering.
84741         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84742         many older Unixes require this.
84743         * lib/alloca.c (alloca): Remove cast to argument of free;
84744         no longer needed in C89.
84745         * lib/alloca_.h, regex.h: Fix white space to match
84746         what GNU indent does.
84747
84748 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84749
84750         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84751         apparently Emacs's Unicode mode got confused before my 2003-08-05
84752         checkin.
84753
84754 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84755
84756         * m4/extensions.m4: New file.
84757         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84758         Require gl_USE_SYSTEM_EXTENSIONS.
84759         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84760         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84761
84762 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84763
84764         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84765         * modules/extensions, modules/gnu-source: New files.
84766         * modules/timespec, modules/unlocked-io: Depend on extensions.
84767
84768 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84769
84770         * modules/restrict: New file.
84771         * MODULES.html.sh (func_all_modules): Add restrict.
84772         * modules/regex: Depend on restrict.
84773
84774 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84775
84776         * m4/restrict.m4: New file.
84777         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84778
84779 2003-08-07  Bruno Haible  <bruno@clisp.org>
84780
84781         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84782         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84783
84784 2003-08-07  Bruno Haible  <bruno@clisp.org>
84785
84786         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84787         makes the module 'getndelim2' compatible with the module 'getline'.
84788
84789 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84790
84791         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84792         byte with "\201" to avoid glitches when editing that source file
84793         with multi-gnome-terminal.
84794
84795 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84796
84797         * lib/bumpalloc.h: Remove.
84798
84799 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84800
84801         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84802         * modules/bumpalloc: Remove.
84803
84804 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84805
84806         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84807         GNU coding style.
84808
84809         Merge from coreutils.
84810         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84811         1. From glibc.
84812         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84813         from Karl Berry, implemented by Jim Meyering.
84814         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84815         from Dmitry V. Levin.
84816         Remove anachronistic cast of xrealloc.
84817         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84818         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84819         type. Otherwise, it wouldn't compile with at least /bin/cc on
84820         ymp-cray-unicos9.0.2.X.
84821         Combine two mostly-identical uses of alloca into one.
84822         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84823
84824 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84825
84826         [From Emacs.]
84827
84828         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84829         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84830         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84831         obsolete NLIST_NAME_UNION.
84832         [__GNU__]: Undef BSD and FSCALE.
84833         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84834
84835 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84836
84837         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84838         an enum type, so that it's guaranteed to promote to int.  See:
84839         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84840
84841 2003-08-03  Karl Berry  <karl@gnu.org>
84842
84843         * config/depcomp: update from automake.
84844
84845 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84846
84847         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84848         (strerror): Don't assume that a printable int fits in 14 bytes.
84849
84850 2003-07-31  Bruno Haible  <bruno@clisp.org>
84851
84852         * modules/getpass-gnu: New file.
84853         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84854
84855 2003-07-31  Bruno Haible  <bruno@clisp.org>
84856
84857         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84858
84859 2003-07-24  Karl Berry  <karl@gnu.org>
84860
84861         * config/missing: update from automake.
84862
84863 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84864             Bruno Haible  <bruno@clisp.org>
84865
84866         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84867         * lib/getline.c (getline, getdelim): Likewise.
84868         Remove _GNU_SOURCE define; now it's defined in config.h through
84869         m4/getline.m4.
84870
84871 2003-07-23  Karl Berry  <karl@gnu.org>
84872
84873         * config/config.sub: update from prep.
84874
84875 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84876
84877         * modules/xalloc (Depends-on): Add exitfail.
84878         * modules/xmemcoll: Likewise.
84879
84880 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84881
84882         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84883         over-parenthesization in macros.
84884
84885         Sync with coreutils.
84886
84887         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84888         required by C99.
84889
84890         Use `exit_failure' for xalloc and xmemcoll instead of their own
84891         private exit-failure variables.
84892         * lib/xalloc.h (xalloc_exit_failure): Remove.
84893         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84894         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84895         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84896         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84897         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84898
84899 2003-07-20  Jim Meyering  <jim@meyering.net>
84900
84901         * modules/closeout (Depends-on): Add exitfail.
84902         Suggestion from Bruno Haible.
84903
84904 2003-07-19  Karl Berry  <karl@gnu.org>
84905
84906         * config/config.sub: update from prep.
84907
84908 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84909
84910         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84911         Remove.
84912         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84913         to test that it can stand by itself.  Include "exitfail.h".
84914         Clients should set exit_failure instead.
84915         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84916
84917 2003-07-18  Bruno Haible  <bruno@clisp.org>
84918
84919         * modules/getndelim2: New file.
84920         * modules/getline: Share files with module getndelim2.
84921         * modules/getnline: Depend on getndelim2 instead of sharing files with
84922         it. Add getnline.c to lib_SOURCES.
84923         * MODULES.html.sh (func_all_modules): Add getndelim2.
84924
84925 2003-07-18  Bruno Haible  <bruno@clisp.org>
84926
84927         * m4/getndelim2.m4: New file.
84928         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84929         invoke gl_PREREQ_GETNDELIM2.
84930         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84931         gl_PREREQ_GETNDELIM2.
84932         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84933         gl_GETNDELIM2.
84934
84935 2003-07-18  Bruno Haible  <bruno@clisp.org>
84936
84937         * lib/getndelim2.h: New file.
84938         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84939         getndelim2.h.
84940         (getndelim2): Make non-static. Change return type to ssize_t.
84941         * lib/getline.h: Change argument names.
84942         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84943         * lib/getnline.c: Include getndelim2.h.
84944
84945 2003-07-18  Andreas Schwab  <schwab@suse.de>
84946
84947         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84948
84949 2003-07-17  Karl Berry  <karl@gnu.org>
84950
84951         * config/config.sub: update from prep.
84952
84953 2003-07-17  Bruno Haible  <bruno@clisp.org>
84954
84955         * modules/getnline: New file.
84956         * modules/getline: Add lib/getndelim2.c to source file list.
84957         * MODULES.html.sh (func_all_modules): Add getnline.
84958
84959 2003-07-17  Bruno Haible  <bruno@clisp.org>
84960
84961         * m4/getnline.m4: New file.
84962
84963 2003-07-17  Bruno Haible  <bruno@clisp.org>
84964
84965         * m4/Makefile.am.in: Remove file.
84966         * m4/Makefile.am: Remove file.
84967         * m4/Makefile.in: Remove file.
84968
84969 2003-07-17  Bruno Haible  <bruno@clisp.org>
84970
84971         * lib/getnline.h: New file.
84972         * lib/getnline.c: New file.
84973         * lib/getndelim2.c: New file, extracted from getline.c.
84974         (getndelim2): Renamed from getdelim2, with added nmax argument.
84975         * lib/getline.c: Include getndelim2.c.
84976         (getdelim2): Moved out to getndelim2.c.
84977         (getline, getdelim): Update.
84978
84979 2003-07-17  Bruno Haible  <bruno@clisp.org>
84980
84981         * lib/Makefile.am: Remove file.
84982         * lib/Makefile.in: Remove file.
84983
84984 2003-07-17  Bruno Haible  <bruno@clisp.org>
84985
84986         * configure.in: Remove file.
84987         * Makefile.in: Remove file.
84988
84989 2003-07-17  Bruno Haible  <bruno@clisp.org>
84990
84991         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84992
84993 2003-07-16  Karl Berry  <karl@gnu.org>
84994
84995         * config/srclist-update: was running fixlicense twice, which caused
84996                 texinfo.tex to be nullified for some reason.  Simplify,
84997                 $gplsrc is no longer needed as far as I can see?
84998
84999 2003-07-16  Jim Meyering  <jim@meyering.net>
85000
85001         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85002
85003 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85004
85005         * config/srclist.txt: Get the following files from gettext-runtime/intl
85006         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85007         ref-del.sin.  From Bruno Haible.
85008         * config/srclist-update (fixfile): Change grep pattern again, since the
85009         previous fix didn't work (there was another trailing $).  Use
85010         '[$]' to escape the $s.
85011
85012 2003-07-15  Karl Berry  <karl@gnu.org>
85013
85014         * lib/vasnprintf.c: update from gettext.
85015
85016 2003-07-15  Karl Berry  <karl@gnu.org>
85017
85018         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85019         gets expanded when surrounded by '$'.
85020
85021 2003-07-15  Jim Meyering  <jim@meyering.net>
85022
85023         * modules/save-cwd: Don't depend on error.  From Derek Price.
85024
85025 2003-07-15  Jim Meyering  <jim@meyering.net>
85026
85027         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85028
85029 2003-07-14  Simon Josefsson  <jas@extundo.com>
85030
85031         * modules/mempcpy: New file.
85032         * MODULES.html.sh (func_all_modules): Add mempcpy.
85033
85034 2003-07-14  Simon Josefsson  <jas@extundo.com>
85035
85036         * m4/mempcpy.m4: New file.
85037
85038 2003-07-14  Simon Josefsson  <jas@extundo.com>
85039
85040         * lib/mempcpy.h: New file.
85041         * lib/mempcpy.c: New file.
85042
85043 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85044
85045         * modules/getdate, modules/posixtm: Depend on mktime.
85046
85047 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85048
85049         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85050         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85051         unicodeio.c, unicodeio.h, unlocked-io.h:
85052         Switch from LGPL to GPL.
85053
85054 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85055
85056         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85057         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85058         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85059         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85060         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85061         updated automatically by ../config/srclist-update.  This changes
85062         their license from LPGL to GPL.
85063
85064 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85065
85066         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85067         assumed to refer to the root of the most recent stable gettext version.
85068         * config/srclistvars.sh: Add defaults for eggert.
85069         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85070         Match "This program" as well as "The program".  This is needed
85071         for gettext.
85072
85073 2003-07-14  Jim Meyering  <jim@meyering.net>
85074
85075         Don't emit diagnostics.  Let callers do that.
85076         * lib/save-cwd.c: Don't include "error.h".
85077         (save_cwd): Don't call error.  Ensure that errno is valid
85078         when returning nonzero.
85079
85080         * lib/save-cwd.h (restore_cwd): Update prototype.
85081         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85082         Simplify.  Don't call error upon failure.  Let callers do that.
85083         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85084         when auditing is enabled.  But don't bother updating the #if.
85085
85086 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85087
85088         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85089         it breaks C++ compilation.
85090         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85091
85092 2003-07-10  Simon Josefsson  <jas@extundo.com>
85093
85094         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85095
85096 2003-07-10  Jim Meyering  <jim@meyering.net>
85097
85098         * m4/clock_time.m4: Remove trailing blank.
85099         * m4/intmax_t.m4: Likewise.
85100
85101 2003-07-10  Jim Meyering  <jim@meyering.net>
85102
85103         * lib/vasnprintf.c: Remove trailing blanks.
85104         Make cpp indentation consistent.
85105
85106 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85107
85108         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85109         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85110         Switch from LGPL to GPL.
85111
85112 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85113
85114         * config/srclist.txt: Sort sublists.  Add
85115         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85116         that differ from gnulib for one reason or another; we'd like this list
85117         to be smaller but for now let's document what we have.
85118
85119 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85120
85121         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85122         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85123         and sweeter "eval x=$x".
85124         * config/srclist.txt: Get lib/argp* from glibc.
85125
85126 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85127
85128         * lib/mktime.c: Fix some boundary cases and remove need for floating
85129         point.
85130
85131         Issue a compile-time diagnostic if time_t is floating point, or if
85132         two's complement arithmetic is not in effect, or if arithmetic
85133         right shift does not propagate the sign.  These assumptions were
85134         all in the original code but they weren't checked.
85135
85136         (TIME_T_MIDPOINT, verify): New macros.
85137         (__isleap): Remove; it has integer overflow problems.
85138         (leapyear): New function, without those problems.
85139         (ydhms_tm_diff): Remove; splitting into two parts.
85140         (ydhms_diff): New function, containing the arithmetic part of
85141         the old ydhms_tm_diff function.  Issue a compile-time
85142         diagnostic if we are not using C99 integer division.
85143         Avoid casts when possible.
85144         (guess_time_tm): New function, containing the checking part of
85145         the old ydhms_tm_diff function.  Return the new value, rather than
85146         the difference between it and the old.  Accept a new argument T
85147         so that *T specifies the old value.  Check for overflow in the result.
85148
85149         (__mktime_internal): Use a time_t offset, not a long int offset.
85150         This undoes the 2003-06-04 change, which is no longer needed now
85151         that we have better overflow checking.
85152         (localtime_offset): Likewise.
85153
85154         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85155         and long are 64-bit but int is only 32-bit.
85156         (ydhms_diff): Use long int to store year1 and yday1.
85157         Issue a compile-time diagnostic if long int is not wide enough.
85158
85159         (__mktime_internal): Use long int to store adjusted year and yday.
85160         Use plain C rather than preprocessor commands, if that doesn't
85161         affect efficiency.
85162         Check for overflow (and try to repair) after each probe
85163         rather than checking only at the very end.  This avoids some bugs
85164         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85165         does not equal GMT offset at maximum time).
85166         Use integer to check for overflow rather than floating point; this
85167         is more portable to non-IEEE hosts, and is a tad faster.
85168         When we detect that we are oscillating between two values,
85169         don't check whether tm_isdst has the requested value, since
85170         we already know the answer.  When tm_isdst has the wrong value,
85171         use a different heuristic to find the right one, based on the
85172         extreme values actually observed in practice in tz2003a,
85173         rather than the (overly optimistic) "previous 3 calendar quarters".
85174
85175         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85176         "T const" to accommodate glibc style.
85177         (check_result): Use less-confusing report format.  "long" -> "long int.
85178         (main): Likewise.
85179         Don't loop if the iteration overflows time_t.
85180         Allow a negative step in the iteration.
85181
85182 2003-07-06  Karl Berry  <karl@gnu.org>
85183
85184         * config/depcomp: update from automake.
85185         * config/config.sub: update from prep.
85186
85187 2003-07-03  Karl Berry  <karl@gnu.org>
85188
85189         * config/config.guess: update from prep.
85190
85191 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85192
85193         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85194         xreadlink.c now includes it unconditionally.
85195
85196 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85197
85198         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85199         having it depend on HAVE_SYS_TYPES_H.
85200
85201 2003-07-01  Bruno Haible  <bruno@clisp.org>
85202
85203         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85204         <sys/types.h> should be sufficient.
85205         Reported by Paul Eggert.
85206
85207 2003-06-26  Karl Berry  <karl@gnu.org>
85208
85209         * config/depcomp: update from automake.
85210
85211 2003-06-26  Bruno Haible  <bruno@clisp.org>
85212
85213         * modules/human: Depend on module stdbool.
85214
85215 2003-06-25  Bruno Haible  <bruno@clisp.org>
85216
85217         * modules/readlink: New file.
85218         * modules/xreadlink: Depend on it.
85219         * MODULES.html.sh (func_all_modules): Add readlink.
85220
85221 2003-06-25  Bruno Haible  <bruno@clisp.org>
85222
85223         * m4/readlink.m4: New file.
85224
85225 2003-06-25  Bruno Haible  <bruno@clisp.org>
85226
85227         * lib/readlink.c: New file.
85228
85229 2003-06-22  Karl Berry  <karl@gnu.org>
85230
85231         * config/srclist.txt: update mkinstalldirs from automake.
85232         * config/mkinstalldirs: update.
85233
85234 2003-06-22  Bruno Haible  <bruno@clisp.org>
85235
85236         Portability to mingw32.
85237         * m4/ssize_t.m4: New file, from GNU gettext.
85238         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
85239         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
85240
85241 2003-06-22  Bruno Haible  <bruno@clisp.org>
85242
85243         * modules/safe-read: Add m4/ssize_t.m4.
85244         * modules/xreadlink: Add m4/ssize_t.m4.
85245
85246 2003-06-20  Bruno Haible  <bruno@clisp.org>
85247
85248         Assume C89, so PARAMS isn't needed.
85249         * lib/unicodeio.h (PARAMS): Remove.
85250         * lib/unicodeio.c: Don't use PARAMS.
85251
85252 2003-06-18  Karl Berry  <karl@gnu.org>
85253
85254         * config/config.{guess,sub}: update from prep.
85255
85256 2003-06-18  Jim Meyering  <jim@meyering.net>
85257
85258         Merge changes from coreutils.
85259         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
85260         Remove explicit declarations of xmalloc and realloc.
85261         Include xalloc.h.
85262         (read_utmp): Remove anachronistic cast of xmalloc.
85263
85264 2003-06-17  Paul Eggert  <eggert@twinsun.com>
85265
85266         Assume C89, so PARAMS isn't needed.
85267         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
85268         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
85269         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
85270         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
85271         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
85272         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
85273         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
85274         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
85275         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
85276         lib/xstrtod.h, lib/xstrtol.h: Likewise.
85277         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
85278         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
85279         no longer needed. Anyway, config.h should always be included before any
85280         other file.
85281
85282 2003-06-11  Simon Josefsson  <jas@extundo.com>
85283
85284         * modules/sysexits: New file.
85285         * MODULES.html.sh (func_all_modules): Add sysexits.
85286
85287 2003-06-11  Simon Josefsson  <jas@extundo.com>
85288
85289         * lib/sysexit_.h: New file.
85290
85291 2003-06-11  Derek Price  <derek@ximbiot.com>
85292
85293         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
85294         necessary.
85295
85296 2003-06-11  Bruno Haible  <bruno@clisp.org>
85297
85298         * m4/sysexits.m4: New file.
85299
85300 2003-06-10  Simon Josefsson  <jas@extundo.com>
85301
85302         * lib/argp.h: New file, from glibc.
85303         * lib/argp-ba.c: New file, from glibc.
85304         * lib/argp-eexst.c: New file, from glibc.
85305         * lib/argp-fmtstream.c: New file, from glibc.
85306         * lib/argp-fmtstream.h: New file, from glibc.
85307         * lib/argp-fs-xinl.c: New file, from glibc.
85308         * lib/argp-help.c: New file, from glibc.
85309         * lib/argp-namefrob.h: New file, from glibc.
85310         * lib/argp-parse.c: New file, from glibc.
85311         * lib/argp-pv.c: New file, from glibc.
85312         * lib/argp-pvh.c: New file, from glibc.
85313         * lib/argp-xinl.c: New file, from glibc.
85314
85315 2003-06-10  Simon Josefsson  <jas@extundo.com>
85316
85317         * modules/strchrnul: New file.
85318
85319 2003-06-10  Simon Josefsson  <jas@extundo.com>
85320
85321         * modules/argp: New file.
85322
85323 2003-06-10  Simon Josefsson  <jas@extundo.com>
85324
85325         * m4/strchrnul.m4: New file.
85326
85327 2003-06-10  Simon Josefsson  <jas@extundo.com>
85328
85329         * lib/strchrnul.h: New file.
85330         * lib/strchrnul.c: New file.
85331
85332 2003-06-10  Bruno Haible  <bruno@clisp.org>
85333
85334         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
85335
85336 2003-06-07  Karl Berry  <karl@gnu.org>
85337
85338         * config/config.{guess,sub}: update from prep.
85339
85340 2003-06-07  Jim Meyering  <jim@meyering.net>
85341
85342         * modules/strtod: Use $(...) notation, not @...@ for
85343         AC_REPLACE'd variables.
85344         * modules/localcharset: Likewise.
85345
85346 2003-06-07  Jim Meyering  <jim@meyering.net>
85347
85348         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
85349         in place of my name in the copyright comment.
85350         Remove definition and uses of __P.
85351
85352         From coreutils.
85353         * lib/stat.c: Don't declare xmalloc explicitly.
85354         Instead, include "xalloc.h".
85355         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
85356         xrealloc, and xcalloc return values.
85357         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
85358         Improve comment.
85359         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
85360
85361 2003-06-07  Bruno Haible  <bruno@clisp.org>
85362
85363         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
85364         avoid AC_CONFIG_LINKS.
85365         * modules/fnmatch (Makefile.am): Use explicit creation rule for
85366         fnmatch.h, to avoid AC_CONFIG_LINKS.
85367         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85368
85369 2003-06-07  Bruno Haible  <bruno@clisp.org>
85370
85371         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85372         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85373         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85374         directory.
85375         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85376         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85377         directory.
85378
85379 2003-06-06  Jim Meyering  <jim@meyering.net>
85380
85381         Merge from coreutils.
85382         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85383         Consolidate declarations and initializations of *_base* locals.
85384
85385         Merge from coreutils.
85386         This avoids a core dump on systems without GNU putenv,
85387         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
85388         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85389         (unsetenv): New static function, from GNU libc.
85390         (rpl_putenv): Use it.
85391
85392         * lib/modechange.c: Remove trailing blanks.
85393
85394         Merge from coreutils.
85395         * lib/fsusage.c: Remove declaration of statfs.
85396         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85397
85398         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85399
85400 2003-06-06  Jim Meyering  <jim@meyering.net>
85401
85402         * lib/stdbool_.h: Renamed from stdbool.h.in.
85403
85404 2003-06-06  Jim Meyering  <jim@meyering.net>
85405             Bruno Haible  <bruno@clisp.org>
85406
85407         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85408         Adjust Makefile.am snippet not to redirect directly to target.
85409         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85410
85411 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85412
85413         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85414         mismatch, look in future quarters as well as past.  This fixes a
85415         bug when processing fall-backwards gaps immediately after a long
85416         period of daylight-saving time.
85417
85418         * lib/mktime.c: Assume freestanding C89 or better.
85419         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85420         (__P): Remove; not used.
85421         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85422         (mktime, not_equal_tm, print_tm, check_result,
85423         main): Use prototypes.  Use const * where appropriate.
85424         (main): Fix typo in testing code that uncovered by above changes.
85425         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85426
85427 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85428
85429         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85430         locale.h, localeconv.  This merges changes from coreutils.
85431
85432         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85433         It can be removed after the next Autoconf is released.
85434         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85435         needed.
85436
85437 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85438
85439         * lib/mktime.c: Fix Debian bug 177940
85440         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85441         (localtime_offset): Now long int, not time_t, because we want it
85442         to be guaranteed to be signed.  All uses changed.
85443         (__mktime_internal): If overflow would occur when adding offset,
85444         don't add it.
85445
85446         Merge 'human' changes from coreutils.  Rewrite to support
85447         locale-specific notations like thousands separators.
85448         * lib/human.c: Simplify authorship notice.
85449         Include human.h immediately after config.h.
85450         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85451         <limits.h>: Do not include, since human.h does.
85452         (SIZE_MAX, UINTMAX_MAX): New macros.
85453         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85454         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85455         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85456         (power_letter): Renamed from suffixes.
85457         (generate_suffix_backwards): Remove.
85458         (adjust_value): Now takes int style (because of human.h changes)
85459         and long double value (for greater precision on some platforms).
85460         (group_number): New function.
85461         (human_readable): Use it.  Use integer options, not enum.
85462         Put the options before the sizes in the arg list.
85463         Support all the new options.
85464         The old human_readable function has been removed;
85465         use inttostr.h instead.
85466         (human_readable, default_block_size, humblock):
85467         Use uintmax_t, not int, for block sizes.
85468         (human_readable_inexact, block_size_types): Remove.
85469         (block_size_opts): New constant.
85470         (human_options): Renamed from human_block_size, with new signature
85471         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85472         * lib/human.h: Add copyright and authorship notice.
85473         Include <limits.h> and <stdbool.h> unconditionally.
85474         (PARAMS): Remove.  All uses removed.
85475         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85476         (enum human_inexact_style): Remove tag; now a nameless enum.
85477         (human_floor, human_ceiling, human_round_to_even): Now have
85478         values 2, 0, 1 rather than -1, 1, 0.
85479         (human_group_digits, human_suppress_point_zero, human_autoscale,
85480         human_base_1024, human_SI, human_B): New constants.
85481         (human_readable_inexact, human_block_size): Remove.
85482         (human_readable): Size args are now uintmax_t, not int.
85483         (human_options): New decl.
85484
85485         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85486         unnecessary now that we assume C89 or better.  This change
85487         imported from coreutils.
85488
85489         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85490         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85491         in the 2003-05-30 sync from glibc.
85492
85493         .h files should stand alone, but we shouldn't include <sys/types.h>
85494         if we can get away with just <stddef.h>.
85495
85496         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85497         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85498         rather than <sys/types.h>, as we merely need size_t.
85499         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85500         to get size_t.
85501         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85502         Include <stdio.h>, to get FILE.
85503         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85504         memcasecmp.h has included <stddef.h> and all we need is size_t.
85505         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85506         our interface, instead of including <sys/types.h>
85507
85508 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85509
85510         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85511         now, as glibc mktime is buggy on non-glibc systems.
85512
85513 2003-06-03  Karl Berry  <karl@gnu.org>
85514
85515         * config/config.sub: update from prep.
85516
85517 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85518
85519         [from coreutils]
85520         Fix some minor time-related bugs with POSIX time arguments.
85521         Some valid time stamps were being rejected (notably -1, and
85522         time stamps before 1900 on 64-bit hosts).  And some invalid
85523         time stamps were being accepted, e.g. September 31.
85524
85525         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85526         that we can return (time_t) -1 successfully.
85527         * lib/posixtm.c: Likewise.
85528         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85529         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85530         (t): Remove static var.
85531         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85532         of static var.  All uses changed.
85533         (year): Do not reject years before 1900; they can occur with
85534         64-bit time_t.
85535         (posix_time_parse): Do not check for out-of-range components;
85536         that is now the caller's responsibility, since our checks were
85537         only approximations.
85538         (posixtime): Use mktime to check for out-of-range components,
85539         since it knows them exactly.
85540         If mktime returns (time_t) -1, check whether an error actually occurred
85541         by invoking localtime on -1.
85542         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85543         posixtime failures better.
85544         Improve the test data (in comments only).
85545
85546 2003-06-02  Karl Berry  <karl@gnu.org>
85547
85548         * config/mkinstalldirs (version): new variable.
85549         (--version): new option.
85550         (usage): improve message.
85551
85552 2003-05-30  Karl Berry  <karl@gnu.org>
85553
85554         * lib/mktime.c: update from libc.
85555
85556 2003-05-30  Bruno Haible  <bruno@clisp.org>
85557
85558         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85559         * config/config.rpath: Upgrade to gettext-0.12.1.
85560
85561 2003-05-30  Bruno Haible  <bruno@clisp.org>
85562
85563         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85564         * m4/nls.m4: New file, from gettext-0.12.1.
85565         * m4/po.m4: New file, from gettext-0.12.1.
85566         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85567
85568 2003-05-30  Bruno Haible  <bruno@clisp.org>
85569
85570         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85571         * lib/localcharset.h: Likewise.
85572         * lib/localcharset.c: Likewise.
85573
85574 2003-05-29  Karl Berry  <karl@gnu.org>
85575
85576         * config/config.rpath: update from gettext.
85577
85578 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85579
85580         Assume the headers required for C89 freestanding compilers.
85581         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85582         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85583         * m4/human.m4 (gl_HUMAN): Likewise.
85584         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85585         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85586         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85587         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85588         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85589         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85590
85591 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85592
85593         Assume the headers required for C89 freestanding compilers.
85594         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85595         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85596         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85597         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85598         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85599         define, since <limits.h> is guaranteed to do that.
85600         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85601         * lib/exclude.c: Include <stdbool.h> unconditionally.
85602         * lib/tempname.c: Include <stddef.h> unconditionally.
85603         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85604         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85605         <stddef.h> does that.
85606         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85607         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85608         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85609         needed.
85610         * lib/xstrtol.c: Likewise.
85611         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85612         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85613
85614         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85615         warnings on some platforms.
85616
85617         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85618         arbitrarily.
85619
85620 2003-05-26  Jim Meyering  <jim@meyering.net>
85621
85622         Merge in a change from coreutils:
85623         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85624         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85625         that condition, rather than `-1' which is slightly misleading.
85626         Change the name of the cache variable to have the gl_ prefix.
85627         Prompted by a patch from Richard Dawe for DJGPP.
85628
85629 2003-05-24  Karl Berry  <karl@gnu.org>
85630
85631         * config/config.guess: update from prep.
85632
85633 2003-05-22  Karl Berry  <karl@gnu.org>
85634
85635         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85636
85637 2003-05-20  Karl Berry  <karl@gnu.org>
85638
85639         * config/config.guess: update from prep.
85640
85641 2003-05-18  Karl Berry  <karl@gnu.org>
85642
85643         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85644         might actually be set by the user.
85645
85646         * config/depcomp, install-sh, mdate-sh: update from automake.
85647
85648 2003-05-17  Bruno Haible  <bruno@clisp.org>
85649
85650         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85651         invalid expansion for AC_EGREP_CPP.
85652         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85653         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85654         Suggested by Akim Demaille <akim@epita.fr> in
85655         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85656
85657 2003-05-12  Jim Meyering  <jim@meyering.net>
85658
85659         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85660         the space-padded-by-default conversion specifiers, %e, %k, %l.
85661
85662 2003-05-12  Bruno Haible  <bruno@clisp.org>
85663
85664         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85665         the string is longer than 4 KB.
85666
85667 2003-05-11  Karl Berry  <karl@gnu.org>
85668
85669         * config/config.{guess,sub}: update from prep.
85670
85671 2003-05-09  Bruno Haible  <bruno@clisp.org>
85672
85673         * modules/error: Add m4/strerror_r.m4 to file list.
85674
85675 2003-05-03  Bruno Haible  <bruno@clisp.org>
85676
85677         Upgrade to Unicode-4.0.
85678         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85679         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85680         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85681         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85682         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85683         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85684         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85685         Change width of U+E0100..U+E01EF from 1 to 0.
85686
85687 2003-04-25  Jim Meyering  <jim@meyering.net>
85688
85689         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85690         of type size_t, not int.
85691
85692 2003-04-25  Bruno Haible  <bruno@clisp.org>
85693
85694         * lib/copy-file.c: Include <stddef.h>, for size_t.
85695
85696 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85697
85698         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85699         code which expansion is under static control.  Patch imported from
85700         Akim Demaille's patch to Bison; see
85701         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85702
85703 2003-04-14  Bruno Haible  <bruno@clisp.org>
85704
85705         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85706
85707 2003-04-11  Jim Meyering  <jim@meyering.net>
85708
85709         Merge changes from Coreutils.
85710
85711         2003-03-22  Jim Meyering  <jim@meyering.net>
85712
85713         * lib/strftime.c (widen): Cast alloca return value to proper type.
85714
85715         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85716
85717         From GNU libc.
85718         * lib/strftime.c (my_strftime): Handle very large width
85719         specifications for numeric values correctly.  Improve checks for
85720         overflow.
85721
85722         2003-01-19  Jim Meyering  <jim@meyering.net>
85723
85724         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85725         definitions.
85726         (nl_get_alt_digit) [! defined my_strftime]: Define.
85727         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85728         _nl_get_alt_digit and _nl_get_walt_digit.
85729
85730         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85731         libc. These changes have no effect outside of _LIBC.
85732
85733 2003-04-10  Bruno Haible  <bruno@clisp.org>
85734
85735         * modules/findprog: New file.
85736         * MODULES.html.sh (func_all_modules): Add it.
85737
85738 2003-04-10  Bruno Haible  <bruno@clisp.org>
85739
85740         * m4/findprog.m4: New file.
85741         * m4/eaccess.m4: New file.
85742
85743 2003-04-10  Bruno Haible  <bruno@clisp.org>
85744
85745         * lib/findprog.h: New file, from GNU gettext.
85746         * lib/findprog.c: New file, from GNU gettext.
85747
85748 2003-04-05  Jim Meyering  <jim@meyering.net>
85749
85750         Merge changes from Coreutils.
85751
85752         * lib/exclude.h (PARAMS): Remove definition and uses.
85753         * lib/exclude.c: Remove uses of `PARAMS'.
85754
85755         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85756         Add test-cases for DOS filenames. Declare program_name.
85757         (main): Set up program_name.  Patch by Rich Dawe.
85758
85759         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85760         error from mntctl.
85761         Use mntctl's return value to drive the entry-processing loop, since
85762         we can't rely on the value of the vmt_length member in the last
85763         entry.  On some systems doing so could result in exhausting
85764         virtual memory.  Based in part on a patch from Mike Jetzer.
85765
85766 2003-04-04  Bruno Haible  <bruno@clisp.org>
85767
85768         * modules/linebreak: New file.
85769         * MODULES.html.sh (func_all_modules): Add it.
85770
85771 2003-04-04  Bruno Haible  <bruno@clisp.org>
85772
85773         * m4/linebreak.m4: New file.
85774
85775 2003-04-04  Bruno Haible  <bruno@clisp.org>
85776
85777         * lib/linebreak.h: New file, from GNU gettext.
85778         * lib/linebreak.c: New file, from GNU gettext with slight
85779         modifications.
85780         * lib/lbrkprop.h: New file, from GNU gettext.
85781
85782 2003-04-03  Bruno Haible  <bruno@clisp.org>
85783
85784         * modules/utf8-ucs4: New file.
85785         * modules/utf16-ucs4: New file.
85786         * modules/ucs4-utf8: New file.
85787         * modules/ucs4-utf16: New file.
85788         * MODULES.html.sh (func_all_modules): Add them.
85789
85790 2003-04-03  Bruno Haible  <bruno@clisp.org>
85791
85792         * m4/utf-ucs4.m4: New file.
85793         * m4/ucs4-utf.m4: New file.
85794
85795 2003-04-03  Bruno Haible  <bruno@clisp.org>
85796
85797         * lib/utf8-ucs4.h: New file, from GNU gettext.
85798         * lib/utf16-ucs4.h: New file, from GNU gettext.
85799         * lib/ucs4-utf8.h: New file, from GNU gettext.
85800         * lib/ucs4-utf16.h: New file, from GNU gettext.
85801
85802 2003-04-02  Bruno Haible  <bruno@clisp.org>
85803
85804         * modules/binary-io: New file.
85805         * MODULES.html.sh (func_all_modules): Add it.
85806
85807 2003-04-02  Bruno Haible  <bruno@clisp.org>
85808
85809         * lib/binary-io.h: New file, from GNU gettext.
85810
85811 2003-04-01  Bruno Haible  <bruno@clisp.org>
85812
85813         * modules/pathname: New file.
85814         * MODULES.html.sh (func_all_modules): Add it.
85815
85816 2003-04-01  Bruno Haible  <bruno@clisp.org>
85817
85818         * lib/pathname.h: New file, from GNU gettext.
85819         * lib/concatpath.c: New file, from GNU gettext.
85820
85821 2003-03-30  Bruno Haible  <bruno@clisp.org>
85822
85823         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85824
85825 2003-03-30  Bruno Haible  <bruno@clisp.org>
85826
85827         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85828         function chown() doesn't exist.
85829
85830 2003-03-28  Bruno Haible  <bruno@clisp.org>
85831
85832         * modules/copy-file: New file.
85833         * MODULES.html.sh (func_all_modules): Add it.
85834
85835 2003-03-28  Bruno Haible  <bruno@clisp.org>
85836
85837         * m4/copy-file.m4: New file.
85838
85839 2003-03-28  Bruno Haible  <bruno@clisp.org>
85840
85841         * lib/copy-file.h: New file, from GNU gettext.
85842         * lib/copy-file.c: New file, from GNU gettext.
85843
85844 2003-03-18  Jim Meyering  <jim@meyering.net>
85845
85846         * lib/quote.c (quote_n): Fix typo in comment.
85847
85848 2003-03-18  Bruno Haible  <bruno@clisp.org>
85849
85850         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85851         checking.
85852         * m4/onceonly_2_57.m4: Likewise.
85853
85854 2003-03-17  Bruno Haible  <bruno@clisp.org>
85855
85856         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85857         (m4_quote): Remove macro.
85858         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85859
85860 2003-03-14  Jim Meyering  <jim@meyering.net>
85861
85862         Merge changes from Coreutils.
85863         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85864         to be const, in order to avoid warnings.
85865         (obstack_room): Likewise.
85866         (obstack_empty_p): Likewise.
85867
85868 2003-03-14  Bruno Haible  <bruno@clisp.org>
85869
85870         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85871         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85872
85873 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85874
85875         Merge changes from Bison.
85876         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85877         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85878         when compiling Bison 1.875's `bitset bset = obstack_alloc
85879         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85880         * lib/hash.c: Include <stdbool.h> unconditionally.
85881
85882 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85883
85884         * m4/onceonly.m4 (m4_quote): New macro.
85885         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85886         Quote AC_FOREACH variable-expansions properly.
85887
85888 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85889
85890         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85891
85892 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85893
85894         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85895         Reported by Bruce Becker; see:
85896         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85897
85898 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85899             Bruno Haible  <bruno@clisp.org>
85900
85901         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85902         Reported by John Hughes, see
85903         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85904
85905 2003-02-20  Bruno Haible  <bruno@clisp.org>
85906
85907         * MODULES.html.sh (func_all_modules): Add poll.
85908
85909 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85910
85911         * modules/poll: New file.
85912
85913 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85914
85915         * lib/poll_.h: New file.
85916         * lib/poll.c: New file.
85917
85918 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85919
85920         * m4/poll.m4: New file.
85921
85922 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85923
85924         * modules/mathl: New file.
85925
85926 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85927
85928         * lib/mathl.h: New file.
85929         * lib/acosl.c: New file.
85930         * lib/asinl.c: New file.
85931         * lib/atanl.c: New file.
85932         * lib/ceill.c: New file.
85933         * lib/cosl.c: New file.
85934         * lib/expl.c: New file.
85935         * lib/floorl.c: New file.
85936         * lib/frexpl.c: New file.
85937         * lib/ldexpl.c: New file.
85938         * lib/logl.c: New file.
85939         * lib/sincosl.c: New file.
85940         * lib/sinl.c: New file.
85941         * lib/sqrtl.c: New file.
85942         * lib/tanl.c: New file.
85943         * lib/trigl.c: New file.
85944         * lib/trigl.h: New file.
85945
85946 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85947
85948         * m4/mathl.m4: New file.
85949
85950 2003-02-18  Bruno Haible  <bruno@clisp.org>
85951
85952         * MODULES.html.sh (func_all_modules): Add mathl.
85953
85954 2003-02-17  Bruno Haible  <bruno@clisp.org>
85955
85956         * modules/mkdtemp: New module.
85957         * MODULES.html.sh (func_all_modules): Add it.
85958
85959 2003-02-17  Bruno Haible  <bruno@clisp.org>
85960
85961         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85962
85963 2003-02-17  Bruno Haible  <bruno@clisp.org>
85964
85965         * lib/mkdtemp.h: New file, from GNU gettext.
85966         * lib/mkdtemp.c: New file, from GNU gettext.
85967
85968 2003-02-02  Jim Meyering  <jim@meyering.net>
85969
85970         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85971         e.g. glibc-2.2.93.
85972
85973 2003-01-31  Bruno Haible  <bruno@clisp.org>
85974
85975         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85976         'rpl_rename'.
85977         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85978         'rpl_strnlen'.
85979         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85980         'rpl_strtod'.
85981         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85982         'rpl_utime'.
85983
85984 2003-01-31  Bruno Haible  <bruno@clisp.org>
85985
85986         * lib/rename.c: #undef rename before defining rpl_rename.
85987         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85988
85989 2003-01-30  Bruno Haible  <bruno@clisp.org>
85990
85991         * modules/vasnprintf, modules/vasprintf: New modules.
85992         * MODULES.html.sh (func_all_modules): Add them.
85993
85994 2003-01-30  Bruno Haible  <bruno@clisp.org>
85995
85996         * m4/signed.m4: New file, from GNU gettext.
85997         * m4/longdouble.m4: New file, from GNU gettext.
85998         * m4/wchar_t.m4: New file, from GNU gettext.
85999         * m4/wint_t.m4: New file, from GNU gettext.
86000         * m4/vasnprintf.m4: New file.
86001         * m4/vasprintf.m4: New file.
86002
86003 2003-01-30  Bruno Haible  <bruno@clisp.org>
86004
86005         * lib/printf-args.h: New file, from GNU gettext.
86006         * lib/printf-args.c: New file, from GNU gettext.
86007         * lib/printf-parse.h: New file, from GNU gettext.
86008         * lib/printf-parse.c: New file, from GNU gettext.
86009         * lib/vasnprintf.h: New file, from GNU gettext.
86010         * lib/vasnprintf.c: New file, from GNU gettext.
86011         * lib/asnprintf.c: New file, from GNU gettext.
86012         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86013         * lib/vasprintf.c: New file, from GNU gettext.
86014         * lib/asprintf.c: New file, from GNU gettext.
86015
86016 2003-01-29  Bruno Haible  <bruno@clisp.org>
86017
86018         * modules/stpncpy: New module.
86019         * MODULES.html.sh (func_all_modules): Add it.
86020
86021 2003-01-29  Bruno Haible  <bruno@clisp.org>
86022
86023         * m4/stpncpy.m4: New file.
86024
86025 2003-01-29  Bruno Haible  <bruno@clisp.org>
86026
86027         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86028         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86029
86030 2003-01-28  Bruno Haible  <bruno@clisp.org>
86031
86032         * modules/c-ctype: New module.
86033         * MODULES.html.sh (func_all_modules): Add it.
86034
86035 2003-01-28  Bruno Haible  <bruno@clisp.org>
86036
86037         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86038         Paul Eggert.
86039         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86040         Paul Eggert.
86041
86042 2003-01-27  Bruno Haible  <bruno@clisp.org>
86043
86044         * modules/xsetenv: New module.
86045         * MODULES.html.sh (func_all_modules): Add it.
86046
86047 2003-01-27  Bruno Haible  <bruno@clisp.org>
86048
86049         * lib/xsetenv.h: New file, from GNU gettext.
86050         * lib/xsetenv.c: New file, from GNU gettext.
86051
86052 2003-01-23  Jim Meyering  <jim@meyering.net>
86053
86054         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86055         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86056
86057 2003-01-23  Bruno Haible  <bruno@clisp.org>
86058
86059         * modules/minmax: New module.
86060         * MODULES.html.sh (func_all_modules): Add it.
86061
86062 2003-01-23  Bruno Haible  <bruno@clisp.org>
86063
86064         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86065         Eggert.
86066
86067 2003-01-22  Bruno Haible  <bruno@clisp.org>
86068
86069         * modules/exit: New module.
86070         * MODULES.html.sh (func_all_modules): Add it.
86071
86072 2003-01-22  Bruno Haible  <bruno@clisp.org>
86073
86074         * lib/exit.h: New file, from GNU gettext.
86075
86076 2003-01-19  Bruno Haible  <bruno@clisp.org>
86077
86078         * gnulib-tool: Recognize option --extract-maintainer.
86079         (func_get_maintainer): New function.
86080         * modules/*: Add Maintainer entry.
86081
86082 2003-01-16  Jim Meyering  <jim@meyering.net>
86083
86084         * m4/regex.m4: The `regex' struct is both input and output.
86085         Initialize it before each use.  Patch by Tim Waugh.
86086
86087 2003-01-16  Bruno Haible  <bruno@clisp.org>
86088
86089         * MODULES.html.sh: Add a table of contents. Add the module name as
86090         leftmost column. Add hyperlinks.
86091
86092 2003-01-15  Bruno Haible  <bruno@clisp.org>
86093
86094         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86095
86096 2003-01-15  Bruno Haible  <bruno@clisp.org>
86097
86098         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86099         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86100         suffix.
86101
86102 2003-01-15  Bruno Haible  <bruno@clisp.org>
86103
86104         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86105
86106 2003-01-15  Bruno Haible  <bruno@clisp.org>
86107
86108         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86109         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86110
86111 2003-01-14  Jim Meyering  <jim@meyering.net>
86112
86113         * lib/same.c (same_name): Tweak a comment.
86114
86115 2003-01-14  Bruno Haible  <bruno@clisp.org>
86116
86117         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86118         when a string comparison is sufficient.
86119
86120 2003-01-14  Bruno Haible  <bruno@clisp.org>
86121
86122         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86123         'unsigned int'.
86124
86125 2003-01-14  Bruno Haible  <bruno@clisp.org>
86126
86127         * lib/hash-pjw.c: Add comment about low quality of this function.
86128
86129 2003-01-13  Bruno Haible  <bruno@clisp.org>
86130
86131         * modules/stpcpy: Distribute lib/stpcpy.h.
86132         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86133
86134 2003-01-13  Bruno Haible  <bruno@clisp.org>
86135
86136         * modules/*: Add a description.
86137         * modules/strpbrk: Fix Makefile.am snippet.
86138         * modules/strtoimax: Fix dependencies.
86139         * modules/strtoumax: Likewise.
86140
86141 2003-01-13  Bruno Haible  <bruno@clisp.org>
86142
86143         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86144         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86145         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86146
86147 2003-01-13  Bruno Haible  <bruno@clisp.org>
86148
86149         * gnulib-tool (func_create_testdir): Store config/* files in the main
86150         directory.
86151         * config.rpath: Move to ...
86152         * config/config.rpath: ... here.
86153         * modules/gettext: Contains config/config.rpath, not config.rpath.
86154         * modules/iconv: Likewise.
86155
86156 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86157
86158         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86159         to avoid collisions with libcurses and libreadline.
86160
86161         * m4/getstr.m4: Remove.
86162         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86163
86164 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86165
86166         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86167         to avoid collisions with libcurses and libreadline.
86168
86169         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86170         * lib/getstr.h, getstr.c: Remove.
86171         * lib/getline.c: Include "getline.h", to check interface.
86172         Move body of old getstr.c here: this defines MIN_CHUNK and
86173         declares getdelim2, which is renamed from getstr.
86174         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86175
86176         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86177         All uses changed.
86178         * lib/linebuffer.h: Likewise.
86179         (readline): Remove backward-compatibility macro.
86180
86181 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86182
86183         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86184         to avoid collisions with libcurses and libreadline.
86185         * getstr: Remove.
86186         * MODULES.html.sh: Remove getstr.
86187         * modules/getline: Depend on unlocked-io, not getstr.
86188
86189 2003-01-12  Jim Meyering  <jim@meyering.net>
86190
86191         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86192
86193 2003-01-10  Bruno Haible  <bruno@clisp.org>
86194
86195         * modules/alloca: Change Makefile.am requirements. Simplify Include
86196         requirements. Add lib/alloca_.h to file list.
86197
86198 2003-01-10  Bruno Haible  <bruno@clisp.org>
86199
86200         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86201
86202 2003-01-10  Bruno Haible  <bruno@clisp.org>
86203
86204         * lib/alloca_.h: New file.
86205         * lib/getdate.y: Unconditionally include alloca.h.
86206         * lib/makepath.c: Likewise.
86207         * lib/setenv.c: Likewise.
86208         * lib/userspec.c: Likewise.
86209
86210 2003-01-09  Karl Berry  <karl@gnu.org>
86211
86212         * MODULES.html.sh: include `dirname $0` in PATH, to find
86213         gnulib-tool.
86214
86215 2003-01-09  Bruno Haible  <bruno@clisp.org>
86216
86217         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86218         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86219
86220 2003-01-09  Bruno Haible  <bruno@clisp.org>
86221
86222         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86223
86224 2003-01-09  Bruno Haible  <bruno@clisp.org>
86225
86226         * lib/stdbool.h.in: New file.
86227
86228 2003-01-09  Bruno Haible  <bruno@clisp.org>
86229
86230         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86231         * MODULES.html.sh: Likewise.
86232
86233 2003-01-08  Jim Meyering  <jim@meyering.net>
86234
86235         * lib/full-write.c: Undefine and define-away `const' after inclusion
86236         of errno.h, not before.  Suggestion from Bruno Haible.
86237
86238 2003-01-08  Bruno Haible  <bruno@clisp.org>
86239
86240         * modules/full-read: Depend on full-write.
86241
86242 2003-01-08  Bruno Haible  <bruno@clisp.org>
86243
86244         * lib/safe-read.c: Include specification header first, to ensure its
86245         selfcontainedness.
86246         * lib/full-write.c: Likewise.
86247
86248 2003-01-07  Jim Meyering  <jim@meyering.net>
86249
86250         * lib/full-write.c: Rework so that it may serve to define full_read,
86251         too.
86252         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
86253
86254 2003-01-07  Bruno Haible  <bruno@clisp.org>
86255
86256         * lib/strtoimax.c: Include <stdint.h> as an alternative to
86257         <inttypes.h>.
86258         * lib/xstrtol.h: Likewise.
86259         * lib/xstrtoimax.c: Likewise.
86260         * lib/xstrtoumax.c: Likewise.
86261         * lib/human.h: Likewise.
86262
86263         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
86264         on systems that have <inttypes.h> but not <stdint.h>.
86265
86266 2003-01-07  Bruno Haible  <bruno@clisp.org>
86267
86268         * MODULES.html.sh: Add copyright notice.
86269         (missed_files): Omit CVS directory entries.
86270         (func_module): Make it work with sed-3.02.
86271         * MODULES.txt: Remove file.
86272
86273 2003-01-06  Jim Meyering  <jim@meyering.net>
86274
86275         * lib/version-etc.c: Update year in translatable copyright string.
86276
86277 2003-01-03  Karl Berry  <karl@gnu.org>
86278
86279         * config/config.{guess,sub}: update from prep.
86280
86281 2003-01-02  Karl Berry  <karl@gnu.org>
86282
86283         * doc/COPYING.DOC: belatedly updated to 1.2.
86284
86285 2003-01-01  Karl Berry  <karl@gnu.org>
86286
86287         * gnulib-tool (func_verify_module): report module name $module in
86288         error message, not $1.
86289         * gnulib-tool (create-testdir): don't complain if destdir couldn't
86290         be created, only if it doesn't exist.
86291         * gnulib-tool (last_checkin_date): don't expand the $Date here.
86292
86293 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86294
86295         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
86296
86297 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86298
86299         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
86300         memcmp if strcoll doesn't work.
86301
86302 2002-12-31  Bruno Haible  <bruno@clisp.org>
86303
86304         * lib/utime.c (utime_null): No need to call ftruncate if the file was
86305         nonempty.
86306
86307 2002-12-31  Bruno Haible  <bruno@clisp.org>
86308
86309         * lib/memcoll.c (STRCOLL): New macro.
86310         (memcoll): Use it.
86311
86312 2002-12-31  Bruno Haible  <bruno@clisp.org>
86313
86314         * lib/localcharset.h: New file.
86315         * lib/localcharset.c: Include it.
86316         * lib/unicodeio.c: Likewise.
86317
86318 2002-12-31  Bruno Haible  <bruno@clisp.org>
86319
86320         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
86321         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
86322
86323 2002-12-31  Bruno Haible  <bruno@clisp.org>
86324
86325         * lib/getline.h: Include <stddef.h>, for size_t.
86326
86327         * lib/unicodeio.h: Include <stddef.h>, for size_t.
86328         * lib/unicodeio.c: Don't include <stddef.h>.
86329
86330 2002-12-31  Bruno Haible  <bruno@clisp.org>
86331
86332         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
86333         HAVE_TM_ZONE.
86334
86335 2002-12-24  Karl Berry  <karl@gnu.org>
86336
86337         * config/config.guess: update from prep.
86338
86339 2002-12-24  Bruno Haible  <bruno@clisp.org>
86340
86341         General infrasructure.
86342         * m4/README: Rewritten.
86343         * m4/onceonly.m4: New file.
86344         * m4/onceonly_2_57.m4: New file.
86345
86346         Module atexit.
86347         * m4/atexit.m4: New file.
86348
86349         Module strtod.
86350         * m4/strtod.m4: New file.
86351
86352         Module strtol.
86353         * m4/strtol.m4: New file.
86354
86355         Module strtoul.
86356         * m4/strtoul.m4: New file.
86357
86358         Module memchr.
86359         * m4/memchr.m4: New file.
86360
86361         Module memcmp.
86362         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
86363         (jm_FUNC_MEMCMP): Invoke it.
86364
86365         Module memcpy.
86366         * m4/memcpy.m4: New file.
86367
86368         Module memmove.
86369         * m4/memmove.m4: New file.
86370
86371         Module memset.
86372         * m4/memset.m4: New file.
86373
86374         Module strcspn.
86375         * m4/strcspn.m4: New file.
86376
86377         Module strpbrk.
86378         * m4/strpbrk.m4: New file.
86379
86380         Module strstr.
86381         * m4/strstr.m4: New file.
86382
86383         Module strerror.
86384         * m4/strerror.m4: New file.
86385
86386         Module mktime.
86387         * m4/mktime.m4: Renamed from jm-mktime.m4.
86388         (gl_PREREQ_MKTIME): New macro.
86389         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86390
86391         Module malloc.
86392         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86393         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86394         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86395
86396         Module realloc.
86397         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86398         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86399         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86400
86401         Module strftime.
86402         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86403         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86404         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86405         gl_TM_GMTOFF.
86406         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86407
86408         Module xalloc.
86409         * m4/xalloc.m4: New file.
86410
86411         Module alloca.
86412         * m4/alloca.m4: New file.
86413
86414         Module putenv.
86415         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86416         (jm_FUNC_PUTENV): Invoke it.
86417
86418         Module setenv.
86419         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86420         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86421         when invoked twice.
86422         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86423         gt_FUNC_SETENV.
86424
86425         Module memrchr.
86426         * m4/memrchr.m4: New file.
86427
86428         Module stpcpy.
86429         * m4/stpcpy.m4: New file.
86430
86431         Module strcase.
86432         * m4/strcase.m4: New file.
86433
86434         Module strdup.
86435         * m4/strdup.m4: New file.
86436
86437         Module strnlen.
86438         * m4/strnlen.m4: New file.
86439
86440         Module strndup.
86441         * m4/strndup.m4: New file.
86442
86443         Module xstrtod.
86444         * m4/xstrtod.m4: New file.
86445
86446         Module xstrtol.
86447         * m4/xstrtol.m4: New file.
86448
86449         Module getdate.
86450         * m4/getdate.m4: New file.
86451
86452         Module unlocked-io.
86453         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86454         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86455         * m4/jm-glibc-io.m4n: Remove file.
86456
86457         Module long-options.
86458         * m4/long-options.m4: New file.
86459
86460         Module md5.
86461         * m4/md5.m4: New file.
86462
86463         Module sha.
86464         * m4/sha.m4: New file.
86465
86466         Module getstr.
86467         * m4/getstr.m4: New file.
86468
86469         Module getline.
86470         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86471         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86472         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86473         simply getline. Infoke gl_PREREQ_GETLINE.
86474
86475         Module obstack.
86476         * m4/obstack.m4: New file.
86477
86478         Module hash.
86479         * m4/hash.m4: New file.
86480
86481         Module readtokens.
86482         * m4/readtokens.m4: New file.
86483
86484         Module strverscmp.
86485         * m4/strverscmp.m4: New file.
86486
86487         Module stdbool.
86488         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86489         OSF/1.
86490
86491         Module strtoll.
86492         * m4/strtoll.m4: New file.
86493
86494         Module strtoull.
86495         * m4/strtoull.m4: New file.
86496
86497         Module strtoimax.
86498         * m4/strtoimax.m4: New file.
86499
86500         Module strtoumax.
86501         * m4/strtoumax.m4: New file.
86502
86503         Module xstrtoimax.
86504         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86505         jm_AC_PREREQ_XSTRTOIMAX.
86506         Moved the strtol prerequisites to strtol.m4.
86507         Moved the strtoll prerequisites to strtoll.m4.
86508         Moved the strtoimax prerequisites to strtoimax.m4.
86509
86510         Module xstrtoumax.
86511         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86512         jm_AC_PREREQ_XSTRTOUMAX.
86513         Moved the strtoul prerequisites to strtoul.m4.
86514         Moved the strtoull prerequisites to strtoull.m4.
86515         Moved the strtoumax prerequisites to strtoumax.m4.
86516
86517         Module chown.
86518         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86519         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86520
86521         Module dup2.
86522         * m4/dup2.m4: New file.
86523
86524         Module ftruncate.
86525         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86526         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86527
86528         Module getgroups.
86529         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86530         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86531
86532         Module gettimeofday.
86533         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86534         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86535         gl_PREREQ_GETTIMEOFDAY.
86536
86537         Module mkdir.
86538         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86539         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86540
86541         Module mkstemp.
86542         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86543         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86544         jm_AC_TYPE_UINTMAX_T.
86545         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86546
86547         Module stat.
86548         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86549         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86550
86551         Module lstat.
86552         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86553         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86554
86555         Module timespec.
86556         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86557         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86558         * m4/st_mtim.m4: Indentation.
86559
86560         Module nanosleep.
86561         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86562         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86563         gl_PREREQ_NANOSLEEP.
86564
86565         Module regex.
86566         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86567         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86568         (gl_REGEX): New macro.
86569
86570         Module rename.
86571         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86572         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86573
86574         Module rmdir.
86575         * m4/rmdir.m4: New file.
86576
86577         Module utime.
86578         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86579         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86580         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86581
86582         Module dirname.
86583         * m4/dirname.m4: New file.
86584
86585         Module getopt.
86586         * m4/getopt.m4: New file.
86587
86588         Module unistd-safer.
86589         * m4/unistd-safer.m4: New file.
86590
86591         Module fnmatch.
86592         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86593         declaration.
86594         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86595         (gl_FUNC_FNMATCH_POSIX): New macro.
86596         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86597         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86598         simply fnmatch.
86599
86600         Module exclude.
86601         * m4/exclude.m4: New file.
86602
86603         Module human.
86604         * m4/human.m4: New file.
86605
86606         Module acl.
86607         * m4/acl.m4: Nop.
86608
86609         Module backupfile.
86610         * m4/backupfile.m4: New file.
86611         * m4/d-ino.m4: Indentation.
86612
86613         Module fsusage.
86614         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86615         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86616         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86617
86618         Module dirfd.
86619         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86620         requirements.
86621
86622         Module euidaccess.
86623         * m4/euidaccess.m4: New file.
86624
86625         Module file-type.
86626         * m4/file-type.m4: New file.
86627
86628         Module fileblocks.
86629         * m4/fileblocks.m4: New file.
86630
86631         Module filemode.
86632         * m4/filemode.m4: New file.
86633
86634         Module isdir.
86635         * m4/isdir.m4: New file.
86636
86637         Module lchown.
86638         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86639         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86640
86641         Module makepath.
86642         * m4/makepath.m4: New file.
86643
86644         Module modechange.
86645         * m4/modechange.m4: New file.
86646
86647         Module mountlist.
86648         * m4/mountlist.m4: New file.
86649         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86650         Indentation.
86651
86652         Module path-concat.
86653         * m4/path-concat.m4: New file.
86654
86655         Module pathmax.
86656         * m4/pathmax.m4: New file.
86657
86658         Module same.
86659         * m4/same.m4: New file.
86660
86661         Module save-cwd.
86662         * m4/save-cwd.m4: New file.
86663
86664         Module savedir.
86665         * m4/savedir.m4: New file.
86666
86667         Module xgetcwd.
86668         * m4/xgetcwd.m4: New file.
86669         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86670
86671         Module xreadlink.
86672         * m4/xreadlink.m4: New file.
86673
86674         Module safe-read.
86675         * m4/safe-read.m4: New file.
86676
86677         Module safe-write.
86678         * m4/safe-write.m4: New file.
86679
86680         Module closeout.
86681         * m4/closeout.m4: New file.
86682
86683         Module stdio-safer.
86684         * m4/stdio-safer.m4: New file.
86685
86686         Module getpass.
86687         * m4/getpass.m4: New file.
86688
86689         Module getugroups.
86690         * m4/getugroups.m4: New file.
86691
86692         Module group-member.
86693         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86694         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86695
86696         Module idcache.
86697         * m4/idcache.m4: New file.
86698
86699         Module userspec.
86700         * m4/userspec.m4: New file.
86701
86702         Module gettime.
86703         * m4/clock_time.m4: New file.
86704         * m4/gettime.m4: New file.
86705
86706         Module settime.
86707         * m4/settime.m4: New file.
86708
86709         Module posixtm.
86710         * m4/posixtm.m4: New file.
86711
86712         Module gethostname.
86713         * m4/gethostname.m4: New file.
86714
86715         Module canon-host.
86716         * m4/canon-host.m4: New file.
86717
86718         Module gettext.
86719         * m4/codeset.m4: New file, from gettext-0.11.5.
86720         * m4/gettext.m4: New file, from gettext-0.11.5.
86721         * m4/glibc21.m4: New file, from gettext-0.11.5.
86722         * m4/iconv.m4: New file, from gettext-0.11.5.
86723         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86724         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86725         * m4/inttypes.m4: New file, from gettext-0.11.5.
86726         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86727         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86728         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86729         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86730         * m4/lib-link.m4: New file, from gettext-0.11.5.
86731         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86732         * m4/progtest.m4: New file, from gettext-0.11.5.
86733         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86734         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86735         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86736
86737         Module localcharset.
86738         * m4/localcharset.m4: New file.
86739
86740         Module hard-locale.
86741         * m4/hard-locale.m4: New file.
86742
86743         Module mbswidth.
86744         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86745         onceonly macros.
86746         * m4/mbrtowc.m4: Add comment.
86747
86748         Module memcasecmp.
86749         * m4/memcasecmp.m4: New file.
86750
86751         Module memcoll.
86752         * m4/memcoll.m4: New file.
86753
86754         Module unicodeio.
86755         * m4/unicodeio.m4: New file.
86756
86757         Module rpmatch.
86758         * m4/rpmatch.m4: New file.
86759
86760         Module yesno.
86761         * m4/yesno.m4: New file.
86762
86763         Module exitfail.
86764         * m4/exitfail.m4: New file.
86765
86766         Module c-stack.
86767         * m4/c-stack.m4 (gl_C_STACK): New macro.
86768         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86769
86770         Module error.
86771         * m4/error.m4 (gl_ERROR): New macro.
86772         (jm_PREREQ_ERROR): Use onceonly macros.
86773
86774         Module fatal.
86775         * m4/fatal.m4: New file.
86776
86777         Module getloadavg.
86778         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86779         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86780
86781         Module getpagesize.
86782         * m4/getpagesize.m4: New file.
86783
86784         Module getusershell.
86785         * m4/getusershell.m4: New file.
86786
86787         Module physmem.
86788         * m4/physmem.m4: New file.
86789
86790         Module posixver.
86791         * m4/posixver.m4: New file.
86792
86793         Module quotearg.
86794         * m4/quotearg.m4: New file.
86795
86796         Module quote.
86797         * m4/quote.m4: New file.
86798
86799         Module readutmp.
86800         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86801
86802         Module sig2str.
86803         * m4/sig2str.m4: New file.
86804
86805         Other.
86806         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86807         ulonglong.m4.
86808         * m4/intmax_t.m4: New file.
86809         * m4/d-type.m4: Indentation.
86810         * m4/jm-macros.m4: Update.
86811         * m4/prereq.m4 (jm_PREREQ): Update.
86812         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86813         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86814         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86815         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86816         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86817         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86818         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86819         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86820         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86821         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86822         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86823         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86824         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86825         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86826         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86827         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86828         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86829         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86830         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86831
86832 2002-12-24  Bruno Haible  <bruno@clisp.org>
86833
86834         * MODULES.txt: Update according to m4/ changes.
86835
86836         Module gettext.
86837         * config.rpath: New file, from gettext-0.11.5.
86838
86839         * modules/*: New module descriptions.
86840         * gnulib-tool: New file.
86841         * MODULES.html.sh: New file.
86842
86843 2002-12-21  Karl Berry  <karl@gnu.org>
86844
86845         * doc/fdl.texi: update to version 1.2.
86846
86847 2002-12-19  Karl Berry  <karl@gnu.org>
86848
86849         * config/config.guess: update from prep.
86850
86851 2002-12-18  Bruno Haible  <bruno@clisp.org>
86852
86853         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86854         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86855
86856 2002-12-17  Bruno Haible  <bruno@clisp.org>
86857
86858         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86859         stdlib.h, string.h.
86860
86861 2002-12-17  Bruno Haible  <bruno@clisp.org>
86862
86863         * lib/canon-host.c (strdup): Remove unused declaration.
86864
86865         * lib/fsusage.c: Include full_read.h.
86866         (get_fs_usage): Use full_read instead of safe_read.
86867
86868         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86869
86870 2002-12-12  Karl Berry  <karl@gnu.org>
86871
86872         * config/config.guess: update from prep.
86873
86874 2002-12-11  Bruno Haible  <bruno@clisp.org>
86875
86876         * m4/setenv.m4: New file, from gettext-0.11.5.
86877
86878 2002-12-11  Bruno Haible  <bruno@clisp.org>
86879
86880         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86881         not unsetenv().
86882         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86883         modifications:
86884
86885         2002-12-11  Bruno Haible  <bruno@clisp.org>
86886
86887                 * setenv.c (alloca): Fall back to malloc.
86888                 (freea): New macro.
86889                 (setenv): Use freea() to free memory allocated with alloca().
86890
86891         2002-11-13  Bruno Haible  <bruno@clisp.org>
86892
86893                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86894                 function declarations.
86895                 * unsetenv.c (unsetenv): Likewise.
86896
86897         2002-03-04  Bruno Haible  <bruno@clisp.org>
86898
86899                 Portability to AIX 4.3.3.
86900                 * unsetenv.c: New file, extracted from setenv.c.
86901                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86902
86903         2001-12-20  Bruno Haible  <bruno@clisp.org>
86904
86905                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86906                 use malloc instead. For SunOS 4.
86907
86908         2001-12-11  Bruno Haible  <bruno@clisp.org>
86909
86910                 * setenv.c: Declare alloca.
86911                 (compar_fn_t): New typedef.
86912                 (KNOWN_VALUE, STORE_VALUE): Use it.
86913
86914         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86915         setenv.h.
86916
86917 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86918
86919         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86920         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86921         Choose values that are less likely to collide with system fnmatch
86922         options.
86923         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86924         defined (e.g., a pure POSIX system).
86925         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86926         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86927
86928 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86929
86930         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86931         a pain in practice to deal with generated m4 files.  This change
86932         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86933
86934         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86935         and jm-glibc-io.m4, as they are no longer a special case.
86936         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86937         kludge and the auto-generation stuff.  Check only whether the
86938         functions are declared, not whether they exist, since older hosts
86939         that don't declare the functions can't use the optimization anyway.
86940
86941 2002-12-06  Jim Meyering  <jim@meyering.net>
86942
86943         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86944
86945         Merge in changes from libc's misc/error.c, in preparation
86946         for the merge of gnulib's changes back into libc.
86947
86948         * lib/error.c (_): Define only if not already defined.
86949         Move definition to follow all #include directives.
86950         Include unlocked-io.h only if !_LIBC.
86951         [_LIBC]: Include <libio/libioP.h>.
86952         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86953         (fflush): Tweak definition to use INTUSE.
86954         (putc): Define.
86955
86956 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86957
86958         * lib/alloca.c [defined emacs]: Include "lisp.h".
86959         (xalloc_die) [defined emacs]: New macro.
86960         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86961         [! defined emacs]: Include <xalloc.h>.
86962         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86963         (pointer): Typedef to POINTER_TYPE *.
86964         (malloc): Remove decl; we now always use xmalloc.
86965         (alloca): Use old-style definition, since Emacs needs this.
86966         Check for arithmetic overflow when computing combined size.
86967
86968 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86969
86970         Do not generate unlocked-io.h automatically, since it's easier to
86971         maintain it by hand.
86972
86973         * lib/unlocked-io.h: New file, from GNU diffutils,
86974         but with proper copyright notice and attribution.
86975         * lib/gen-uio: Remove.
86976         * lib/Makefile.am: Add copyright notice.
86977         (libfetish_a_SOURCES): Add unlocked-io.h.
86978         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86979         (DISTCLEANFILES, io_functions): Remove macros.
86980         (EXTRA_DIST): Remove gen_uio.
86981         (unlocked-io.h): Remove rule.
86982
86983 2002-12-04  Jim Meyering  <jim@meyering.net>
86984
86985         Reflect the fact that stat.c and lstat.c are no longer generated.
86986         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86987         (DISTCLEANFILES): Likewise.
86988         (EXTRA_DIST): Likewise.
86989         (all_local): Don't depend on stat.c or lstat.c.
86990         (stat.c, lstat.c): Remove rules.
86991         (EXTRA_DIST): Remove xstat.in.
86992
86993         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86994         * lib/stat.c: New file.  Contents mostly from xstat.in.
86995         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86996         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86997
86998         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86999         too.
87000         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87001
87002 2002-12-03  Jim Meyering  <jim@meyering.net>
87003
87004         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87005         but not semantics, to minimize the differences between these two files.
87006         (safe_read): Change comment to mention SAFE_READ_ERROR.
87007
87008         * lib/safe-read.c (IS_EINTR): Define.
87009         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87010
87011 2002-12-02  Jim Meyering  <jim@meyering.net>
87012
87013         * lib/safe-read.c (EINTR): Define.
87014         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87015         (INT_MAX): Provide fallback.
87016         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87017
87018         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87019
87020 2002-12-02  Bruno Haible  <bruno@clisp.org>
87021
87022         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87023         Define, taken from safe-read.c.
87024         (INT_MAX): Provide fallback.
87025         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87026         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87027
87028         * lib/safe-read.c (EINTR): Remove definition.
87029         (safe_read): Don't use EINTR if it is absent.
87030
87031 2002-12-01  Jim Meyering  <jim@meyering.net>
87032
87033         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87034         zero.
87035         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87036
87037 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87038
87039         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87040         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87041         with `if (! (value < limit)) abort ();', for readability.
87042
87043 2002-11-26  Karl Berry  <karl@gnu.org>
87044
87045         * lib/strdup.c: copy from libc again, with jim's ok.
87046         * lib/.cppi-disable: re-add strdup.c
87047
87048 2002-11-25  Karl Berry  <karl@gnu.org>
87049
87050         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87051         instead of "strtol.c".
87052
87053 2002-11-25  Karl Berry  <karl@gnu.org>
87054
87055         * config/install-sh: update from automake for variable quoting, $0 in
87056         error msgs, etc.
87057
87058         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87059         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87060         entry.
87061
87062 2002-11-25  Jim Meyering  <jim@meyering.net>
87063
87064         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87065
87066 2002-11-24  Karl Berry  <karl@gnu.org>
87067
87068         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87069         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87070
87071 2002-11-24  Jim Meyering  <jim@meyering.net>
87072
87073         Update from coreutils:
87074
87075         * lib/mktime.c: Merge in changes from libc.
87076
87077         Avoid a link-time failure on some Linux systems.
87078         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87079         (otherwise).
87080         (__mon_yday): Declare with the STATIC attribute.
87081         (__mktime_internal): Likewise.
87082         Based on a report from Greg Schafer.
87083
87084 2002-11-23  Jim Meyering  <jim@meyering.net>
87085
87086         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87087         Use `unsigned', not `int', as type of index.
87088
87089         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87090
87091         * lib/fsusage.c: Remove unneeded parentheses around operands of
87092         `defined'.
87093
87094 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87095
87096         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87097         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87098         so that we can be included first.
87099         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87100         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87101         No need to include stddef.h or sys/types.h any more.
87102         Surround local include files with "", not "<>".
87103         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87104         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87105         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87106         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87107         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87108         (ISPRINT): Remove; no longer needed now that we assume C89.
87109
87110         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87111         Preserve errno.
87112
87113         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87114         quotearg_char): Use SIZE_MAX rather than
87115         (size_t) -1 when we are talking about "infinity".
87116
87117         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87118
87119 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87120
87121         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87122         hint that one should use `if (! x) abort ();' rather than `assert
87123         (x);', and anyway it's one less thing to worry about configuring.
87124         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87125         hash_rehash, hash_insert): Use abort rather than assert.
87126
87127 2002-11-22  Bruno Haible  <bruno@clisp.org>
87128
87129         * lib/safe-read.h: Assume C89. Add comments.
87130         (safe_read): Change return type to size_t.
87131         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87132         byte counts > SSIZE_MAX correctly.
87133         * lib/safe-write.h: New file.
87134         * lib/safe-write.c: New file.
87135         * lib/full-read.h: New file.
87136         * lib/full-read.c: New file.
87137         * lib/full-write.h: Assume C89. Add comments.
87138         * lib/full-write.c: Include safe-write.h.
87139         (full_write): Rewritten to use safe_write.
87140         Suggested by Jim Meyering and Paul Eggert.
87141
87142 2002-11-21  Jim Meyering  <jim@meyering.net>
87143
87144         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87145
87146         Merge in changes from the coreutils.
87147
87148         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87149         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87150         <stdint.h>.
87151         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87152         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87153         int.  Work more efficiently if X is the same width as uintmax_t.
87154         Do not compare X to -1, to avoid bogus compiler warning.
87155         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87156         Don't assume that f_frsize and f_bsize are the same type.
87157
87158         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87159         warning on FreeBSD.
87160
87161         * lib/makepath.c (make_path): Restore umask *before* creating the final
87162         component.
87163         (make_path): Minor reformatting.
87164
87165         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87166         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87167         HAVE_MALLOC/HAVE_REALLOC.
87168
87169         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87170         dummy ones.  At least on GNU/Linux systems, `auto' means something
87171         else.
87172         From Michael Stone.
87173
87174 2002-11-21  Bruno Haible  <bruno@clisp.org>
87175
87176         Remove case insensitive option matching.
87177         * lib/argmatch.h (argcasematch): Remove declaration.
87178         (ARGCASEMATCH): Remove macro.
87179         (__xargmatch_internal): Remove case_sensitive argument.
87180         (XARGMATCH): Update.
87181         (XARGCASEMATCH): Remove macro.
87182         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87183         case_sensitive argument.
87184         (argcasematch): Remove function.
87185         (__xargmatch_internal): Remove case_sensitive argument.
87186         (main): Use XARGMATCH instead of XARGCASEMATCH.
87187
87188         * lib/xmalloc.c: Change compile-time error message. Add comment about
87189         required autoconf version.
87190
87191 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87192
87193         Merge argmatch cleanups from Bison.  Assume C89.
87194
87195         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87196         Include stdlib.h, for EXIT_FAILURE.
87197         Always include <string.h>, since we assume C89.
87198         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87199         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87200         Include <stddef.h> instead, since it's all we need for size_t.
87201         (PARAMS): Remove.  All uses removed.
87202         (ARRAY_CARDINALITY): Do not bother to #undef.
87203         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87204         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87205         Remove unnecessary parentheses.
87206         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87207         Insert necessary parentheses.
87208         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87209         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87210
87211 2002-11-19  Bruno Haible  <bruno@clisp.org>
87212
87213         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87214         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87215
87216         * lib/mbswidth.h (PARAMS): Remove macro.
87217         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87218         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87219
87220         * lib/gcd.h (PARAMS): Remove macro.
87221         (gcd): Use ANSI C function declarations.
87222         * lib/gcd.c (gcd): Likewise.
87223
87224 2002-11-15  Bruno Haible  <bruno@clisp.org>
87225
87226         * lib/strcspn.c: Include <stddef.h>.
87227         (strcspn): Use ANSI C function declaration. Change return type to
87228         size_t. Use NULL.
87229         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87230         (strpbrk): Use NULL.
87231         * lib/strpbrk.h (PARAMS): Remove macro.
87232         (strpbrk): Use ANSI C function declaration.
87233         * lib/strstr.c: Don't include <sys/types.h>.
87234         * lib/strstr.h (PARAMS): Remove macro.
87235         (strstr): Use ANSI C function declarations.
87236
87237 2002-11-14  Karl Berry  <karl@gnu.org>
87238
87239         * config/mkinstalldirs: `do' on separate line, instead of
87240         `for var; do'.
87241
87242 2002-11-06  Bruno Haible  <bruno@clisp.org>
87243
87244         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
87245         * lib/gcd.c (gcd): Likewise.
87246
87247 2002-11-05  Bruno Haible  <bruno@clisp.org>
87248
87249         * lib/gcd.h: New file, from gettext-0.11.5.
87250         * lib/gcd.c: New file, from gettext-0.11.5.
87251
87252 2002-11-05  Bruno Haible  <bruno@clisp.org>
87253
87254         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87255         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87256         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87257         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87258
87259         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
87260         <libintl.h>.
87261         * lib/makepath.c: Include gettext.h instead of <locale.h> and
87262         <libintl.h>.
87263
87264         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
87265         * lib/human.c: Include gettext.h instead of <libintl.h>.
87266         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
87267         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
87268         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
87269         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
87270         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
87271         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
87272         (textdomain): Remove definition.
87273         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
87274
87275         * lib/long-options.c: Remove include of <libintl.h> and definition of
87276         _.
87277         * lib/same.c: Remove include of <libintl.h> and definition of _.
87278
87279 2002-11-04  Owen Taylor  <otaylor@redhat.com>
87280
87281         * lib/config.charset: A few additions for Solaris.
87282
87283 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87284
87285         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
87286         * lib/localcharset.c (locale_charset): Declare as extern "C".
87287
87288 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87289
87290         * lib/config.charset: msdos in uk_UA uses CP1125.
87291
87292 2002-11-04  Bruno Haible  <bruno@clisp.org>
87293
87294         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
87295         * lib/strcase.h: New file, from GNU gettext-0.11.5.
87296         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
87297         * lib/strstr.h: New file, from GNU gettext-0.11.5.
87298         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
87299
87300 2002-11-04  Bruno Haible  <bruno@clisp.org>
87301
87302         * lib/localcharset.c (locale_charset): Don't return an empty string.
87303
87304 2002-11-04  Bruno Haible  <bruno@clisp.org>
87305
87306         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
87307         aliases.
87308
87309 2002-11-04  Bruno Haible  <bruno@clisp.org>
87310
87311         * lib/config.charset: Update for newest glibc. Add canonical names
87312         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
87313
87314 2002-11-04  Bruno Haible  <bruno@clisp.org>
87315
87316         * lib/config.charset: Add support for NetBSD.
87317
87318 2002-11-04  Bruno Haible  <bruno@clisp.org>
87319
87320         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
87321
87322 2002-11-01  Bruno Haible  <bruno@clisp.org>
87323
87324         * configure.in: Add AC_CONFIG_AUX_DIR call.
87325         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
87326         test/Makefile.
87327         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
87328
87329 2002-09-28  Karl Berry  <karl@gnu.org>
87330
87331         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
87332         installed automake until the next release, since changes have been
87333         made.
87334
87335 2002-09-25  Karl Berry  <karl@gnu.org>
87336
87337         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
87338         * lib/getopt*: copy from libc/posix.
87339         * lib/gettext.h: copy from gettext.
87340         * lib/.cppi-disable: add strdup.c, gettext.h.
87341
87342 2002-09-25  Karl Berry  <karl@gnu.org>
87343
87344         * config/srclist.txt: enable gettext.h check.
87345         * config/config.{guess,sub}: update from prep.
87346         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
87347                 from automake 1.6.3.
87348         See srclist*.
87349
87350 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
87351
87352         * regex.c (PATFETCH): Remove the translating fetch.
87353         (PATFETCH_RAW): Rename to PATFETCH.
87354         (set_image_of_range): New fun.
87355         (SET_RANGE_TABLE_WORK_AREA): Use it.
87356         (regex_compile): Don't translate the pattern chars so eagerly.
87357         Only do it when inserting an `exactn' bytecode or when handling
87358         a char-range.
87359         (mutually_exclusive_p): Avoid empty statement.
87360
87361 2002-07-06  Jim Meyering  <meyering@lucent.com>
87362
87363         * m4/README: Don't mention Makefile.am.in.
87364         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
87365
87366 2002-07-01  Jim Meyering  <meyering@lucent.com>
87367
87368         * lib/c-stack.c: Include sys/time.h.
87369         From Volker Borchert.
87370
87371 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87372
87373         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87374
87375 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87376
87377         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87378         New macro.  Use it uniformly instead of
87379         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87380         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87381         reported by Vin Shelton.
87382
87383 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87384
87385         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
87386         Do not assume SA_SIGINFO behavior.
87387         Bug reported by Jim Meyering on NetBSD 1.5.2.
87388
87389 2002-06-22  Jim Meyering  <meyering@lucent.com>
87390
87391         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87392         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87393
87394         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87395         now that configure.ac uses AC_GNU_SOURCE.
87396         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87397         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87398
87399         Update to latest tools.  Suggestions from Paul Eggert.
87400         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87401         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87402         * m4/fnmatch.m4: Likewise.
87403         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87404         to AC_HEADER_STDBOOL
87405
87406 2002-06-22  Jim Meyering  <meyering@lucent.com>
87407
87408         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87409         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87410
87411 2002-06-22  Jim Meyering  <meyering@lucent.com>
87412
87413         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87414
87415         * lib/exitfail.c, exitfail.h: Likewise.
87416         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87417
87418         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87419         of fnmatch.h.
87420         (EXTRA_DIST): Add fnmatch_loop.c.
87421         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87422
87423         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87424         * lib/fnmatch.c: Update from diffutils-2.8.2.
87425         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87426         * lib/fnmatch.h: Remove file.
87427
87428 2002-06-21  Jim Meyering  <meyering@lucent.com>
87429
87430         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87431         * m4/mbrtowc.m4: Likewise.
87432
87433         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87434         * m4/mbswidth.m4: Reflect name change:
87435         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87436         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87437
87438         * m4/lib-link.m4: Update from gettext-0.11.2.
87439         * m4/gettext.m4: Likewise.
87440
87441         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87442         From Alfred M. Szmidt.
87443
87444 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87445
87446         * lib/file-type.h: Report an error if neither S_ISREG nor
87447         S_IFREG is defined, instead of using a test specific to glibc
87448         2.2.  This should be safe, since POSIX requires S_ISREG and
87449         Unix Version 7 had S_IFREG.  We don't need to check for
87450         <sys/types.h> since we don't use any symbols that it defines.
87451
87452 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87453
87454         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87455         $@-t, so that each temporary file name is unique and valid in the first
87456         8 characters, for operation under DOS.
87457
87458 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87459
87460         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87461
87462 2002-06-15  Jim Meyering  <meyering@lucent.com>
87463
87464         Work even with DJGPP 2.03, which lacks support for symlinks.
87465         From Richard Dawe.
87466         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87467         is defined.
87468         * lib/lchown.c (S_ISLNK): Likewise.
87469
87470 2002-06-15  Jim Meyering  <meyering@lucent.com>
87471
87472         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87473         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87474         have been included before this file.
87475
87476 2002-06-14  Jim Meyering  <meyering@lucent.com>
87477
87478         * lib/file-type.h: Use the version from diffutils-2.8.2.
87479         * lib/file-type.c: Likewise.
87480
87481 2002-06-07  Jim Meyering  <meyering@lucent.com>
87482
87483         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87484         They're needed at least for NetBSD 1.5.2.
87485         ($statxfs_includes): Include those same headers.
87486         ($statxfs_includes): Include sys/vfs.h if available.
87487         ($statxfs_includes): Likewise for sys/statvfs.h.
87488         Check for the following members in both structs statfs and statvfs:
87489         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87490
87491 2002-06-01  Jim Meyering  <meyering@lucent.com>
87492
87493         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87494         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87495
87496 2002-05-28  Jim Meyering  <meyering@lucent.com>
87497
87498         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87499         Reported by Volker Borchert.
87500
87501 2002-05-27  Jim Meyering  <meyering@lucent.com>
87502
87503         Fix a problem seen only on nonconforming systems whereby ls.c's
87504         use of localtime, and then of gettimeofday would cause trouble:
87505         the localtime call used to initialize rpl_gettimeofday's save
87506         mechanism would clobber ls's current local time information so
87507         that in any long listing the first file would always be listed
87508         with date 1970-01-01.  Analysis by Volker Borchert.
87509
87510         * lib/gettimeofday.c (localtime): Undefine.
87511         (rpl_localtime): New function.
87512
87513 2002-05-27  Jim Meyering  <meyering@lucent.com>
87514
87515         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87516         localtime.
87517
87518         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87519         use the replacement function; it wouldn't resolve at link time.
87520         Reported by Volker Borchert.
87521
87522 2002-05-22  Jim Meyering  <meyering@lucent.com>
87523
87524         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87525         file-type.h.
87526         * lib/file-type.h: New file.
87527         * lib/file-type.c (file_type): New file/function.  Extracted from
87528         diffutils.
87529
87530 2002-04-30  Jim Meyering  <meyering@lucent.com>
87531
87532         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87533
87534 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87535
87536         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87537
87538 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87539
87540         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87541         Do not check for alloca.h (no longer used) or stdbool.h (was never
87542         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87543
87544 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87545
87546         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87547
87548 2002-04-29  Jim Meyering  <meyering@lucent.com>
87549
87550         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87551         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87552         Use AC_FUNC_STRNLEN here instead.
87553
87554         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87555         With autoconf-2.53a, it's part of AC_PROG_CC.
87556
87557 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87558
87559         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87560         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87561
87562 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87563
87564         * lib/sig2str.h, lib/sig2str.c: New files.
87565         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87566
87567 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87568
87569         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87570         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87571         of 127, since 64 is the largest conceivable number for ancient
87572         nonstandard hosts.
87573         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87574
87575 2002-04-28  Jim Meyering  <meyering@lucent.com>
87576
87577         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87578
87579 2002-04-24  Jim Meyering  <meyering@lucent.com>
87580
87581         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87582         (jm_PREREQ): Use it.
87583
87584         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87585         mach/mach.h fcntl.h.
87586         Check for this function: setlocale.
87587
87588 2002-04-24  Jim Meyering  <meyering@lucent.com>
87589
87590         * lib/gettext.h: New file, from Gettext.
87591         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87592         (libfetish_a_SOURCES): Add gettext.h.
87593
87594 2002-04-16  Jim Meyering  <meyering@lucent.com>
87595
87596         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87597         ut_pid, ut_id, ut_exit.
87598
87599 2002-04-16  Jim Meyering  <meyering@lucent.com>
87600
87601         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87602         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87603         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87604
87605 2002-04-12  Jim Meyering  <meyering@lucent.com>
87606
87607         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87608         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87609         existence of the getmntinfo function.  Needed for Darwin 5.3.
87610
87611         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87612         This is necessary at least on Darwin 5.3.
87613
87614         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87615         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87616         strnlen.o in the library, and that makes some versions of ranlib
87617         object.
87618
87619 2002-04-12  Jim Meyering  <meyering@lucent.com>
87620
87621         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87622
87623 2002-04-09  Jim Meyering  <meyering@lucent.com>
87624
87625         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87626         to be more precise.  Rather than saying we're checking whether the
87627         function `works', say what we're testing.
87628         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87629         Reported by Bruno Haible.
87630
87631 2002-03-10  Jim Meyering  <meyering@lucent.com>
87632
87633         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87634         Suggestion from Santiago Vila.
87635
87636 2002-03-08  Jim Meyering  <meyering@lucent.com>
87637
87638         * lib/rename.c: Mention that this wrapper is needed also on
87639         mips-dec-ultrix4.4 systems.
87640
87641 2002-03-02  Jim Meyering  <meyering@lucent.com>
87642
87643         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87644         not HAVE_CLOCK_SETTIME.
87645
87646 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87647
87648         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87649         Check for clock_settime.
87650
87651 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87652
87653         * lib/nanosleep.h: Rename to....
87654         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87655
87656         * lib/gettime.c: New file.
87657         * lib/settime.c: New file.
87658         * lib/stime.c: Remove.
87659
87660         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87661         timespec.h.  Remove nanosleep.h.
87662
87663 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87664
87665         * m4/acl.m4: New file.
87666         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87667         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87668
87669 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87670
87671         * lib/acl.c, lib/acl.h: New files.
87672         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87673
87674 2002-02-24  Jim Meyering  <meyering@lucent.com>
87675
87676         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87677         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87678         cause trouble.  Reported by Nelson Beebe.
87679
87680 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87681
87682         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87683         compilers that don't know that xalloc_die never returns.
87684
87685 2002-02-20  Jim Meyering  <meyering@lucent.com>
87686
87687         * lib/getdate.c: Regenerate using bison-1.33.
87688
87689 2002-02-17  Jim Meyering  <meyering@lucent.com>
87690
87691         * config/config.guess (main): Don't use `head -1'; it's no longer
87692         portable. Use `sed 1q' instead.
87693
87694 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87695
87696         * m4/codeset.m4: Upgrade to gettext-0.11.
87697         * m4/gettext.m4: Upgrade to gettext-0.11.
87698         * m4/glibc21.m4: Upgrade to gettext-0.11.
87699         * m4/iconv.m4: Upgrade to gettext-0.11.
87700         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87701         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87702         * m4/lib-ld.m4: New file, from gettext-0.11.
87703         * m4/lib-link.m4: New file, from gettext-0.11.
87704         * m4/lib-prefix.m4: New file, from gettext-0.11.
87705         * m4/progtest.m4: Upgrade to gettext-0.11.
87706
87707 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87708
87709         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87710         (jm_PREREQ): Use it.
87711
87712 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87713
87714         * lib/posixver.c, lib/posixver.h: New files.
87715         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87716
87717 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87718             Bruno Haible  <bruno@clisp.org>
87719
87720         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87721         (fwrite_success_callback): New declaration.
87722         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87723         print_unicode_char. Call failure callback instead of error.
87724         (fwrite_success_callback): New function.
87725         (exit_failure_callback): New function.
87726         (fallback_failure_callback): New function.
87727         (print_unicode_char): Call unicode_to_mb.
87728
87729 2002-01-26  Jim Meyering  <meyering@lucent.com>
87730
87731         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87732         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87733
87734 2002-01-26  Jim Meyering  <meyering@lucent.com>
87735
87736         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87737
87738 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87739
87740         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87741
87742 2002-01-22  Jim Meyering  <meyering@lucent.com>
87743
87744         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87745         Otherwise, some versions of automake would omit the rule that makes
87746         Makefile from Makefile.in.
87747
87748 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87749
87750         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87751         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87752         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87753         (memcoll): Set errno to zero if there is no error.
87754
87755         * lib/quotearg.c (quotearg_buffer_restyled):
87756         Fix bug with quoting buffers containing NUL when backslashing escapes.
87757         This bug was exposed by the other changes in this patch.
87758         (quotearg_n_options): New arg ARGSIZE.
87759         All callers changed.
87760         (quoting_options_from_style): New function.
87761         (quotearg_n_style): Use it.
87762         (quotearg_n_style_mem): New function.
87763
87764         * lib/quotearg.h (quotearg_n_style_mem): New function.
87765
87766 2002-01-19  Jim Meyering  <meyering@lucent.com>
87767
87768         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87769         Remove useless quotes: DF_PROG="df".
87770         * m4/strnlen.m4: New file.
87771
87772 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87773
87774         * lib/backupfile.c (ISDIGIT): Comment fix.
87775         * lib/getdate.y (ISDIGIT): Likewise.
87776         * lib/posixtm.c (ISDIGIT, year): Likewise.
87777         * lib/strverscmp.c (ISDIGIT): Likewise.
87778         * lib/userspec.c (ISDIGIT): Likewise.
87779
87780 2002-01-16  Jim Meyering  <meyering@lucent.com>
87781
87782         * lib/getdate.y: Add three semicolons, each just before a closing
87783         brace. Bison (as of version 1.31) no longer papers over that mistake.
87784
87785 2002-01-05  Jim Meyering  <meyering@lucent.com>
87786
87787         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87788
87789 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87790
87791         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87792         not silently exit merely because the output buffer happens to
87793         have nothing pending.
87794
87795 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87796
87797         See the big note in ../ChangeLog.
87798         * lib/human.c (suffixes): Prefer K to k for 1024.
87799         (generate_suffix_backwards): New function.
87800         (human_readable_inexact): Use it.
87801         * lib/xstrtol.c (__xstrtol): If there is no number but there
87802         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87803         Accept 'K' as well as 'k'.
87804
87805 2001-12-15  Jim Meyering  <meyering@lucent.com>
87806
87807         * lib/regex.h (__restrict_arr): Update from libc.
87808
87809         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87810         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87811         (STREQ): Define.
87812
87813 2001-12-14  Jim Meyering  <meyering@lucent.com>
87814
87815         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87816         Suggestion from Bruno Haible.
87817
87818 2001-12-10  Jim Meyering  <meyering@lucent.com>
87819
87820         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87821         xrealloc, Instead, include "xalloc.h".
87822         (initbuffer): Don't cast xmalloc return value to char*.
87823         (readline): Reword comment.
87824         Don't cast xrealloc return value to char*
87825         Return NULL, not 0.
87826
87827 2001-12-09  Jim Meyering  <meyering@lucent.com>
87828
87829         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87830         about `signed and unsigned type in conditional expression'.
87831         * lib/posixtm.c (posix_time_parse): Likewise.
87832
87833         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87834
87835         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87836         to avoid a pedantic warning.
87837
87838         * lib/getstr.c: Don't include assert.h.
87839         (getstr): Remove warning-evoking assertions.
87840         Return -1 if offset parameter is out of bounds.
87841         Change the type of a local from int to size_t.
87842
87843         * lib/strftime.c (my_strftime_localtime_r): Include this function
87844         definition in the `#if ! HAVE_TM_GMTOFF' block.
87845
87846         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87847         Include xalloc.h instead.
87848
87849 2001-12-02  Jim Meyering  <meyering@lucent.com>
87850
87851         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87852         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87853         included.
87854
87855         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87856         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87857
87858 2001-11-30  Akim Demaille  <akim@epita.fr>
87859
87860         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87861         before being defined.
87862
87863 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87864
87865         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87866         First arg is int, not unsigned.
87867         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87868         (SIZE_MAX, UINT_MAX): New macros.
87869         (quotearg_n_options): Abort if N is negative.
87870         Avoid overflow check on hosts where size_t is 64 bits and int
87871         is 32 bits, as overflow is impossible there.
87872         Fix off-by-one typo that caused unnecessary reallocation.
87873
87874 2001-11-27  Jim Meyering  <meyering@lucent.com>
87875
87876         * lib/tempname.c: Merge with version from libc.
87877         * lib/regex.c: Likewise.
87878
87879         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87880         systems for which STDC_HEADERS is 0, it was not included, resulting in
87881         a warning about an integer-to-pointer conversion problem with getenv.
87882         Reported by Volker Borchert.
87883
87884 2001-11-26  Jim Meyering  <meyering@lucent.com>
87885
87886         * lib/gtod.h: Remove file.
87887         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87888         * lib/gettimeofday.c: Don't include gtod.h.
87889         (GTOD_init): Remove function.
87890         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87891         Suggestion from Volker Borchert.
87892
87893 2001-11-23  Jim Meyering  <meyering@lucent.com>
87894
87895         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87896         it.
87897         * lib/hash.c (struct hash_table): Define it here instead.
87898
87899 2001-11-22  Jim Meyering  <meyering@lucent.com>
87900
87901         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87902
87903 2001-11-20  Jim Meyering  <meyering@lucent.com>
87904
87905         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87906         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87907
87908 2001-11-19  Jim Meyering  <meyering@lucent.com>
87909
87910         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87911         directory.  Use "conftestXXXXXX" as the template.
87912         Suggestion from Paul Eggert.
87913
87914         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87915         immediately, so the test doesn't mistakenly hit the max-open-files
87916         limit.
87917
87918 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87919
87920         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87921         (TEMPORARIES): New macro.
87922         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87923         removes an artificial limitation (e.g. HP-UX 10.20, where
87924         TMP_MAX is 17576).
87925
87926 2001-11-18  Jim Meyering  <meyering@lucent.com>
87927
87928         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87929
87930 2001-11-18  Jim Meyering  <meyering@lucent.com>
87931
87932         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87933         on SunOS 4.
87934
87935         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87936         files will be created before anything else.
87937
87938 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87939
87940         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87941         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87942
87943 2001-11-17  Jim Meyering  <meyering@lucent.com>
87944
87945         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87946         Prompted by a report from Bob Proulx.
87947
87948         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87949         Instead, require UTILS_FUNC_MKSTEMP.
87950
87951 2001-11-17  Jim Meyering  <meyering@lucent.com>
87952
87953         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87954         Now, that's done as part of AC_FUNC_STRTOD.
87955
87956 2001-11-17  Jim Meyering  <meyering@lucent.com>
87957
87958         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87959         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87960         rather than group writable.  Patch by Juan F. Codagnone.
87961
87962         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87963         xrealloc, Instead, include "xalloc.h".
87964
87965         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87966         Remove explicit declarations of xmalloc, xrealloc,
87967         and xstrdup.  Instead, include "xalloc.h".
87968
87969         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87970         unlocked-io.h.
87971         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87972         Likewise.
87973         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87974
87975         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87976         Reported by Padraig Brady.
87977
87978         * lib/mkstemp.c: #undef mkstemp.
87979         Include config.h.
87980         (rpl_mkstemp): Rename from mkstemp.
87981         Protoize.
87982
87983 2001-11-16  Jim Meyering  <meyering@lucent.com>
87984
87985         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87986         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87987         determine the amount of total physical memory, use pstat_getstatic.
87988         HPUX-11 doesn't define _SC_PHYS_PAGES.
87989         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87990         If sysconf couldn't be used to determine the amount of available
87991         physical memory, use both pstat_getstatic and pstat_getdynamic.
87992         Based on a patch from Bob Proulx.
87993
87994 2001-11-10  Jim Meyering  <meyering@lucent.com>
87995
87996         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87997         (jm_PREREQ): Use it.
87998
87999 2001-11-09  Jim Meyering  <meyering@lucent.com>
88000
88001         * m4/jm-macros.m4: Require autoconf-2.52f.
88002         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88003         Use these AC_-prefixed names, not the AM_-prefixed ones.
88004
88005         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88006
88007 2001-11-05  Jim Meyering  <meyering@lucent.com>
88008
88009         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88010
88011 2001-11-04  Jim Meyering  <meyering@lucent.com>
88012
88013         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88014         $DEFS.
88015
88016 2001-11-03  Jim Meyering  <meyering@lucent.com>
88017
88018         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88019         of AC_DEFUN.
88020
88021         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88022         know the name of the variable in the macro definition.
88023
88024 2001-11-03  Jim Meyering  <meyering@lucent.com>
88025
88026         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88027         in argmatch_to_argument call.
88028
88029         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88030         argument.
88031
88032         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88033         e.g., a fault due to an attempt to free a NULL pointer.
88034
88035 2001-11-01  Jim Meyering  <meyering@lucent.com>
88036
88037         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88038         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88039
88040 2001-11-01  Jim Meyering  <meyering@lucent.com>
88041
88042         * lib/dirfd.c, lib/dirfd.h: New files.
88043         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88044
88045         * lib/hash.c (hash_print) [TESTING]: Clean up.
88046
88047 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88048
88049         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88050         to avoid a warning if -Wall.
88051
88052 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88053
88054         * README: New file
88055         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88056         (per RMS's instructions, this is now the canonical source)
88057         * lgpl/, gpl/: New directories.
88058
88059 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88060
88061         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88062
88063 2001-10-21  Jim Meyering  <meyering@lucent.com>
88064
88065         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88066         this code would end up calling gettext even in packages built
88067         with --disable-nls.
88068         * lib/getopt.c (_): Likewise.
88069         * lib/regex.c (_): Likewise.
88070
88071 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88072
88073         * m4/error.m4 (jm_PREREQ_ERROR):
88074         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88075         AC_FUNC_STRERROR_R does that.
88076         Check for strerror declaration.
88077
88078         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88079         are supposed to have them these days.
88080         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88081         Merge changes from latest Autoconf CVS.
88082         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88083         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88084         POSIX decided to standardize on the int flavor of strerror_r.
88085
88086 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88087
88088         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88089         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88090         Use strerror_r that is only a macro, even if it is not a function.
88091         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88092         (private_strerror): Use prototypes, not old-style function definition.
88093         (print_errno_message): New function.
88094         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88095         char*-flavored one.
88096         (error_tail, error, error_at_line): Use it.
88097
88098 2001-10-11  Jim Meyering  <meyering@lucent.com>
88099
88100         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88101         and quote_n (1, ... to avoid clobbering a buffer.
88102
88103 2001-10-05  Jim Meyering  <meyering@lucent.com>
88104
88105         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88106         hash-pjw.h.
88107         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88108         * lib/hash-pjw.h: New file.
88109
88110 2001-09-30  Jim Meyering  <meyering@lucent.com>
88111
88112         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88113         `struct fsstat' has the `f_fstypename' member.
88114         Use that to define FS_TYPE, which is now used to make
88115         the getfsstat link test tighter.
88116
88117 2001-09-30  Jim Meyering  <meyering@lucent.com>
88118
88119         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88120         Include <sys/ucred.h>, for Apple Darwin.
88121         Include sys/mount.h and sys/fs_types.h only if available.
88122         (FS_TYPE): Define.
88123         (read_filesystem_list): Use FS_TYPE.
88124
88125 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88126
88127         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88128         a boolean context.
88129
88130 2001-09-29  Jim Meyering  <meyering@lucent.com>
88131
88132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88133         [one-argument getmntent function]): Include stdio.h before mntent.h.
88134         SunOS 4.1.x needs it for the declaration of `FILE'.
88135         Patch by Volker Borchert.
88136
88137         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88138         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88139         sys/fs_types.h, and make the link-test for getfsstat guard #include
88140         directives with appropriate #if HAVE_*_H tests so that we can
88141         detect getfsstat on Apple Darwin1.3.7 systems.
88142         Reported by Nelson Beebe.
88143         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88144
88145 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88146
88147         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88148         #defines strtoimax.  Also treat the other strto* functions
88149         like strtoimax.
88150
88151         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88152         Check for strtoul and strtoumax,
88153         as those declarations are made even in the signed case.
88154         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88155         Likewise, for strtol and strtoimax.
88156
88157 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88158
88159         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88160         #defines strtoimax.  Also treat the other strto* functions
88161         like strtoimax.
88162
88163         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88164         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88165         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88166
88167 2001-09-26  Jim Meyering  <meyering@lucent.com>
88168
88169         Most macros in unlocked-io.h had the wrong number of arguments.
88170         * lib/gen-uio: New script.
88171         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88172         * lib/unlocked-io.hin: Remove file.
88173         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88174         rather than trying to embed it here.
88175         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88176         Reported by Padraig Brady.
88177
88178 2001-09-25  Volker Borchert  <bt@teknon.de>
88179
88180         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88181         `result'.
88182
88183 2001-09-24  Jim Meyering  <meyering@lucent.com>
88184
88185         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88186
88187 2001-09-23  Jim Meyering  <meyering@lucent.com>
88188
88189         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88190         instead of the mere test for existence of mntent.h.  The latter
88191         would get a false-positive on AIX 3.4 systems.
88192         In the outer getmntent if-block, don't die if neither of the getmntent
88193         tests succeeds.  Instead, just fall through and continue with the
88194         remaining tests.
88195
88196 2001-09-23  Jim Meyering  <meyering@lucent.com>
88197
88198         * lib/mountlist.c: Remove useless parentheses in #if directives.
88199         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88200         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88201
88202 2001-09-22  Jim Meyering  <meyering@lucent.com>
88203
88204         * m4/gettext.m4: New file.  From gettext.
88205         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88206         * m4/progtest.m4: Likewise
88207         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88208         * m4/glibc21.m4: Likewise.
88209
88210         * m4/libintl.m4: Remove.  No longer used.
88211
88212 2001-09-22  Jim Meyering  <meyering@lucent.com>
88213
88214         * lib/localcharset.c: Update from latest gettext.
88215         * lib/config.charset: Likewise.
88216
88217 2001-09-20  Jim Meyering  <meyering@lucent.com>
88218
88219         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88220         strtoimax.
88221         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88222         strtoumax.
88223
88224 2001-09-20  Jim Meyering  <meyering@lucent.com>
88225
88226         * lib/xstrtol.c (strtoimax): Guard declaration with
88227         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88228         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88229         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88230         (strtoumax): Likewise, for completeness (it wasn't necessary).
88231
88232 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88233
88234         * lib/strtoimax.c (HAVE_LONG_LONG):
88235         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
88236         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
88237         to work around bug in IBM C compiler.
88238
88239 2001-09-17  Jim Meyering  <meyering@lucent.com>
88240
88241         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
88242         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
88243         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
88244         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
88245         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
88246         whenever the right hand side need not be expanded by the shell.
88247
88248 2001-09-16  Paul Eggert  <eggert@twinsun.com>
88249
88250         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
88251         library.  It's not correct, as some older glibcs are buggy.
88252         fnmatch wasn't fixed until glibc 2.2.
88253
88254         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
88255         special shell magic here.
88256
88257 2001-09-16  Jim Meyering  <meyering@lucent.com>
88258
88259         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
88260         * m4/jm-macros.m4: Require it.
88261
88262 2001-09-16  Jim Meyering  <meyering@lucent.com>
88263
88264         * lib/mkdir.c: New file.
88265
88266 2001-09-15  Jim Meyering  <meyering@lucent.com>
88267
88268         * m4/jm-macros.m4: Check for help2man.
88269
88270 2001-09-11  Jim Meyering  <meyering@lucent.com>
88271
88272         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
88273         The body, by Paul Eggert, was moved here from configure.in.
88274         * m4/jm-macros.m4: Require UTILS_HOST_OS.
88275
88276 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88277
88278         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
88279         (jm_PREREQ): Use it.
88280
88281 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88282
88283         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
88284         Use ssize_t, not int, to store result of readlink.
88285         Check for ssize_t overflow as well as size_t overflow,
88286         as POSIX says the result of readlink is implementation-defined
88287         when ssize_t overflows.
88288         Remove unnecessary cast to char*.
88289         Use free+malloc instead of realloc, as the storage doesn't need
88290         to be preserved and it's clearer and can be more efficient that way.
88291         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
88292         * lib/xreadlink.h (xreadlink): Update prototype.
88293
88294 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88295
88296         * lib/xgetcwd.c: Revert some of the previous change; intead,
88297         fix the HAVE_GETCWD_NULL code to behave more like the
88298         !HAVE_GETCWD_NULL code used to.
88299
88300         Include "xalloc.h".
88301         (xgetcwd): Do not return NULL when memory is exhausted; instead,
88302         invoke xalloc_die.
88303
88304 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88305
88306         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
88307         sys/param.h, as pathmax.h includes them.
88308
88309 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88310
88311         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
88312         (jm_PREREQ_XGETCWD): New macro.
88313
88314         * m4/getcwd.m4: New file.
88315
88316 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88317
88318         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
88319         like the HAVE_GETCWD_NULL code.
88320         Include pathmax.h if not HAVE_GETCWD.
88321         Do not include xalloc.h.
88322         (INITIAL_BUFFER_SIZE): New symbol.
88323         Do not use xmalloc / xrealloc, since the caller is responsible for
88324         handling errors.  Preserve errno around `free' during failure.
88325         Do not overrun buffer when using getwd.
88326
88327 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88328
88329         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
88330         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
88331         getcwd (NULL, 0).
88332
88333 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88334
88335         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
88336         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
88337         spotted by Jim Meyering.
88338
88339 2001-09-03  Jim Meyering  <meyering@lucent.com>
88340
88341         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
88342         failure.
88343
88344 2001-09-02  Jim Meyering  <meyering@lucent.com>
88345
88346         * lib/error.c: Update from GNU libc.
88347
88348 2001-09-01  Jim Meyering  <meyering@lucent.com>
88349
88350         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
88351         Used by df.
88352
88353 2001-09-01  Jim Meyering  <meyering@lucent.com>
88354
88355         * lib/xreadlink.c: New file.
88356         * lib/xreadlink.h: New file.
88357         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
88358         xreadlink.h.
88359
88360         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
88361         doesn't conflict with sparc Solaris 7's definition in
88362         /usr/include/sys/int_types.h.
88363
88364         * lib/exclude.c: Use `""', not `<>' to #include non-system header
88365         files.
88366         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88367         and strncasecmp as r-values.  Unixware didn't have declarations.
88368
88369 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88370
88371         * lib/xstrtol.h: Add copyright notice.
88372         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88373         LONGINT_INVALID_SUFFIX_CHAR.
88374
88375 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88376
88377         * lib/xstrtol.c (strtoimax): New decl.
88378
88379 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88380
88381         * lib/xgetcwd.c: Don't include pathmax.h.
88382         Include stdlib.h and unistd.h if available.
88383         Include xalloc.h.
88384         (xmalloc, xstrdup, free): Remove decls.
88385         (xgetcwd): Don't assume sizes fit in unsigned.
88386         Check for overflow when computing sizes.
88387         Simplify reallocation code.
88388
88389 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88390
88391         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88392         a directory's st_size can have an arbitrary value, so the old
88393         usage could waste an arbitrary amount of memory.  All uses
88394         changed.
88395         * lib/savedir.h: Update prototype.
88396
88397 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88398
88399         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88400
88401         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88402         old strtoimax.c.
88403
88404         Also, make the following further changes to make this file's
88405         configuration more similar to that of strtol.c:
88406         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88407         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88408         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88409         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88410         changed to signed values.
88411
88412         And make the following changes as well:
88413         Fix copyright notice, as 1999 was missing.
88414         (verify): New macro.
88415         (strtoimax): Check sizes at compile-time, not run-time.
88416         Prefer strtol to strtoll if both work.
88417         (main): Remove; it was not that useful and was a pain to maintain.
88418
88419         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88420
88421 2001-08-31  Jim Meyering  <meyering@lucent.com>
88422
88423         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88424         Use an initial, malloc'd, buffer of length 128 rather than
88425         a statically allocated one of length 1024.
88426
88427 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88428
88429         Simplify code, partly by assuming autoconf 2.52 semantics.
88430
88431         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88432
88433         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88434         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88435         All uses removed.
88436         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88437         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88438         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88439         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88440         jm_AC_HEADER_INTTYPES_H.
88441         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88442
88443         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88444
88445         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88446         Quote first arg of AC_DEFUN.
88447         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88448         since they are needed to parse the include file even if we need
88449         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88450         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88451         but with opposite signedness.
88452
88453 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88454
88455         Merge 'exclude' changes from tar 1.13.22.
88456         This fixes one or two unlikely storage allocation overflow bugs,
88457         but doesn't change user-visible behavior otherwise.
88458
88459 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88460
88461         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88462         (jm_PREREQ_EXCLUDE): New macro.
88463
88464 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88465
88466         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88467         tm to be declared.
88468
88469 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88470
88471         * lib/hash.c: Remove '2001' from copyright notice.
88472
88473 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88474
88475         * lib/full-write.h: New file.
88476         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88477         * lib/full-write.c: Correct credits, as cccp.c no longer
88478         exists and anyway it was so heavily changed from the old cccp
88479         code as to be unrecognizable.  Include full-write.h.
88480         (full_write): Return size_t, with short writes meaning failure.
88481         All callers changed.  This fixes a bug with large buffers
88482         on 64-bit hosts.
88483         * lib/utime.c: Include full-write.h.
88484
88485 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88486
88487         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88488         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88489         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88490         Include if available.
88491         (<xalloc.h>): Include
88492         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88493         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88494         collide with FNM macros.
88495         (struct patopts): New struct.
88496         (struct exclude): Use it, as exclude patterns now come with options.
88497         (new_exclude): Support above changes.
88498         (new_exclude, add_exclude_file):
88499         Initial size must now be a power of two to simplify overflow checking.
88500         (free_exclude, fnmatch_no_wildcards): New function.
88501         (excluded_filename): No longer requires options arg, as the options
88502         are determined by add_exclude.  Now returns bool, not int.
88503         (excluded_filename, add_exclude):
88504         Add support for the fancy new exclusion options.
88505         (add_exclude, add_exclude_file): Now takes int options arg.
88506         Check for arithmetic overflow when computing sizes.
88507         (add_exclude_file): xrealloc might modify errno, so don't
88508         realloc until after errno might be used.
88509
88510         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88511         New macros.
88512         (free_exclude): New decl.
88513         (add_exclude, add_exclude_file): Now takes int options arg.
88514         (excluded_filename): No longer requires options arg, as the options
88515         are determined by add_exclude.  Now returns bool, not int.
88516
88517 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88518
88519         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88520
88521 2001-08-27  Jim Meyering  <meyering@lucent.com>
88522
88523         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88524
88525         * lib/version-etc.c (N_): Remove definition.
88526         Revert most of last change.
88527         Instead, simply don't mark the `Copyright...' string for translation.
88528         Based on advice from Paul Eggert.
88529
88530         * lib/strtoxmax.c: Tweak comment.
88531
88532 2001-08-26  Jim Meyering  <meyering@lucent.com>
88533
88534         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88535
88536         * m4/xstrtoimax.m4: New file.
88537         * m4/xstrtoumax.m4: Add comments explaining why we
88538         AC_REPLACE_FUNCS(strtol).
88539
88540 2001-08-26  Jim Meyering  <meyering@lucent.com>
88541
88542         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88543         of copyright with `%s' so translators don't get an untranslated
88544         message in 2002.
88545         (COPYRIGHT_YEAR): Define.
88546         (version_etc): Use fprintf rather than fputs.
88547         Suggestion from Ulrich Drepper.
88548
88549         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88550
88551         * lib/strtoll.c: New file, from GNU libc.
88552         * lib/xstrtoimax.c: New file.
88553
88554         * lib/xstrtol.h: Add xstrtoimax.
88555         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88556         * lib/strtoimax.c: New file.  Likewise, but first define
88557         STRTOUXMAX_SIGNED.
88558
88559         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88560         ...
88561         * lib/strtoxmax.c: ... then renamed to this.
88562
88563 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88564
88565         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88566         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88567         (jm_AC_TYPE_INTMAX_T): New macro.
88568         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88569
88570         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88571
88572         * m4/longlong.m4: Renamed from ulonglong.m4.
88573         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88574         * m4/uintmax_t.m4: Removed.
88575
88576 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88577
88578         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88579         Port to Solaris 8, where 'sed' requires a space after the 'r'
88580         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88581         Redirect output to $tmp just once.
88582
88583 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88584
88585         * lib/addext.c (<errno.h>): Include.
88586         (errno): Declare if not defined.
88587         (addext): Work correctly when pathconf returns -1 and leaves
88588         errno alone because there is no limit.  Also, work even if
88589         pathconf returns a value greater than SIZE_MAX.
88590
88591 2001-08-12  Jim Meyering  <meyering@lucent.com>
88592
88593         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88594         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88595         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88596         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88597         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88598         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88599         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88600         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88601         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88602         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88603         utime.m4, utimes.m4, xstrtoumax.m4:
88604         Quote the first argument in each use of AC_DEFUN.
88605
88606 2001-08-12  Jim Meyering  <meyering@lucent.com>
88607
88608         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88609         Simply `return getcwd (NULL, 0);'.
88610         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88611         Use 1300 as initial value for length, not PATH_MAX.
88612
88613         * lib/pathmax.h: Clean up cpp syntax.
88614
88615 2001-08-12  Jim Meyering  <meyering@lucent.com>
88616
88617         * lib/gettimeofday.c: New file.
88618         * lib/gtod.h: New file.
88619         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88620
88621 2001-08-05  Jim Meyering  <meyering@lucent.com>
88622
88623         * m4/jm-macros.m4: Require autoconf-2.52.
88624
88625 2001-08-04  Jim Meyering  <meyering@lucent.com>
88626
88627         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88628         stmt, to get in sync with glibc.
88629
88630 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88631
88632         The following changes are from gettext 0.10.39 as maintained by
88633         Bruno Haible.
88634
88635         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88636         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88637         with inverted sense.  All uses changed.
88638
88639         * lib/mbswidth.c: Don't include <limits.h>.
88640         Include <stdlib.h> and <string.h> unconditionally.
88641         (iswcntrl, mbsinit, ISCNTRL): New macros.
88642         (mbsnwidth): Use K&R style function declarations.
88643         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88644         can optimize it when MB_CUR_MAX == 1.
88645         The width of control characters is zero, not 1.
88646
88647 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88648
88649         The following changes are from gettext 0.10.39 as maintained by
88650         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88651
88652         * m4/codeset.m4: Upgrade to serial AM1.
88653         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88654         all uses changed.  Quote first arg of AC_DEFUN.
88655         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88656
88657         * m4/iconv.m4: Upgrade to serial AM2.
88658         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88659         Add --with-libconv-prefix.
88660         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88661         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88662         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88663         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88664         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88665
88666         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88667         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88668         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88669         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88670         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88671         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88672         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88673         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88674         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88675
88676         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88677         string.h any more.
88678
88679         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88680         not the default value.
88681
88682         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88683         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88684         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88685         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88686         Also check for iswcntrl, used for wcwidth fallback.
88687         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88688         to Autoconf 2.13.
88689
88690 2001-08-03  Jim Meyering  <meyering@lucent.com>
88691
88692         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88693         as it was in the original.  Reported by Paul Eggert.
88694
88695 2001-07-16  Jim Meyering  <meyering@lucent.com>
88696
88697         * m4/gettimeofday.m4: New file.
88698         Prompted by a report from Bernhard Baehr.
88699
88700 2001-07-15  Jim Meyering  <meyering@lucent.com>
88701
88702         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88703         stuff. Now it's in ../Makefile.cfg.
88704
88705 2001-07-15  Jim Meyering  <meyering@lucent.com>
88706
88707         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88708         (BUILT_SOURCES): Add unlocked-io.h.
88709         (io_functions): Define.
88710         (unlocked-io.h): New rule.
88711         (DISTCLEANFILES): Add unlocked-io.h.
88712         (all-local): Depend on unlocked-io.h, to ensure it is created.
88713
88714         * lib/unlocked-io.hin: New file
88715
88716         * lib/regex.c: Update from glibc.
88717
88718 2001-07-05  Jim Meyering  <meyering@lucent.com>
88719
88720         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88721         recommendation.
88722         (libfetish_a_SOURCES): Put all .h files here instead.
88723         Remove a thus-exposed (better checks in automake) duplicate and
88724         two unnecessary .h files.
88725
88726 2001-07-04  Jim Meyering  <meyering@lucent.com>
88727
88728         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88729         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88730         distcheck failure.
88731
88732 2001-07-02  Jim Meyering  <meyering@lucent.com>
88733
88734         The following changes were prompted by suggestions from Bruno Haible.
88735
88736         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88737         is now generated.
88738         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88739         definition of EXTRA_DIST.
88740         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88741         ensure that the generated file is created/updated whenever the list
88742         of $(unlocked_functions) is changed.
88743         (jm-glibc-io.m4): New rule.
88744         (unlocked-io.h): New rule -- currently unused.
88745
88746 2001-06-24  Jim Meyering  <meyering@lucent.com>
88747
88748         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88749         unmatched right bracket, rather than kludging it with an extra,
88750         falsely-matching quote in a comment.  Patch by Akim Demaille.
88751
88752 2001-06-11  Jim Meyering  <meyering@lucent.com>
88753
88754         * lib/regex.c: Update from GNU libc.
88755
88756 2001-05-27  Jim Meyering  <meyering@lucent.com>
88757
88758         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88759         Check for ut_type in struct utmp.
88760
88761 2001-05-27  Jim Meyering  <meyering@lucent.com>
88762
88763         * lib/readutmp.h (UT_TYPE): Define.
88764
88765 2001-05-24  Jim Meyering  <meyering@lucent.com>
88766
88767         * lib/argmatch.c: Include "quote.h".
88768         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88769         quote function.  Reported by Göran Uddeborg.
88770
88771 2001-05-22  Jim Meyering  <meyering@lucent.com>
88772
88773         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88774         now that we use the package-supplied version unconditionally.
88775         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88776
88777 2001-05-21  Jim Meyering  <meyering@lucent.com>
88778
88779         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88780         shell syntax errors.
88781
88782 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88783
88784         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88785
88786 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88787
88788         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88789         Don't bother to check library strftime, since
88790         we'll be using our own my_strftime function anyway.
88791         Define my_strftime instead of strftime.
88792
88793 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88794
88795         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88796         which is not yet declared.
88797
88798 2001-05-15  Jim Meyering  <meyering@lucent.com>
88799
88800         * m4/regex.m4: Use proper quoting so brackets appear in the test
88801         program.
88802         Reported by, and with help from, Bruno Haible.
88803
88804 2001-05-13  Jim Meyering  <meyering@lucent.com>
88805
88806         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88807         undefined.
88808
88809 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88810
88811         dirname code cleanup.  base_name now behaves more compatibly
88812         with POSIX basename when given file names that have trailing
88813         slashes, and similarly for dir_name.  Add new primitives
88814         base_len and dir_len.  Put the directory-name-related decls
88815         into dirname.h.
88816
88817         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88818         * lib/backupfile.c (base_name): Likewise.
88819         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88820         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88821         * lib/makepath.c (strip_trailing_slashes): Likewise.
88822         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88823         ISSLASH): Likewise.
88824         * lib/rename.c (strip_trailing_slashes): Likewise.
88825         * lib/same.c (base_name): Likewise.
88826         * lib/stripslash.c (ISSLASH): Likewise.
88827
88828         * lib/addext.c: Include <dirname.h> after size_t is defined.
88829         * lib/backupfile.c: Likewise.
88830
88831         * lib/addext.c (addext): Use base_len to trim redundant
88832         trailing slashes instead of doing it ourselves.
88833         But do not trim the last slash if it is not redundant.
88834
88835         * lib/backupfile.c (find_backup_file_name,
88836         max_backup_version): Use base_len instead of rolling it ourselves.
88837         Handle the case of "" and (on DOS) "C:" correctly.
88838
88839         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88840         needed. Include <string.h>, <dirname.h>.
88841         (base_name): Allow file names ending in slashes, other than names
88842         that are all slashes.  In this case, return the basename followed
88843         by the slashes.  This is more general, and can be used in places
88844         where the original base_name purposely had an assertion failure.
88845         (base_len): New function.
88846
88847         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88848         Do not include <assert.h>; no longer needed.
88849         Include xalloc.h.
88850         (memrchr): Remove decl.
88851         (dir_name_r): Remove.
88852         (dir_len): Renamed from dirlen.  All callers changed.
88853         Rewrite in terms of base_name, for simplicity and consistency.
88854         (dir_name): Never return NULL.  All callers changed.
88855         Do not include <stdlib.h> in test program; no longer needed.
88856         return 0; is fine for test program.
88857
88858         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88859         New macros.
88860         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88861
88862         * lib/path-concat.c (path_concat): Use base_len to compute
88863         base length, not strlen; this means we cannot rely on memcpy
88864         to null-terminate.
88865
88866         * lib/same.c (STREQ): Remove.
88867         (same_name): Handle the case where the basename ends in trailing '/'.
88868
88869         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88870         a slash was stripped.  Do not strip the last slash after a
88871         file system prefix.
88872
88873 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88874
88875         * lib/Makefile.am (libfetish_a_SOURCES):
88876         Add strftime.c, since we now compile it on all hosts.
88877
88878         * lib/strftime.c (my_strftime):
88879         Define to nstrftime if emacs, but only if my_strftime is not defined.
88880         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88881         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88882         Add one more extra argument: a nanoseconds value.
88883         All uses changed.
88884         (ns): New macro.
88885         (my_strftime function): Add %N format.
88886         (emacs_strftimeu): Renamed from emacs_strftime,
88887         with extra ut argument.
88888
88889 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88890
88891         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88892
88893 2001-04-21  Jim Meyering  <meyering@lucent.com>
88894
88895         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88896         doesn't interfere.
88897
88898 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88899
88900         * m4/ftruncate.m4: Check for chsize.
88901         Link with ftruncate.o unconditionally if ftruncate is missing.
88902         This was required when cross-compiling to i586-mingw32msvc.
88903
88904 2001-04-08  Jim Meyering  <meyering@lucent.com>
88905
88906         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88907         recomputed; that's necessary when the offset spans a DST transition.
88908         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88909
88910 2001-04-02  Jim Meyering  <meyering@lucent.com>
88911
88912         * lib/regex.h, regex.c: Update from GNU libc.
88913
88914 2001-03-24  Jim Meyering  <meyering@lucent.com>
88915
88916         * m4/jm-macros.m4: Require autoconf-2.49d.
88917
88918 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88919
88920         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88921
88922 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88923
88924         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88925
88926 2001-03-17  Jim Meyering  <meyering@lucent.com>
88927
88928         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88929         now that the version in autoconf is equivalent.
88930         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88931
88932         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88933         Suggestion from Akim Demaille.
88934
88935         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88936         (jm_PREREQ_TEMPNAME): New function.
88937
88938 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88939
88940         * lib/tempname.c (uint64_t): Define to uintmax_t if
88941         not defined, and if UINT64_MAX is not defined.
88942         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88943         Reported by John David Anglin.
88944
88945 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88946
88947         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88948         resolve alias if codeset is empty.
88949         * lib/config.charset (BeOS): Use wildcard syntax.
88950
88951 2001-03-13  Jim Meyering  <meyering@lucent.com>
88952
88953         * lib/path-concat.c (path_concat)
88954         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88955         concatenating e.g., `C:' and `foo'.
88956         From Bruno Haible.
88957
88958 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88959
88960         * lib/localcharset.c (locale_charset): Don't use
88961         setlocale(LC_CTYPE,NULL). Don't return NULL.
88962         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88963
88964 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88965
88966         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88967         support for DOS/DJGPP.
88968
88969 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88970
88971         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88972         lacks mkstemp.  Compile our own tempname.c if we compile our own
88973         mkstemp.c, as mkstemp relies on tempname.
88974
88975 2001-03-01  Jim Meyering  <meyering@lucent.com>
88976
88977         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88978         AH_VERBATIM really does output its argument verbatim.
88979
88980 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88981
88982         * lib/Makefile.am (libfetish_a_SOURCES):
88983         Add dup-safer.c, fopen-safer.c.
88984         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88985
88986         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88987         * lib/unistd-safer.h: New files.
88988
88989 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88990
88991         The mkstemp replacement is taken from glibc 2.2.2, with some
88992         portability fixes for use outside glibc, as follows:
88993
88994         * lib/tempname.c (struct_stat64): New macro.
88995         (direxists, __gen_tempname): Use it.
88996         This avoids a portability problem with Solaris 8.
88997
88998         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88999         (<stddef.h>, <stdint.h>, <string.h>):
89000         Include only if STDC_HEADERS || _LIBC.
89001         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89002         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89003         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89004         (__set_errno): Define this macro if <errno.h> doesn't.
89005         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89006         Define these macros if <stdio.h> doesn't.
89007         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89008         Define these macros if <sys/stat.h>
89009         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89010         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89011         __xstat64): Define if not _LIBC.
89012         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89013         (__gen_tempname): Invoke gettimeofday only if
89014         HAVE_GETTIMEOFDAY || _LIBC;
89015         otherwise, fall back on plain "time".
89016         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89017
89018         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89019
89020         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89021
89022 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89023
89024         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89025
89026 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89027
89028         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89029         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89030         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89031         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89032
89033 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89034
89035         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89036         Remove workaround macros for hosts that have mbrtowc but not
89037         mbstate_t, as we now insist on proper declarations for both
89038         before using mbrtowc.
89039
89040 2001-02-17  Jim Meyering  <meyering@lucent.com>
89041
89042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89043         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89044         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89045         UnixWare 7.1.1.
89046
89047         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89048         rather than AC_CACHE_VAL.
89049
89050 2001-02-17  Jim Meyering  <meyering@lucent.com>
89051
89052         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89053         around included file name.
89054
89055         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89056
89057         * lib/strftime.c: Update from GNU libc (the only changes were to
89058         comments).
89059
89060 2001-02-17  Jim Meyering  <meyering@lucent.com>
89061
89062         * lib/regex.c: Update from libc.
89063
89064 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89065
89066         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89067         clash.
89068
89069 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89070
89071         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89072         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89073         Reported by Mark Hounschell via Paul Eggert.
89074
89075 2001-02-07  Jim Meyering  <meyering@lucent.com>
89076
89077         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89078
89079 2001-02-05  Jim Meyering  <meyering@lucent.com>
89080
89081         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89082         it includes the patch required for `large file' support with at least
89083         HP-UX's 10.20 /bin/cc.
89084
89085 2001-02-03  Jim Meyering  <meyering@lucent.com>
89086
89087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89088         AS_IF, now that it works once again (mysteriously).
89089         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89090
89091 2001-01-30  Jim Meyering  <meyering@lucent.com>
89092
89093         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89094         * m4/chown.m4: Rename conftestchown to conftest.chown.
89095         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89096         s/conftestdir2/conftest.d2/.
89097         * m4/utimes.m4: s/conftestdata/conftest.data/
89098         Inspired by Pavel Roskin's change in autoconf.
89099
89100 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89101
89102         * lib/config.charset: Update for FreeBSD 4.2.
89103
89104 2001-01-27  Jim Meyering  <meyering@lucent.com>
89105
89106         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89107         a use of AS_IF.
89108         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89109
89110 2001-01-26  Jim Meyering  <meyering@lucent.com>
89111
89112         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89113         quotearg.c includes it.
89114
89115 2001-01-26  Jim Meyering  <meyering@lucent.com>
89116
89117         * lib/quotearg.c: Include stddef.h.
89118         * lib/quote.c: Include stddef.h.
89119         Reported by Axel Kittenberger.
89120
89121         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89122         line in double quotes so that it evokes a better diagnostic.
89123         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89124         Reported by Axel Kittenberger.
89125
89126 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89127
89128         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89129         as if it was a `charset'.
89130
89131 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89132
89133         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89134         has const.
89135
89136 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89137
89138         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89139         to avoid a warning.  Add back 'const' to inptr.
89140
89141 2001-01-20  Jim Meyering  <meyering@lucent.com>
89142
89143         Be sure that headers are checked before used in code compiled
89144         for the type checks.
89145         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89146         In place of that, invoke jm_CHECK_ALL_TYPES.
89147         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89148         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89149         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89150         The check for ssize_t was mistakenly run before the test for unistd.h.
89151
89152         The configure-time check for stdbool.h was missing.
89153         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89154         (jm_PREREQ_HASH): New function.
89155
89156 2001-01-17  Jim Meyering  <meyering@lucent.com>
89157
89158         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89159         for autoconf-2.49c.
89160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89161
89162 2001-01-16  Jim Meyering  <meyering@lucent.com>
89163
89164         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89165         From Bruno Haible.
89166
89167 2001-01-14  Jim Meyering  <meyering@lucent.com>
89168
89169         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89170         foo and bar.  Create conftestdir/ in the script, not in the C code.
89171         Remove directories in the script, not in the C code.
89172         Remove conftestdir{,2} before trying to create the directory.
89173         Make the entire configure script fail if the mkdir fails.
89174
89175 2001-01-14  Jim Meyering  <meyering@lucent.com>
89176
89177         * lib/rename.c: New file.  From Volker Borchert.
89178         Include stdlib.h, string.h or strings.h, and xalloc.h.
89179         Use strip_trailing_slashes rather than open-coding it.
89180
89181 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89182
89183         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89184
89185 2001-01-03  Jim Meyering  <meyering@lucent.com>
89186
89187         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89188         of local `inptr' to avoid warning with some system declarations of
89189         iconv.
89190
89191 2001-01-02  Volker Borchert  <bt@teknon.de>
89192
89193         * m4/rename.m4: New file.
89194         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89195
89196 2001-01-01  Jim Meyering  <meyering@lucent.com>
89197
89198         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89199         even on systems with utmpx.h.  It's necessary for the declaration of
89200         utmp's ut_user member.  Reported by Andreas Jaeger.
89201
89202         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89203         available. They are required for the declarations of getgrgid and
89204         getpwuid resp.
89205         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89206         Reported by Andreas Jaeger.
89207
89208 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89209
89210         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89211         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89212         so `make install' also works in VPATH builds.
89213
89214 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89215
89216         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89217         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89218         can be used in subdirectories.
89219
89220 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89221
89222         * lib/modechange.c: Do not assume that mode_t uses the
89223         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89224         the other-execute bit of FOO even if S_IXOTH != 1.
89225
89226         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89227         WOTH, XOTH, ALLM): New macros.
89228         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89229          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89230         Use them.
89231         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89232         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89233         (mode_compile):
89234         No need to use uintmax_t; unsigned long is long enough.
89235         Don't bother to get suffix since we don't use it.
89236
89237 2000-12-26  Jim Meyering  <meyering@lucent.com>
89238
89239         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
89240         better with autoheader.
89241
89242 2000-12-24  Jim Meyering  <meyering@lucent.com>
89243
89244         * lib/hash.c (is_prime): Return explicit boolean values.
89245         (hash_get_first): Return NULL to appease Irix5.6's 89.
89246         Reported by Nelson Beebe.
89247
89248 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
89249
89250         * lib/localcharset.c (locale_charset): Add support for Win32.
89251
89252 2000-12-18  Paul Eggert  <eggert@twinsun.com>
89253
89254         * lib/physmem.h, lib/physmem.c: New files.
89255
89256         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
89257         (noinst_HEADERS): Add physmem.h.
89258
89259         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
89260         't' for compatibility with Solaris 8 sort.
89261
89262 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
89263
89264         * lib/config.charset: Add support for BeOS.
89265
89266 2000-12-17  Jim Meyering  <meyering@lucent.com>
89267
89268         * m4/dos.m4 (jm_AC_DOS): New file and macro.
89269         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
89270
89271 2000-12-16  Jim Meyering  <meyering@lucent.com>
89272
89273         This bug had a serious impact on chown: `chown N:M FILE' (for integer
89274         N and M) would have treated it like `chown N:N FILE'.
89275
89276         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
89277
89278 2000-12-16  Jim Meyering  <meyering@lucent.com>
89279
89280         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
89281         SHELLS_FILE to a file name that's useful on djgpp systems.
89282         Include stdlib.h.
89283         (ADDITIONAL_DEFAULT_SHELLS): Define.
89284         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
89285         Based mostly on a patch from Prashant TR.
89286
89287 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
89288
89289         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
89290         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
89291         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
89292
89293 2000-12-08  Andreas Schwab  <schwab@suse.de>
89294
89295         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
89296         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
89297
89298 2000-12-07  Jim Meyering  <meyering@lucent.com>
89299
89300         * lib/stripslash.c (ISSLASH): Define.
89301         (strip_trailing_slashes): Use ISSLASH rather than comparing against
89302         `/'.
89303         From Prashant TR.
89304
89305         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
89306         (dir_name_r): Declare this function as static.
89307         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
89308         manifest itself on a name containing a mix of slashes and
89309         backslashes.
89310         Make this function work with names starting with a DOS-style
89311         drive letter and colon prefix.
89312         (dir_name): Append `.' if necessary.
89313         Based mostly on patches from Prashant TR and Eli Zaretskii.
89314
89315         * lib/dirname.h (dir_name_r): Remove prototype.
89316
89317 2000-12-06  Paul Eggert  <eggert@twinsun.com>
89318
89319         * m4/off_t-format.m4: Remove this file.
89320         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
89321
89322 2000-12-06  Jim Meyering  <meyering@lucent.com>
89323
89324         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
89325         replacement strtoull, we may well need the replacement strtoul, too.
89326         Check for declarations of strtoul and strtoull.
89327         Check for strtol.  Mainly as a cue to cause automake to include
89328         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
89329         Check for limits.h -- strtol.c needs it.
89330
89331 2000-12-05  Jim Meyering  <meyering@lucent.com>
89332
89333         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
89334
89335 2000-12-04  Jim Meyering  <meyering@lucent.com>
89336
89337         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
89338         Also include memory.h, stdlib.h, unistd.h if appropriate.
89339         Reported by Andreas Jaeger (conflicting declaration of malloc).
89340
89341 2000-12-02  Jim Meyering  <meyering@lucent.com>
89342
89343         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
89344         * m4/jm-macros.m4 (jm_MACROS): require it.
89345
89346 2000-12-02  Jim Meyering  <meyering@lucent.com>
89347
89348         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
89349
89350 2000-12-01  Paul Eggert  <eggert@twinsun.com>
89351
89352         * lib/memrchr.c: Include <config.h> before any system include file.
89353
89354 2000-11-30  Jim Meyering  <meyering@lucent.com>
89355
89356         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
89357
89358 2000-11-30  Jim Meyering  <meyering@lucent.com>
89359
89360         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
89361
89362 2000-11-29  Paul Eggert  <eggert@twinsun.com>
89363
89364         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
89365
89366 2000-11-26  Jim Meyering  <meyering@lucent.com>
89367
89368         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89369
89370 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89371
89372         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89373         size of (size_t) -1; it's not portable.
89374
89375 2000-11-17  Jim Meyering  <meyering@lucent.com>
89376
89377         * lib/strstr.c: Update from GNU libc.
89378
89379 2000-11-17  Akim Demaille  <akim@epita.fr>
89380
89381         * lib/obstack.h: Formatting changes.
89382         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89383         prevent type checking.
89384         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
89385         cast the value to (void *): assigning a `foo *' to a `void *'
89386         variable is valid.
89387         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
89388
89389 2000-11-16  Jim Meyering  <meyering@lucent.com>
89390
89391         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89392
89393 2000-11-11  Jim Meyering  <meyering@lucent.com>
89394
89395         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89396
89397 2000-11-10  Jim Meyering  <meyering@lucent.com>
89398
89399         * lib/obstack.h: Update from GNU libc.
89400         * lib/obstack.c: Likewise.
89401
89402 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89403
89404         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89405
89406 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89407
89408         * lib/getusershell.c (setusershell): Use rewind rather than
89409         fseek/fseeko, to avoid configuration hassles with fseeko.
89410         Don't bother opening SHELLS_FILE if shellstream is NULL;
89411         it's not necessary.
89412
89413 2000-11-05  Jim Meyering  <meyering@lucent.com>
89414
89415         * lib/makepath.h (make_dir): Declare.
89416         * lib/makepath.c (make_dir): Remove `static' attribute.
89417         Tweak a comment.
89418
89419 2000-11-04  Jim Meyering  <meyering@lucent.com>
89420
89421         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89422
89423 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89424
89425         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89426         last one in a bucket, advance to the next bucket.
89427
89428 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89429
89430         * lib/fnmatch.c: Do not comment out all the code if we are using
89431         the GNU C library, because in some cases we are replacing buggy
89432         code in the GNU C library itself.
89433
89434 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89435
89436         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89437         (regex_compile): Catch bogus \(\1\).
89438
89439 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89440
89441         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89442         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89443         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89444
89445 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89446
89447         * lib/error.h, getline.h, modechange.h:
89448         Remove "2000" from Copyright line, as the file hasn't been
89449         changed this year other than in the copyright notice.
89450
89451         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89452         was changed this year.
89453
89454 2000-10-29  Jim Meyering  <meyering@lucent.com>
89455
89456         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89457         renaming.
89458         * m4/ls-mntd-fs.m4: Likewise
89459
89460 2000-10-29  Jim Meyering  <meyering@lucent.com>
89461
89462         * lib/xstat.in: Fix grammar in comment.
89463
89464 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89465
89466         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89467         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89468         doesn't define __restrict_arr.
89469
89470 2000-10-28  Jim Meyering  <meyering@lucent.com>
89471
89472         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89473         (jm_PREREQ_MEMCHR): New function.
89474
89475 2000-10-28  Jim Meyering  <meyering@lucent.com>
89476
89477         * lib/memchr.c: Update from libc.
89478         Adjust for portability:
89479         [HAVE_STDLIB_H]: Include stdlib.h.
89480         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89481         Undef __memchr, too.
89482         [!weak_alias]: Define __memchr to memchr.
89483
89484         * lib/regex.c: Update from libc.
89485         * lib/regex.h: Likewise.
89486         * lib/getopt1.c: Likewise.
89487         * lib/memcmp.c: Likewise.
89488
89489         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89490         Avoid using fseek, when possible -- it's broken by design.
89491         Patch by Ulrich Drepper.
89492
89493 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89494
89495         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89496         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89497         Giving in to popular pressure to shut up the compiler with casts.
89498
89499 2000-10-26  Jim Meyering  <meyering@lucent.com>
89500
89501         * lib/strftime.c: Update from libc.
89502
89503 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89504
89505         * regex.c: More `unsigned char' -> `re_char' changes.
89506         Also change several `int' into `re_wchar_t'.
89507         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89508         (PUSH_FAILURE_POINTER): Don't cast any more.
89509         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89510         We want GCC to complain, since this piece of code makes
89511         re_match non-reentrant, which *should* be fixed.
89512         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89513         (EXTEND_BUFFER): Use RETALLOC.
89514         (SET_LIST_BIT): Don't cast.
89515         (re_wchar_t): New type.
89516         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89517         that those two functions will always properly return.
89518         (IMMEDIATE_QUIT_CHECK): Cast to void.
89519         (analyse_first): Use recursion rather than an explicit stack.
89520         (re_compile_fastmap): Can't fail anymore.
89521         (re_search_2): Don't check re_compile_fastmap for failure.
89522         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89523         Now also sets the new value (passed in a new argument).
89524         (re_match_2_internal): Use it.
89525         Also, use a new var `reg' of type size_t when looping through regs
89526         rather than reuse the inappropriate `mcnt'.
89527
89528 2000-10-25  Jim Meyering  <meyering@lucent.com>
89529
89530         * lib/obstack.c: Update from libc.
89531
89532 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89533
89534         * regex.c (regex_compile): Change the way of handling a range from
89535         a char less than 256 to a char not less than 256.
89536
89537 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89538
89539         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89540         NT-Emacs only.
89541         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89542         so that re_search functions only quit when callers expect them to.
89543
89544 2000-10-23  Jim Meyering  <meyering@lucent.com>
89545
89546         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89547         wrong.  That set_locale call must not have any side effects.
89548         From Paul Eggert.
89549
89550 2000-10-22  Jim Meyering  <meyering@lucent.com>
89551
89552         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89553         [CYCLIC]: Remove now-unused definition.
89554
89555         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89556         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89557         Suggestion from Ulrich Drepper.
89558
89559 2000-10-21  Jim Meyering  <meyering@lucent.com>
89560
89561         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89562         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89563         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89564
89565 2000-10-21  Jim Meyering  <meyering@lucent.com>
89566
89567         * lib/dirname.c (memrchr): Declare if necessary.
89568         (dir_name): Remove the restriction that there be no
89569         trailing slashes.  Now, this code skips past them, effectively
89570         ignoring them.
89571         [TEST_DIRNAME] (main): New unit tests.
89572
89573         * lib/memrchr.c: New file from GNU libc.
89574         Undef __memrchr, too.
89575         [!weak_alias]: Define __memrchr to memrchr.
89576         Guard weak_alias use with `#ifdef weak_alias'.
89577
89578 2000-10-21  Jim Meyering  <meyering@lucent.com>
89579
89580         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89581         (dir_name): Use dir_name_r.
89582         * lib/dirname.h (dir_name_r): Declare it.
89583
89584 2000-10-17  Jim Meyering  <meyering@lucent.com>
89585
89586         * lib/quote.h (PARAMS): Define and use.
89587         Reported by Akim Demaille.
89588
89589         * lib/getopt.c: Update from libc.
89590
89591 2000-10-16  Jim Meyering  <meyering@lucent.com>
89592
89593         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89594         setlocale.
89595         From Jan Fedak.
89596
89597 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89598
89599         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89600
89601 2000-09-25  Jim Meyering  <meyering@lucent.com>
89602
89603         * lib/md5.h (rol): Define (from GnuPG).
89604
89605         * lib/sha.c: Give credit (GnuPG) where due.
89606         (M): Use rol rather than open-coding it.
89607         Add a FIXME comment.
89608
89609 2000-09-21  Jim Meyering  <meyering@lucent.com>
89610
89611         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89612         Reported by Michael Stone.
89613
89614 2000-09-20  Jim Meyering  <meyering@lucent.com>
89615
89616         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89617         (noinst_HEADERS): Add sha.h.
89618         Based on code from Scott G. Miller and from GnuPG.
89619
89620 2000-09-18  Jim Meyering  <meyering@lucent.com>
89621
89622         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89623         LIBS. Otherwise, everyone ends up linking with -lelf for some
89624         configurations.
89625         Reported by Mike Stone.
89626
89627 2000-09-15  Jim Meyering  <meyering@lucent.com>
89628
89629         * lib/regex.c: Update from libc.
89630
89631 2000-09-10  Jim Meyering  <meyering@lucent.com>
89632
89633         * lib/getopt.c (_getopt_internal): Update from glibc.
89634
89635 2000-09-09  Jim Meyering  <meyering@lucent.com>
89636
89637         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89638         think it should be used as a general replacement for isascii.
89639         * lib/fnmatch.c: Likewise.
89640         * lib/mbswidth.c: Likewise
89641         * lib/regex.c: Likewise.
89642
89643         Don't use atoi.
89644         * lib/userspec.c: Include sys/param.h and limits.h.
89645         Include xstrtol.h.
89646         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89647         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89648         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89649         UID, GID.  Check range.
89650
89651 2000-09-06  Jim Meyering  <meyering@lucent.com>
89652
89653         * lib/getopt.c (_getopt_internal): Update from glibc.
89654
89655 2000-08-30  Jim Meyering  <meyering@lucent.com>
89656
89657         * lib/strftime.c: Merge in changes from GNU libc.
89658
89659 2000-08-26  Jim Meyering  <meyering@lucent.com>
89660
89661         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89662         * m4/fpending.m4: New file.
89663
89664 2000-08-26  Jim Meyering  <meyering@lucent.com>
89665
89666         * lib/closeout.c: Include "__fpending.h".
89667         (close_stdout_status): Return right away if there's nothing to flush.
89668
89669         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89670         * lib/__fpending.c: New file.
89671         * lib/__fpending.h: New file.
89672
89673 2000-08-20  Jim Meyering  <meyering@lucent.com>
89674
89675         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89676         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89677         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89678
89679 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89680
89681         Improve fileutils installation on systems where running
89682         programs (like install) can't be unlinked.
89683         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89684         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89685
89686 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89687
89688         Standardize on "memory exhausted" instead of "Memory exhausted"
89689         or "virtual memory exhausted".
89690         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89691         "virtual memory exhausted".
89692         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89693         our own message.
89694         * lib/userspec.c (parse_user_spec): Likewise.
89695         * lib/bumpalloc.h: comment fix
89696         * lib/same.c, userspec.c: Include xalloc.h.
89697
89698         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89699         not char *const and pointing to a constant array.
89700         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89701         (xrealloc): Comment fix.
89702
89703         * lib/userspec.c (parse_user_spec):
89704         Don't translate a message until just before returning,
89705         to avoid unnecessary translation.
89706
89707 2000-08-07  Jim Meyering  <meyering@lucent.com>
89708
89709         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89710         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89711         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89712         getgroups.c, gethostname.c, getopt.h, group-member.c,
89713         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89714         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89715         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89716         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89717         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89718         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89719         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89720         yesno.c: Back out Copyright date changes for each file with no change
89721         this year.  This eases coordination with other programs using the same
89722         source code modules.  From Paul Eggert.
89723
89724 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89725
89726         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89727         not char, for compatibility with glibc 2.1.3 strftime.c.
89728
89729 2000-08-03  Greg McGary  <greg@mcgary.org>
89730
89731         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89732         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89733         (EXTEND_BUFFER): Use them.
89734
89735 2000-08-01  Jim Meyering  <meyering@lucent.com>
89736
89737         * lib/dirname.c (ISSLASH): Define.
89738         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89739         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89740         both `\' and `/' may be use as path separators.
89741         Based on a patch from Prashant TR.
89742
89743 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89744
89745         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89746         slot vector a constant, since it might get modified.
89747
89748 2000-07-31  Jim Meyering  <meyering@lucent.com>
89749
89750         * lib/xmalloc.c: Use `virtual memory exhausted', not
89751         `Memory exhausted'.
89752         * lib/obstack.c (print_and_abort): Likewise.
89753
89754 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89755
89756         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89757         buffer, so that the caller can always quote one small
89758         component of a "memory exhausted" message in slot 0.
89759         From a suggestion by Jim Meyering.
89760
89761 2000-07-30  Jim Meyering  <meyering@lucent.com>
89762
89763         * lib/makepath.c (make_path): Quote the other instance, too.
89764
89765         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89766         (STATIC_BUF_SIZE): Define.
89767         (quotearg_n_options): Use only statically allocated storage when
89768         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89769         than STATIC_BUF_SIZE.
89770
89771 2000-07-29  Jim Meyering  <meyering@lucent.com>
89772
89773         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89774         * lib/dirname.c (dir_name): Likewise.
89775
89776         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89777         `/'.
89778
89779         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89780         (dir_name): Assert that there are no trailing slashes.
89781
89782 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89783
89784         * lib/mbswidth.h (mbswidth): Add a flags argument.
89785         (mbswidth): New declaration.
89786         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89787         * lib/mbswidth.c (mbswidth): Add a flags argument.
89788         (mbsnwidth): New function.
89789
89790 2000-07-24  Jim Meyering  <meyering@lucent.com>
89791
89792         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89793
89794 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89795
89796         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89797
89798 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89799
89800         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89801         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89802         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89803         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89804         invoke multibyte primitives.
89805
89806 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89807
89808         * lib/quotearg.c:
89809         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89810         so that mbstate_t is always defined.
89811
89812         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89813         be 1 in at least one GCC installation, and this configuration
89814         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89815         performance on hosts that have mbrtowc but have only unibyte
89816         locales, but I assume these hosts are rare.
89817
89818 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89819
89820         * lib/mbswidth.c (_XOPEN_SOURCE):
89821         Don't define; this causes problems on Solaris 7.
89822         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89823
89824 2000-07-23  Jim Meyering  <meyering@lucent.com>
89825
89826         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89827         too: getgrgid, getpwuid, getuid.
89828
89829 2000-07-23  Jim Meyering  <meyering@lucent.com>
89830
89831         * lib/basename.c (base_name): Add an assertion.
89832
89833 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89834
89835         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89836         shadow its mbsinit function.
89837
89838 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89839
89840         * lib/mbswidth.h: New file.
89841         * lib/mbswidth.c: New file.
89842         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89843         (noinst_HEADERS): Add mbswidth.h.
89844
89845 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89846
89847         * lib/config.charset: Add support for FreeBSD. Improve support for
89848         HP-UX and IRIX 6.
89849
89850 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89851
89852         * m4/mbswidth.m4: New file.
89853         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89854
89855 2000-07-15  Jim Meyering  <meyering@lucent.com>
89856
89857         * lib/makepath.c: Include quote.h.
89858         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89859         corresponding argument in a `quote (...)' call.
89860         Give better diagnostics.
89861
89862         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89863         (noinst_HEADERS): Add quote.h.
89864
89865         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89866         from tar's src/misc.c.
89867         * lib/quote.h: New file.  Prototypes for same.
89868
89869 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89870
89871         From a suggestion by Bruno Haible.
89872         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89873         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89874         to decide whether to define the BeOS workaround macro;
89875         this adjusts to the change to AC_MBSTATE_T.
89876
89877 2000-07-14  Jim Meyering  <meyering@lucent.com>
89878
89879         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89880         jm_AC_TYPE_UINTMAX_T.
89881
89882 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89883
89884         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89885
89886         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89887         quotearg_buffer_restyled): Add support for
89888         clocale_quoting_style.  Undo previous change to
89889         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89890         and "{RIGHT QUOTATION MARK}" msgids.
89891
89892 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89893
89894         From a suggestion by Bruno Haible.
89895         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89896         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89897         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89898         and mbstate_t, to a single-part test that simply defines mbstate_t.
89899         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89900         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89901
89902 2000-07-10  Jim Meyering  <meyering@lucent.com>
89903
89904         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89905
89906         * m4/gnu-source.m4: Output to confdefs.h directly.
89907         Suggestion from Akim Demaille.
89908
89909 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89910
89911         The old behavior of quoting `like this' doesn't look good with
89912         newer, ISO-style fonts.  See:
89913         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89914
89915         Instead, quote "like this" by default.  Let the translator
89916         tailor the locale-specific quoting behavior by providing
89917         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89918
89919         * lib/quotearg.c (N_): New macro.
89920         (gettext_default): New function.
89921         (quotearg_buffer_restyled): Use
89922         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89923         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89924
89925 2000-07-09  Jim Meyering  <meyering@lucent.com>
89926
89927         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89928         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89929
89930         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89932
89933 2000-07-09  Jim Meyering  <meyering@lucent.com>
89934
89935         * lib/Most files: Update copyright dates to include 2000.
89936
89937 2000-07-08  Jim Meyering  <meyering@lucent.com>
89938
89939         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89940         if not defined.
89941         (xgethostname): Remove now-unnecessary #ifdef.
89942         Move declaration of `err' into loop where it's used.
89943
89944 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89945         and Bruno Haible  <haible@clisp.cons.org>
89946
89947         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89948         only if the test for an object-type mbstate_t fails.  This
89949         prevents us from mistakenly reporting that mbstate_t is a
89950         system object type after we "#define mbstate_t int" to work
89951         around its lack.
89952
89953 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89954         and Bruno Haible  <haible@clisp.cons.org>
89955
89956         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89957
89958 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89959
89960         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89961         to strerror_r.
89962         Include <ctype.h> for use of isalpha.
89963
89964 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89965
89966         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89967         by allocating a larger buffer. Test the gethostname return value for
89968         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89969         returns an error and ENAMETOOLONG isn't defined.
89970
89971 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89972
89973         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89974         dimension.
89975
89976 2000-07-04  Jim Meyering  <meyering@lucent.com>
89977
89978         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89979         of the deprecated AC_CHECKING.
89980
89981 2000-07-04  Jim Meyering  <meyering@lucent.com>
89982
89983         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89984         Reported by Bruno Haible.
89985
89986 2000-07-04  Jim Meyering  <meyering@lucent.com>
89987
89988         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89989         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89990         lacks mbrtowc.
89991
89992 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89993
89994         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89995         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89996
89997 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89998         and Bruno Haible  <haible@clisp.cons.org>
89999
90000         * lib/quotearg.c (mbrtowc):
90001         Assign to *pwc, and return 1 only if result is nonzero.
90002         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90003
90004 2000-07-03  Jim Meyering  <meyering@lucent.com>
90005
90006         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90007
90008 2000-07-03  Jim Meyering  <meyering@lucent.com>
90009
90010         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90011         This is necessary to get a definition of e.g., UTMP_FILE on
90012         HP-UX 10.20.
90013         From Bob Proulx.
90014
90015 2000-07-02  Jim Meyering  <meyering@lucent.com>
90016
90017         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90018
90019         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90020         AC_LIBOBJ(function_name).
90021         * m4/chown.m4: Likewise.
90022         * m4/fnmatch.m4: Likewise.
90023         * m4/ftruncate.m4: Likewise.
90024         * m4/getgroups.m4: Likewise.
90025         * m4/getline.m4: Likewise.
90026         * m4/group-member.m4: Likewise.
90027         * m4/jm-macros.m4: Likewise.
90028         * m4/lstat.m4: Likewise.
90029         * m4/malloc.m4: Likewise.
90030         * m4/memcmp.m4: Likewise.
90031         * m4/nanosleep.m4: Likewise.
90032         * m4/putenv.m4: Likewise.
90033         * m4/realloc.m4: Likewise.
90034         * m4/regex.m4: Likewise.
90035         * m4/stat.m4: Likewise.
90036         * m4/strftime.m4: Likewise.
90037
90038 2000-07-02  Jim Meyering  <meyering@lucent.com>
90039
90040         * lib/quotearg.c (mbstate_t): Don't define here.
90041
90042 2000-07-02  Jim Meyering  <meyering@lucent.com>
90043
90044         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90045
90046 2000-07-01  Jim Meyering  <meyering@lucent.com>
90047
90048         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90049
90050 2000-07-01  Jim Meyering  <meyering@lucent.com>
90051
90052         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90053         problem.
90054
90055 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90056
90057         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90058         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90059
90060 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90061
90062         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90063         per change in ../m4/ls-mntd-fs.m4.
90064         (read_filesystem_list): Ignore symbolic links.
90065
90066 2000-06-29  Jim Meyering  <meyering@lucent.com>
90067
90068         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90069         for declaration of strcmp.
90070
90071         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90072
90073         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90074         Avoid warning by casting result to `char *' to remove `const'.
90075
90076 2000-06-28  Jim Meyering  <meyering@lucent.com>
90077
90078         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90079         included by quotearg.c, for which we perform this test.  From
90080         Bruno Haible.
90081
90082 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90083
90084         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90085         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90086         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90087
90088 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90089
90090         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90091
90092 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90093
90094         savedir now sets errno on failure and invokes xmalloc to get memory.
90095         Fix a couple of other minor bugs while we're at it.
90096
90097         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90098         (NAMLEN): Remove macro.
90099         (malloc, realloc): Remove decls.
90100         (stpcpy): Likewise.
90101         ("xalloc.h"): Include.
90102         (NAME_SIZE_DEFAULT): New macro.
90103         (savedir): Use xmalloc / xrealloc to allocate memory.
90104         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90105         Skip "" directory entries.
90106         Use strlen to calculate directory entry length, since the old method
90107         is rarely used these days and isn't worth supporting.
90108         Don't use a pointer after freeing it.
90109         Check for integer overflow when calculating allocation size.
90110         Use memcpy to copy entries, instead of stpcpy.
90111         Set errno properly when returning NULL.
90112         Check for readdir error.
90113
90114 2000-06-26  Jim Meyering  <meyering@lucent.com>
90115
90116         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90117
90118 2000-06-25  Jim Meyering  <meyering@lucent.com>
90119
90120         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90121         Linux header bug when _XOPEN_SOURCE is defined to 500.
90122
90123 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90124
90125         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90126         deficiency.
90127
90128 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90129
90130         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90131         Include xalloc.h.
90132         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90133
90134 2000-06-24  Jim Meyering  <meyering@lucent.com>
90135
90136         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90137         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90138         for which strerror does return char*, but which lacks a conveniently
90139         accessible declaration of the function.  If the compile-test says
90140         strerror_r doesn't work, then resort to a `run'-test that works on
90141         BeOS and segfaults on DEC Unix.
90142
90143 2000-06-24  Jim Meyering  <meyering@lucent.com>
90144
90145         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90146
90147 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90148
90149         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90150         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90151
90152 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90153
90154         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90155         (mbrtowc, mbstate_t): Define substitutes if
90156         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90157         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90158         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90159
90160 2000-06-23  Jim Meyering  <meyering@lucent.com>
90161
90162         * m4/afs.m4: Add missing AC_MSG_RESULT.
90163         Reported by Bruno Haible.
90164
90165         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90166         Suggestion from Bruno Haible.
90167
90168 2000-06-23  Jim Meyering  <meyering@lucent.com>
90169
90170         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90171
90172 2000-06-21  Jim Meyering  <meyering@lucent.com>
90173
90174         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90175
90176 2000-06-21  Jim Meyering  <meyering@lucent.com>
90177
90178         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90179         (noinst_HEADERS): Add getstr.h.
90180
90181         * lib/getline.c (getstr): Move into a separate file.
90182         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90183         the following changes: new parameter, delim2; both delim[12]
90184         parameters have type `int', not `char'.  The latter would lose
90185         with 8-bit delimiters.
90186         * lib/getstr.h: New file.
90187
90188 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90189
90190         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90191         than 1024, return a memory chunk of least possible size, instead
90192         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90193         Use free/xmalloc instead of xrealloc to avoid copying for very long
90194         paths.
90195
90196 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90197
90198         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90199         the empty string.
90200
90201 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90202
90203         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90204         address, not strdup.  Include <stdlib.h> and don't declare free().
90205
90206 2000-06-19  Jim Meyering  <meyering@lucent.com>
90207
90208         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90209
90210 2000-06-18  Jim Meyering  <meyering@lucent.com>
90211
90212         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90213
90214         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90215         `checking whether...' message to be consistent with that of the
90216         lstat test.
90217
90218 2000-06-18  Jim Meyering  <meyering@lucent.com>
90219
90220         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90221         Besides, these days every porting target provides a mkdir function.
90222
90223         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90224         needed. (this snippet comes from src/system.h).
90225
90226 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90227
90228         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90229
90230 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90231
90232         * lib/human.c (adjust_value): New function.
90233         (human_readable_inexact): Apply rounding style even when
90234         printing approximate values.
90235
90236 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90237
90238         * lib/human.c (human_readable_inexact): Allow an input block
90239         size that is not a multiple of the output block size, and vice versa.
90240         Reported by Piergiorgio Sartor.
90241
90242 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90243
90244         * lib/getdate.y (get_date): Apply relative times after time
90245         zone indicator, not before.  Reported by Todd A. Jacobs.
90246
90247 2000-06-13  Jim Meyering  <meyering@lucent.com>
90248
90249         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
90250
90251         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
90252
90253 2000-06-12  Paul Eggert  <eggert@twinsun.com>
90254
90255         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
90256
90257 2000-06-12  Jim Meyering  <meyering@lucent.com>
90258
90259         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
90260         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
90261         optional argument.
90262         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
90263         the optional argument, `lib'.
90264
90265 2000-06-08  Jim Meyering  <meyering@lucent.com>
90266
90267         * m4/largefile.m4: Remove file (now that it's part of autoconf).
90268
90269 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90270
90271         Rewrite largefile configuration so that we don't need to run
90272         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
90273         AC_CANONICAL_HOST in configure.in -- jmm]
90274
90275         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
90276         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
90277         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
90278         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
90279         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
90280         All uses changed.
90281         Instead of inspecting the output of getconf, try to compile the
90282         test program without and with the macro definition.
90283         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
90284         for getconf.  Instead, check for the needed flags by compiling
90285         test programs.
90286
90287 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90288
90289         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
90290
90291 2000-06-04  Jim Meyering  <meyering@lucent.com>
90292
90293         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
90294         SunOS 4.1.4 for which gid_t is an unsigned type.
90295
90296 2000-06-03  Jim Meyering  <meyering@lucent.com>
90297
90298         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
90299         now that autoconf requires that.
90300
90301         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
90302         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
90303         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
90304
90305 2000-06-03  Jim Meyering  <meyering@lucent.com>
90306
90307         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
90308
90309 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90310
90311         * m4/glibc21.m4: New file.
90312         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
90313
90314 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90315
90316         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
90317         newer, don't install charset.alias.
90318         * lib/config.charset: Change the Linux/glibc rules so they become empty
90319         on glibc-2.1 or newer.
90320
90321 2000-06-02  Jim Meyering  <meyering@lucent.com>
90322
90323         * lib/mountlist.c: Back out last change.  Instead, do this...
90324         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
90325         me_dummy member using the same `ignore'-testing code.
90326         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
90327         fs_type strings.
90328         From Mark D. Roth.
90329
90330 2000-05-29  Jim Meyering  <meyering@lucent.com>
90331
90332         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
90333         mounts with the `ignore' attribute.  Based on a patch from
90334         Mark D. Roth.
90335
90336 2000-05-28  Jim Meyering  <meyering@lucent.com>
90337
90338         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
90339         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90340         * m4/stat.m4: Likewise.
90341         * m4/lstat.m4: Likewise.
90342         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
90343
90344         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
90345         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
90346
90347 2000-05-26  Jim Meyering  <meyering@lucent.com>
90348
90349         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
90350
90351 2000-05-24  Jim Meyering  <meyering@lucent.com>
90352
90353         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
90354         autoconf requires that.
90355         * m4/lib-check.m4: Likewise.
90356         * m4/jm-macros.m4: Likewise.
90357         * m4/strftime.m4: Likewise.
90358
90359         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
90360         AC_CHECK_DECLS, now that autoconf requires that.
90361
90362 2000-05-22  Jim Meyering  <meyering@lucent.com>
90363
90364         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90365         * m4/lstat.m4: Likewise.
90366
90367 2000-05-22  Jim Meyering  <meyering@lucent.com>
90368
90369         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90370
90371 2000-05-20  Jim Meyering  <meyering@lucent.com>
90372
90373         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90374         (jm_PREREQ): Use it.
90375
90376 2000-05-18  Jim Meyering  <meyering@lucent.com>
90377
90378         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90379         back, too, since it may have been modified by allocate_entry.
90380         (hash_delete): Rewrite to use neither the assignment operator
90381         nor the comma operator in an if-expression.
90382
90383 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90384
90385         * lib/closeout.c:
90386         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
90387         Remove; no longer needed.
90388         "quotearg.h": Add include.
90389         (file_name): Do not bother to explicitly initialize to NULL; it's less
90390         efficient on some hosts.
90391         (close_stdout_status): Remove test as to whether stdout was already
90392         closed; it breaks for the case "echo x | sort >&-".
90393         Quote file name colons.
90394         Do not assume that _("write error") lacks format strings.
90395
90396 2000-05-15  Jim Meyering  <meyering@lucent.com>
90397
90398         * lib/version-etc.c (version_etc_copyright): Update the copyright
90399         string used in all --version output.
90400
90401 2000-05-14  Jim Meyering  <meyering@lucent.com>
90402
90403         * lib/closeout.c (close_stdout_set_file_name): New function.
90404         (close_stdout_status): Use new file-scoped global.
90405         Return right away if fstat says the stdout file descriptor is invalid.
90406         * lib/closeout.h (close_stdout_set_file_name): Declare.
90407
90408 2000-05-10  Jim Meyering  <meyering@lucent.com>
90409
90410         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90411         (close_stdout_set_status): New function.
90412         * lib/closeout.h (close_stdout_set_status): Declare.
90413
90414 2000-05-09  Jim Meyering  <meyering@lucent.com>
90415
90416         * m4/gettext.m4: Rename this...
90417         * m4/libintl.m4: ...to this.
90418
90419 2000-05-08  Jim Meyering  <meyering@lucent.com>
90420
90421         * lib/long-options.c: Don't include closeout.h.
90422         (parse_long_options): Don't call close_stdout for --version.
90423
90424 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90425
90426         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90427         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90428         2.1.3 bug.  This avoids a clash when files like regex.c define
90429         _GNU_SOURCE.
90430
90431 2000-05-06  Jim Meyering  <meyering@lucent.com>
90432
90433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90434         (AC_REPLACE_FUNCS): Add strnlen.
90435
90436         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90437         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90438
90439         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90440         AC_SEARCH_LIBS call for nanosleep.
90441         (LIB_NANOSLEEP): Set and AC_SUBST.
90442
90443 2000-05-06  Jim Meyering  <meyering@lucent.com>
90444
90445         * lib/strnlen.c: Undefine __strnlen and strnlen.
90446         [!weak_alias]: Define __strnlen to strnlen.
90447
90448         * lib/atexit.c: New file, from libiberty.
90449
90450 2000-05-06  Jim Meyering  <meyering@lucent.com>
90451
90452         * lib/closeout.c (close_stdout_status): Also check for errors on the
90453         stderr stream.
90454
90455 2000-05-05  Jim Meyering  <meyering@lucent.com>
90456
90457         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90458         AC_SEARCH_LIBS call for clock_gettime.
90459         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90460
90461         * m4/search-libs.m4: Update from autoconf.
90462
90463         su doesn't work on Solaris 2.6.
90464         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90465         <shadow.h>.  Reported by Dragos Harabor.
90466
90467 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90468
90469         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90470         memcpy instead of xmalloc, xrealloc, path_concat.
90471         (locale_charset): Treat empty environment variables as absent.
90472         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90473
90474 2000-05-04  Jim Meyering  <meyering@lucent.com>
90475
90476         * lib/getopt.c: Update from glibc.
90477         * lib/obstack.c: Likewise.
90478         * lib/obstack.h: Likewise.
90479         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90480         file
90481
90482         * lib/regex.h: Likewise.
90483         * lib/strndup.c: Likewise.
90484         * lib/strnlen.c: New file, from glibc.
90485
90486 2000-05-03  Jim Meyering  <meyering@lucent.com>
90487
90488         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90489
90490 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90491
90492         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90493         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90494         compile-time test, rather than inspecting host and OS, to
90495         decide whether to define _LARGEFILE_SOURCE.
90496
90497 2000-05-01  Jim Meyering  <meyering@lucent.com>
90498
90499         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90500
90501         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90502         Based on a patch from Bruno Haible.
90503
90504 2000-05-01  Jim Meyering  <meyering@lucent.com>
90505
90506         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90507
90508 2000-04-29  Jim Meyering  <meyering@lucent.com>
90509
90510         * lib/path-concat.c: Declare strdup only if it's not defined.
90511         * lib/canon-host.c: Likewise.
90512
90513 2000-04-28  Jim Meyering  <meyering@lucent.com>
90514
90515         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90516         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90517         is included first, then limits.h is included by locale.h by libintl.h.
90518         From John David Anglin.
90519
90520 2000-04-25  Jim Meyering  <meyering@lucent.com>
90521
90522         * lib/makepath.c (S_IRWXUGO): Define.
90523         (make_path): Always perform explicit chmod if MODE specifies any
90524         of the `special' permission bits.  Prompted by a bug report against
90525         install from Mate Wierdl and Joost van Baal.
90526
90527 2000-04-18  Jim Meyering  <meyering@lucent.com>
90528
90529         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90530         (jm_PREREQ): Use it.
90531
90532 2000-04-18  Jim Meyering  <meyering@lucent.com>
90533
90534         * lib/README: New file.
90535
90536         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90537         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90538
90539 2000-04-17  Jim Meyering  <meyering@lucent.com>
90540
90541         Get it right :-)
90542         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90543         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90544         Suggestion from Akim Demaille.
90545
90546 2000-04-17  Jim Meyering  <meyering@lucent.com>
90547
90548         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90549         the definition of it to rpl_strftime also defined-away the system's
90550         declaration.
90551
90552 2000-04-15  Jim Meyering  <meyering@lucent.com>
90553
90554         Use `C' to denote so-called `contiguous' files, the same way
90555         that tar does.
90556         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90557         (ftypelet): Use S_ISCTG.
90558         From Michael Deutschmann.
90559
90560 2000-04-14  Jim Meyering  <meyering@lucent.com>
90561
90562         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90563         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90564         clobbered.
90565
90566 2000-04-14  Jim Meyering  <meyering@lucent.com>
90567
90568         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90569
90570 2000-04-13  Jim Meyering  <meyering@lucent.com>
90571
90572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90573         AH_VERBATIM to insert required #ifndef into config.h.in.
90574         Suggestion from Akim Demaille.
90575
90576 2000-04-12  Jim Meyering  <meyering@lucent.com>
90577
90578         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90579         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90580         Christian Krackowizer.
90581
90582         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90583         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90584         (AC_SYS_LARGEFILE): Require.
90585         (AM_C_PROTOTYPES): Require.
90586
90587 2000-04-08  Jim Meyering  <meyering@lucent.com>
90588
90589         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90590         names don't conflict.  Reported by Eli Zaretskii.
90591
90592 2000-04-07  Jim Meyering  <meyering@lucent.com>
90593
90594         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90595         sys/types.h, to work around system header problems on AIX 3.2.5.
90596         From Bruno Haible.
90597
90598 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90599
90600         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90601         bug.  Deal with the different error behavior of Irix iconv.
90602
90603 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90604
90605         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90606         IRIX if the installer said otherwise.
90607
90608 2000-04-05  Jim Meyering  <meyering@lucent.com>
90609
90610         Portability tweaks required for ultrix4.3.
90611         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90612         (jm_CHECK_DECLS): Add getutent to the list of functions.
90613         (_jm_DECL_HEADERS): Add utmpx.h.
90614         From John David Anglin.
90615
90616         * m4/strftime.m4: Back out the 2000-04-02 change.
90617         Instead of that change, simply undefine putenv in the test program.
90618
90619 2000-04-05  Jim Meyering  <meyering@lucent.com>
90620
90621         Portability tweaks required for ultrix4.3.
90622         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90623         getutent.
90624         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90625         * lib/canon-host.c: Declare strdup.
90626         * lib/path-concat.c: Likewise.
90627         From John David Anglin.
90628
90629 2000-04-04  Jim Meyering  <meyering@lucent.com>
90630
90631         Be more DOS 8.3-friendly.
90632         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90633         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90634         * lib/Makefile.am: Reflect renaming.
90635         Reported by Eli Zaretskii.
90636
90637         Use a temporary file name that won't clash with `charset.alias'
90638         in the DOS 8.3 name space.
90639         * lib/Makefile.am (charset_tmp): Define.
90640         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90641         (uninstall-local): Likewise.
90642         Reported by Eli Zaretskii.
90643
90644 2000-04-03  Jim Meyering  <meyering@lucent.com>
90645
90646         * m4/gettext.m4: Fix typo in comment.
90647
90648         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90649         textutils/configure.in).  Suggestion from Paul Eggert.
90650         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90651
90652 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90653
90654         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90655         variable in the shell rather than using putenv, which isn't
90656         portable.  This avoids the configure-time inter-test dependency
90657         on the potentially-renamed putenv function.
90658
90659 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90660
90661         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90662         before checking struct stat.st_blksize, so that
90663         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90664
90665 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90666
90667         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90668         since strftime.c uses HAVE_STRFTIME to decide whether to use
90669         the underlying strftime.
90670
90671 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90672
90673         * lib/time/strftime.c (my_strftime): Make sure we call the system
90674         strftime, not ourselves, when invoking the underlying strftime.
90675
90676 2000-03-24  Jim Meyering  <meyering@lucent.com>
90677
90678         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90679         (charset_alias): Define.
90680         (install-exec-local): Factor out common code.
90681         (uninstall-local): Split lines longer than 80.
90682         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90683         (SUFFIXES): Define.
90684         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90685         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90686
90687 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90688
90689         * lib/config.charset: Output a line containing "Packages using this
90690         file".
90691         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90692         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90693         ref-del.sed): New rules.
90694
90695 2000-03-17  Jim Meyering  <meyering@lucent.com>
90696
90697         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90698         Otherwise, include <strings.h>
90699
90700 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90701
90702         * lib/unicodeio.c (utf8_wctomb): New function.
90703         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90704         format instead of in UCS-4 with platform dependent endianness.
90705
90706 2000-03-10  Jim Meyering  <meyering@lucent.com>
90707
90708         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90709         From Marco Franzen.
90710
90711 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90712
90713         * lib/savedir.c (savedir): Work even if directory size is
90714         negative; this can happen with some screwy NFS configurations.
90715
90716 2000-03-06  Jim Meyering  <meyering@lucent.com>
90717
90718         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90719         if it's NULL (because we ran out of memory).  From Bruno Haible.
90720
90721 2000-03-05  Jim Meyering  <meyering@lucent.com>
90722
90723         * lib/localcharset.c ("path-concat.h"): Include.
90724         (get_charset_aliases): Use path_concat instead of ANSI string
90725         concatenation.
90726
90727         * lib/unicodeio.h (PARAMS): Define.
90728         Use it to guard prototype.
90729
90730 2000-03-04  Jim Meyering  <meyering@lucent.com>
90731
90732         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90733         for lib/localcharset.c.
90734
90735 2000-03-04  Jim Meyering  <meyering@lucent.com>
90736
90737         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90738         installing into it.
90739         (uninstall-local): Uncomment this rule so `make distcheck' works
90740         once again.
90741
90742         * lib/unicodeio.c (<errno.h>): Include it.
90743         (errno): Declare if not defined.
90744
90745         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90746
90747         * lib/config.charset: New version, incorporating remarks from a linux
90748         i18n mailing list.  From Bruno Haible.
90749
90750 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90751
90752         * m4/codeset.m4: New file.
90753         * m4/iconv.m4: New file.
90754         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90755
90756 2000-03-03  Jim Meyering  <meyering@lucent.com>
90757
90758         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90759
90760 2000-03-02  Jim Meyering  <meyering@lucent.com>
90761
90762         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90763         the messages come out on separate lines.
90764
90765         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90766         rather than jm_CHECK_DECLARATIONS.
90767         * m4/decl.m4: Remove now-unused file.
90768
90769         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90770         geteuid.
90771
90772 2000-03-02  Jim Meyering  <meyering@lucent.com>
90773
90774         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90775
90776 2000-03-01  Jim Meyering  <meyering@lucent.com>
90777
90778         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90779         * lib/unicodeio.c: Likewise.
90780
90781 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90782
90783         * lib/config.charset: New file.
90784         * lib/localcharset.c: New file.
90785         * lib/unicodeio.h, lib/unicodeio.c: New files.
90786         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90787         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90788         (noinst_HEADERS): Add unicodeio.h.
90789         (all-local, install-exec-local, charset.alias): New targets.
90790
90791 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90792
90793         * lib/quotearg.c (ALERT_CHAR): New macro.
90794         (quotearg_buffer_restyled): Use it.
90795
90796 2000-02-27  Jim Meyering  <meyering@lucent.com>
90797
90798         * m4/check-decl.m4: Add getenv to the list.
90799
90800 2000-02-27  Jim Meyering  <meyering@lucent.com>
90801
90802         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90803         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90804
90805         * lib/backupfile.c: Guard inclusion of stdlib.h with
90806         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90807         Declare malloc if needed.
90808
90809         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90810         `#ifndef HAVE_DECL..'
90811         now that autoconf always defines the HAVE_DECL_ symbols.
90812         * lib/human.c: Likewise.
90813         * lib/same.c: Likewise.
90814         * lib/strtoumax.c: Likewise.
90815
90816         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90817         declaration check was not run.
90818         * lib/hash.c: Likewise.
90819         * lib/human.c: Likewise.
90820         * lib/same.c: Likewise.
90821         * lib/strtoumax.c: Likewise.
90822
90823         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90824         `.', then first look up the entire `.'-containing string as a login
90825         name.
90826
90827 2000-02-23  Jim Meyering  <meyering@lucent.com>
90828
90829         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90830         in place of my hack.
90831
90832 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90833
90834         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90835         (textint): New typedef.
90836         (parser_control): Member year changed from int to textint.
90837         All uses changed.
90838         (YYSTYPE): Removed; replaced by %union with int and textint members.
90839         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90840         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90841         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90842         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90843         (date, number, to_year): Use width of number in digits, not its value,
90844         to determine whether it's a 2-digit year, or a 2-digit time.
90845         (yylex): Store number of digits of numeric tokens.
90846         Reported by John Kendall.
90847
90848         (parser_control): Changed from struct parser_control to typedef (for
90849         consistency).  All uses changed.
90850
90851         (tID): Removed; not used.
90852         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90853
90854 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90855
90856         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90857         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90858
90859 2000-02-12  Jim Meyering  <meyering@lucent.com>
90860
90861         * lib/userspec.c (ISDIGIT): Define it.
90862         (isdigit): Remove definition.
90863         (is_number): Use ISDIGIT, not isdigit.
90864         <libintl.h>: Include.
90865         (_ and N_): Define.
90866         (parse_user_spec): Mark translatable strings.
90867
90868 2000-02-10  Jim Meyering  <meyering@lucent.com>
90869
90870         With these changes, nanosleep.[ch] are finally enough like the other
90871         lib/* replacement files to compile on a few more losing systems.
90872
90873         * lib/nanosleep.h: Don't include config.h.
90874         Remove prototype from declaration of nanosleep.
90875         (PARAMS): Remove now-unneeded definition.
90876         * lib/nanosleep.c: #undef nanosleep.
90877         (rpl_nanosleep): Rename from nanosleep.
90878
90879 2000-02-10  Jim Meyering  <meyering@lucent.com>
90880
90881         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90882         gnu_nanosleep to rpl_nanosleep.
90883
90884 2000-02-09  Jim Meyering  <meyering@lucent.com>
90885
90886         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90887         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90888
90889 2000-02-08  Akim Demaille  <akim@epita.fr>
90890
90891         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90892         `[' and `]' and remove uses of `changequote'.
90893         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90894         (AC_SYS_LARGEFILE): Likewise.
90895         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90896         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90897         of changequote.
90898         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90899         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90900         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90901         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90902
90903 2000-02-05  Jim Meyering  <meyering@lucent.com>
90904
90905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90906         Remove explicit use of AC_HEADER_TIME.  It is required by
90907         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90908         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90909         in autoconf whereby the expansion of the latter ended up preceding
90910         the expansion of its prerequisite, AC_HEADER_TIME.
90911         Reported by Volker Borchert.
90912
90913 2000-02-03  Jim Meyering  <meyering@lucent.com>
90914
90915         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90916
90917 2000-02-03  Jim Meyering  <meyering@lucent.com>
90918
90919         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90920         rather than with `#if HAVE_UTMPNAME'.
90921
90922 2000-02-02  Jim Meyering  <meyering@lucent.com>
90923
90924         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90925         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90926         Reported by Eli Zaretskii.
90927
90928 2000-02-01  Jim Meyering  <meyering@lucent.com>
90929
90930         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90931
90932 2000-01-31  Jim Meyering  <meyering@lucent.com>
90933
90934         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90935         functions.  Add the time.h and sys/time.h headers along with the
90936         AC_REQUIRE'ment of AC_HEADER_TIME.
90937
90938 2000-01-31  Jim Meyering  <meyering@lucent.com>
90939
90940         * lib/nanosleep.h (nanosleep): Guard declaration with
90941         `#if ! HAVE_DECL_NANOSLEEP'.
90942         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90943         the declaration in that vendor's sys/timers.h.
90944         Reported by Christian Krackowizer.
90945
90946         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90947         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90948         (ISPRINT): Likewise.
90949         Reported by Tom Tromey.
90950
90951 2000-01-30  Jim Meyering  <meyering@lucent.com>
90952
90953         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90954
90955         * m4/prereq.m4 (utmp_includes): Define.
90956         Check for ut_user and ut_name members in both struct utmpx
90957         and struct utmp.
90958
90959 2000-01-30  Jim Meyering  <meyering@lucent.com>
90960
90961         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90962         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90963         header files where only utmpx.ut_user is declared.
90964
90965         * lib/readutmp.h (UT_USER): Define.
90966
90967 2000-01-29  Jim Meyering  <meyering@lucent.com>
90968
90969         * m4/lib-check.m4: New file containing library-related checks from
90970         fileutils and sh-utils (textutils had none).
90971
90972 2000-01-28  Jim Meyering  <meyering@lucent.com>
90973
90974         * m4/perl.m4: Change format of warning message to look more like that
90975         from the missing script.  Suggestion from François Pinard.
90976
90977 2000-01-25  Jim Meyering  <meyering@lucent.com>
90978
90979         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90980         well as time.h in the compile check.
90981         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90982         Fix typo in cross-compiling case: s/yes/no/.
90983
90984 2000-01-23  Jim Meyering  <meyering@lucent.com>
90985
90986         * m4/jm-macros.m4: Move df-related tests here from
90987         fileutils/configure.in
90988
90989         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90990         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90991
90992         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90993         s/space/ac_fsusage_space/.
90994         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90995
90996         * m4/ftruncate.m4: New file (derived from part of
90997         fileutils/configure.in).
90998         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90999         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91000
91001         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91002         AC_SUBST these here, rather than just in sh-util/configure.in, so
91003         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91004         all the same.
91005         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91006         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91007         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91008         (AC_SUBST(POW_LIBM)): Likewise.
91009         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91010
91011 2000-01-23  Jim Meyering  <meyering@lucent.com>
91012
91013         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91014         obstack.c.
91015
91016 2000-01-22  Jim Meyering  <meyering@lucent.com>
91017
91018         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91019
91020         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91021
91022         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91023         configure.in
91024         (AC_CHECK_HEADERS): Likewise for sh-utils.
91025         (AC_CHECK_HEADERS): Likewise for textutils.
91026         Merge the three lists of headers.
91027
91028         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91029         from fileutils' configure.in.
91030
91031         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91032         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91033         check-decl.m4.
91034
91035         * m4/check-decl.m4: Use #if rather than #ifdef.
91036         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91037         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91038         (_jm_DECL_HEADERS): Define new function.
91039         (jm_CHECK_DECLARATIONS): Require it.
91040
91041 2000-01-22  Jim Meyering  <meyering@lucent.com>
91042
91043         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91044         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91045         Required for some AIX systems.  Reported by Christian Krackowizer.
91046         [TESTING] (main): New function.
91047
91048         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91049         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91050         letters.
91051
91052         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91053         iswprint.
91054
91055         * lib/strverscmp.c (ISDIGIT): Define.
91056         (strverscmp): Use ISDIGIT, not isdigit.
91057
91058 2000-01-19  Jim Meyering  <meyering@lucent.com>
91059
91060         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91061         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91062         defines `struct timespec' in <sys/time.h>
91063
91064         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91065         Thanks to Akim for explaining.
91066
91067 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91068
91069         * lib/nanosleep.c (nanosleep):
91070         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91071         POSIX.1 doesn't require SA_INTERRUPT and some systems
91072         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91073         it's been part of POSIX.1 since day 1 (in 1988).
91074
91075 2000-01-17  Jim Meyering  <meyering@lucent.com>
91076
91077         * lib/interlock: Remove unused file.  Reported by François Pinard.
91078
91079 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91080
91081         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91082         alert, backslash, formfeed, and vertical tab unnecessarily in
91083         shell quoting style.
91084
91085 2000-01-16  Jim Meyering  <meyering@lucent.com>
91086
91087         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91088         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91089         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91090         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91091
91092 2000-01-16  Jim Meyering  <meyering@lucent.com>
91093
91094         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91095         because the latter didn't work.
91096
91097 2000-01-15  Jim Meyering  <meyering@lucent.com>
91098
91099         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91100         (AC_REPLACE_FUNCS): Add memcpy and memset.
91101         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91102         Add strpbrk.
91103         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91104
91105 2000-01-12  Jim Meyering  <meyering@lucent.com>
91106
91107         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91108         (jm_PREREQ): Use it.
91109         (jm_PREREQ_READUTMP): New macro.
91110         (jm_PREREQ): Use it.
91111
91112 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91113
91114         Quote multibyte characters correctly.
91115         * m4/c-bs-a.m4: New file.
91116         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91117         (jm_PREREQ): Use it.
91118
91119 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91120
91121         * m4/uintmax_t.m4: Port to autoconf 2.13.
91122
91123 2000-01-08  Jim Meyering  <meyering@ascend.com>
91124
91125         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91126         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91127
91128 2000-01-04  Jim Meyering  <meyering@ascend.com>
91129
91130         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91131         jm_STRUCT_DIRENT_D_TYPE.
91132         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91133         jm_STRUCT_DIRENT_D_INO.
91134         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91135         jm_STRUCT_UTIMBUF.
91136         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91137         renamings.
91138         * m4/utime.m4: Likewise.
91139
91140         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91141         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91142
91143 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91144
91145         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91146         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91147
91148 2000-01-02  Jim Meyering  <meyering@ascend.com>
91149
91150         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91151         remember if this is necessary.
91152
91153 1999-12-26  Jim Meyering  <meyering@ascend.com>
91154
91155         * m4/jm-macros.m4: Use it here.
91156         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91157
91158 1999-12-23  Jim Meyering  <meyering@ascend.com>
91159
91160         * m4/jm-macros.m4: Check for clock_gettime (moved from
91161         fileutils/configure.in)
91162         Check for gettimeofday.
91163
91164 1999-12-20  Jim Meyering  <meyering@ascend.com>
91165
91166         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91167         autoconf-2.14a-1999-12-20.
91168
91169 1999-12-19  Jim Meyering  <meyering@ascend.com>
91170
91171         * m4/lstat-slash.m4: New file.
91172         * m4/jm-macros.m4: Use the new macro:
91173         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91174
91175 1999-12-07  Jim Meyering  <meyering@ascend.com>
91176
91177         * m4/perl.m4: Require that File::Compare be available, too.
91178         Too many systems seem to lack it.
91179
91180         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91181         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91182
91183 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91184
91185         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91186         problem with the QNX 4.25 shell, which doesn't propagate exit
91187         status of failed commands inside shell assignments.
91188
91189 1999-11-17  Jim Meyering  <meyering@ascend.com>
91190
91191         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91192
91193 1999-11-07  Jim Meyering  <meyering@ascend.com>
91194
91195         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91196
91197 1999-11-06  Jim Meyering  <meyering@ascend.com>
91198
91199         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91200         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91201
91202 1999-11-05  Jim Meyering  <meyering@ascend.com>
91203
91204         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91205         configure.in of textutils, fileutils, and sh-utils into this one
91206         (shared between those packages) file.
91207         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91208         AC_STRUCT_ST_BLKSIZE.
91209
91210 1999-11-03  Jim Meyering  <meyering@ascend.com>
91211
91212         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91213         of AC_CHECK_TYPE checks includes unistd.h.
91214         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91215         Suggestion from Akim Demaille.
91216
91217 1999-10-30  Jim Meyering  <meyering@ascend.com>
91218
91219         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91220         m4-quoted string.
91221         * m4/ls-mntd-fs.m4: Likewise.
91222         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91223         * m4/jm-winsz1.m4: Likewise.
91224
91225         * m4/const.m4: Remove file, since the fix made it into the experimental
91226         version of autoconf.
91227         * m4/mktime.m4: Likewise.
91228
91229         * m4/check-type.m4: Remove file, now that the latest version of
91230         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91231
91232         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91233         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91234         AC_CHECK_TYPE.
91235
91236 1999-10-04  Jim Meyering  <meyering@ascend.com>
91237
91238         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
91239
91240 1999-09-22  Paul Eggert  <eggert@twinsun.com>
91241
91242         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
91243         2.95.1 bug with HP-UX 10.20.
91244
91245 1999-09-17  Jim Meyering  <meyering@ascend.com>
91246
91247         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
91248         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
91249         due to missing strdup (against sh-utils-2.0).
91250
91251 1999-08-29  Jim Meyering  <meyering@ascend.com>
91252
91253         * m4/jm-macros.m4: Require jm_BISON.
91254         * m4/bison.m4: New file.
91255
91256 1999-08-17  Paul Eggert  <eggert@twinsun.com>
91257
91258         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
91259         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
91260
91261 1999-08-05  Jim Meyering  <meyering@ascend.com>
91262
91263         * m4/getline.m4: Rename test file from conftestdata to conftest.data
91264         to avoid conflicts with `conftest' on 8+3 filesystems.
91265         Suggestion from Eli Zaretskii.
91266
91267 1999-08-04  Jim Meyering  <meyering@ascend.com>
91268
91269         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
91270         fileutils and sh-utils (textutils's getline test was inadequate).
91271         (AM_FUNC_GETLINE): Run this test.
91272         (AC_CHECK_FUNCS): Check for getdelim.
91273         Reported by Bob Proulx.
91274
91275 1999-08-02  Jim Meyering  <meyering@ascend.com>
91276
91277         * m4/jm-macros.m4: Add a comment.
91278
91279 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91280
91281         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
91282         <inttypes.h> defines strtoumax as a macro (and not as a
91283         function).
91284
91285 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91286
91287         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
91288         that we can shift, multiply and divide unsigned long long
91289         values; Ultrix cc can't do it.
91290
91291 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91292
91293         * m4/mktime.m4: New file, which is a preview of what should appear
91294         in the next public autoconf release.
91295
91296 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91297
91298         * m4/lfs.m4: Remove this file.
91299         * m4/largefile.m4: New file.  It contains the old contents of
91300         lfs.m4, except that all names with prefix AC_LFS have been
91301         changed to use the prefix AC_SYS_LARGEFILE instead, to be
91302         compatible with future autoconf versions.  Also, some minor m4
91303         quoting problems have been fixed.
91304
91305 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91306
91307         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
91308         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
91309         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
91310         and simplify the shell code.
91311
91312 1999-08-01  Jim Meyering  <meyering@ascend.com>
91313
91314         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
91315         m4.
91316
91317 1999-07-20  Jim Meyering  <meyering@ascend.com>
91318
91319         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
91320
91321 1999-07-15  Jim Meyering  <meyering@ascend.com>
91322
91323         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
91324
91325 1999-05-22  Jim Meyering  <meyering@ascend.com>
91326
91327         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
91328
91329 1999-05-20  Jim Meyering  <meyering@ascend.com>
91330
91331         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
91332         Add a colon after each `then' in case $4 is empty.
91333
91334 1999-05-16  Jim Meyering  <meyering@ascend.com>
91335
91336         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
91337
91338 1999-05-10  Jim Meyering  <meyering@ascend.com>
91339
91340         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
91341
91342         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
91343         AC_FUNC_MKTIME.
91344
91345 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91346
91347         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
91348
91349 1999-05-04  Paul Eggert  <eggert@twinsun.com>
91350
91351         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
91352         not CPPFLAGS, so that linking works correctly in IRIX.
91353
91354 1999-04-30  Paul Eggert  <eggert@twinsun.com>
91355
91356         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
91357
91358 1999-04-20  Paul Eggert  <eggert@twinsun.com>
91359
91360         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
91361         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
91362         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
91363         jm_AC_TYPE_UNSIGNED_LONG_LONG.
91364         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
91365
91366         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91367
91368 1999-04-20  Jim Meyering  <meyering@ascend.com>
91369
91370         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91371         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91372         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91373
91374 1999-04-18  Jim Meyering  <meyering@ascend.com>
91375
91376         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91377         * m4/jm-macros.m4: Use it.
91378
91379 1999-04-06  Jim Meyering  <meyering@ascend.com>
91380
91381         * m4/strftime.m4: Remove test for %f.
91382
91383 1999-03-29  Jim Meyering  <meyering@ascend.com>
91384
91385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
91386         superset of the AC_TYPE_* checks in the textutils, fileutils,
91387         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
91388         AC_TYPE_PID_T.
91389
91390 1999-03-28  Jim Meyering  <meyering@ascend.com>
91391
91392         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91393         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91394         replaced e.g., in the *.sh files of the sh-utils.
91395
91396 1999-03-20  Jim Meyering  <meyering@ascend.com>
91397
91398         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91399         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91400         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91401
91402 1999-03-19  Jim Meyering  <meyering@ascend.com>
91403
91404         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91405
91406 1999-03-12  Jim Meyering  <meyering@ascend.com>
91407
91408         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91409
91410 1999-03-07  Jim Meyering  <meyering@ascend.com>
91411
91412         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91413         declared.
91414
91415 1999-02-17  Jim Meyering  <meyering@ascend.com>
91416
91417         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91418         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91419
91420 1999-02-07  Jim Meyering  <meyering@ascend.com>
91421
91422         * m4/group-member.m4: New file -- extracted from sh-utils'
91423         configure.in.
91424
91425         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91426         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91427
91428 1999-02-06  Jim Meyering  <meyering@ascend.com>
91429
91430         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91431         * m4/fnmatch.m4: Likewise.
91432         * m4/getgroups.m4: Likewise.
91433         * m4/lstat.m4: Likewise.
91434         * m4/malloc.m4: Likewise.
91435         * m4/putenv.m4: Likewise.
91436         * m4/realloc.m4: Likewise.
91437         * m4/regex.m4: Likewise.
91438         * m4/stat.m4: Likewise.
91439         * m4/strftime.m4: Likewise.
91440         Suggestion from Alain Magloire.
91441
91442         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91443         * m4/fnmatch.m4: Likewise.
91444         * m4/getgroups.m4: Likewise.
91445         * m4/getline.m4: Likewise.
91446         * m4/lstat.m4: Likewise.
91447         * m4/malloc.m4: Likewise.
91448         * m4/memcmp.m4: Likewise.
91449         * m4/putenv.m4: Likewise.
91450         * m4/realloc.m4: Likewise.
91451         * m4/regex.m4: Likewise.
91452         * m4/stat.m4: Likewise.
91453         * m4/strftime.m4: Likewise.
91454         Suggestion from Alain Magloire.
91455
91456         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91457         an argument.
91458
91459         * m4/regex.m4: Add a run-time Test for proper operation of
91460         re_compile_pattern.
91461
91462 1999-01-31  Jim Meyering  <meyering@ascend.com>
91463
91464         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91465
91466 1999-01-30  Jim Meyering  <meyering@ascend.com>
91467
91468         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91469
91470         * m4/jm-mktime.m4: Make this a wrapper around the official
91471         AM_FUNC_MKTIME rather than my private copy, now that the official one
91472         is up to date.
91473         * m4/mktime.m4: Remove file.
91474
91475         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91476         * m4/uptime.m4: Likewise.
91477         * m4/uintmax_t.m4: Likewise.
91478
91479 1999-01-28  Jim Meyering  <meyering@ascend.com>
91480
91481         * m4/jm-macros.m4: Use jm_AFS.
91482         * m4/afs.m4: New file (from fileutils' configure.in).
91483
91484         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91485         * m4/chown.m4: Likewise.
91486         * m4/d-ino.m4: Likewise.
91487         * m4/d-type.m4: Likewise.
91488         * m4/fnmatch.m4: Likewise.
91489         * m4/getgroups.m4: Likewise.
91490         * m4/gettext.m4: Likewise.
91491         * m4/jm-mktime.m4: Likewise.
91492         * m4/jm-winsz2.m4: Likewise.
91493         * m4/lcmessage.m4: Likewise.
91494         * m4/ls-mntd-fs.m4: Likewise.
91495         * m4/malloc.m4: Likewise.
91496         * m4/memcmp.m4: Likewise.
91497         * m4/putenv.m4: Likewise.
91498         * m4/realloc.m4: Likewise.
91499         * m4/st_mtim.m4: Likewise.
91500         * m4/strftime.m4: Likewise.
91501
91502 1999-01-16  Jim Meyering  <meyering@ascend.com>
91503
91504         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91505         (ARGMATCH_DIE_DECL): Define.
91506
91507 1999-01-12  Jim Meyering  <meyering@ascend.com>
91508
91509         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91510         Reported by Lars Hecking.
91511
91512 1999-01-10  Jim Meyering  <meyering@ascend.com>
91513
91514         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91515         gross kludge.
91516         * m4/inttypes_h.m4: Likewise.
91517         * m4/lstat.m4: Likewise.
91518         * m4/malloc.m4: Likewise.
91519         * m4/readdir.m4: Likewise.
91520         * m4/realloc.m4: Likewise.
91521         * m4/st_dm_mode.m4: Likewise.
91522         * m4/stat.m4: Likewise.
91523         * m4/utimbuf.m4: Likewise.
91524         * m4/utimes.m4: Likewise.
91525
91526         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91527         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91528         comments in config.h.in are meaningful.
91529
91530         * m4/jm-macros.m4: Require autoconf-2.13 here.
91531
91532         * m4/regex.m4: By default, don't use the included regex.c on systems
91533         with glibc 2.  Suggestion from Uli Drepper.
91534
91535 1999-01-02  Jim Meyering  <meyering@ascend.com>
91536
91537         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91538
91539 1998-12-18  Jim Meyering  <meyering@ascend.com>
91540
91541         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91542         Based on a suggestion from Lars Hecking.
91543
91544 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91545
91546         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91547
91548 1998-11-16  Jim Meyering  <meyering@ascend.com>
91549
91550         * m4/lfs.m4: Double-quote the `uname...` expression.
91551
91552 1998-11-14  Jim Meyering  <meyering@ascend.com>
91553
91554         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91555         * m4/stat.m4: Likewise.
91556
91557 1998-11-03  Jim Meyering  <meyering@ascend.com>
91558
91559         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91560         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91561
91562 1998-10-18  Jim Meyering  <meyering@ascend.com>
91563
91564         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91565
91566 1998-10-17  Jim Meyering  <meyering@ascend.com>
91567
91568         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91569         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91570         calls for those previously hard-coded headers.  Instead, take a new
91571         parameter.
91572         (jm_CHECK_DECLARATIONS): Reflect interface change.
91573         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91574         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91575
91576         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91577
91578 1998-10-14  Jim Meyering  <meyering@ascend.com>
91579
91580         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91581         instead of "TZ=America/Vancouver".  From Paul Eggert.
91582
91583 1998-10-11  Jim Meyering  <meyering@ascend.com>
91584
91585         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91586         This adds a test for a recently added compatibility fix for mktime.c.
91587         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91588
91589 1998-09-27  Jim Meyering  <meyering@ascend.com>
91590
91591         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91592
91593         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91594         ../configure.in, including a change from Gordon Matzigkeit to allow
91595         cross-compiling for the Hurd.
91596
91597         * m4/glibc.m4: New file/macro to test for the GNU C Library
91598         versions 1 and 2.  From Gordon Matzigkeit.
91599         Indent.
91600
91601 1998-09-21  Jim Meyering  <meyering@ascend.com>
91602
91603         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91604
91605 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91606
91607         Port nanosecond-resolution times to UnixWare 2.1.2 and
91608         pedantic Solaris 2.6.
91609
91610         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91611         AC_STRUCT_ST_MTIM.
91612         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91613         Generate name of ns member, instead of just 1 or undef.
91614         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91615
91616 1998-08-15  Jim Meyering  <meyering@ascend.com>
91617
91618         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91619         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91620         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91621         instead of jm_TYPE_SSIZE_T.
91622
91623 1998-08-12  Jim Meyering  <meyering@ascend.com>
91624
91625         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91626
91627 1998-08-02  Jim Meyering  <meyering@ascend.com>
91628
91629         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91630         in acconfig.h manually.
91631
91632 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91633
91634         * m4/st_mtim.m4: New file.
91635
91636 1998-07-28  Jim Meyering  <meyering@ascend.com>
91637
91638         * m4/utimes.m4: Undef stat.
91639
91640 1998-07-25  Jim Meyering  <meyering@ascend.com>
91641
91642         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91643         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91644
91645 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91646
91647         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91648         uid and gid actually remain unchanged.
91649
91650 1998-07-07  Jim Meyering  <meyering@ascend.com>
91651
91652         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91653
91654 1998-07-04  Jim Meyering  <meyering@ascend.com>
91655
91656         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91657         to prove that this macro can be used in packages without regex.c.
91658
91659 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91660
91661         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91662         is to be used.
91663
91664 1998-07-03  Jim Meyering  <meyering@ascend.com>
91665
91666         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91667
91668         * m4/gettext.m4: New file -- from gettext-0.10.35.
91669         * m4/lcmessage.m4: Likewise.
91670         * m4/progtest.m4: Likewise.
91671
91672         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91673         * m4/jm-macros.m4: Require the new macro.
91674
91675 1998-06-29  Jim Meyering  <meyering@ascend.com>
91676
91677         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91678         for the definition of NGROUPS (used in a system header included
91679         by sys/mount.h).
91680
91681 1998-06-28  Jim Meyering  <meyering@ascend.com>
91682
91683         * m4/ls-mntd-fs.m4: New file.
91684         * m4/fstypename.m4: New file.
91685
91686         * m4/jm-macros.m4: Require the new macro.
91687         * m4/jm-glibc-io.m4: New file.
91688
91689 1998-05-19  Jim Meyering  <meyering@ascend.com>
91690
91691         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91692         * m4/lchown.m4: New file.
91693
91694         * m4/Makefile.am.in: New file.
91695         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91696
91697 1998-05-14  Jim Meyering  <meyering@ascend.com>
91698
91699         * m4/Makefile.am (EXTRA_DIST): Add them.
91700         * m4/jm-macros.m4: New file.
91701         * m4/utimbuf.m4: New file.
91702
91703 1998-05-12  Jim Meyering  <meyering@ascend.com>
91704
91705         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91706
91707 1998-05-11  Jim Meyering  <meyering@ascend.com>
91708
91709         * m4/isc-posix.m4: New file.
91710
91711 1998-05-10  Jim Meyering  <meyering@ascend.com>
91712
91713         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91714
91715 1998-05-09  Jim Meyering  <meyering@ascend.com>
91716
91717         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91718         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91719         with automake.
91720
91721         * m4/ssize_t.m4: New file.
91722         * m4/mktime.m4: Remove file -- the new automake has this now.
91723
91724 1998-04-26  Jim Meyering  <meyering@ascend.com>
91725
91726         * m4/assert.m4: New file.
91727         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91728
91729 1998-04-05  Jim Meyering  <meyering@ascend.com>
91730
91731         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91732         (jm_PREREQ): Use it here.
91733
91734 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91735
91736         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91737         in acconfig.h.
91738
91739 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91740
91741         * m4/prereq.m4: New file.
91742         * m4/error.m4: New file.
91743         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91744
91745 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91746
91747         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91748         cache-check for the same variable -- that defeated the purpose of
91749         the test; the test program was never run.  This was a problem only
91750         on systems with losing getline functions -- HP-UX 10.20 is one.
91751         Reported by Bjorn Helgaas.
91752
91753 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91754
91755         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91756
91757 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91758
91759         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91760
91761         * m4/const.m4: New file.  Use an initializer in this declaration
91762         typedef int charset[2]; const charset x;
91763         Reported by Bob Glickstein.
91764
91765 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91766
91767         * m4/chown.m4: Fix reversed types on -1 args to chown.
91768         From Kaveh Ghazi.
91769
91770 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91771
91772         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91773         Add lseek and memchr.
91774
91775         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91776         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91777         have a 20-character limit on names.
91778
91779 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91780
91781         * m4/inttypes_h.m4: New file.
91782         * m4/uintmax_t.m4: New file.
91783         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91784
91785
91786         -----
91787
91788         Local Variables:
91789         coding: utf-8
91790         End:
91791
91792         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91793
91794         Copying and distribution of this file, with or without
91795         modification, are permitted provided the copyright notice
91796         and this notice are preserved.